Skip to content

Commit e90fd33

Browse files
committed
Revert "fix: use RGB format for background colors to support Tailwind opacity"
This reverts commit b45ac55.
1 parent b45ac55 commit e90fd33

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/index.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
:root {
1313
/* Dark theme (default) */
1414

15-
/* Background layers (RGB for Tailwind opacity support) */
16-
--color-bg-primary: 10 10 10;
17-
--color-bg-secondary: 20 20 20;
18-
--color-bg-tertiary: 30 30 30;
15+
/* Background layers */
16+
--color-bg-primary: #0a0a0a;
17+
--color-bg-secondary: #141414;
18+
--color-bg-tertiary: #1e1e1e;
1919

2020
/* Text colors */
2121
--color-text-primary: #f5f5f5;
@@ -50,10 +50,10 @@
5050
:root.light {
5151
/* Light theme */
5252

53-
/* Background layers (RGB for Tailwind opacity support) */
54-
--color-bg-primary: 255 255 255;
55-
--color-bg-secondary: 245 245 245;
56-
--color-bg-tertiary: 229 229 229;
53+
/* Background layers */
54+
--color-bg-primary: #fff;
55+
--color-bg-secondary: #f5f5f5;
56+
--color-bg-tertiary: #e5e5e5;
5757

5858
/* Text colors */
5959
--color-text-primary: #171717;

tailwind.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ export default {
44
theme: {
55
extend: {
66
colors: {
7-
// Background layers (RGB format for opacity support)
8-
'bg-primary': 'rgb(var(--color-bg-primary) / <alpha-value>)',
9-
'bg-secondary': 'rgb(var(--color-bg-secondary) / <alpha-value>)',
10-
'bg-tertiary': 'rgb(var(--color-bg-tertiary) / <alpha-value>)',
7+
// Background layers (CSS variables for theming)
8+
'bg-primary': 'var(--color-bg-primary)',
9+
'bg-secondary': 'var(--color-bg-secondary)',
10+
'bg-tertiary': 'var(--color-bg-tertiary)',
1111

1212
// Accent colors (CSS variables for theming)
1313
'accent-primary': 'var(--color-accent-primary)',

0 commit comments

Comments
 (0)