Skip to content

Commit f2dea14

Browse files
committed
fix: remove CSS variables, use direct Tailwind colors
- Simplify tailwind.config.ts - use hex colors directly - Simplify globals.css - no CSS variables - Dark mode only (no light mode toggle) - All M3 tokens as direct hex values
1 parent 83d55fa commit f2dea14

2 files changed

Lines changed: 23 additions & 76 deletions

File tree

platform/src/app/globals.css

Lines changed: 4 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,13 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
/* Light mode M3 tokens (default) */
7-
--surface-dim: #DED8E1;
8-
--surface: #FFFBFE;
9-
--surface-container: #F3EDF7;
10-
--surface-container-high: #ECE6F0;
11-
--surface-container-highest: #E6E0E9;
12-
--primary: #6750A4;
13-
--primary-container: #EADDFF;
14-
--primary-container-high: #D0BCFF;
15-
--on-primary: #21005D;
16-
--on-surface: #1C1B1F;
17-
--on-surface-variant: #49454F;
18-
--outline: #79747E;
19-
--outline-variant: #CAC4D0;
20-
--success: #006C4E;
21-
--danger: #BA1A1A;
22-
--warning: #8B5000;
23-
24-
--body-bg: #FFFBFE;
25-
--body-color: #1C1B1F;
26-
}
27-
28-
.dark {
29-
/* Dark mode M3 tokens */
30-
--surface-dim: #0f0f0f;
31-
--surface: #1C1B1F;
32-
--surface-container: #211F26;
33-
--surface-container-high: #2B2930;
34-
--surface-container-highest: #36343B;
35-
--primary: #d0bcff;
36-
--primary-container: #4F378B;
37-
--primary-container-high: #5A4694;
38-
--on-primary: #381E72;
39-
--on-surface: #E6E1E5;
40-
--on-surface-variant: #CAC4D0;
41-
--outline: #938F99;
42-
--outline-variant: #49454F;
43-
--success: #8BD3A8;
44-
--danger: #F2B8B5;
45-
--warning: #F9CB9C;
46-
47-
--body-bg: #0f0f0f;
48-
--body-color: #E6E1E5;
49-
}
50-
51-
/* Smooth theme transition */
52-
html.theme-transitioning,
53-
html.theme-transitioning *,
54-
html.theme-transitioning *::before,
55-
html.theme-transitioning *::after {
56-
transition: background-color 0.3s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
5+
html {
6+
scroll-behavior: smooth;
577
}
588

599
body {
60-
background-color: var(--body-bg);
61-
color: var(--body-color);
10+
background-color: #0f0f0f;
11+
color: #E6E1E5;
6212
}
6313

6414
@keyframes shimmer {

platform/tailwind.config.ts

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { Config } from 'tailwindcss'
22

33
const config: Config = {
4-
darkMode: 'class',
54
content: [
65
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
76
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
@@ -10,39 +9,37 @@ const config: Config = {
109
theme: {
1110
extend: {
1211
colors: {
13-
// M3 Design Tokens via CSS variables (auto light/dark)
12+
// Dark mode colors (default)
1413
surface: {
15-
dim: 'var(--surface-dim)',
16-
DEFAULT: 'var(--surface)',
17-
container: 'var(--surface-container)',
18-
high: 'var(--surface-container-high)',
19-
highest: 'var(--surface-container-highest)',
14+
dim: '#0f0f0f',
15+
DEFAULT: '#1C1B1F',
16+
container: '#211F26',
17+
high: '#2B2930',
18+
highest: '#36343B',
2019
},
2120
primary: {
22-
DEFAULT: 'var(--primary)',
23-
container: 'var(--primary-container)',
24-
'container-high': 'var(--primary-container-high)',
25-
on: 'var(--on-primary)',
21+
DEFAULT: '#d0bcff',
22+
container: '#4F378B',
2623
},
2724
onsurface: {
28-
DEFAULT: 'var(--on-surface)',
29-
variant: 'var(--on-surface-variant)',
25+
DEFAULT: '#E6E1E5',
26+
variant: '#CAC4D0',
3027
},
3128
outline: {
32-
DEFAULT: 'var(--outline)',
33-
variant: 'var(--outline-variant)',
29+
DEFAULT: '#938F99',
30+
variant: '#49454F',
3431
},
35-
success: 'var(--success)',
36-
danger: 'var(--danger)',
37-
warning: 'var(--warning)',
32+
success: '#8BD3A8',
33+
danger: '#F2B8B5',
34+
warning: '#F9CB9C',
3835
// Legacy tokens for other pages
3936
dark: {
40-
bg: 'var(--surface-dim)',
41-
card: 'var(--surface-container)',
37+
bg: '#0f0f0f',
38+
card: '#211F26',
4239
},
4340
accent: {
44-
DEFAULT: 'var(--primary)',
45-
hover: 'var(--primary-container)',
41+
DEFAULT: '#d0bcff',
42+
hover: '#b69df8',
4643
},
4744
},
4845
fontFamily: {

0 commit comments

Comments
 (0)