Files
Aether/frontend/tailwind.config.js

85 lines
2.3 KiB
JavaScript
Raw Normal View History

2025-12-10 20:52:44 +08:00
/** @type {import('tailwindcss').Config} */
export default {
darkMode: ["class"],
content: [
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
border: "var(--border)",
input: "var(--input)",
ring: "var(--ring)",
background: "var(--background)",
foreground: "var(--foreground)",
primary: {
DEFAULT: "var(--primary)",
foreground: "var(--primary-foreground)",
},
secondary: {
DEFAULT: "var(--secondary)",
foreground: "var(--secondary-foreground)",
},
destructive: {
DEFAULT: "var(--destructive)",
foreground: "var(--destructive-foreground)",
},
muted: {
DEFAULT: "var(--muted)",
foreground: "var(--muted-foreground)",
},
accent: {
DEFAULT: "var(--accent)",
foreground: "var(--accent-foreground)",
},
popover: {
DEFAULT: "var(--popover)",
foreground: "var(--popover-foreground)",
},
card: {
DEFAULT: "var(--card)",
foreground: "var(--card-foreground)",
},
// Claude 配色
slate: {
dark: "var(--slate-dark)",
medium: "var(--slate-medium)",
light: "var(--slate-light)",
},
cloud: {
dark: "var(--cloud-dark)",
medium: "var(--cloud-medium)",
light: "var(--cloud-light)",
},
ivory: {
dark: "var(--ivory-dark)",
medium: "var(--ivory-medium)",
light: "var(--ivory-light)",
},
"book-cloth": "var(--book-cloth)",
kraft: "var(--kraft)",
manilla: "var(--manilla)",
},
fontFamily: {
sans: ["var(--sans-serif)", "system-ui", "-apple-system", "BlinkMacSystemFont", "PingFang SC", "sans-serif"],
serif: ["var(--serif)", "Songti SC", "STSong", "serif"],
mono: ["var(--monospace)", "SFMono-Regular", "Menlo", "Monaco", "monospace"],
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
},
plugins: [require("tailwindcss-animate")],
}