11@import "tailwindcss" ;
22
3- /* Light and dark theme variables */
4- : root {
5- --fresh : hsla (50 , 100% , 56% , 1 );
6- --fresh-green : hsla (142 , 71% , 29% , 1 );
7-
8- --background-primary : hsla (215deg , 100% , 100% , 1 );
9- --background-secondary : hsla (210 , 29% , 97% , 1 );
10- --background-tertiary : hsla (207 , 33% , 95% , 1 );
11- --foreground-primary : hsla (0 , 0% , 9% , 1 );
12- --foreground-secondary : hsla (0 , 0% , 23% , 1 );
13- --foreground-tertiary : hsla (0 , 0% , 32% , 1 );
14- --foreground-quaternary : hsla (0 , 0% , 42% , 1 );
15-
16- --info : hsla (194 , 76% , 41% , 1 );
3+ @custom-variant dark (& : where ([data-theme = "dark" ], [data-theme = "dark" ] * ));
4+
5+ @theme {
6+ --color-fresh : hsl (50 100% 56% );
7+ --color-fresh-green : hsl (142 71% 29% );
8+
9+ --color-background-primary : hsl (215deg 100% 100% );
10+ --color-background-secondary : hsl (210 29% 97% );
11+ --color-background-tertiary : hsl (207 33% 95% );
12+ --color-foreground-primary : hsl (0 0% 9% );
13+ --color-foreground-secondary : hsl (0 0% 23% );
14+ --color-foreground-tertiary : hsl (0 0% 32% );
15+ --color-foreground-quaternary : hsl (0 0% 42% );
1716}
18- html [data-theme = "dark" ]: root {
19- --fresh : hsla (50 , 100% , 56% , 1 );
20- --fresh-green : hsla (142 , 71% , 29% , 1 );
2117
22- --background-primary : hsla (220deg , 11% , 11% , 1 );
23- --background-secondary : hsla (216deg , 19% , 18% , 1 );
24- --background-tertiary : hsla (216deg , 27.7% , 22% , 1 );
25- --foreground-primary : hsla (215deg , 17% , 99% , 1 );
26- --foreground-secondary : hsla (215deg , 17% , 83% , 1 );
27- --foreground-tertiary : hsla (215deg , 17% , 20% , 1 );
28- --foreground-quaternary : hsla (215deg , 17% , 10% , 1 );
18+ @variant dark {
19+ --color-fresh : hsl (50 100% 56% );
20+ --color-fresh-green : hsl (142 71% 29% );
21+
22+ --color-background-primary : hsl (220deg 11% 11% );
23+ --color-background-secondary : hsl (216deg 19% 18% );
24+ --color-background-tertiary : hsl (216deg 27.7% 22% );
25+ --color-foreground-primary : hsl (215deg 17% 99% );
26+ --color-foreground-secondary : hsl (215deg 17% 83% );
27+ --color-foreground-tertiary : hsl (215deg 17% 20% );
28+ --color-foreground-quaternary : hsl (215deg 17% 10% );
2929
30- --info : hsla (194 , 76% , 41% , 1 );
30+ --color-info : hsl (194 76% 41% );
31+ }
3132
32- color : var (--foreground-primary );
33- background-color : var (--background-primary );
33+ html [data-theme = "dark" ]: root {
34+ color : var (--color-foreground-primary );
35+ background-color : var (--color-background-primary );
3436}
3537
3638/* Scrollbar colors that look good on light and dark theme */
3739* {
38- scrollbar-color : hsla (0deg , 0% , 50% , 0.5 ) hsla ( 0 deg , 0% , 50% , 0.1 ) !important ;
40+ scrollbar-color : hsl (0deg 0% 50% / 0.5 ) hsl ( 0 0% 50% / 0.1 ) !important ;
3941}
4042
4143@font-face {
@@ -55,9 +57,8 @@ html[data-theme="dark"]:root {
5557}
5658
5759body {
58- font-family :
59- Fixel, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI" , Roboto,
60- Oxygen, Ubuntu, Cantarell, "Open Sans" , "Helvetica Neue" , sans-serif;
60+ font-family : Fixel, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI" ,
61+ Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans" , "Helvetica Neue" , sans-serif;
6162 font-weight : 450 ;
6263 font-size : 1.125rem ;
6364 line-height : 1.5 ;
7374 scroll-margin-top : 6rem ;
7475}
7576
76- b ,
77- strong ,
78- .font-bold ,
79- h1 ,
80- h2 ,
81- h3 ,
82- h4 ,
83- h5 ,
84- h6 {
85- font-weight : 750 ;
86- }
87-
8877hr {
89- /* @apply border-foreground-secondary/10; */
90- border-color : hsla (var (--foreground-secondary ), 0.1 );
78+ border-color : hsl (from var (--color-foreground-secondary ) h s l / 0.1 );
9179}
9280
9381.dark-mode-toggle-button img {
94- /* @apply fill-foreground-primary; */
95- fill : var (--foreground-primary );
82+ fill : var (--color-foreground-primary );
9683}
9784
9885::selection {
10289html [data-theme = "dark" ] ::selection {
10390 background-color : # 064c9c ;
10491}
92+
93+ .form-select-bg {
94+ background-image : url ("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3e%3cpath d='M7 7l3-3 3 3m0 6l-3 3-3-3' stroke='%239fa6b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e" );
95+ background-position : right 0.5rem center;
96+ background-size : 1.5em 1.5em ;
97+ background-repeat : no-repeat;
98+ }
0 commit comments