design: add roboto slab font
This commit is contained in:
8 files changed
+45
-11
No files matched your search
+28
-1
@@ -7,8 +7,8 @@
|
||||
@theme {
|
||||
--font-sans: sans-serif;
|
||||
--font-system: system-ui;
|
||||
--font-inter: Inter, system-ui, sans-serif;
|
||||
--font-display: Inter, system-ui, sans-serif;
|
||||
--font-reading: Inter, system-ui, sans-serif;
|
||||
--font-mono: monospace;
|
||||
|
||||
--animate-pop-in: pop-in 0.8s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
|
||||
@@ -56,6 +56,33 @@
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Roboto Slab';
|
||||
src: url('/font/RobotoSlab.woff2') format('woff2');
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
.font--serifs {
|
||||
--font-display: 'Roboto Slab', serif;
|
||||
--font-reading: 'Roboto Slab', serif;
|
||||
--font-sans: 'Roboto Slab', serif;
|
||||
}
|
||||
.font--inter {
|
||||
--font-display: Inter, sans-serif;
|
||||
--font-reading: Inter, sans-serif;
|
||||
--font-sans: Inter, sans-serif;
|
||||
}
|
||||
.font--system {
|
||||
--font-display: system-ui, sans-serif;
|
||||
--font-reading: system-ui, sans-serif;
|
||||
--font-sans: system-ui, sans-serif;
|
||||
}
|
||||
.font--browser {
|
||||
--font-display: sans-serif;
|
||||
--font-reading: sans-serif;
|
||||
--font-sans: sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply bg-slate-50 text-slate-900 dark:bg-zinc-950 dark:text-zinc-100 accent-slate-950 dark:accent-zinc-50;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user