22@tailwind components;
33@tailwind utilities;
44
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-
165@layer base {
17- : root {
18- --radius : 0.5rem ;
19- --sticky-top-height : 70px ;
20- }
21-
226 : root {
237 /* bg - neutral */
248 --background : 0 0% 98% ;
2711 --secondary : 0 0% 90% ;
2812 --muted : 0 0% 93% ;
2913 --accent : 0 0% 93% ;
30- --inverted : 0 0 0 % ;
14+ --inverted : 0 0% 4 % ;
3115
3216 /* bg - colorful */
3317 --primary : 221 83% 54% ;
@@ -46,13 +30,26 @@ html {
4630 --link-foreground : 221.21deg 83.19% 53.33% ;
4731 --success-text : 142.09 70.56% 35.29% ;
4832 --warning-text : 38 92% 40% ;
49- --destructive-text : 357.15 deg 100 % 68.72 % ;
33+ --destructive-text : 360 72 % 60 % ;
5034
5135 /* Borders */
5236 --border : 0 0% 85% ;
5337 --active-border : 0 0% 70% ;
5438 --input : 0 0% 85% ;
5539 --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% ;
5653 }
5754
5855 .dark {
@@ -89,23 +86,17 @@ html {
8986 --active-border : 0 0% 22% ;
9087 --ring : 0 0% 30% ;
9188 --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- }
10289
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+ }
109100}
110101
111102@layer base {
@@ -117,45 +108,44 @@ code span {
117108 }
118109}
119110
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 ;
130118}
131119
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 ;
136123}
137124
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 ;
141134
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 ;
144137}
145138
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+ }
161151}
0 commit comments