-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathThemeToggle.scss
More file actions
54 lines (48 loc) · 984 Bytes
/
ThemeToggle.scss
File metadata and controls
54 lines (48 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.theme-toggle {
background: none;
border: none;
cursor: pointer;
padding: 0;
outline: none;
&:focus-visible {
outline: 2px solid #656BFE;
outline-offset: 4px;
border-radius: 2rem;
}
}
.theme-toggle-track {
position: relative;
width: 60px;
height: 32px;
border-radius: 2rem;
padding: 4px;
display: flex;
align-items: center;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: box-shadow 0.3s;
&:hover {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
}
.theme-toggle-thumb {
width: 24px;
height: 24px;
background: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
color: #656BFE;
.icon-wrapper {
display: flex;
align-items: center;
justify-content: center;
}
}
[data-theme="dark"] {
.theme-toggle-thumb {
color: #1e293b;
background: #fbbf24;
}
}