Skip to content

Commit 338f979

Browse files
committed
feat: Create a dedicated hackertab theme colors.
1 parent 47e4235 commit 338f979

File tree

3 files changed

+15
-40
lines changed

3 files changed

+15
-40
lines changed

src/assets/index.css

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,37 +25,15 @@ code {
2525
@custom-variant dark (&:where(.dark, .dark *));
2626

2727
@theme {
28-
--color-primary: oklch(0.53 0.1896 257.41);
29-
--color-secondary: oklch(0.9 0.0221 250.23);
30-
--color-secondary-hover: oklch(0.83 0.0314 249.73);
31-
--color-danger: oklch(0.67 0.2143 24.47);
32-
--color-success: oklch(0.73 0.2182 138.49);
33-
--color-warning: oklch(0.85 0.1452 85.83);
34-
35-
--color-on-primary: oklch(1 0 0);
36-
--color-on-secondary: oklch(0.42 0.0431 250.1);
37-
--color-on-secondary-hover: oklch(0.42 0.0431 250.1);
38-
--color-on-danger: oklch(1 0 0);
39-
--color-on-success: oklch(1 0 0);
40-
--color-on-warning: oklch(1 0 0);
41-
--color-on-background: oklch(0.42 0.0431 250.1);
28+
--color-ht-100: oklch(0.9 0.0221 250.23);
29+
--color-ht-200: oklch(0.83 0.0314 249.73);
30+
--color-ht-300: oklch(0.453 0.0179 251.34);
4231
}
4332

4433
@layer base {
4534
@variant dark {
46-
--color-primary: oklch(0.53 0.1896 257.41);
47-
--color-secondary: oklch(0.24 0.0129 258.37);
48-
--color-secondary-hover: oklch(0.22 0.0115 254.07);
49-
--color-danger: oklch(0.67 0.2143 24.47);
50-
--color-success: oklch(0.73 0.2182 138.49);
51-
--color-warning: oklch(0.85 0.1452 85.83);
52-
53-
--color-on-primary: oklch(1 0 0);
54-
--color-on-secondary: oklch(1 0 0);
55-
--color-on-secondary-hover: oklch(0.42 0.0431 250.1);
56-
--color-on-danger: oklch(1 0 0);
57-
--color-on-success: oklch(1 0 0);
58-
--color-on-warning: oklch(1 0 0);
59-
--color-on-background: oklch(1 0 0);
35+
--color-ht-100: oklch(0.2421 0.0129 258.37);
36+
--color-ht-200: oklch(0.2245 0.0115 254.07);
37+
--color-ht-300: oklch(1 0 0);
6038
}
6139
}

src/components/Elements/Button/Button.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ const sizes = {
99
}
1010

1111
const types = {
12-
primary: 'bg-primary text-on-primary ',
13-
secondary:
14-
'bg-secondary text-on-secondary hover:bg-secondary-hover hover:text-on-secondary-hover',
12+
primary: 'bg-blue-500 text-white hover:bg-blue-600',
13+
secondary: 'bg-ht-100 text-ht-300 hover:bg-ht-200',
1514
danger: 'bg-danger text-on-danger ',
16-
success: 'bg-success text-on-success ',
17-
warning: 'bg-warning text-on-warning ',
18-
text: 'bg-transparent text-on-background',
15+
success: 'bg-green-500 text-white hover:bg-green-600',
16+
warning: 'bg-yellow-400 text-white hover:bg-yellow-500',
17+
text: 'bg-transparent text-ht-300',
1918
}
2019

2120
interface ButtonProps {

src/components/Elements/Button/CircleButton.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@ const sizes = {
88
}
99

1010
const variants = {
11-
primary: 'bg-primary text-on-primary hover:bg-primary-hover hover:text-on-primary-hover',
12-
secondary:
13-
'bg-secondary text-on-secondary hover:bg-secondary-hover hover:text-on-secondary-hover',
14-
outlined:
15-
'bg-transparent text-on-secondary border-1 dark:border-2 border-secondary hover:bg-secondary-hover hover:text-on-secondary-hover',
16-
text: 'bg-transparent text-on-secondary',
11+
primary: 'bg-blue-500 text-white hover:bg-blue-600',
12+
secondary: 'bg-ht-100 text-ht-300 hover:bg-ht-200',
13+
outlined: 'bg-ht-100 text-ht-300 hover:bg-ht-100',
14+
text: 'bg-transparent ttext-ht-300',
1715
darkfocus: 'bg-blue-900 text-yellow-400 hover:opacity-80',
1816
}
1917

0 commit comments

Comments
 (0)