mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
Add a complete light mode theme with a ThemeContext and CSS custom properties for all UI surfaces. Replaces hardcoded dark colors with theme-aware equivalents across 32 files including: - Tailwind config extended with theme color tokens - CSS custom properties for light/dark palettes in index.css - ThemeContext provider in App.tsx with system preference detection - All editor panels, dialogs, timeline, and settings updated to use theme-aware classes (text-foreground, bg-surface, border-border, etc.) - Timeline glass effects and module CSS updated for both modes - UI primitives (accordion, switch, slider, sonner) themed
82 lines
2.3 KiB
JavaScript
82 lines
2.3 KiB
JavaScript
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
darkMode: ["class"],
|
|
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
|
|
theme: {
|
|
extend: {
|
|
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",
|
|
},
|
|
borderRadius: {
|
|
lg: "var(--radius)",
|
|
md: "calc(var(--radius) - 2px)",
|
|
sm: "calc(var(--radius) - 4px)",
|
|
},
|
|
colors: {
|
|
background: "hsl(var(--background))",
|
|
foreground: "hsl(var(--foreground))",
|
|
card: {
|
|
DEFAULT: "hsl(var(--card))",
|
|
foreground: "hsl(var(--card-foreground))",
|
|
},
|
|
popover: {
|
|
DEFAULT: "hsl(var(--popover))",
|
|
foreground: "hsl(var(--popover-foreground))",
|
|
},
|
|
primary: {
|
|
DEFAULT: "hsl(var(--primary))",
|
|
foreground: "hsl(var(--primary-foreground))",
|
|
},
|
|
secondary: {
|
|
DEFAULT: "hsl(var(--secondary))",
|
|
foreground: "hsl(var(--secondary-foreground))",
|
|
},
|
|
muted: {
|
|
DEFAULT: "hsl(var(--muted))",
|
|
foreground: "hsl(var(--muted-foreground))",
|
|
},
|
|
accent: {
|
|
DEFAULT: "hsl(var(--accent))",
|
|
foreground: "hsl(var(--accent-foreground))",
|
|
},
|
|
destructive: {
|
|
DEFAULT: "hsl(var(--destructive))",
|
|
foreground: "hsl(var(--destructive-foreground))",
|
|
},
|
|
border: "hsl(var(--border))",
|
|
input: "hsl(var(--input))",
|
|
ring: "hsl(var(--ring))",
|
|
chart: {
|
|
1: "hsl(var(--chart-1))",
|
|
2: "hsl(var(--chart-2))",
|
|
3: "hsl(var(--chart-3))",
|
|
4: "hsl(var(--chart-4))",
|
|
5: "hsl(var(--chart-5))",
|
|
},
|
|
"editor-bg": "hsl(var(--editor-bg))",
|
|
"editor-header": "hsl(var(--editor-header))",
|
|
"editor-panel": "hsl(var(--editor-panel))",
|
|
"editor-surface": "hsl(var(--editor-surface))",
|
|
"editor-surface-alt": "hsl(var(--editor-surface-alt))",
|
|
"editor-dialog": "hsl(var(--editor-dialog))",
|
|
"editor-dialog-alt": "hsl(var(--editor-dialog-alt))",
|
|
"editor-timeline": "hsl(var(--editor-timeline))",
|
|
"editor-row": "hsl(var(--editor-row))",
|
|
"editor-subrow": "hsl(var(--editor-subrow))",
|
|
},
|
|
},
|
|
},
|
|
plugins: [require("tailwindcss-animate")],
|
|
};
|