forked from tangled.org/core
this repo has no description

input.css: fix fonts for good

define variants for all families, weights and styles.

Signed-off-by: oppiliappan <me@oppi.li>

oppi.li f7dbe314 811331c8

verified
Changed files
+36 -4
nix
+35 -3
input.css
···
@font-face {
font-family: "InterVariable";
src: url("/static/fonts/InterVariable-Italic.woff2") format("woff2");
-
font-weight: 400;
+
font-weight: normal;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "InterVariable";
-
src: url("/static/fonts/InterVariable.woff2") format("woff2");
-
font-weight: 600;
+
src: url("/static/fonts/InterDisplay-Bold.woff2") format("woff2");
+
font-weight: bold;
font-style: normal;
font-display: swap;
}
@font-face {
+
font-family: "InterVariable";
+
src: url("/static/fonts/InterDisplay-BoldItalic.woff2") format("woff2");
+
font-weight: bold;
+
font-style: italic;
+
font-display: swap;
+
}
+
+
@font-face {
font-family: "IBMPlexMono";
src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2");
font-weight: normal;
+
font-style: normal;
+
font-display: swap;
+
}
+
+
@font-face {
+
font-family: "IBMPlexMono";
+
src: url("/static/fonts/IBMPlexMono-Italic.woff2") format("woff2");
+
font-weight: normal;
+
font-style: italic;
+
font-display: swap;
+
}
+
+
@font-face {
+
font-family: "IBMPlexMono";
+
src: url("/static/fonts/IBMPlexMono-Bold.woff2") format("woff2");
+
font-weight: bold;
+
font-style: normal;
+
font-display: swap;
+
}
+
+
@font-face {
+
font-family: "IBMPlexMono";
+
src: url("/static/fonts/IBMPlexMono-BoldItalic.woff2") format("woff2");
+
font-weight: bold;
font-style: italic;
font-display: swap;
}
+1 -1
nix/pkgs/appview-static-files.nix
···
cp -rf ${lucide-src}/*.svg icons/
cp -f ${inter-fonts-src}/web/InterVariable*.woff2 fonts/
cp -f ${inter-fonts-src}/web/InterDisplay*.woff2 fonts/
-
cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono-Regular.woff2 fonts/
+
cp -f ${ibm-plex-mono-src}/fonts/complete/woff2/IBMPlexMono*.woff2 fonts/
# tailwindcss -c $src/tailwind.config.js -i $src/input.css -o tw.css won't work
# for whatever reason (produces broken css), so we are doing this instead
cd ${src} && ${tailwindcss}/bin/tailwindcss -i input.css -o $out/tw.css