@easyvision/easyvision-ui 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,8 +8,16 @@
8
8
  * [-fg], --border, --input, --ring). Each var() has a sensible fallback so
9
9
  * the components remain readable in projects that don't define them.
10
10
  *
11
+ * Every colour reads `var(--ev-<token>, hsl(var(--<token>, fallback)))`:
12
+ * an `--ev-*` variable, when the host defines one, wins and holds a complete
13
+ * colour (oklch, hex, hsl()…). That is how shadcn v4 / Tailwind 4 hosts,
14
+ * whose --* variables are complete colours and break inside hsl(), give
15
+ * EasyVision its palette. Translucent shades use color-mix() so they work
16
+ * with either form.
17
+ *
11
18
  * Override strategy for consumer projects:
12
- * - Redefine any --* variable on :root or under a dark-mode selector.
19
+ * - Redefine any --* variable (HSL triplet) or --ev-* variable (complete
20
+ * colour) on :root or under a dark-mode selector.
13
21
  * - Add their own rules with equal-or-higher specificity. We never use
14
22
  * `!important`, so simple class overrides win.
15
23
  *
@@ -78,7 +86,7 @@
78
86
  transition: background-color 0.15s, color 0.15s, opacity 0.15s;
79
87
  }
80
88
  .ev-btn:focus-visible {
81
- outline: 2px solid hsl(var(--ring, 215 20% 65%));
89
+ outline: 2px solid var(--ev-ring, hsl(var(--ring, 215 20% 65%)));
82
90
  outline-offset: 2px;
83
91
  }
84
92
  .ev-btn:disabled {
@@ -93,37 +101,37 @@
93
101
  }
94
102
 
95
103
  .ev-btn-default {
96
- background: hsl(var(--primary, 222 47% 11%));
97
- color: hsl(var(--primary-foreground, 210 40% 98%));
104
+ background: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
105
+ color: var(--ev-primary-foreground, hsl(var(--primary-foreground, 210 40% 98%)));
98
106
  }
99
107
  .ev-btn-default:hover {
100
- background: hsl(var(--primary, 222 47% 11%) / 0.9);
108
+ background: color-mix(in srgb, var(--ev-primary, hsl(var(--primary, 222 47% 11%))) 90%, transparent);
101
109
  }
102
110
 
103
111
  .ev-btn-destructive {
104
- background: hsl(var(--destructive, 0 84% 60%));
105
- color: hsl(var(--destructive-foreground, 210 40% 98%));
112
+ background: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
113
+ color: var(--ev-destructive-foreground, hsl(var(--destructive-foreground, 210 40% 98%)));
106
114
  }
107
115
  .ev-btn-destructive:hover {
108
- background: hsl(var(--destructive, 0 84% 60%) / 0.9);
116
+ background: color-mix(in srgb, var(--ev-destructive, hsl(var(--destructive, 0 84% 60%))) 90%, transparent);
109
117
  }
110
118
 
111
119
  .ev-btn-outline {
112
- border: 1px solid hsl(var(--input, 220 13% 91%));
113
- background: hsl(var(--background, 0 0% 100%));
120
+ border: 1px solid var(--ev-input, hsl(var(--input, 220 13% 91%)));
121
+ background: var(--ev-background, hsl(var(--background, 0 0% 100%)));
114
122
  color: inherit;
115
123
  }
116
124
  .ev-btn-outline:hover {
117
- background: hsl(var(--accent, 210 40% 96%));
118
- color: hsl(var(--accent-foreground, 222 47% 11%));
125
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
126
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
119
127
  }
120
128
 
121
129
  .ev-btn-secondary {
122
- background: hsl(var(--secondary, 210 40% 96%));
123
- color: hsl(var(--secondary-foreground, 222 47% 11%));
130
+ background: var(--ev-secondary, hsl(var(--secondary, 210 40% 96%)));
131
+ color: var(--ev-secondary-foreground, hsl(var(--secondary-foreground, 222 47% 11%)));
124
132
  }
125
133
  .ev-btn-secondary:hover {
126
- background: hsl(var(--secondary, 210 40% 96%) / 0.8);
134
+ background: color-mix(in srgb, var(--ev-secondary, hsl(var(--secondary, 210 40% 96%))) 80%, transparent);
127
135
  }
128
136
 
129
137
  .ev-btn-ghost {
@@ -131,13 +139,13 @@
131
139
  color: inherit;
132
140
  }
133
141
  .ev-btn-ghost:hover {
134
- background: hsl(var(--accent, 210 40% 96%));
135
- color: hsl(var(--accent-foreground, 222 47% 11%));
142
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
143
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
136
144
  }
137
145
 
138
146
  .ev-btn-link {
139
147
  background: transparent;
140
- color: hsl(var(--primary, 222 47% 11%));
148
+ color: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
141
149
  text-underline-offset: 4px;
142
150
  }
143
151
  .ev-btn-link:hover {
@@ -170,8 +178,8 @@
170
178
  height: 2.5rem;
171
179
  width: 100%;
172
180
  border-radius: 0.375rem;
173
- border: 1px solid hsl(var(--input, 220 13% 91%));
174
- background: hsl(var(--background, 0 0% 100%));
181
+ border: 1px solid var(--ev-input, hsl(var(--input, 220 13% 91%)));
182
+ background: var(--ev-background, hsl(var(--background, 0 0% 100%)));
175
183
  padding: 0.5rem 0.75rem;
176
184
  font-size: 1rem;
177
185
  line-height: 1.5rem;
@@ -179,10 +187,10 @@
179
187
  font-family: inherit;
180
188
  }
181
189
  .ev-input::placeholder {
182
- color: hsl(var(--muted-foreground, 215 16% 47%));
190
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
183
191
  }
184
192
  .ev-input:focus-visible {
185
- outline: 2px solid hsl(var(--ring, 215 20% 65%));
193
+ outline: 2px solid var(--ev-ring, hsl(var(--ring, 215 20% 65%)));
186
194
  outline-offset: 2px;
187
195
  }
188
196
  .ev-input:disabled {
@@ -190,10 +198,10 @@
190
198
  opacity: 0.5;
191
199
  }
192
200
  .ev-input.is-invalid {
193
- border-color: hsl(var(--destructive, 0 84% 60%));
201
+ border-color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
194
202
  }
195
203
  .ev-input.is-invalid:focus-visible {
196
- outline-color: hsl(var(--destructive, 0 84% 60%) / 0.4);
204
+ outline-color: color-mix(in srgb, var(--ev-destructive, hsl(var(--destructive, 0 84% 60%))) 40%, transparent);
197
205
  }
198
206
  @media (min-width: 768px) {
199
207
  .ev-input {
@@ -222,9 +230,9 @@
222
230
  width: 1rem;
223
231
  flex-shrink: 0;
224
232
  border-radius: 0.25rem;
225
- border: 1px solid hsl(var(--primary, 222 47% 11%));
233
+ border: 1px solid var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
226
234
  background: transparent;
227
- color: hsl(var(--primary, 222 47% 11%));
235
+ color: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
228
236
  cursor: pointer;
229
237
  }
230
238
  /* Expand the click target without changing the visual size. The pseudo-element
@@ -236,7 +244,7 @@
236
244
  inset: -0.75rem;
237
245
  }
238
246
  .ev-checkbox:focus-visible {
239
- outline: 2px solid hsl(var(--ring, 215 20% 65%));
247
+ outline: 2px solid var(--ev-ring, hsl(var(--ring, 215 20% 65%)));
240
248
  outline-offset: 2px;
241
249
  }
242
250
  .ev-checkbox:disabled {
@@ -244,12 +252,12 @@
244
252
  opacity: 0.5;
245
253
  }
246
254
  .ev-checkbox[data-state="checked"] {
247
- background: hsl(var(--primary, 222 47% 11%));
248
- color: hsl(var(--primary-foreground, 210 40% 98%));
255
+ background: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
256
+ color: var(--ev-primary-foreground, hsl(var(--primary-foreground, 210 40% 98%)));
249
257
  }
250
258
  .ev-checkbox[data-state="indeterminate"] {
251
- background: hsl(var(--primary, 222 47% 11%));
252
- color: hsl(var(--primary-foreground, 210 40% 98%));
259
+ background: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
260
+ color: var(--ev-primary-foreground, hsl(var(--primary-foreground, 210 40% 98%)));
253
261
  }
254
262
  .ev-checkbox-indicator {
255
263
  display: flex;
@@ -271,9 +279,9 @@
271
279
  .ev-dropdown-sub-content {
272
280
  z-index: 50;
273
281
  border-radius: 0.375rem;
274
- border: 1px solid hsl(var(--border, 220 13% 91%));
275
- background: hsl(var(--popover, 0 0% 100%));
276
- color: hsl(var(--popover-foreground, 222 47% 11%));
282
+ border: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
283
+ background: var(--ev-popover, hsl(var(--popover, 0 0% 100%)));
284
+ color: var(--ev-popover-foreground, hsl(var(--popover-foreground, 222 47% 11%)));
277
285
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
278
286
  outline: none;
279
287
  }
@@ -296,8 +304,8 @@
296
304
  align-items: center;
297
305
  justify-content: space-between;
298
306
  border-radius: 0.375rem;
299
- border: 1px solid hsl(var(--input, 220 13% 91%));
300
- background: hsl(var(--background, 0 0% 100%));
307
+ border: 1px solid var(--ev-input, hsl(var(--input, 220 13% 91%)));
308
+ background: var(--ev-background, hsl(var(--background, 0 0% 100%)));
301
309
  padding: 0.5rem 0.75rem;
302
310
  font-size: 0.875rem;
303
311
  line-height: 1.25rem;
@@ -306,7 +314,7 @@
306
314
  cursor: pointer;
307
315
  }
308
316
  .ev-select-trigger:focus {
309
- outline: 2px solid hsl(var(--ring, 215 20% 65%));
317
+ outline: 2px solid var(--ev-ring, hsl(var(--ring, 215 20% 65%)));
310
318
  outline-offset: 2px;
311
319
  }
312
320
  .ev-select-trigger:disabled {
@@ -314,7 +322,7 @@
314
322
  opacity: 0.5;
315
323
  }
316
324
  .ev-select-trigger[data-placeholder] {
317
- color: hsl(var(--muted-foreground, 215 16% 47%));
325
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
318
326
  }
319
327
  .ev-select-trigger > span {
320
328
  overflow: hidden;
@@ -394,8 +402,8 @@
394
402
  }
395
403
  .ev-select-item[data-highlighted],
396
404
  .ev-select-item:focus {
397
- background: hsl(var(--accent, 210 40% 96%));
398
- color: hsl(var(--accent-foreground, 222 47% 11%));
405
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
406
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
399
407
  }
400
408
  .ev-select-item[data-disabled] {
401
409
  pointer-events: none;
@@ -418,7 +426,7 @@
418
426
  .ev-select-separator {
419
427
  margin: 0.25rem -0.25rem;
420
428
  height: 1px;
421
- background: hsl(var(--muted, 210 40% 96%));
429
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
422
430
  }
423
431
 
424
432
  /* ---------- DropdownMenu ---------- */
@@ -461,8 +469,8 @@
461
469
  .ev-dropdown-item[data-highlighted],
462
470
  .ev-dropdown-sub-trigger[data-state="open"],
463
471
  .ev-dropdown-sub-trigger[data-highlighted] {
464
- background: hsl(var(--accent, 210 40% 96%));
465
- color: hsl(var(--accent-foreground, 222 47% 11%));
472
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
473
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
466
474
  }
467
475
  .ev-dropdown-item[data-disabled] {
468
476
  pointer-events: none;
@@ -495,8 +503,8 @@
495
503
  }
496
504
  .ev-dropdown-checkbox-item[data-highlighted],
497
505
  .ev-dropdown-radio-item[data-highlighted] {
498
- background: hsl(var(--accent, 210 40% 96%));
499
- color: hsl(var(--accent-foreground, 222 47% 11%));
506
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
507
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
500
508
  }
501
509
  .ev-dropdown-checkbox-item[data-disabled],
502
510
  .ev-dropdown-radio-item[data-disabled] {
@@ -532,7 +540,7 @@
532
540
  .ev-dropdown-separator {
533
541
  margin: 0.25rem -0.25rem;
534
542
  height: 1px;
535
- background: hsl(var(--muted, 210 40% 96%));
543
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
536
544
  }
537
545
 
538
546
  .ev-dropdown-shortcut {
@@ -555,13 +563,13 @@
555
563
  flex-direction: column;
556
564
  overflow: hidden;
557
565
  border-radius: 0.375rem;
558
- background: hsl(var(--popover, 0 0% 100%));
559
- color: hsl(var(--popover-foreground, 222 47% 11%));
566
+ background: var(--ev-popover, hsl(var(--popover, 0 0% 100%)));
567
+ color: var(--ev-popover-foreground, hsl(var(--popover-foreground, 222 47% 11%)));
560
568
  }
561
569
  .ev-cmd-input-wrapper {
562
570
  display: flex;
563
571
  align-items: center;
564
- border-bottom: 1px solid hsl(var(--border, 220 13% 91%));
572
+ border-bottom: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
565
573
  padding: 0 0.75rem;
566
574
  }
567
575
  .ev-cmd-input-icon {
@@ -585,7 +593,7 @@
585
593
  color: inherit;
586
594
  }
587
595
  .ev-cmd-input::placeholder {
588
- color: hsl(var(--muted-foreground, 215 16% 47%));
596
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
589
597
  }
590
598
  .ev-cmd-input:disabled {
591
599
  cursor: not-allowed;
@@ -605,19 +613,19 @@
605
613
  .ev-cmd-group {
606
614
  overflow: hidden;
607
615
  padding: 0.25rem;
608
- color: hsl(var(--foreground, 222 47% 11%));
616
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
609
617
  }
610
618
  .ev-cmd-group [cmdk-group-heading] {
611
619
  padding: 0.375rem 0.5rem;
612
620
  font-size: 0.75rem;
613
621
  line-height: 1rem;
614
622
  font-weight: 500;
615
- color: hsl(var(--muted-foreground, 215 16% 47%));
623
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
616
624
  }
617
625
  .ev-cmd-separator {
618
626
  margin: 0 -0.25rem;
619
627
  height: 1px;
620
- background: hsl(var(--border, 220 13% 91%));
628
+ background: var(--ev-border, hsl(var(--border, 220 13% 91%)));
621
629
  }
622
630
  .ev-cmd-item {
623
631
  position: relative;
@@ -632,8 +640,8 @@
632
640
  outline: none;
633
641
  }
634
642
  .ev-cmd-item[data-selected="true"] {
635
- background: hsl(var(--accent, 210 40% 96%));
636
- color: hsl(var(--accent-foreground, 222 47% 11%));
643
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
644
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
637
645
  }
638
646
  .ev-cmd-item[data-disabled="true"] {
639
647
  pointer-events: none;
@@ -644,7 +652,7 @@
644
652
  font-size: 0.75rem;
645
653
  line-height: 1rem;
646
654
  letter-spacing: 0.1em;
647
- color: hsl(var(--muted-foreground, 215 16% 47%));
655
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
648
656
  }
649
657
 
650
658
  /* ---------- Calendar (react-day-picker) ---------- */
@@ -719,7 +727,7 @@
719
727
  display: flex;
720
728
  }
721
729
  .ev-cal-head-cell {
722
- color: hsl(var(--muted-foreground, 215 16% 47%));
730
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
723
731
  border-radius: 0.375rem;
724
732
  width: 2.25rem;
725
733
  font-weight: 400;
@@ -740,10 +748,10 @@
740
748
  position: relative;
741
749
  }
742
750
  .ev-cal-cell:has([aria-selected]) {
743
- background: hsl(var(--accent, 210 40% 96%));
751
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
744
752
  }
745
753
  .ev-cal-cell:has([aria-selected].day-outside) {
746
- background: hsl(var(--accent, 210 40% 96%) / 0.5);
754
+ background: color-mix(in srgb, var(--ev-accent, hsl(var(--accent, 210 40% 96%))) 50%, transparent);
747
755
  }
748
756
  .ev-cal-cell:first-child:has([aria-selected]) {
749
757
  border-top-left-radius: 0.375rem;
@@ -770,27 +778,27 @@
770
778
  .ev-cal-day-selected,
771
779
  .ev-cal-day-selected:hover,
772
780
  .ev-cal-day-selected:focus {
773
- background: hsl(var(--primary, 222 47% 11%));
774
- color: hsl(var(--primary-foreground, 210 40% 98%));
781
+ background: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
782
+ color: var(--ev-primary-foreground, hsl(var(--primary-foreground, 210 40% 98%)));
775
783
  }
776
784
  .ev-cal-day-today {
777
- background: hsl(var(--accent, 210 40% 96%));
778
- color: hsl(var(--accent-foreground, 222 47% 11%));
785
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
786
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
779
787
  }
780
788
  .ev-cal-day-outside {
781
- color: hsl(var(--muted-foreground, 215 16% 47%));
789
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
782
790
  }
783
791
  .ev-cal-day-outside[aria-selected="true"] {
784
- background: hsl(var(--accent, 210 40% 96%) / 0.5);
785
- color: hsl(var(--muted-foreground, 215 16% 47%));
792
+ background: color-mix(in srgb, var(--ev-accent, hsl(var(--accent, 210 40% 96%))) 50%, transparent);
793
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
786
794
  }
787
795
  .ev-cal-day-disabled {
788
- color: hsl(var(--muted-foreground, 215 16% 47%));
796
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
789
797
  opacity: 0.5;
790
798
  }
791
799
  .ev-cal-day-range-middle[aria-selected="true"] {
792
- background: hsl(var(--accent, 210 40% 96%));
793
- color: hsl(var(--accent-foreground, 222 47% 11%));
800
+ background: var(--ev-accent, hsl(var(--accent, 210 40% 96%)));
801
+ color: var(--ev-accent-foreground, hsl(var(--accent-foreground, 222 47% 11%)));
794
802
  }
795
803
  .ev-cal-day-hidden {
796
804
  visibility: hidden;
@@ -803,9 +811,9 @@
803
811
  /* ---------- Card ---------- */
804
812
  .ev-card {
805
813
  border-radius: 0.375rem;
806
- border: 1px solid hsl(var(--border, 220 13% 91%));
807
- background: hsl(var(--card, 0 0% 100%));
808
- color: hsl(var(--card-foreground, 222 47% 11%));
814
+ border: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
815
+ background: var(--ev-card, hsl(var(--card, 0 0% 100%)));
816
+ color: var(--ev-card-foreground, hsl(var(--card-foreground, 222 47% 11%)));
809
817
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
810
818
  }
811
819
  .ev-card-header {
@@ -825,7 +833,7 @@
825
833
  .ev-card-description {
826
834
  font-size: 0.875rem;
827
835
  line-height: 1.25rem;
828
- color: hsl(var(--muted-foreground, 215 16% 47%));
836
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
829
837
  }
830
838
  .ev-card-content {
831
839
  padding: 1.5rem;
@@ -845,7 +853,7 @@
845
853
  gap: 1rem;
846
854
  }
847
855
  .ev-accordion-item {
848
- border: 1px solid hsl(var(--border, 220 13% 91%));
856
+ border: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
849
857
  border-radius: 0.375rem;
850
858
  overflow: hidden;
851
859
  }
@@ -857,14 +865,14 @@
857
865
  gap: 0.75rem;
858
866
  padding: 0.75rem 1rem;
859
867
  text-align: left;
860
- background: hsl(var(--muted, 220 13% 91%));
861
- color: hsl(var(--foreground, 222 47% 11%));
868
+ background: var(--ev-muted, hsl(var(--muted, 220 13% 91%)));
869
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
862
870
  border: none;
863
871
  cursor: pointer;
864
872
  transition: background-color 0.2s ease, opacity 0.2s ease;
865
873
  }
866
874
  .ev-accordion-trigger:hover {
867
- background: hsl(var(--muted, 220 13% 91%) / 0.8);
875
+ background: color-mix(in srgb, var(--ev-muted, hsl(var(--muted, 220 13% 91%))) 80%, transparent);
868
876
  }
869
877
  .ev-accordion-trigger:disabled {
870
878
  cursor: not-allowed;
@@ -877,7 +885,7 @@
877
885
  height: 1.25rem;
878
886
  width: 1.25rem;
879
887
  flex-shrink: 0;
880
- color: hsl(var(--muted-foreground, 215 16% 47%));
888
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
881
889
  transition: transform 0.2s ease;
882
890
  }
883
891
  .ev-accordion-trigger-open .ev-accordion-icon {
@@ -885,8 +893,8 @@
885
893
  }
886
894
  .ev-accordion-panel {
887
895
  padding: 0.75rem 1rem;
888
- background: hsl(var(--card, 0 0% 100%));
889
- color: hsl(var(--foreground, 222 47% 11%));
896
+ background: var(--ev-card, hsl(var(--card, 0 0% 100%)));
897
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
890
898
  }
891
899
 
892
900
  /* ---------- EasyVisionInput (text + optional search icon + clear) ---------- */
@@ -899,11 +907,11 @@
899
907
  font-size: 0.75rem;
900
908
  line-height: 1rem;
901
909
  font-weight: 500;
902
- color: hsl(var(--muted-foreground, 215 16% 47%));
910
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
903
911
  }
904
912
  .ev-input-comp-required {
905
913
  margin-left: 0.125rem;
906
- color: hsl(var(--destructive, 0 84% 60%));
914
+ color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
907
915
  }
908
916
  .ev-input-comp-wrap {
909
917
  position: relative;
@@ -915,7 +923,7 @@
915
923
  transform: translateY(-50%);
916
924
  width: 1rem;
917
925
  height: 1rem;
918
- color: hsl(var(--muted-foreground, 215 16% 47%));
926
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
919
927
  pointer-events: none;
920
928
  }
921
929
  .ev-input-comp .ev-input {
@@ -940,12 +948,12 @@
940
948
  display: inline-flex;
941
949
  }
942
950
  .ev-input-comp-clear:hover {
943
- background: hsl(var(--muted, 210 40% 96%));
951
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
944
952
  }
945
953
  .ev-input-comp-clear svg {
946
954
  width: 0.875rem;
947
955
  height: 0.875rem;
948
- color: hsl(var(--muted-foreground, 215 16% 47%));
956
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
949
957
  }
950
958
 
951
959
  /* ---------- EasyVisionSelector ---------- */
@@ -958,11 +966,11 @@
958
966
  font-size: 0.75rem;
959
967
  line-height: 1rem;
960
968
  font-weight: 500;
961
- color: hsl(var(--muted-foreground, 215 16% 47%));
969
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
962
970
  }
963
971
  .ev-selector-required {
964
972
  margin-left: 0.125rem;
965
- color: hsl(var(--destructive, 0 84% 60%));
973
+ color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
966
974
  }
967
975
  .ev-selector-row {
968
976
  display: flex;
@@ -975,10 +983,10 @@
975
983
  font-weight: 400;
976
984
  }
977
985
  .ev-selector-combo-trigger.is-invalid {
978
- border-color: hsl(var(--destructive, 0 84% 60%));
986
+ border-color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
979
987
  }
980
988
  .ev-selector-combo-placeholder {
981
- color: hsl(var(--muted-foreground, 215 16% 47%));
989
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
982
990
  }
983
991
  .ev-selector-combo-icon {
984
992
  margin-left: 0.5rem;
@@ -1000,7 +1008,7 @@
1000
1008
  opacity: 0;
1001
1009
  }
1002
1010
  .ev-selector-trigger-invalid {
1003
- border-color: hsl(var(--destructive, 0 84% 60%));
1011
+ border-color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
1004
1012
  }
1005
1013
  .ev-selector-clear {
1006
1014
  padding: 0.25rem;
@@ -1011,19 +1019,19 @@
1011
1019
  display: inline-flex;
1012
1020
  }
1013
1021
  .ev-selector-clear:hover {
1014
- background: hsl(var(--muted, 210 40% 96%));
1022
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1015
1023
  }
1016
1024
  .ev-selector-clear svg {
1017
1025
  width: 0.875rem;
1018
1026
  height: 0.875rem;
1019
- color: hsl(var(--muted-foreground, 215 16% 47%));
1027
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1020
1028
  }
1021
1029
 
1022
1030
  /* ---------- EasyVisionMultifilter ---------- */
1023
1031
  .ev-mf-panel {
1024
1032
  padding: 0.75rem;
1025
- background: hsl(var(--card, 0 0% 100%));
1026
- border: 1px solid hsl(var(--border, 220 13% 91%));
1033
+ background: var(--ev-card, hsl(var(--card, 0 0% 100%)));
1034
+ border: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
1027
1035
  border-radius: 0.375rem;
1028
1036
  }
1029
1037
  .ev-mf-panel > * + * {
@@ -1047,14 +1055,14 @@
1047
1055
  transform: translateY(-50%);
1048
1056
  width: 1rem;
1049
1057
  height: 1rem;
1050
- color: hsl(var(--muted-foreground, 215 16% 47%));
1058
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1051
1059
  pointer-events: none;
1052
1060
  }
1053
1061
  .ev-mf-search-input {
1054
1062
  width: 100%;
1055
1063
  height: 2.25rem;
1056
1064
  padding: 0.5rem 0.75rem 0.5rem 2.25rem;
1057
- background: hsl(var(--muted, 210 40% 96%));
1065
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1058
1066
  border: 0;
1059
1067
  border-radius: 0.375rem;
1060
1068
  font-size: 0.875rem;
@@ -1069,11 +1077,11 @@
1069
1077
  padding-right: 0.75rem;
1070
1078
  }
1071
1079
  .ev-mf-search-input::placeholder {
1072
- color: hsl(var(--muted-foreground, 215 16% 47%));
1080
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1073
1081
  }
1074
1082
  .ev-mf-search-input:focus-visible {
1075
- outline: 1px solid hsl(var(--ring, 215 20% 65%));
1076
- background: hsl(var(--card, 0 0% 100%));
1083
+ outline: 1px solid var(--ev-ring, hsl(var(--ring, 215 20% 65%)));
1084
+ background: var(--ev-card, hsl(var(--card, 0 0% 100%)));
1077
1085
  }
1078
1086
  .ev-mf-search-clear {
1079
1087
  position: absolute;
@@ -1088,27 +1096,27 @@
1088
1096
  display: inline-flex;
1089
1097
  }
1090
1098
  .ev-mf-search-clear:hover {
1091
- background: hsl(var(--muted-foreground, 215 16% 47%) / 0.1);
1099
+ background: color-mix(in srgb, var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%))) 10%, transparent);
1092
1100
  }
1093
1101
  .ev-mf-search-clear svg {
1094
1102
  width: 0.875rem;
1095
1103
  height: 0.875rem;
1096
- color: hsl(var(--muted-foreground, 215 16% 47%));
1104
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1097
1105
  }
1098
1106
  .ev-mf-add-btn {
1099
1107
  height: 2.25rem;
1100
1108
  width: 2.25rem;
1101
1109
  padding: 0;
1102
- border: 1px dashed hsl(var(--border, 220 13% 91%));
1110
+ border: 1px dashed var(--ev-border, hsl(var(--border, 220 13% 91%)));
1103
1111
  border-radius: 0.375rem;
1104
1112
  }
1105
1113
  .ev-mf-add-btn:hover {
1106
- background: hsl(var(--muted, 210 40% 96%));
1114
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1107
1115
  }
1108
1116
  .ev-mf-add-btn svg {
1109
1117
  width: 1rem;
1110
1118
  height: 1rem;
1111
- color: hsl(var(--muted-foreground, 215 16% 47%));
1119
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1112
1120
  }
1113
1121
  .ev-mf-add-popover {
1114
1122
  width: 13rem;
@@ -1134,12 +1142,96 @@
1134
1142
  font-family: inherit;
1135
1143
  }
1136
1144
  .ev-mf-add-item:hover {
1137
- background: hsl(var(--muted, 210 40% 96%));
1145
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1138
1146
  }
1139
1147
  .ev-mf-add-item svg {
1140
1148
  width: 0.75rem;
1141
1149
  height: 0.75rem;
1142
- color: hsl(var(--muted-foreground, 215 16% 47%));
1150
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1151
+ }
1152
+ /* Saved filters ("Guardados") */
1153
+ .ev-mf-saved-btn {
1154
+ height: 2.25rem;
1155
+ font-size: 0.75rem;
1156
+ }
1157
+ .ev-mf-saved-btn svg {
1158
+ width: 0.875rem;
1159
+ height: 0.875rem;
1160
+ }
1161
+ .ev-mf-saved-popover {
1162
+ width: 18rem;
1163
+ padding: 0.25rem;
1164
+ }
1165
+ .ev-mf-saved-empty {
1166
+ margin: 0;
1167
+ padding: 0.5rem 0.75rem;
1168
+ font-size: 0.75rem;
1169
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1170
+ }
1171
+ .ev-mf-saved-list {
1172
+ list-style: none;
1173
+ margin: 0;
1174
+ padding: 0;
1175
+ }
1176
+ .ev-mf-saved-item {
1177
+ display: flex;
1178
+ align-items: center;
1179
+ gap: 0.125rem;
1180
+ border-radius: 0.375rem;
1181
+ }
1182
+ .ev-mf-saved-item:hover {
1183
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1184
+ }
1185
+ .ev-mf-saved-apply {
1186
+ flex: 1;
1187
+ min-width: 0;
1188
+ overflow: hidden;
1189
+ text-overflow: ellipsis;
1190
+ white-space: nowrap;
1191
+ text-align: left;
1192
+ padding: 0.5rem 0.75rem;
1193
+ font-size: 0.75rem;
1194
+ line-height: 1rem;
1195
+ border: 0;
1196
+ background: transparent;
1197
+ color: inherit;
1198
+ cursor: pointer;
1199
+ }
1200
+ .ev-mf-saved-icon {
1201
+ display: inline-flex;
1202
+ align-items: center;
1203
+ justify-content: center;
1204
+ width: 1.75rem;
1205
+ height: 1.75rem;
1206
+ border: 0;
1207
+ border-radius: 0.375rem;
1208
+ background: transparent;
1209
+ cursor: pointer;
1210
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1211
+ }
1212
+ .ev-mf-saved-icon:hover {
1213
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
1214
+ }
1215
+ .ev-mf-saved-icon svg {
1216
+ width: 0.875rem;
1217
+ height: 0.875rem;
1218
+ }
1219
+ .ev-mf-saved-icon[data-active] {
1220
+ color: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
1221
+ }
1222
+ .ev-mf-saved-icon[data-active] svg {
1223
+ fill: currentColor;
1224
+ }
1225
+ .ev-mf-saved-form {
1226
+ display: flex;
1227
+ gap: 0.375rem;
1228
+ padding: 0.375rem;
1229
+ margin-top: 0.25rem;
1230
+ border-top: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
1231
+ }
1232
+ .ev-mf-saved-form .ev-input {
1233
+ height: 2rem;
1234
+ font-size: 0.75rem;
1143
1235
  }
1144
1236
  .ev-mf-perform {
1145
1237
  height: 2.25rem;
@@ -1158,7 +1250,7 @@
1158
1250
  padding: 0 0.75rem;
1159
1251
  font-size: 0.75rem;
1160
1252
  line-height: 1rem;
1161
- color: hsl(var(--muted-foreground, 215 16% 47%));
1253
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1162
1254
  }
1163
1255
  .ev-mf-clear svg {
1164
1256
  width: 0.875rem;
@@ -1172,8 +1264,8 @@
1172
1264
  }
1173
1265
  .ev-mf-nested {
1174
1266
  border-radius: 0.375rem;
1175
- border: 1px dashed hsl(var(--border, 220 13% 91%));
1176
- background: hsl(var(--muted, 210 40% 96%) / 0.3);
1267
+ border: 1px dashed var(--ev-border, hsl(var(--border, 220 13% 91%)));
1268
+ background: color-mix(in srgb, var(--ev-muted, hsl(var(--muted, 210 40% 96%))) 30%, transparent);
1177
1269
  padding: 0.5rem;
1178
1270
  }
1179
1271
  .ev-mf-nested-header {
@@ -1186,7 +1278,7 @@
1186
1278
  font-size: 0.75rem;
1187
1279
  line-height: 1rem;
1188
1280
  font-weight: 500;
1189
- color: hsl(var(--muted-foreground, 215 16% 47%));
1281
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1190
1282
  }
1191
1283
  .ev-mf-nested-remove {
1192
1284
  margin-left: auto;
@@ -1198,12 +1290,12 @@
1198
1290
  display: inline-flex;
1199
1291
  }
1200
1292
  .ev-mf-nested-remove:hover {
1201
- background: hsl(var(--muted, 210 40% 96%));
1293
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1202
1294
  }
1203
1295
  .ev-mf-nested-remove svg {
1204
1296
  width: 0.875rem;
1205
1297
  height: 0.875rem;
1206
- color: hsl(var(--muted-foreground, 215 16% 47%));
1298
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1207
1299
  }
1208
1300
 
1209
1301
  /* ---------- Multifilter widgets (shared chip styling) ---------- */
@@ -1212,8 +1304,8 @@
1212
1304
  align-items: center;
1213
1305
  gap: 0.5rem;
1214
1306
  border-radius: 0.375rem;
1215
- border: 1px solid hsl(var(--border, 220 13% 91%));
1216
- background: hsl(var(--card, 0 0% 100%));
1307
+ border: 1px solid var(--ev-border, hsl(var(--border, 220 13% 91%)));
1308
+ background: var(--ev-card, hsl(var(--card, 0 0% 100%)));
1217
1309
  padding: 0.375rem 0.75rem;
1218
1310
  }
1219
1311
  .ev-mf-chip.is-wrap {
@@ -1225,7 +1317,7 @@
1225
1317
  font-size: 0.75rem;
1226
1318
  line-height: 1rem;
1227
1319
  font-weight: 500;
1228
- color: hsl(var(--muted-foreground, 215 16% 47%));
1320
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1229
1321
  white-space: nowrap;
1230
1322
  }
1231
1323
  .ev-mf-chip-label.is-clickable {
@@ -1234,7 +1326,7 @@
1234
1326
  }
1235
1327
  .ev-mf-chip-required {
1236
1328
  margin-left: 0.125rem;
1237
- color: hsl(var(--destructive, 0 84% 60%));
1329
+ color: var(--ev-destructive, hsl(var(--destructive, 0 84% 60%)));
1238
1330
  }
1239
1331
  .ev-mf-chip-remove {
1240
1332
  margin-left: 0.25rem;
@@ -1247,12 +1339,12 @@
1247
1339
  transition: background-color 0.15s;
1248
1340
  }
1249
1341
  .ev-mf-chip-remove:hover {
1250
- background: hsl(var(--muted, 210 40% 96%));
1342
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1251
1343
  }
1252
1344
  .ev-mf-chip-remove svg {
1253
1345
  width: 0.875rem;
1254
1346
  height: 0.875rem;
1255
- color: hsl(var(--muted-foreground, 215 16% 47%));
1347
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1256
1348
  }
1257
1349
  .ev-mf-chip-input {
1258
1350
  height: 1.75rem;
@@ -1278,13 +1370,13 @@
1278
1370
  padding: 0;
1279
1371
  font-size: 0.75rem;
1280
1372
  line-height: 1rem;
1281
- color: hsl(var(--muted-foreground, 215 16% 47%));
1373
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1282
1374
  }
1283
1375
  .ev-mf-chip-select-trigger:focus {
1284
1376
  outline: none;
1285
1377
  }
1286
1378
  .ev-mf-chip-select-trigger:hover {
1287
- color: hsl(var(--foreground, 222 47% 11%));
1379
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
1288
1380
  }
1289
1381
  .ev-mf-chip-select-trigger .ev-select-trigger-icon {
1290
1382
  width: 0.875rem;
@@ -1306,7 +1398,7 @@
1306
1398
  .ev-mf-chip-dash {
1307
1399
  font-size: 0.75rem;
1308
1400
  line-height: 1rem;
1309
- color: hsl(var(--muted-foreground, 215 16% 47%));
1401
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1310
1402
  }
1311
1403
  .ev-mf-chip-trigger-btn {
1312
1404
  display: inline-flex;
@@ -1322,7 +1414,7 @@
1322
1414
  font-family: inherit;
1323
1415
  }
1324
1416
  .ev-mf-chip-trigger-btn:hover {
1325
- color: hsl(var(--foreground, 222 47% 11%));
1417
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
1326
1418
  }
1327
1419
  .ev-mf-chip-trigger-btn svg {
1328
1420
  width: 0.875rem;
@@ -1334,7 +1426,7 @@
1334
1426
  gap: 0.25rem;
1335
1427
  font-size: 0.75rem;
1336
1428
  line-height: 1rem;
1337
- color: hsl(var(--muted-foreground, 215 16% 47%));
1429
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1338
1430
  background: transparent;
1339
1431
  border: 0;
1340
1432
  padding: 0;
@@ -1342,7 +1434,7 @@
1342
1434
  font-family: inherit;
1343
1435
  }
1344
1436
  .ev-mf-chip-caret:hover {
1345
- color: hsl(var(--foreground, 222 47% 11%));
1437
+ color: var(--ev-foreground, hsl(var(--foreground, 222 47% 11%)));
1346
1438
  }
1347
1439
  .ev-mf-chip-caret svg {
1348
1440
  width: 0.875rem;
@@ -1354,8 +1446,8 @@
1354
1446
  display: inline-flex;
1355
1447
  align-items: center;
1356
1448
  gap: 0.25rem;
1357
- background: hsl(var(--primary, 222 47% 11%) / 0.1);
1358
- color: hsl(var(--primary, 222 47% 11%));
1449
+ background: color-mix(in srgb, var(--ev-primary, hsl(var(--primary, 222 47% 11%))) 10%, transparent);
1450
+ color: var(--ev-primary, hsl(var(--primary, 222 47% 11%)));
1359
1451
  font-size: 0.75rem;
1360
1452
  line-height: 1rem;
1361
1453
  padding: 0.125rem 0.5rem;
@@ -1370,7 +1462,7 @@
1370
1462
  display: inline-flex;
1371
1463
  }
1372
1464
  .ev-mf-chip-badge-x:hover {
1373
- background: hsl(var(--muted, 210 40% 96%));
1465
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1374
1466
  }
1375
1467
  .ev-mf-chip-badge-x svg {
1376
1468
  width: 0.75rem;
@@ -1409,11 +1501,11 @@
1409
1501
  line-height: 1rem;
1410
1502
  }
1411
1503
  .ev-mf-ms-option:hover {
1412
- background: hsl(var(--muted, 210 40% 96%));
1504
+ background: var(--ev-muted, hsl(var(--muted, 210 40% 96%)));
1413
1505
  }
1414
1506
  .ev-mf-ms-empty {
1415
1507
  padding: 0.25rem 0.5rem;
1416
1508
  font-size: 0.75rem;
1417
1509
  line-height: 1rem;
1418
- color: hsl(var(--muted-foreground, 215 16% 47%));
1510
+ color: var(--ev-muted-foreground, hsl(var(--muted-foreground, 215 16% 47%)));
1419
1511
  }