feat(frontend): scaffold Tailwind design system + routing + auth callback
- 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)
This commit is contained in:
31
frontend/tailwind.config.ts
Normal file
31
frontend/tailwind.config.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user