Skip to content

Commit d22cd4b

Browse files
committed
Refactor CSS variables for success and info states; reintroduce custom variables in light and dark themes.
1 parent 72fa044 commit d22cd4b

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

resources/default/css/app.css

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -339,10 +339,6 @@
339339
--accent-foreground: hsl(224.4444 64.2857% 32.9412%);
340340
--destructive: hsl(0 84.2365% 60.1961%);
341341
--destructive-foreground: hsl(0 0% 100%);
342-
--success: hsl(142.1 76.2% 36.3%);
343-
--success-foreground: hsl(0 0% 100%);
344-
--info: hsl(199.4 95.5% 53.8%);
345-
--info-foreground: hsl(0 0% 100%);
346342
--border: hsl(220 13.0435% 90.9804%);
347343
--input: hsl(220 13.0435% 90.9804%);
348344
--ring: hsl(217.2193 91.2195% 59.8039%);
@@ -378,6 +374,11 @@
378374
0 8px 10px -1px hsl(0 0% 0% / 0.1);
379375
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
380376
--tracking-normal: 0em;
377+
/* CUSTOM_VARIABLES */
378+
--success: hsl(142.1 76.2% 36.3%);
379+
--success-foreground: hsl(0 0% 100%);
380+
--info: hsl(199.4 95.5% 53.8%);
381+
--info-foreground: hsl(0 0% 100%);
381382
}
382383

383384
.dark {
@@ -397,10 +398,6 @@
397398
--accent-foreground: hsl(213.3333 96.9231% 87.2549%);
398399
--destructive: hsl(0 84.2365% 60.1961%);
399400
--destructive-foreground: hsl(0 0% 100%);
400-
--success: hsl(142.1 69.2% 58%);
401-
--success-foreground: hsl(0 0% 100%);
402-
--info: hsl(198.4 93.2% 59.6%);
403-
--info-foreground: hsl(0 0% 100%);
404401
--border: hsl(0 0% 25.098%);
405402
--input: hsl(0 0% 25.098%);
406403
--ring: hsl(217.2193 91.2195% 59.8039%);
@@ -436,6 +433,11 @@
436433
0 8px 10px -1px hsl(0 0% 0% / 0.1);
437434
--shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
438435
--tracking-normal: 0em;
436+
/* CUSTOM_VARIABLES */
437+
--success: hsl(142.1 69.2% 58%);
438+
--success-foreground: hsl(0 0% 100%);
439+
--info: hsl(198.4 93.2% 59.6%);
440+
--info-foreground: hsl(0 0% 100%);
439441
}
440442

441443
@theme inline {
@@ -455,10 +457,6 @@
455457
--color-accent-foreground: var(--accent-foreground);
456458
--color-destructive: var(--destructive);
457459
--color-destructive-foreground: var(--destructive-foreground);
458-
--color-success: var(--success);
459-
--color-success-foreground: var(--success-foreground);
460-
--color-info: var(--info);
461-
--color-info-foreground: var(--info-foreground);
462460
--color-border: var(--border);
463461
--color-input: var(--input);
464462
--color-ring: var(--ring);
@@ -505,6 +503,12 @@
505503

506504
--animate-scale: scale 0.3s ease-in-out;
507505

506+
/* CUSTOM_VARIABLES */
507+
--color-success: var(--success);
508+
--color-success-foreground: var(--success-foreground);
509+
--color-info: var(--info);
510+
--color-info-foreground: var(--info-foreground);
511+
508512
@keyframes scale {
509513
0% { transform: scale(1,1); }
510514
50% { transform: scale(1.05,1.05); }

0 commit comments

Comments
 (0)