2
2
@tailwind components;
3
3
@tailwind utilities;
4
4
5
- html {
6
- /* scroll-behavior: smooth; */
7
- font-feature-settings : "cv02" , "cv03" , "cv04" , "cv11" ;
8
- font-feature-settings : "rlig" 1 , "calt" 0 ;
9
- text-rendering : optimizeLegibility;
10
- -webkit-font-smoothing : antialiased;
11
- font-variation-settings : normal;
12
- -webkit-text-size-adjust : 100% ;
13
- -webkit-tap-highlight-color : transparent;
14
- }
15
-
16
5
@layer base {
17
- : root {
18
- --radius : 0.5rem ;
19
- --sticky-top-height : 70px ;
20
- }
21
-
22
6
: root {
23
7
/* bg - neutral */
24
8
--background : 0 0% 98% ;
27
11
--secondary : 0 0% 90% ;
28
12
--muted : 0 0% 93% ;
29
13
--accent : 0 0% 93% ;
30
- --inverted : 0 0 0 % ;
14
+ --inverted : 0 0% 4 % ;
31
15
32
16
/* bg - colorful */
33
17
--primary : 221 83% 54% ;
@@ -46,13 +30,26 @@ html {
46
30
--link-foreground : 221.21deg 83.19% 53.33% ;
47
31
--success-text : 142.09 70.56% 35.29% ;
48
32
--warning-text : 38 92% 40% ;
49
- --destructive-text : 357.15 deg 100 % 68.72 % ;
33
+ --destructive-text : 360 72 % 60 % ;
50
34
51
35
/* Borders */
52
36
--border : 0 0% 85% ;
53
37
--active-border : 0 0% 70% ;
54
38
--input : 0 0% 85% ;
55
39
--ring : 0 0% 80% ;
40
+
41
+ /* Others */
42
+ --radius : 0.5rem ;
43
+
44
+ /* Sidebar */
45
+ --sidebar-background : 0 0% 98% ;
46
+ --sidebar-foreground : 0 0% 4% ;
47
+ --sidebar-primary : 221 83% 54% ;
48
+ --sidebar-primary-foreground : 0 0% 100% ;
49
+ --sidebar-accent : 0 0% 93% ;
50
+ --sidebar-accent-foreground : 0 0% 9% ;
51
+ --sidebar-border : 0 0% 85% ;
52
+ --sidebar-ring : 0 0% 80% ;
56
53
}
57
54
58
55
.dark {
@@ -89,23 +86,17 @@ html {
89
86
--active-border : 0 0% 22% ;
90
87
--ring : 0 0% 30% ;
91
88
--input : 0 0% 15% ;
92
- }
93
- }
94
-
95
- .dark .light-only {
96
- display : none;
97
- }
98
-
99
- html : not (.dark ) .dark-only {
100
- display : none;
101
- }
102
89
103
- code span {
104
- color : var (--code-light-color );
105
- }
106
-
107
- .dark code span {
108
- color : var (--code-dark-color );
90
+ /* sidebar */
91
+ --sidebar-background : 0 0% 0% ;
92
+ --sidebar-foreground : 0 0% 98% ;
93
+ --sidebar-primary : 221 83% 54% ;
94
+ --sidebar-primary-foreground : 0 0% 100% ;
95
+ --sidebar-accent : 0 0% 11% ;
96
+ --sidebar-accent-foreground : 0 0% 98% ;
97
+ --sidebar-border : 0 0% 15% ;
98
+ --sidebar-ring : 0 0% 30% ;
99
+ }
109
100
}
110
101
111
102
@layer base {
@@ -117,45 +108,44 @@ code span {
117
108
}
118
109
}
119
110
120
- .styled-scrollbar ::-webkit-scrollbar {
121
- width : 0.5rem ;
122
- height : 0.5rem ;
123
- }
124
-
125
- @media (max-width : 640px ) {
126
- .styled-scrollbar ::-webkit-scrollbar {
127
- width : 0 ;
128
- height : 0 ;
129
- }
111
+ .dark .shiki ,
112
+ .dark .shiki span {
113
+ color : var (--shiki-dark ) !important ;
114
+ /* Optional, if you also want font styles */
115
+ font-style : var (--shiki-dark-font-style ) !important ;
116
+ font-weight : var (--shiki-dark-font-weight ) !important ;
117
+ text-decoration : var (--shiki-dark-text-decoration ) !important ;
130
118
}
131
119
132
- .styled-scrollbar ::-webkit-scrollbar-thumb {
133
- border-radius : 0.5rem ;
134
- transition : color 200ms ease;
135
- background : var (--border );
120
+ .shiki ,
121
+ .shiki span {
122
+ background-color : transparent !important ;
136
123
}
137
124
138
- .styled-scrollbar ::-webkit-scrollbar-thumb : hover {
139
- background : hsl (var (--foreground ));
140
- }
125
+ /* Fix colors on auto-filled inputs */
126
+ input : -webkit-autofill ,
127
+ input : -webkit-autofill : hover ,
128
+ input : -webkit-autofill : focus ,
129
+ input : -webkit-autofill : active {
130
+ /* Revert text color */
131
+ -webkit-text-fill-color : hsl (var (--foreground )) !important ;
132
+ color : hsl (var (--foreground )) !important ;
133
+ caret-color : hsl (var (--foreground )) !important ;
141
134
142
- . styled-scrollbar :: -webkit-scrollbar-track {
143
- background-color : transparent ;
135
+ /* Revert background color */
136
+ transition : background-color 5000 s ease-in-out 0 s ;
144
137
}
145
138
146
- button {
147
- -webkit-tap-highlight-color : transparent;
148
- }
149
-
150
- ::selection {
151
- background : hsl (var (--foreground ));
152
- color : hsl (var (--background ));
153
- }
154
-
155
- .hide-scrollbar {
156
- scrollbar-width : none; /* Firefox */
157
- }
158
-
159
- .hide-scrollbar ::-webkit-scrollbar {
160
- display : none; /* Safari and Chrome */
139
+ @layer utilities {
140
+ /* Hide scrollbar for Chrome, Safari and Opera */
141
+ .no-scrollbar ::-webkit-scrollbar ,
142
+ .no-scrollbar * ::-webkit-scrollbar {
143
+ display : none;
144
+ }
145
+ /* Hide scrollbar for IE, Edge and Firefox */
146
+ .no-scrollbar ,
147
+ .no-scrollbar * {
148
+ -ms-overflow-style : none; /* IE and Edge */
149
+ scrollbar-width : none; /* Firefox */
150
+ }
161
151
}
0 commit comments