chore: simplify tailwind config — FiberOps design tokens, remove shadcn HSL vars, remove tailwindcss-animate

This commit is contained in:
Forge
2026-03-26 09:56:56 +08:00
parent ea3a076461
commit f8daee8732
3 changed files with 66 additions and 69 deletions

View File

@@ -1,78 +1,45 @@
import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
"./src/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
// FiberOps design tokens
fiberops: {
primary: '#0891B2',
'primary-dark': '#0E7490',
secondary: '#22D3EE',
cta: '#059669',
'cta-hover': '#047857',
bg: '#F8FAFC',
surface: '#FFFFFF',
text: '#0F172A',
muted: '#64748B',
border: '#E2E8F0',
danger: '#EF4444',
warning: '#F59E0B',
success: '#059669',
},
},
fontFamily: {
sans: ['var(--font-fira-sans)', 'Inter', 'system-ui', 'sans-serif'],
mono: ['var(--font-fira-code)', 'JetBrains Mono', 'monospace'],
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
keyframes: {
"accordion-down": {
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
sm: '6px',
DEFAULT: '10px',
lg: '14px',
xl: '20px',
},
},
},
plugins: [require("tailwindcss-animate")],
plugins: [],
};
export default config;