feat: use @next/font for font loading (#6346)

Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-02-17 18:53:17 +01:00
1 parent 48e5d18ea1
commit 1433ec6946
7 files changed
+27 -16

No files matched your search

+3 -6
View File
@@ -1,4 +1,5 @@
const plugin = require("tailwindcss/plugin");
const { fontFamily } = require("tailwindcss/defaultTheme");
/** @type {import('tailwindcss').Config} */
@@ -12,10 +13,6 @@ module.exports = {
],
darkMode: "class",
theme: {
fontFamily: {
cal: ['"Cal Sans"', "sans-serif"],
sans: ['"Inter var"', "sans-serif"],
},
extend: {
colors: {
/* your primary brand color */
@@ -162,9 +159,9 @@ module.exports = {
dropdown: "0px 2px 6px -1px rgba(0, 0, 0, 0.08)",
},
fontFamily: {
cal: ['"Cal Sans"', "sans-serif"],
cal: ["var(--font-cal)", ...fontFamily.serif],
sans: ["var(--font-inter)", ...fontFamily.sans],
mono: ["Roboto Mono", "monospace"],
sans: ['"Inter var"', "sans-serif"],
},
maxHeight: (theme) => ({
0: "0",