84 lines
3.2 KiB
TypeScript
84 lines
3.2 KiB
TypeScript
import type { Config } from "tailwindcss";
|
|
|
|
export default {
|
|
// Match the token theme, including the portal, rather than the OS preference alone.
|
|
darkMode: ["selector", ':is(.dark, [data-bs-theme="dark"])'],
|
|
content: ["./index.html", "./src/**/*.{ts,tsx}"],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
background: "oklch(var(--background) / <alpha-value>)",
|
|
foreground: "oklch(var(--foreground) / <alpha-value>)",
|
|
card: {
|
|
DEFAULT: "oklch(var(--card) / <alpha-value>)",
|
|
foreground: "oklch(var(--card-foreground) / <alpha-value>)",
|
|
},
|
|
popover: {
|
|
DEFAULT: "oklch(var(--popover) / <alpha-value>)",
|
|
foreground: "oklch(var(--popover-foreground) / <alpha-value>)",
|
|
},
|
|
primary: {
|
|
DEFAULT: "oklch(var(--primary) / <alpha-value>)",
|
|
foreground: "oklch(var(--primary-foreground) / <alpha-value>)",
|
|
},
|
|
secondary: {
|
|
DEFAULT: "oklch(var(--secondary) / <alpha-value>)",
|
|
foreground: "oklch(var(--secondary-foreground) / <alpha-value>)",
|
|
},
|
|
muted: {
|
|
DEFAULT: "oklch(var(--muted) / <alpha-value>)",
|
|
foreground: "oklch(var(--muted-foreground) / <alpha-value>)",
|
|
},
|
|
accent: {
|
|
DEFAULT: "oklch(var(--accent) / <alpha-value>)",
|
|
foreground: "oklch(var(--accent-foreground) / <alpha-value>)",
|
|
},
|
|
destructive: {
|
|
DEFAULT: "oklch(var(--destructive) / <alpha-value>)",
|
|
},
|
|
border: "oklch(var(--border) / <alpha-value>)",
|
|
input: "oklch(var(--input) / <alpha-value>)",
|
|
ring: "oklch(var(--ring) / <alpha-value>)",
|
|
success: "oklch(var(--success) / <alpha-value>)",
|
|
warning: "oklch(var(--warning) / <alpha-value>)",
|
|
sidebar: {
|
|
DEFAULT: "oklch(var(--sidebar) / <alpha-value>)",
|
|
foreground: "oklch(var(--sidebar-foreground) / <alpha-value>)",
|
|
primary: "oklch(var(--sidebar-primary) / <alpha-value>)",
|
|
"primary-foreground": "oklch(var(--sidebar-primary-foreground) / <alpha-value>)",
|
|
accent: "oklch(var(--sidebar-accent) / <alpha-value>)",
|
|
"accent-foreground": "oklch(var(--sidebar-accent-foreground) / <alpha-value>)",
|
|
border: "oklch(var(--sidebar-border) / <alpha-value>)",
|
|
ring: "oklch(var(--sidebar-ring) / <alpha-value>)",
|
|
},
|
|
},
|
|
borderRadius: {
|
|
lg: "var(--radius)",
|
|
md: "calc(var(--radius) - 2px)",
|
|
sm: "calc(var(--radius) - 4px)",
|
|
},
|
|
ringWidth: { 3: "3px" },
|
|
boxShadow: {
|
|
xs: "var(--shadow-xs)",
|
|
sm: "var(--shadow-sm)",
|
|
DEFAULT: "var(--shadow-sm)",
|
|
md: "var(--shadow-md)",
|
|
},
|
|
fontFamily: {
|
|
sans: ["var(--font-sans)", "sans-serif"],
|
|
heading: ["var(--font-heading)", "sans-serif"],
|
|
mono: ["var(--font-mono)", "monospace"],
|
|
},
|
|
fontSize: {
|
|
xs: ["var(--text-meta)", "1.5"],
|
|
sm: ["var(--text-control)", "1.5"],
|
|
base: ["var(--text-body)", "1.5"],
|
|
lg: ["var(--text-section)", "1.4"],
|
|
xl: ["var(--text-section)", "1.4"],
|
|
"2xl": ["var(--text-page)", "1.3"],
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
} satisfies Config;
|