Phase 1c: shadcn/ui primitives + CSS-variable theme tokens
- components.json, @/* path alias in tsconfig + vite config - Tailwind config: CSS-variable-backed color tokens, animation plugin - index.css: :root (light) and .dark token blocks (slate base) — currently pinned to dark via class on <html> so visual appearance is unchanged - src/lib/utils.ts: cn() helper (clsx + tailwind-merge) - src/components/ui/: 16 primitives — button, input, label, textarea, badge, avatar, separator, skeleton, dialog, dropdown-menu, select, tabs, tooltip, sonner, alert-dialog, popover - Nothing replaced yet; existing components still in place. Used in Phase 3. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import path from 'path';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
},
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:3000',
|
||||
|
||||
Reference in New Issue
Block a user