import type { Config } from "tailwindcss"; /** * Theme colors are RGB-triplet CSS variables (see app/assets/css/main.css), * so every token supports Tailwind opacity modifiers (bg-accent/10, ...) * and switches automatically with prefers-color-scheme. */ const themeColors = { bg: "rgb(var(--bg) / )", surface: "rgb(var(--surface) / )", "surface-2": "rgb(var(--surface-2) / )", "surface-3": "rgb(var(--surface-3) / )", border: "rgb(var(--border) / )", "border-strong": "rgb(var(--border-strong) / )", text: "rgb(var(--text) / )", muted: "rgb(var(--muted) / )", faint: "rgb(var(--faint) / )", accent: "rgb(var(--accent) / )", "accent-strong": "rgb(var(--accent-strong) / )", "accent-dim": "rgb(var(--accent-dim) / )", "accent-text": "rgb(var(--accent-text) / )", "accent-border": "rgb(var(--accent-border) / )", ok: "rgb(var(--ok) / )", "ok-dim": "rgb(var(--ok-dim) / )", warn: "rgb(var(--warn) / )", "warn-dim": "rgb(var(--warn-dim) / )", bad: "rgb(var(--bad) / )", "bad-dim": "rgb(var(--bad-dim) / )", "body-text": "rgb(var(--body-text) / )", "code-bg": "rgb(var(--code-bg) / )", }; export default >{ content: [], theme: { extend: { colors: themeColors, fontFamily: { ui: "var(--font-ui)", mono: "var(--font-mono)", }, borderRadius: { sm: "var(--radius-sm)", DEFAULT: "var(--radius)", }, boxShadow: { card: "var(--shadow)", "card-hover": "0 8px 24px -12px rgba(15, 23, 42, 0.25)", "accent-lg": "0 12px 28px -10px var(--accent)", "drawer": "-16px 0 48px rgba(15, 23, 42, 0.12)", "modal": "0 12px 40px rgba(15, 23, 42, 0.25)", }, keyframes: { rise: { from: { opacity: "0", transform: "translateY(8px)" }, to: { opacity: "1", transform: "none" }, }, }, animation: { rise: "rise 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both", }, }, }, };