Files
asset-homepage/tailwind.config.ts

50 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-01-27 17:26:30 +08:00
import type { Config } from "tailwindcss";
2026-01-29 16:23:10 +08:00
import { heroui } from "@heroui/theme";
2026-01-27 17:26:30 +08:00
export default {
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
2026-01-29 16:23:10 +08:00
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
2026-01-27 17:26:30 +08:00
],
theme: {
extend: {
colors: {
background: "var(--background)",
foreground: "var(--foreground)",
'bg-subtle': '#f9fafb',
'bg-surface': '#ffffff',
'border-normal': '#e5e7eb',
'border-gray': '#f3f4f6',
'text-primary': '#111827',
'text-tertiary': '#9ca1af',
'fill-secondary-click': '#f3f4f6',
},
fontFamily: {
2026-01-28 17:55:01 +08:00
inter: ['var(--font-noto-sans-sc)', 'var(--font-inter)', 'Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'sans-serif'],
2026-01-27 17:26:30 +08:00
jetbrains: ['var(--font-jetbrains)', 'JetBrains Mono', 'monospace'],
2026-01-28 17:55:01 +08:00
domine: ['var(--font-noto-serif-sc)', 'var(--font-domine)', 'Domine', 'Georgia', 'Noto Serif', 'serif'],
'noto-sans': ['var(--font-noto-sans-sc)', 'sans-serif'],
'noto-serif': ['var(--font-noto-serif-sc)', 'serif'],
2026-01-27 17:26:30 +08:00
},
fontSize: {
'caption-tiny': ['12px', { lineHeight: '150%', letterSpacing: '0.01em' }],
'body-small': ['14px', { lineHeight: '150%' }],
'body-default': ['16px', { lineHeight: '150%' }],
'body-large': ['18px', { lineHeight: '150%' }],
'heading-h3': ['24px', { lineHeight: '130%', letterSpacing: '-0.005em' }],
'heading-h2': ['32px', { lineHeight: '120%', letterSpacing: '-0.01em' }],
},
fontWeight: {
regular: '400',
medium: '500',
bold: '700',
extrabold: '800',
},
},
},
2026-01-29 16:23:10 +08:00
plugins: [heroui()],
2026-01-27 17:26:30 +08:00
} satisfies Config;