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:
7 files changed
+27
-16
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user