11@import 'tailwindcss' ;
2+
3+ /* =============================================================================
4+ Design tokens - CSS Custom Properties
5+
6+ These variables serve as the single source of truth for all colors, spacing,
7+ and typography. They can be used in both scoped CSS and Tailwind classes.
8+
9+ Future: Can be modified at runtime for user theme customization.
10+ ============================================================================= */
11+
12+ : root {
13+ /* === Backgrounds === */
14+ --color-bg-primary : # ffffff ;
15+ --color-bg-secondary : # f5f5f5 ;
16+
17+ /* === Borders === */
18+ --color-border-primary : # ccc ;
19+
20+ /* === Text === */
21+ --color-text-primary : # 000000 ;
22+ --color-text-secondary : # 666666 ;
23+ --color-text-muted : # 999999 ;
24+
25+ /* === Interactive States === */
26+ --color-hover-bg : rgba (0 , 120 , 215 , 0.1 );
27+
28+ /* === Semantic Colors === */
29+ --color-error : # d32f2f ;
30+
31+ /* === Spacing === */
32+ --spacing-xs : 0.25rem ;
33+ --spacing-sm : 0.5rem ;
34+ --spacing-md : 1rem ;
35+
36+ /* === Typography === */
37+ --font-mono : 'SF Mono' , Monaco, monospace;
38+ --font-size-xs : 12px ;
39+ --font-size-sm : 13px ;
40+ --font-size-base : 14px ;
41+ }
42+
43+ /* Dark Mode - automatically applied when user's system prefers dark mode */
44+ @media (prefers-color-scheme : dark) {
45+ : root {
46+ /* === Backgrounds === */
47+ --color-bg-primary : # 1e1e1e ;
48+ --color-bg-secondary : # 2a2a2a ;
49+
50+ /* === Borders === */
51+ --color-border-primary : # 444444 ;
52+
53+ /* === Text === */
54+ --color-text-primary : # ffffff ;
55+ --color-text-secondary : # aaaaaa ;
56+ --color-text-muted : # 808080 ;
57+
58+ /* === Interactive States === */
59+ --color-hover-bg : rgba (100 , 180 , 255 , 0.15 );
60+
61+ /* === Semantic Colors === */
62+ --color-error : # f44336 ;
63+ }
64+ }
0 commit comments