- Tailwind v3 + PostCSS + autoprefixer - BrowserRouter with Layout shell (Header, theme toggle dark/light) - Pages: HomePage, CallbackPage (SuperOAuth callback handler) - hooks/useAuth.ts + lib/api.ts (API client base) - styles/index.css (Tailwind directives) - Theme persisted in localStorage (od-theme)
32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import type { Config } from 'tailwindcss';
|
|
|
|
// Design system "Void" — palette custom OriginsDigital
|
|
// Les couleurs sont définies comme variables CSS dans src/styles/index.css
|
|
// → thème sombre/clair géré via data-theme="dark|light" sur <html>
|
|
export default {
|
|
content: ['./index.html', './src/**/*.{ts,tsx}'],
|
|
theme: {
|
|
extend: {
|
|
colors: {
|
|
od: {
|
|
bg: 'var(--od-bg)',
|
|
surface: 'var(--od-surface)',
|
|
'surface-hi': 'var(--od-surface-hi)',
|
|
border: 'var(--od-border)',
|
|
text: 'var(--od-text)',
|
|
muted: 'var(--od-muted)',
|
|
accent: 'var(--od-accent)',
|
|
'accent-dim': 'var(--od-accent-dim)',
|
|
crit: 'var(--od-crit)',
|
|
ok: 'var(--od-ok)',
|
|
},
|
|
},
|
|
fontFamily: {
|
|
sans: ['Inter', 'ui-sans-serif', 'system-ui', 'sans-serif'],
|
|
mono: ['"JetBrains Mono"', '"Fira Code"', 'ui-monospace', 'monospace'],
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
} satisfies Config;
|