1919 --accent : 240 4.8% 95.9% ;
2020 --accent-foreground : 240 10% 3.9% ;
2121 --primary : 0 0% 0% ; /* black */
22+ /* --input: oklch(0.922 0 0); */
23+ --input : 320 0% 90% ;
2224 --primary-foreground : 0 0% 100% ; /* white */
2325 --secondary : 210 40% 96.1% ;
2426 --secondary-foreground : 222.2 47.4% 11.2% ;
4446 --secondary : 222.2 47.4% 11.2% ;
4547 --secondary-foreground : 210 40% 98% ;
4648 --ring : 215 100% 65% ; /* #60a5fa, a visible blue */
49+ --input : 300 50% 100% / 0.15 ;
4750}
4851
4952button .rounded-full : hover ,
@@ -52,76 +55,176 @@ button.rounded-full:focus-visible {
5255 transition : background-color 0.2s ;
5356}
5457
55- /* React Select using shadcn/ui tokens */
58+ /* React Select using shadcn/ui tokens - updated to match shadcn design */
59+ .my-react-select-container {
60+ border-color : hsl (var (--border )) !important ;
61+ border-radius : 0.5rem !important ;
62+ background-color : hsl (var (--background )) !important ;
63+ color : hsl (var (--foreground )) !important ;
64+ font-size : 0.875rem !important ;
65+ line-height : 1.25rem !important ;
66+ min-height : 2.5rem !important ;
67+ }
68+
69+ .my-react-select-container .my-react-select__control {
70+ border : 1px solid hsl (var (--input )) !important ;
71+ border-radius : 0.5rem !important ;
72+ background-color : hsl (var (--background )) !important ;
73+ color : hsl (var (--foreground )) !important ;
74+ box-shadow : none !important ;
75+ min-height : 2.5rem !important ;
76+ transition : border-color 0.2s ease-in-out !important ;
77+ }
78+
79+ .my-react-select-container .my-react-select__control : hover {
80+ border-color : hsl (var (--border )) !important ;
81+ }
82+
83+ .my-react-select-container .my-react-select__control--is-focused {
84+ border-color : hsl (var (--ring )) !important ;
85+ box-shadow : 0 0 0 2px hsl (var (--ring ) / 0.2 ) !important ;
86+ outline : none !important ;
87+ }
88+
89+ .my-react-select-container .my-react-select__control--is-disabled {
90+ background-color : hsl (var (--muted )) !important ;
91+ color : hsl (var (--muted-foreground )) !important ;
92+ cursor : not-allowed !important ;
93+ }
94+
5695.my-react-select__menu {
5796 background-color : hsl (var (--popover )) !important ;
5897 color : hsl (var (--popover-foreground )) !important ;
98+ border : 1px solid hsl (var (--border )) !important ;
99+ border-radius : 0.5rem !important ;
100+ box-shadow : 0 10px 15px -3px rgb (0 0 0 / 0.1 ), 0 4px 6px -4px rgb (0 0 0 / 0.1 ) !important ;
101+ z-index : 50 !important ;
59102}
60103
61104.my-react-select__option {
62105 background-color : hsl (var (--popover )) !important ;
63- color : hsl (var (--foreground )) !important ;
64- cursor : pointer;
106+ color : hsl (var (--popover-foreground )) !important ;
107+ cursor : pointer !important ;
108+ padding : 0.5rem 0.75rem !important ;
109+ font-size : 0.875rem !important ;
110+ line-height : 1.25rem !important ;
111+ transition : background-color 0.2s ease-in-out !important ;
65112}
66113
67114.my-react-select__option--is-focused {
68115 background-color : hsl (var (--accent )) !important ;
69- color : hsl (var (--foreground )) !important ;
116+ color : hsl (var (--accent- foreground )) !important ;
70117}
71118
72119.my-react-select__option--is-selected {
73120 background-color : hsl (var (--accent )) !important ;
74- color : hsl (var (--foreground )) !important ;
75- font-weight : 600 ;
121+ color : hsl (var (--accent- foreground )) !important ;
122+ font-weight : 600 !important ;
76123}
77124
78- .dark .my-react-select__option--is-selected {
79- background-color : hsl (var (--accent )) !important ;
125+ .my-react-select__single-value {
80126 color : hsl (var (--foreground )) !important ;
81- font-weight : 600 ;
82- border : 1 px solid hsl ( var ( --muted-foreground )) ;
127+ font-size : 0.875 rem !important ;
128+ line-height : 1.25 rem !important ;
83129}
84130
85- .my-react-select__single-value ,
86- .my-react-select__multi-value__label {
87- color : hsl (var (--foreground ));
131+ .my-react-select__placeholder {
132+ color : hsl (var (--muted-foreground )) !important ;
133+ font-size : 0.875rem !important ;
134+ line-height : 1.25rem !important ;
135+ }
136+
137+ .my-react-select__input-container {
138+ color : hsl (var (--foreground )) !important ;
139+ font-size : 0.875rem !important ;
140+ line-height : 1.25rem !important ;
88141}
89142
90143.my-react-select__multi-value {
91- background-color : hsl (var (--primary )) !important ;
144+ background-color : hsl (var (--secondary )) !important ;
92145 border-radius : 0.375rem !important ;
146+ margin : 0.125rem !important ;
147+ padding : 0.125rem 0.375rem !important ;
93148}
94149
95150.my-react-select__multi-value__label {
96- color : hsl (var (--primary-foreground )) !important ;
97- font-weight : 600 ;
151+ color : hsl (var (--secondary-foreground )) !important ;
152+ font-weight : 500 !important ;
153+ font-size : 0.75rem !important ;
154+ line-height : 1rem !important ;
98155 max-width : none !important ;
99156 overflow : visible !important ;
100157 text-overflow : unset !important ;
101158 white-space : normal !important ;
102159}
103160
104161.my-react-select__multi-value__remove {
105- color : # ef4444 !important ;
162+ color : hsl ( var ( --muted-foreground )) !important ;
106163 background : transparent !important ;
107- cursor : pointer;
108- transition : color 0.2s ;
164+ cursor : pointer !important ;
165+ transition : color 0.2s ease-in-out !important ;
166+ padding : 0 0.25rem !important ;
167+ margin-left : 0.25rem !important ;
109168}
169+
110170.my-react-select__multi-value__remove : hover {
111- color : # b91c1c !important ;
171+ color : hsl ( var ( --foreground )) !important ;
112172 background : transparent !important ;
113173}
114174
115- .dark .my-react-select__option--is-focused {
116- background-color : hsl (var (--muted )) !important ;
175+ .my-react-select__indicator-separator {
176+ background-color : hsl (var (--border )) !important ;
177+ margin : 0.5rem 0 !important ;
178+ }
179+
180+ .my-react-select__dropdown-indicator {
181+ color : hsl (var (--muted-foreground )) !important ;
182+ padding : 0.5rem !important ;
183+ transition : color 0.2s ease-in-out !important ;
184+ }
185+
186+ .my-react-select__dropdown-indicator : hover {
117187 color : hsl (var (--foreground )) !important ;
118188}
119189
120- .dark .my-react-select__option--is-selected {
121- background-color : hsl (var (--muted )) !important ;
190+ .my-react-select__clear-indicator {
191+ color : hsl (var (--muted-foreground )) !important ;
192+ padding : 0.5rem !important ;
193+ transition : color 0.2s ease-in-out !important ;
194+ }
195+
196+ .my-react-select__clear-indicator : hover {
122197 color : hsl (var (--foreground )) !important ;
123198}
124199
200+ /* Dark mode adjustments */
201+ .dark .my-react-select-container {
202+ border-color : hsl (var (--input )) !important ;
203+ }
204+
205+ .dark .my-react-select-container .my-react-select__control {
206+ border-color : hsl (var (--input )) !important ;
207+ background-color : hsl (var (--background )) !important ;
208+ }
209+
210+ .dark .my-react-select__option--is-focused {
211+ background-color : hsl (var (--accent )) !important ;
212+ color : hsl (var (--accent-foreground )) !important ;
213+ }
214+
215+ .dark .my-react-select__option--is-selected {
216+ background-color : hsl (var (--accent )) !important ;
217+ color : hsl (var (--accent-foreground )) !important ;
218+ }
219+
220+ .dark .my-react-select__multi-value {
221+ background-color : hsl (var (--secondary )) !important ;
222+ }
223+
224+ .dark .my-react-select__multi-value__label {
225+ color : hsl (var (--secondary-foreground )) !important ;
226+ }
227+
125228.avatar-initial {
126229 background-color : # f98109 !important ;
127230 color : # fff !important ;
@@ -178,19 +281,7 @@ input[type="file"]::file-selector-button {
178281 border : none;
179282}
180283
181- .my-react-select-container {
182- border-color : hsl (var (--primary )) !important ;
183- }
184-
185- .my-react-select-container .my-react-select__control {
186- border-color : hsl (var (--primary )) !important ;
187- box-shadow : none;
188- }
189284
190- .my-react-select-container .my-react-select__control--is-focused {
191- border-color : hsl (var (--ring )) !important ;
192- box-shadow : 0 0 0 2px hsl (var (--ring )) !important ;
193- }
194285
195286/* Make radix switch visible when off */
196287[data-slot = "switch" ][data-state = "unchecked" ] {
0 commit comments