Files

110 lines
3.2 KiB
TypeScript
Raw Permalink Normal View History

import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./app/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./lib/**/*.{ts,tsx}",
],
theme: {
container: {
center: true,
padding: { DEFAULT: "1.5rem", lg: "2rem" },
screens: { "2xl": "1280px" },
},
extend: {
fontFamily: {
sans: ["var(--font-sans)", "ui-sans-serif", "system-ui", "sans-serif"],
display: ["var(--font-display)", "var(--font-sans)", "ui-sans-serif", "sans-serif"],
},
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))",
},
brand: {
DEFAULT: "hsl(var(--brand))",
foreground: "hsl(var(--brand-foreground))",
hover: "hsl(var(--brand-hover))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
success: {
DEFAULT: "hsl(var(--success))",
foreground: "hsl(0 0% 100%)",
},
warning: {
DEFAULT: "hsl(var(--warning))",
foreground: "hsl(0 0% 100%)",
},
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))",
},
},
borderRadius: {
"4xl": "2rem",
"3xl": "1.5rem",
"2xl": "1rem",
xl: "0.75rem",
lg: "var(--radius)",
md: "calc(var(--radius) - 4px)",
sm: "calc(var(--radius) - 6px)",
},
boxShadow: {
sm: "0 1px 2px 0 rgba(11,11,11,0.05)",
DEFAULT: "0 2px 8px 0 rgba(11,11,11,0.06)",
md: "0 8px 24px -4px rgba(11,11,11,0.08)",
lg: "0 16px 48px -8px rgba(11,11,11,0.12)",
xl: "0 28px 70px -12px rgba(11,11,11,0.16)",
},
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" },
},
"fade-up": {
from: { opacity: "0", transform: "translateY(8px)" },
to: { opacity: "1", transform: "translateY(0)" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"fade-up": "fade-up 0.4s ease-out both",
},
},
},
plugins: [require("tailwindcss-animate")],
};
export default config;