Skip to content

Commit e5f8b8d

Browse files
committed
New variables
1 parent 5489f14 commit e5f8b8d

File tree

3 files changed

+28
-58
lines changed

3 files changed

+28
-58
lines changed

templates/tailwind/tailwind.config.js

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ module.exports = {
55
theme: {
66
extend: {
77
colors: {
8-
background: "hsl(var(--background))",
9-
foreground: "hsl(var(--foreground))",
10-
card: {
11-
DEFAULT: "hsl(var(--card))",
12-
foreground: "hsl(var(--card-foreground))",
13-
},
14-
popover: {
15-
DEFAULT: "hsl(var(--popover))",
16-
foreground: "hsl(var(--popover-foreground))",
8+
main: {
9+
DEFAULT: "hsl(var(--main))",
10+
foreground: "hsl(var(--main-foreground))"
1711
},
1812
primary: {
1913
DEFAULT: "hsl(var(--primary))",
@@ -24,19 +18,15 @@ module.exports = {
2418
DEFAULT: "hsl(var(--secondary))",
2519
foreground: "hsl(var(--secondary-foreground))",
2620
},
27-
muted: {
28-
DEFAULT: "hsl(var(--muted))",
29-
foreground: "hsl(var(--muted-foreground))",
30-
},
3121
accent: {
3222
DEFAULT: "hsl(var(--accent))",
3323
foreground: "hsl(var(--accent-foreground))",
3424
},
35-
destructive: {
36-
DEFAULT: "hsl(var(--destructive))",
37-
foreground: "hsl(var(--destructive-foreground))",
25+
error: {
26+
DEFAULT: "hsl(var(--error))",
27+
foreground: "hsl(var(--error-foreground))",
3828
},
39-
border: "hsl(var(--border))",
29+
control: "hsl(var(--control))",
4030
input: "hsl(var(--input))",
4131
ring: "hsl(var(--ring))",
4232
}

templates/tailwind/wwwroot/css/input.css

Lines changed: 12 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,33 @@
44

55
@layer base {
66
:root {
7-
--background: 0 0% 100%;
8-
--foreground: 240 10% 3.9%;
9-
--card: 0 0% 100%;
10-
--card-foreground: 240 10% 3.9%;
11-
--popover: 0 0% 100%;
12-
--popover-foreground: 240 10% 3.9%;
7+
--main: 0 0% 100%;
8+
--main-foreground: 240 10% 3.9%;
139
--primary: 220 75% 50%;
1410
--primary-accent: 220 75% 55%;
1511
--primary-foreground: 0 0% 98%;
1612
--secondary: 240 4.8% 95.9%;
1713
--secondary-foreground: 240 5.9% 10%;
18-
--muted: 240 4.8% 95.9%;
19-
--muted-foreground: 240 3.8% 46.1%;
2014
--accent: 240 4.8% 95.9%;
2115
--accent-foreground: 240 5.9% 40%;
22-
--destructive: 0 84.2% 60.2%;
23-
--destructive-foreground: 0 0% 100%;
24-
--border: 240 5.9% 90%;
25-
--input: 240 4.9% 83.9%;
26-
--ring: 240 5% 64.9%;
27-
--radius: 0.5rem;
16+
--error: 0 84.2% 60.2%;
17+
--error-foreground: 0 0% 100%;
18+
--control: 240 5.9% 90%;
19+
--input: 240 4.9% 84%;
20+
--ring: 240 5% 65%;
2821
}
2922
.dark {
30-
--background: 221.25 19.51% 16.08%;
31-
--foreground: 0 0% 98%;
32-
--card: 240 10% 3.9%;
33-
--card-foreground: 0 0% 98%;
34-
--popover: 240 10% 3.9%;
35-
--popover-foreground: 0 0% 98%;
23+
--main: 221.25 19.51% 16.08%;
24+
--main-foreground: 0 0% 98%;
3625
--primary: 221.21 77.08% 51.35%;
3726
--primary-foreground: 0 0% 90%;
3827
--secondary: 220 19% 20%;
3928
--secondary-foreground: 0 0% 98%;
40-
--muted: 240 5.9% 10%;
41-
--muted-foreground: 240 4.4% 58%;
4229
--accent: 221.25 19.51% 14%;
4330
--accent-foreground: 221.25 19.51% 55%;
44-
--destructive: 0 84.2% 60.2%;
45-
--destructive-foreground: 0 0% 100%;
46-
--border: 217.5 13.11% 25%;
31+
--error: 0 84.2% 60.2%;
32+
--error-foreground: 0 0% 100%;
33+
--control: 217.5 13.11% 25%;
4734
--input: 217.5 13.11% 30%;
4835
--ring: 240 3.8% 46.1%;
4936
}

templates/tailwind/wwwroot/css/output.css

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
}
108108

109109
/*
110-
! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com
110+
! tailwindcss v3.4.13 | MIT License | https://tailwindcss.com
111111
*/
112112

113113
/*
@@ -550,32 +550,25 @@ video {
550550

551551
/* Make elements with the HTML hidden attribute stay hidden by default */
552552

553-
[hidden]:where(:not([hidden="until-found"])) {
553+
[hidden] {
554554
display: none;
555555
}
556556

557557
:root {
558-
--background: 0 0% 100%;
559-
--foreground: 240 10% 3.9%;
560-
--card: 0 0% 100%;
561-
--card-foreground: 240 10% 3.9%;
562-
--popover: 0 0% 100%;
563-
--popover-foreground: 240 10% 3.9%;
558+
--main: 0 0% 100%;
559+
--main-foreground: 240 10% 3.9%;
564560
--primary: 220 75% 50%;
565561
--primary-accent: 220 75% 55%;
566562
--primary-foreground: 0 0% 98%;
567563
--secondary: 240 4.8% 95.9%;
568564
--secondary-foreground: 240 5.9% 10%;
569-
--muted: 240 4.8% 95.9%;
570-
--muted-foreground: 240 3.8% 46.1%;
571565
--accent: 240 4.8% 95.9%;
572566
--accent-foreground: 240 5.9% 40%;
573-
--destructive: 0 84.2% 60.2%;
574-
--destructive-foreground: 0 0% 100%;
575-
--border: 240 5.9% 90%;
576-
--input: 240 4.9% 83.9%;
577-
--ring: 240 5% 64.9%;
578-
--radius: 0.5rem;
567+
--error: 0 84.2% 60.2%;
568+
--error-foreground: 0 0% 100%;
569+
--control: 240 5.9% 90%;
570+
--input: 240 4.9% 84%;
571+
--ring: 240 5% 65%;
579572
}
580573

581574
.absolute {

0 commit comments

Comments
 (0)