(feat): improve fonts
All checks were successful
/ deploy-and-package (push) Successful in 1m7s

(feat): make cards non-transparent
This commit is contained in:
Alois 2026-07-30 20:19:55 +02:00
commit 8da8c99d5b
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
15 changed files with 456 additions and 23 deletions

View file

@ -1,13 +1,48 @@
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@import "@fontsource-variable/public-sans/wght.css";
@font-face {
font-family: "Public Sans";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("./fonts/public-sans/public-sans-latin-wght-normal.woff2")
format("woff2-variations");
}
@font-face {
font-family: "Inter";
font-style: normal;
font-display: swap;
font-weight: 100 900;
src: url("./fonts/inter/inter-latin-wght-normal.woff2")
format("woff2-variations");
}
@font-face {
font-family: "Source Serif 4";
font-style: normal;
font-display: swap;
font-weight: 200 900;
src: url("./fonts/source-serif-4/source-serif-4-latin-wght-normal.woff2")
format("woff2-variations");
}
@font-face {
font-family: "JetBrains Mono";
font-style: normal;
font-display: swap;
font-weight: 100 800;
src: url("./fonts/jetbrains-mono/jetbrains-mono-latin-wght-normal.woff2")
format("woff2-variations");
}
@custom-variant dark (&:is(.dark *));
@theme inline {
--font-heading: var(--font-sans), sans-serif;
--font-sans: "Public Sans Variable", system-ui, sans-serif;
--font-sans: "Public Sans", system-ui, sans-serif;
--color-sidebar-ring: var(--sidebar-ring);
--color-sidebar-border: var(--sidebar-border);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
@ -203,7 +238,7 @@
@apply bg-background text-foreground;
}
html {
@apply font-sans;
font-family: var(--font-sans);
font-size: calc(16px * var(--ui-font-scale));
}
@ -211,6 +246,18 @@
--font-sans:
system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
html[data-font="inter"] {
--font-sans: "Inter", system-ui, sans-serif;
}
html[data-font="source-serif-4"] {
--font-sans: "Source Serif 4", Georgia, serif;
}
html[data-font="jetbrains-mono"] {
--font-sans: "JetBrains Mono", ui-monospace, monospace;
}
}
:where(