Skip to content

Commit 7ebcea2

Browse files
committed
refactor: ♻️ use daisyUI variables
1 parent 61509da commit 7ebcea2

File tree

1 file changed

+8
-22
lines changed

1 file changed

+8
-22
lines changed

src/app.css

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,12 @@ html {
66
word-break: break-word;
77
}
88

9-
/*
10-
These are the styles from DaisyUI needed
11-
for the scroll bar colours
12-
*/
13-
:root {
14-
/* Default is Night */
15-
--primary: #38bdf8;
16-
--secondary: #818cf8;
17-
}
18-
[data-theme='night'] {
19-
--primary: #38bdf8;
20-
--secondary: #818cf8;
21-
}
22-
[data-theme='winter'] {
23-
--primary: #047aff;
24-
--secondary: #463aa2;
25-
}
26-
279
/* Scrollbar styles */
2810

2911
/* Firefox */
3012
* {
3113
scrollbar-width: thin;
32-
scrollbar-color: var(--secondary) var(--primary);
14+
scrollbar-color: hsl(var(--s)) hsl(var(--p));
3315
}
3416

3517
/* Chrome, Edge, and Safari */
@@ -38,14 +20,18 @@ html {
3820
}
3921

4022
*::-webkit-scrollbar-track {
41-
background: var(--primary);
23+
background: hsl(var(--p));
4224
border-radius: 5px;
4325
}
4426

4527
*::-webkit-scrollbar-thumb {
46-
background-color: var(--secondary);
28+
background-color: hsl(var(--s));
4729
border-radius: 14px;
48-
border: 3px solid var(--primary);
30+
border: 3px solid hsl(var(--p));
31+
}
32+
33+
*::-webkit-scrollbar-thumb:hover {
34+
background-color: hsl(var(--a));
4935
}
5036

5137
@tailwind components;

0 commit comments

Comments
 (0)