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,73 +86,117 @@ html {
8986 --active-border : 0 0% 22% ;
9087 --ring : 0 0% 30% ;
9188 --input : 0 0% 15% ;
89+
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% ;
9299 }
93100}
94101
95- .dark .light-only {
96- display : none;
102+ @layer base {
103+ * {
104+ @apply border-border;
105+ }
106+ body {
107+ @apply bg-background text-foreground;
108+ }
97109}
98110
99- html : not (.dark ) .dark-only {
100- display : none;
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 ;
101118}
102119
103- code span {
104- color : var (--code-light-color );
120+ .shiki ,
121+ .shiki span {
122+ background-color : transparent !important ;
105123}
106124
107- .dark code span {
108- color : var (--code-dark-color );
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 ;
134+
135+ /* Revert background color */
136+ transition : background-color 5000s ease-in-out 0s ;
109137}
110138
111- @layer base {
112- * {
113- @apply border-border;
139+ @layer utilities {
140+ /* Hide scrollbar for Chrome, Safari and Opera */
141+ .no-scrollbar ::-webkit-scrollbar ,
142+ .no-scrollbar * ::-webkit-scrollbar {
143+ display : none;
114144 }
115- body {
116- @apply bg-background text-foreground;
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 */
117150 }
118151}
119152
120153.styled-scrollbar ::-webkit-scrollbar {
121154 width : 0.5rem ;
122155 height : 0.5rem ;
123156}
124-
125157@media (max-width : 640px ) {
126158 .styled-scrollbar ::-webkit-scrollbar {
127159 width : 0 ;
128160 height : 0 ;
129161 }
130162}
131-
132163.styled-scrollbar ::-webkit-scrollbar-thumb {
133164 border-radius : 0.5rem ;
134165 transition : color 200ms ease;
135166 background : var (--border );
136167}
137-
138168.styled-scrollbar ::-webkit-scrollbar-thumb : hover {
139169 background : hsl (var (--foreground ));
140170}
141-
142171.styled-scrollbar ::-webkit-scrollbar-track {
143172 background-color : transparent;
144173}
145-
146174button {
147175 -webkit-tap-highlight-color : transparent;
148176}
149-
150177::selection {
151178 background : hsl (var (--foreground ));
152179 color : hsl (var (--background ));
153180}
154-
155181.hide-scrollbar {
156182 scrollbar-width : none; /* Firefox */
157183}
158-
159184.hide-scrollbar ::-webkit-scrollbar {
160185 display : none; /* Safari and Chrome */
161186}
187+
188+ .dark .light-only {
189+ display : none;
190+ }
191+
192+ html : not (.dark ) .dark-only {
193+ display : none;
194+ }
195+
196+ code span {
197+ color : var (--code-light-color );
198+ }
199+
200+ .dark code span {
201+ color : var (--code-dark-color );
202+ }
0 commit comments