Use Inter var as global default font

This commit is contained in:
2023-08-26 00:16:09 -05:00
parent cb424781e6
commit 268658cc5c
2 changed files with 8 additions and 1 deletions

View File

@@ -2,6 +2,8 @@
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@import url('https://rsms.me/inter/inter.css');
dd { dd {
margin: 0.5em 0 1em 2em; margin: 0.5em 0 1em 2em;
} }
@@ -12,7 +14,7 @@ dd {
body { body {
color-scheme: dark; color-scheme: dark;
@apply bg-zinc-900 text-white; @apply font-sans bg-zinc-900 text-white;
} }
dd, dl { dd, dl {

View File

@@ -1,9 +1,14 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = { module.exports = {
content: ["./src/**/*.{js,ts,jsx,tsx}"], content: ["./src/**/*.{js,ts,jsx,tsx}"],
darkMode: "class", darkMode: "class",
theme: { theme: {
extend: { extend: {
fontFamily: {
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
},
colors: { colors: {
zinc: { zinc: {
850: "#1D1D20", 850: "#1D1D20",