@spartan-ng/cli 0.0.1-alpha.483 → 0.0.1-alpha.485
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.
- package/package.json +1 -1
- package/src/generators/theme/__snapshots__/generator.spec.ts.snap +620 -0
- package/src/generators/theme/generator.js +3 -12
- package/src/generators/theme/generator.js.map +1 -1
- package/src/generators/theme/libs/add-theme-to-application-styles.d.ts +2 -3
- package/src/generators/theme/libs/add-theme-to-application-styles.js +14 -2
- package/src/generators/theme/libs/add-theme-to-application-styles.js.map +1 -1
- package/src/generators/theme/libs/colors.d.ts +14 -0
- package/src/generators/theme/libs/colors.js +451 -0
- package/src/generators/theme/libs/colors.js.map +1 -0
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-content.component.ts.template +1 -6
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-icon.directive.ts.template +4 -1
- package/src/generators/ui/libs/ui-accordion-helm/files/lib/hlm-accordion-trigger.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-content.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-footer.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-header.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-dialog-helm/files/lib/hlm-alert-dialog-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-description.directive.ts.template +6 -7
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert-title.directive.ts.template +3 -7
- package/src/generators/ui/libs/ui-alert-helm/files/lib/hlm-alert.directive.ts.template +5 -4
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/fallback/hlm-avatar-fallback.directive.ts.template +3 -18
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/hlm-avatar.component.ts.template +1 -18
- package/src/generators/ui/libs/ui-avatar-helm/files/lib/image/hlm-avatar-image.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-badge-helm/files/index.ts.template +4 -2
- package/src/generators/ui/libs/ui-badge-helm/files/lib/hlm-badge.directive.ts.template +10 -37
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-ellipsis.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-link.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-list.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-breadcrumb-helm/files/lib/hlm-breadcrumb-separator.component.ts.template +4 -6
- package/src/generators/ui/libs/ui-button-helm/files/index.ts.template +1 -2
- package/src/generators/ui/libs/ui-button-helm/files/lib/hlm-button.directive.ts.template +14 -11
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar-multi.component.ts.template +3 -3
- package/src/generators/ui/libs/ui-calendar-helm/files/lib/hlm-calendar.component.ts.template +6 -6
- package/src/generators/ui/libs/ui-card-helm/files/index.ts.template +3 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-action.directive.ts.template +17 -0
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-content.directive.ts.template +1 -8
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-description.directive.ts.template +1 -8
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-footer.directive.ts.template +1 -17
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-header.directive.ts.template +6 -17
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card-title.directive.ts.template +1 -8
- package/src/generators/ui/libs/ui-card-helm/files/lib/hlm-card.directive.ts.template +4 -7
- package/src/generators/ui/libs/ui-checkbox-helm/files/lib/hlm-checkbox.component.ts.template +11 -10
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-dialog.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group-label.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-group.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-icon.directive.ts.template +10 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-item.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-list.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search-input.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-search.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-separator.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command-shortcut.component.ts.template +10 -3
- package/src/generators/ui/libs/ui-command-helm/files/lib/hlm-command.component.ts.template +1 -4
- package/src/generators/ui/libs/ui-date-picker-helm/files/lib/hlm-date-picker.component.ts.template +5 -5
- package/src/generators/ui/libs/ui-dialog-helm/files/lib/hlm-dialog-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-error.directive.ts.template +10 -3
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-form-field.component.ts.template +14 -2
- package/src/generators/ui/libs/ui-form-field-helm/files/lib/hlm-hint.directive.ts.template +8 -3
- package/src/generators/ui/libs/ui-input-helm/files/index.ts.template +2 -4
- package/src/generators/ui/libs/ui-input-helm/files/lib/hlm-input.directive.ts.template +10 -21
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-separator.component.ts.template +4 -4
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp-slot.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-input-otp-helm/files/lib/hlm-input-otp.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-label-helm/files/lib/hlm-label.directive.ts.template +2 -47
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar-item.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-bar.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item-sub-indicator.component.ts.template +3 -3
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-item.directive.ts.template +16 -19
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-label.component.ts.template +9 -9
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-separator.component.ts.template +2 -2
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu-shortcut.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-menu-helm/files/lib/hlm-menu.component.ts.template +4 -8
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress-indicator.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-progress-helm/files/lib/hlm-progress.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-group.component.ts.template +2 -1
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio-indicator.component.ts.template +7 -8
- package/src/generators/ui/libs/ui-radio-group-helm/files/lib/hlm-radio.component.ts.template +2 -7
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-label.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-option.component.ts.template +4 -7
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-down.component.ts.template +10 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-scroll-up.component.ts.template +10 -3
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-trigger.component.ts.template +8 -14
- package/src/generators/ui/libs/ui-select-helm/files/lib/hlm-select-value.directive.ts.template +1 -4
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-close.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-content.component.ts.template +5 -5
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-description.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-footer.component.ts.template +1 -3
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-header.component.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-overlay.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-sheet-helm/files/lib/hlm-sheet-title.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-slider-helm/files/lib/hlm-slider.component.ts.template +3 -3
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch-thumb.directive.ts.template +1 -1
- package/src/generators/ui/libs/ui-switch-helm/files/lib/hlm-switch.component.ts.template +1 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-list.component.ts.template +4 -1
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs-trigger.directive.ts.template +2 -2
- package/src/generators/ui/libs/ui-tabs-helm/files/lib/hlm-tabs.component.ts.template +12 -1
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-group.directive.ts.template +8 -8
- package/src/generators/ui/libs/ui-toggle-group-helm/files/lib/hlm-toggle-item.directive.ts.template +15 -14
- package/src/generators/ui/libs/ui-tooltip-helm/files/lib/hlm-tooltip-trigger.directive.ts.template +2 -2
- package/src/generators/ui/supported-ui-libraries.json +47 -47
- package/src/generators/theme/libs/supported-theme-generator-map.d.ts +0 -17
- package/src/generators/theme/libs/supported-theme-generator-map.js +0 -584
- package/src/generators/theme/libs/supported-theme-generator-map.js.map +0 -1
package/package.json
CHANGED
|
@@ -0,0 +1,620 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Theme generator Tailwind v3 should add the gray theme styles to the global stylesheet 1`] = `
|
|
4
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
5
|
+
|
|
6
|
+
@tailwind base;
|
|
7
|
+
@tailwind components;
|
|
8
|
+
@tailwind utilities;
|
|
9
|
+
|
|
10
|
+
/* You can add global styles to this file, and also import other style files */
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
:root {
|
|
14
|
+
--font-sans: ''
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:root {
|
|
18
|
+
--background: 0deg 0% 100%;
|
|
19
|
+
--foreground: 224.06deg 72.27% 4.17%;
|
|
20
|
+
--card: 0deg 0% 100%;
|
|
21
|
+
--card-foreground: 224.06deg 72.27% 4.17%;
|
|
22
|
+
--popover: 0deg 0% 100%;
|
|
23
|
+
--popover-foreground: 224.06deg 72.27% 4.17%;
|
|
24
|
+
--primary: 220.99deg 41.69% 11.07%;
|
|
25
|
+
--primary-foreground: 344.54deg 18.99% 98.19%;
|
|
26
|
+
--secondary: 344.7deg 12.65% 95.9%;
|
|
27
|
+
--secondary-foreground: 220.99deg 41.69% 11.07%;
|
|
28
|
+
--muted: 344.7deg 12.65% 95.9%;
|
|
29
|
+
--muted-foreground: 219.99deg 10.27% 46.3%;
|
|
30
|
+
--accent: 344.7deg 12.65% 95.9%;
|
|
31
|
+
--accent-foreground: 220.99deg 41.69% 11.07%;
|
|
32
|
+
--destructive: 351.72deg 100% 40.53%;
|
|
33
|
+
--border: 344.79deg 11.54% 91.05%;
|
|
34
|
+
--input: 344.79deg 11.54% 91.05%;
|
|
35
|
+
--ring: 217.85deg 11.94% 64.27%;
|
|
36
|
+
--radius: 0.625rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:root.dark {
|
|
40
|
+
--background: 224.06deg 72.27% 4.17%;
|
|
41
|
+
--foreground: 344.54deg 18.99% 98.19%;
|
|
42
|
+
--card: 220.99deg 41.69% 11.07%;
|
|
43
|
+
--card-foreground: 344.54deg 18.99% 98.19%;
|
|
44
|
+
--popover: 220.99deg 41.69% 11.07%;
|
|
45
|
+
--popover-foreground: 344.54deg 18.99% 98.19%;
|
|
46
|
+
--primary: 344.79deg 11.54% 91.05%;
|
|
47
|
+
--primary-foreground: 220.99deg 41.69% 11.07%;
|
|
48
|
+
--secondary: 214.98deg 31% 16.95%;
|
|
49
|
+
--secondary-foreground: 344.54deg 18.99% 98.19%;
|
|
50
|
+
--muted: 214.98deg 31% 16.95%;
|
|
51
|
+
--muted-foreground: 217.85deg 11.94% 64.27%;
|
|
52
|
+
--accent: 214.98deg 31% 16.95%;
|
|
53
|
+
--accent-foreground: 344.54deg 18.99% 98.19%;
|
|
54
|
+
--destructive: 358.76deg 100% 69.84%;
|
|
55
|
+
--border: 0deg 0% 13.73%;
|
|
56
|
+
--input: 0deg 0% 18.43%;
|
|
57
|
+
--ring: 219.99deg 10.27% 46.3%;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@layer base {
|
|
61
|
+
* {
|
|
62
|
+
@apply border-border;
|
|
63
|
+
}
|
|
64
|
+
}"
|
|
65
|
+
`;
|
|
66
|
+
|
|
67
|
+
exports[`Theme generator Tailwind v3 should add the neutral theme styles to the global stylesheet 1`] = `
|
|
68
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
69
|
+
|
|
70
|
+
@tailwind base;
|
|
71
|
+
@tailwind components;
|
|
72
|
+
@tailwind utilities;
|
|
73
|
+
|
|
74
|
+
/* You can add global styles to this file, and also import other style files */
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
:root {
|
|
78
|
+
--font-sans: ''
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:root {
|
|
82
|
+
--background: 0deg 0% 100%;
|
|
83
|
+
--foreground: 0deg 0.02% 3.94%;
|
|
84
|
+
--card: 0deg 0% 100%;
|
|
85
|
+
--card-foreground: 0deg 0.02% 3.94%;
|
|
86
|
+
--popover: 0deg 0% 100%;
|
|
87
|
+
--popover-foreground: 0deg 0.02% 3.94%;
|
|
88
|
+
--primary: 0deg 0.02% 9.06%;
|
|
89
|
+
--primary-foreground: 0deg 0.5% 98.03%;
|
|
90
|
+
--secondary: 0deg 0.24% 96.06%;
|
|
91
|
+
--secondary-foreground: 0deg 0.02% 9.06%;
|
|
92
|
+
--muted: 0deg 0.24% 96.06%;
|
|
93
|
+
--muted-foreground: 0deg 0.01% 45.16%;
|
|
94
|
+
--accent: 0deg 0.24% 96.06%;
|
|
95
|
+
--accent-foreground: 0deg 0.02% 9.06%;
|
|
96
|
+
--destructive: 351.72deg 100% 40.53%;
|
|
97
|
+
--border: 0deg 0.09% 89.82%;
|
|
98
|
+
--input: 0deg 0.09% 89.82%;
|
|
99
|
+
--ring: 0deg 0.02% 63.02%;
|
|
100
|
+
--radius: 0.625rem;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:root.dark {
|
|
104
|
+
--background: 0deg 0.02% 3.94%;
|
|
105
|
+
--foreground: 0deg 0.5% 98.03%;
|
|
106
|
+
--card: 0deg 0.02% 9.06%;
|
|
107
|
+
--card-foreground: 0deg 0.5% 98.03%;
|
|
108
|
+
--popover: 0deg 0.02% 9.06%;
|
|
109
|
+
--popover-foreground: 0deg 0.5% 98.03%;
|
|
110
|
+
--primary: 0deg 0.09% 89.82%;
|
|
111
|
+
--primary-foreground: 0deg 0.02% 9.06%;
|
|
112
|
+
--secondary: 0deg 0.01% 14.94%;
|
|
113
|
+
--secondary-foreground: 0deg 0.5% 98.03%;
|
|
114
|
+
--muted: 0deg 0.01% 14.94%;
|
|
115
|
+
--muted-foreground: 0deg 0.02% 63.02%;
|
|
116
|
+
--accent: 0deg 0% 14.9%;
|
|
117
|
+
--accent-foreground: 0deg 0.5% 98.03%;
|
|
118
|
+
--destructive: 358.76deg 100% 69.84%;
|
|
119
|
+
--border: 0deg 0% 13.73%;
|
|
120
|
+
--input: 0deg 0% 18.43%;
|
|
121
|
+
--ring: 0deg 0.01% 45.16%;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@layer base {
|
|
125
|
+
* {
|
|
126
|
+
@apply border-border;
|
|
127
|
+
}
|
|
128
|
+
}"
|
|
129
|
+
`;
|
|
130
|
+
|
|
131
|
+
exports[`Theme generator Tailwind v3 should add the slate theme styles to the global stylesheet 1`] = `
|
|
132
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
133
|
+
|
|
134
|
+
@tailwind base;
|
|
135
|
+
@tailwind components;
|
|
136
|
+
@tailwind utilities;
|
|
137
|
+
|
|
138
|
+
/* You can add global styles to this file, and also import other style files */
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:root {
|
|
142
|
+
--font-sans: ''
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
:root {
|
|
146
|
+
--background: 0deg 0% 100%;
|
|
147
|
+
--foreground: 228.82deg 85.15% 5%;
|
|
148
|
+
--card: 0deg 0% 100%;
|
|
149
|
+
--card-foreground: 228.82deg 85.15% 5%;
|
|
150
|
+
--popover: 0deg 0% 100%;
|
|
151
|
+
--popover-foreground: 228.82deg 85.15% 5%;
|
|
152
|
+
--primary: 222.33deg 49.39% 11.3%;
|
|
153
|
+
--primary-foreground: 344.69deg 27.87% 98.13%;
|
|
154
|
+
--secondary: 344.79deg 33.25% 96.34%;
|
|
155
|
+
--secondary-foreground: 222.33deg 49.39% 11.3%;
|
|
156
|
+
--muted: 344.79deg 33.25% 96.34%;
|
|
157
|
+
--muted-foreground: 215.37deg 18.38% 47.03%;
|
|
158
|
+
--accent: 344.79deg 33.25% 96.34%;
|
|
159
|
+
--accent-foreground: 222.33deg 49.39% 11.3%;
|
|
160
|
+
--destructive: 351.72deg 100% 40.53%;
|
|
161
|
+
--border: 214.19deg 33.11% 91.43%;
|
|
162
|
+
--input: 214.19deg 33.11% 91.43%;
|
|
163
|
+
--ring: 214.97deg 22.62% 64.51%;
|
|
164
|
+
--radius: 0.625rem;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
:root.dark {
|
|
168
|
+
--background: 228.82deg 85.15% 5%;
|
|
169
|
+
--foreground: 344.69deg 27.87% 98.13%;
|
|
170
|
+
--card: 222.33deg 49.39% 11.3%;
|
|
171
|
+
--card-foreground: 344.69deg 27.87% 98.13%;
|
|
172
|
+
--popover: 222.33deg 49.39% 11.3%;
|
|
173
|
+
--popover-foreground: 344.69deg 27.87% 98.13%;
|
|
174
|
+
--primary: 214.19deg 33.11% 91.43%;
|
|
175
|
+
--primary-foreground: 222.33deg 49.39% 11.3%;
|
|
176
|
+
--secondary: 217.27deg 36.08% 17.54%;
|
|
177
|
+
--secondary-foreground: 344.69deg 27.87% 98.13%;
|
|
178
|
+
--muted: 217.27deg 36.08% 17.54%;
|
|
179
|
+
--muted-foreground: 214.97deg 22.62% 64.51%;
|
|
180
|
+
--accent: 217.27deg 36.08% 17.54%;
|
|
181
|
+
--accent-foreground: 344.69deg 27.87% 98.13%;
|
|
182
|
+
--destructive: 358.76deg 100% 69.84%;
|
|
183
|
+
--border: 0deg 0% 13.73%;
|
|
184
|
+
--input: 0deg 0% 18.43%;
|
|
185
|
+
--ring: 219.99deg 10.27% 46.3%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
@layer base {
|
|
189
|
+
* {
|
|
190
|
+
@apply border-border;
|
|
191
|
+
}
|
|
192
|
+
}"
|
|
193
|
+
`;
|
|
194
|
+
|
|
195
|
+
exports[`Theme generator Tailwind v3 should add the stone theme styles to the global stylesheet 1`] = `
|
|
196
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
197
|
+
|
|
198
|
+
@tailwind base;
|
|
199
|
+
@tailwind components;
|
|
200
|
+
@tailwind utilities;
|
|
201
|
+
|
|
202
|
+
/* You can add global styles to this file, and also import other style files */
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
:root {
|
|
206
|
+
--font-sans: ''
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
:root {
|
|
210
|
+
--background: 0deg 0% 100%;
|
|
211
|
+
--foreground: 344.17deg 10.1% 4.29%;
|
|
212
|
+
--card: 0deg 0% 100%;
|
|
213
|
+
--card-foreground: 344.17deg 10.1% 4.29%;
|
|
214
|
+
--popover: 0deg 0% 100%;
|
|
215
|
+
--popover-foreground: 344.17deg 10.1% 4.29%;
|
|
216
|
+
--primary: 344.37deg 6.88% 10.34%;
|
|
217
|
+
--primary-foreground: 344deg 8.87% 98.11%;
|
|
218
|
+
--secondary: 344.02deg 4.34% 96.14%;
|
|
219
|
+
--secondary-foreground: 344.37deg 6.88% 10.34%;
|
|
220
|
+
--muted: 344.02deg 4.34% 96.14%;
|
|
221
|
+
--muted-foreground: 25.05deg 5.89% 44.64%;
|
|
222
|
+
--accent: 344.02deg 4.34% 96.14%;
|
|
223
|
+
--accent-foreground: 344.37deg 6.88% 10.34%;
|
|
224
|
+
--destructive: 351.72deg 100% 40.53%;
|
|
225
|
+
--border: 344.71deg 5.22% 90.18%;
|
|
226
|
+
--input: 344.71deg 5.22% 90.18%;
|
|
227
|
+
--ring: 24.07deg 5.83% 63.06%;
|
|
228
|
+
--radius: 0.625rem;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:root.dark {
|
|
232
|
+
--background: 344.17deg 10.1% 4.29%;
|
|
233
|
+
--foreground: 344deg 8.87% 98.11%;
|
|
234
|
+
--card: 344.37deg 6.88% 10.34%;
|
|
235
|
+
--card-foreground: 344deg 8.87% 98.11%;
|
|
236
|
+
--popover: 344.37deg 6.88% 10.34%;
|
|
237
|
+
--popover-foreground: 344deg 8.87% 98.11%;
|
|
238
|
+
--primary: 344.71deg 5.22% 90.18%;
|
|
239
|
+
--primary-foreground: 344.37deg 6.88% 10.34%;
|
|
240
|
+
--secondary: 344.41deg 5.76% 15.22%;
|
|
241
|
+
--secondary-foreground: 344deg 8.87% 98.11%;
|
|
242
|
+
--muted: 344.41deg 5.76% 15.22%;
|
|
243
|
+
--muted-foreground: 24.07deg 5.83% 63.06%;
|
|
244
|
+
--accent: 344.41deg 5.76% 15.22%;
|
|
245
|
+
--accent-foreground: 344deg 8.87% 98.11%;
|
|
246
|
+
--destructive: 358.76deg 100% 69.84%;
|
|
247
|
+
--border: 0deg 0% 13.73%;
|
|
248
|
+
--input: 0deg 0% 18.43%;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
@layer base {
|
|
252
|
+
* {
|
|
253
|
+
@apply border-border;
|
|
254
|
+
}
|
|
255
|
+
}"
|
|
256
|
+
`;
|
|
257
|
+
|
|
258
|
+
exports[`Theme generator Tailwind v3 should add the zinc theme styles to the global stylesheet 1`] = `
|
|
259
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
260
|
+
|
|
261
|
+
@tailwind base;
|
|
262
|
+
@tailwind components;
|
|
263
|
+
@tailwind utilities;
|
|
264
|
+
|
|
265
|
+
/* You can add global styles to this file, and also import other style files */
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
:root {
|
|
269
|
+
--font-sans: ''
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
:root {
|
|
273
|
+
--background: 0deg 0% 100%;
|
|
274
|
+
--foreground: 344.97deg 13.46% 3.85%;
|
|
275
|
+
--card: 0deg 0% 100%;
|
|
276
|
+
--card-foreground: 344.97deg 13.46% 3.85%;
|
|
277
|
+
--popover: 0deg 0% 100%;
|
|
278
|
+
--popover-foreground: 344.97deg 13.46% 3.85%;
|
|
279
|
+
--primary: 344.35deg 7.21% 9.8%;
|
|
280
|
+
--primary-foreground: 0deg 0.5% 98.03%;
|
|
281
|
+
--secondary: 344.02deg 3.93% 95.75%;
|
|
282
|
+
--secondary-foreground: 344.35deg 7.21% 9.8%;
|
|
283
|
+
--muted: 344.02deg 3.93% 95.75%;
|
|
284
|
+
--muted-foreground: 239.97deg 4.41% 46.34%;
|
|
285
|
+
--accent: 344.02deg 3.93% 95.75%;
|
|
286
|
+
--accent-foreground: 344.35deg 7.21% 9.8%;
|
|
287
|
+
--destructive: 351.72deg 100% 40.53%;
|
|
288
|
+
--border: 344.76deg 6.76% 89.87%;
|
|
289
|
+
--input: 344.76deg 6.76% 89.87%;
|
|
290
|
+
--ring: 239.9deg 5.73% 64.3%;
|
|
291
|
+
--radius: 0.625rem;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
:root.dark {
|
|
295
|
+
--background: 344.97deg 13.46% 3.85%;
|
|
296
|
+
--foreground: 0deg 0.5% 98.03%;
|
|
297
|
+
--card: 344.35deg 7.21% 9.8%;
|
|
298
|
+
--card-foreground: 0deg 0.5% 98.03%;
|
|
299
|
+
--popover: 344.35deg 7.21% 9.8%;
|
|
300
|
+
--popover-foreground: 0deg 0.5% 98.03%;
|
|
301
|
+
--primary: 344.76deg 6.76% 89.87%;
|
|
302
|
+
--primary-foreground: 344.35deg 7.21% 9.8%;
|
|
303
|
+
--secondary: 344.51deg 4.81% 15.74%;
|
|
304
|
+
--secondary-foreground: 0deg 0.5% 98.03%;
|
|
305
|
+
--muted: 344.51deg 4.81% 15.74%;
|
|
306
|
+
--muted-foreground: 239.9deg 5.73% 64.3%;
|
|
307
|
+
--accent: 344.51deg 4.81% 15.74%;
|
|
308
|
+
--accent-foreground: 0deg 0.5% 98.03%;
|
|
309
|
+
--destructive: 358.76deg 100% 69.84%;
|
|
310
|
+
--border: 0deg 0% 13.73%;
|
|
311
|
+
--input: 0deg 0% 18.43%;
|
|
312
|
+
--ring: 239.97deg 4.41% 46.34%;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@layer base {
|
|
316
|
+
* {
|
|
317
|
+
@apply border-border;
|
|
318
|
+
}
|
|
319
|
+
}"
|
|
320
|
+
`;
|
|
321
|
+
|
|
322
|
+
exports[`Theme generator Tailwind v4 should add the gray theme styles to the global stylesheet 1`] = `
|
|
323
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
324
|
+
|
|
325
|
+
@import "tailwindcss";
|
|
326
|
+
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
327
|
+
|
|
328
|
+
:root {
|
|
329
|
+
--font-sans: ''
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
:root {
|
|
333
|
+
--background: oklch(1 0 0);
|
|
334
|
+
--foreground: oklch(0.13 0.028 261.692);
|
|
335
|
+
--card: oklch(1 0 0);
|
|
336
|
+
--card-foreground: oklch(0.13 0.028 261.692);
|
|
337
|
+
--popover: oklch(1 0 0);
|
|
338
|
+
--popover-foreground: oklch(0.13 0.028 261.692);
|
|
339
|
+
--primary: oklch(0.21 0.034 264.665);
|
|
340
|
+
--primary-foreground: oklch(0.985 0.002 247.839);
|
|
341
|
+
--secondary: oklch(0.967 0.003 264.542);
|
|
342
|
+
--secondary-foreground: oklch(0.21 0.034 264.665);
|
|
343
|
+
--muted: oklch(0.967 0.003 264.542);
|
|
344
|
+
--muted-foreground: oklch(0.551 0.027 264.364);
|
|
345
|
+
--accent: oklch(0.967 0.003 264.542);
|
|
346
|
+
--accent-foreground: oklch(0.21 0.034 264.665);
|
|
347
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
348
|
+
--border: oklch(0.928 0.006 264.531);
|
|
349
|
+
--input: oklch(0.928 0.006 264.531);
|
|
350
|
+
--ring: oklch(0.707 0.022 261.325);
|
|
351
|
+
--radius: 0.625rem;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
:root.dark {
|
|
355
|
+
--background: oklch(0.13 0.028 261.692);
|
|
356
|
+
--foreground: oklch(0.985 0.002 247.839);
|
|
357
|
+
--card: oklch(0.21 0.034 264.665);
|
|
358
|
+
--card-foreground: oklch(0.985 0.002 247.839);
|
|
359
|
+
--popover: oklch(0.21 0.034 264.665);
|
|
360
|
+
--popover-foreground: oklch(0.985 0.002 247.839);
|
|
361
|
+
--primary: oklch(0.928 0.006 264.531);
|
|
362
|
+
--primary-foreground: oklch(0.21 0.034 264.665);
|
|
363
|
+
--secondary: oklch(0.278 0.033 256.848);
|
|
364
|
+
--secondary-foreground: oklch(0.985 0.002 247.839);
|
|
365
|
+
--muted: oklch(0.278 0.033 256.848);
|
|
366
|
+
--muted-foreground: oklch(0.707 0.022 261.325);
|
|
367
|
+
--accent: oklch(0.278 0.033 256.848);
|
|
368
|
+
--accent-foreground: oklch(0.985 0.002 247.839);
|
|
369
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
370
|
+
--border: oklch(1 0 0 / 10%);
|
|
371
|
+
--input: oklch(1 0 0 / 15%);
|
|
372
|
+
--ring: oklch(0.551 0.027 264.364);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@layer base {
|
|
376
|
+
* {
|
|
377
|
+
@apply border-border;
|
|
378
|
+
}
|
|
379
|
+
}"
|
|
380
|
+
`;
|
|
381
|
+
|
|
382
|
+
exports[`Theme generator Tailwind v4 should add the neutral theme styles to the global stylesheet 1`] = `
|
|
383
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
384
|
+
|
|
385
|
+
@import "tailwindcss";
|
|
386
|
+
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
387
|
+
|
|
388
|
+
:root {
|
|
389
|
+
--font-sans: ''
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
:root {
|
|
393
|
+
--background: oklch(1 0 0);
|
|
394
|
+
--foreground: oklch(0.145 0 0);
|
|
395
|
+
--card: oklch(1 0 0);
|
|
396
|
+
--card-foreground: oklch(0.145 0 0);
|
|
397
|
+
--popover: oklch(1 0 0);
|
|
398
|
+
--popover-foreground: oklch(0.145 0 0);
|
|
399
|
+
--primary: oklch(0.205 0 0);
|
|
400
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
401
|
+
--secondary: oklch(0.97 0 0);
|
|
402
|
+
--secondary-foreground: oklch(0.205 0 0);
|
|
403
|
+
--muted: oklch(0.97 0 0);
|
|
404
|
+
--muted-foreground: oklch(0.556 0 0);
|
|
405
|
+
--accent: oklch(0.97 0 0);
|
|
406
|
+
--accent-foreground: oklch(0.205 0 0);
|
|
407
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
408
|
+
--border: oklch(0.922 0 0);
|
|
409
|
+
--input: oklch(0.922 0 0);
|
|
410
|
+
--ring: oklch(0.708 0 0);
|
|
411
|
+
--radius: 0.625rem;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:root.dark {
|
|
415
|
+
--background: oklch(0.145 0 0);
|
|
416
|
+
--foreground: oklch(0.985 0 0);
|
|
417
|
+
--card: oklch(0.205 0 0);
|
|
418
|
+
--card-foreground: oklch(0.985 0 0);
|
|
419
|
+
--popover: oklch(0.205 0 0);
|
|
420
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
421
|
+
--primary: oklch(0.922 0 0);
|
|
422
|
+
--primary-foreground: oklch(0.205 0 0);
|
|
423
|
+
--secondary: oklch(0.269 0 0);
|
|
424
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
425
|
+
--muted: oklch(0.269 0 0);
|
|
426
|
+
--muted-foreground: oklch(0.708 0 0);
|
|
427
|
+
--accent: oklch(0.269 0 0);
|
|
428
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
429
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
430
|
+
--border: oklch(1 0 0 / 10%);
|
|
431
|
+
--input: oklch(1 0 0 / 15%);
|
|
432
|
+
--ring: oklch(0.556 0 0);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
@layer base {
|
|
436
|
+
* {
|
|
437
|
+
@apply border-border;
|
|
438
|
+
}
|
|
439
|
+
}"
|
|
440
|
+
`;
|
|
441
|
+
|
|
442
|
+
exports[`Theme generator Tailwind v4 should add the slate theme styles to the global stylesheet 1`] = `
|
|
443
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
444
|
+
|
|
445
|
+
@import "tailwindcss";
|
|
446
|
+
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
447
|
+
|
|
448
|
+
:root {
|
|
449
|
+
--font-sans: ''
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
:root {
|
|
453
|
+
--background: oklch(1 0 0);
|
|
454
|
+
--foreground: oklch(0.129 0.042 264.695);
|
|
455
|
+
--card: oklch(1 0 0);
|
|
456
|
+
--card-foreground: oklch(0.129 0.042 264.695);
|
|
457
|
+
--popover: oklch(1 0 0);
|
|
458
|
+
--popover-foreground: oklch(0.129 0.042 264.695);
|
|
459
|
+
--primary: oklch(0.208 0.042 265.755);
|
|
460
|
+
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
461
|
+
--secondary: oklch(0.968 0.007 247.896);
|
|
462
|
+
--secondary-foreground: oklch(0.208 0.042 265.755);
|
|
463
|
+
--muted: oklch(0.968 0.007 247.896);
|
|
464
|
+
--muted-foreground: oklch(0.554 0.046 257.417);
|
|
465
|
+
--accent: oklch(0.968 0.007 247.896);
|
|
466
|
+
--accent-foreground: oklch(0.208 0.042 265.755);
|
|
467
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
468
|
+
--border: oklch(0.929 0.013 255.508);
|
|
469
|
+
--input: oklch(0.929 0.013 255.508);
|
|
470
|
+
--ring: oklch(0.704 0.04 256.788);
|
|
471
|
+
--radius: 0.625rem;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
:root.dark {
|
|
475
|
+
--background: oklch(0.129 0.042 264.695);
|
|
476
|
+
--foreground: oklch(0.984 0.003 247.858);
|
|
477
|
+
--card: oklch(0.208 0.042 265.755);
|
|
478
|
+
--card-foreground: oklch(0.984 0.003 247.858);
|
|
479
|
+
--popover: oklch(0.208 0.042 265.755);
|
|
480
|
+
--popover-foreground: oklch(0.984 0.003 247.858);
|
|
481
|
+
--primary: oklch(0.929 0.013 255.508);
|
|
482
|
+
--primary-foreground: oklch(0.208 0.042 265.755);
|
|
483
|
+
--secondary: oklch(0.279 0.041 260.031);
|
|
484
|
+
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
485
|
+
--muted: oklch(0.279 0.041 260.031);
|
|
486
|
+
--muted-foreground: oklch(0.704 0.04 256.788);
|
|
487
|
+
--accent: oklch(0.279 0.041 260.031);
|
|
488
|
+
--accent-foreground: oklch(0.984 0.003 247.858);
|
|
489
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
490
|
+
--border: oklch(1 0 0 / 10%);
|
|
491
|
+
--input: oklch(1 0 0 / 15%);
|
|
492
|
+
--ring: oklch(0.551 0.027 264.364);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
@layer base {
|
|
496
|
+
* {
|
|
497
|
+
@apply border-border;
|
|
498
|
+
}
|
|
499
|
+
}"
|
|
500
|
+
`;
|
|
501
|
+
|
|
502
|
+
exports[`Theme generator Tailwind v4 should add the stone theme styles to the global stylesheet 1`] = `
|
|
503
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
504
|
+
|
|
505
|
+
@import "tailwindcss";
|
|
506
|
+
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
507
|
+
|
|
508
|
+
:root {
|
|
509
|
+
--font-sans: ''
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
:root {
|
|
513
|
+
--background: oklch(1 0 0);
|
|
514
|
+
--foreground: oklch(0.147 0.004 49.25);
|
|
515
|
+
--card: oklch(1 0 0);
|
|
516
|
+
--card-foreground: oklch(0.147 0.004 49.25);
|
|
517
|
+
--popover: oklch(1 0 0);
|
|
518
|
+
--popover-foreground: oklch(0.147 0.004 49.25);
|
|
519
|
+
--primary: oklch(0.216 0.006 56.043);
|
|
520
|
+
--primary-foreground: oklch(0.985 0.001 106.423);
|
|
521
|
+
--secondary: oklch(0.97 0.001 106.424);
|
|
522
|
+
--secondary-foreground: oklch(0.216 0.006 56.043);
|
|
523
|
+
--muted: oklch(0.97 0.001 106.424);
|
|
524
|
+
--muted-foreground: oklch(0.553 0.013 58.071);
|
|
525
|
+
--accent: oklch(0.97 0.001 106.424);
|
|
526
|
+
--accent-foreground: oklch(0.216 0.006 56.043);
|
|
527
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
528
|
+
--border: oklch(0.923 0.003 48.717);
|
|
529
|
+
--input: oklch(0.923 0.003 48.717);
|
|
530
|
+
--ring: oklch(0.709 0.01 56.259);
|
|
531
|
+
--radius: 0.625rem;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
:root.dark {
|
|
535
|
+
--background: oklch(0.147 0.004 49.25);
|
|
536
|
+
--foreground: oklch(0.985 0.001 106.423);
|
|
537
|
+
--card: oklch(0.216 0.006 56.043);
|
|
538
|
+
--card-foreground: oklch(0.985 0.001 106.423);
|
|
539
|
+
--popover: oklch(0.216 0.006 56.043);
|
|
540
|
+
--popover-foreground: oklch(0.985 0.001 106.423);
|
|
541
|
+
--primary: oklch(0.923 0.003 48.717);
|
|
542
|
+
--primary-foreground: oklch(0.216 0.006 56.043);
|
|
543
|
+
--secondary: oklch(0.268 0.007 34.298);
|
|
544
|
+
--secondary-foreground: oklch(0.985 0.001 106.423);
|
|
545
|
+
--muted: oklch(0.268 0.007 34.298);
|
|
546
|
+
--muted-foreground: oklch(0.709 0.01 56.259);
|
|
547
|
+
--accent: oklch(0.268 0.007 34.298);
|
|
548
|
+
--accent-foreground: oklch(0.985 0.001 106.423);
|
|
549
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
550
|
+
--border: oklch(1 0 0 / 10%);
|
|
551
|
+
--input: oklch(1 0 0 / 15%);
|
|
552
|
+
--ring: oklch(0.553 0.013 58.071);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
@layer base {
|
|
556
|
+
* {
|
|
557
|
+
@apply border-border;
|
|
558
|
+
}
|
|
559
|
+
}"
|
|
560
|
+
`;
|
|
561
|
+
|
|
562
|
+
exports[`Theme generator Tailwind v4 should add the zinc theme styles to the global stylesheet 1`] = `
|
|
563
|
+
"@import '@angular/cdk/overlay-prebuilt.css';
|
|
564
|
+
|
|
565
|
+
@import "tailwindcss";
|
|
566
|
+
@import "@spartan-ng/brain/hlm-tailwind-preset.css";
|
|
567
|
+
|
|
568
|
+
:root {
|
|
569
|
+
--font-sans: ''
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
:root {
|
|
573
|
+
--background: oklch(1 0 0);
|
|
574
|
+
--foreground: oklch(0.141 0.005 285.823);
|
|
575
|
+
--card: oklch(1 0 0);
|
|
576
|
+
--card-foreground: oklch(0.141 0.005 285.823);
|
|
577
|
+
--popover: oklch(1 0 0);
|
|
578
|
+
--popover-foreground: oklch(0.141 0.005 285.823);
|
|
579
|
+
--primary: oklch(0.21 0.006 285.885);
|
|
580
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
581
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
582
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
583
|
+
--muted: oklch(0.967 0.001 286.375);
|
|
584
|
+
--muted-foreground: oklch(0.552 0.016 285.938);
|
|
585
|
+
--accent: oklch(0.967 0.001 286.375);
|
|
586
|
+
--accent-foreground: oklch(0.21 0.006 285.885);
|
|
587
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
588
|
+
--border: oklch(0.92 0.004 286.32);
|
|
589
|
+
--input: oklch(0.92 0.004 286.32);
|
|
590
|
+
--ring: oklch(0.705 0.015 286.067);
|
|
591
|
+
--radius: 0.625rem;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
:root.dark {
|
|
595
|
+
--background: oklch(0.141 0.005 285.823);
|
|
596
|
+
--foreground: oklch(0.985 0 0);
|
|
597
|
+
--card: oklch(0.21 0.006 285.885);
|
|
598
|
+
--card-foreground: oklch(0.985 0 0);
|
|
599
|
+
--popover: oklch(0.21 0.006 285.885);
|
|
600
|
+
--popover-foreground: oklch(0.985 0 0);
|
|
601
|
+
--primary: oklch(0.92 0.004 286.32);
|
|
602
|
+
--primary-foreground: oklch(0.21 0.006 285.885);
|
|
603
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
604
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
605
|
+
--muted: oklch(0.274 0.006 286.033);
|
|
606
|
+
--muted-foreground: oklch(0.705 0.015 286.067);
|
|
607
|
+
--accent: oklch(0.274 0.006 286.033);
|
|
608
|
+
--accent-foreground: oklch(0.985 0 0);
|
|
609
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
610
|
+
--border: oklch(1 0 0 / 10%);
|
|
611
|
+
--input: oklch(1 0 0 / 15%);
|
|
612
|
+
--ring: oklch(0.552 0.016 285.938);
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
@layer base {
|
|
616
|
+
* {
|
|
617
|
+
@apply border-border;
|
|
618
|
+
}
|
|
619
|
+
}"
|
|
620
|
+
`;
|
|
@@ -4,7 +4,7 @@ exports.default = addThemeToApplicationGenerator;
|
|
|
4
4
|
const enquirer_1 = require("enquirer");
|
|
5
5
|
const get_project_names_1 = require("../../utils/get-project-names");
|
|
6
6
|
const add_theme_to_application_styles_1 = require("./libs/add-theme-to-application-styles");
|
|
7
|
-
const
|
|
7
|
+
const colors_1 = require("./libs/colors");
|
|
8
8
|
async function addThemeToApplicationGenerator(tree) {
|
|
9
9
|
const { projects, projectNames } = (0, get_project_names_1.getProjectsAndNames)(tree);
|
|
10
10
|
const response = await (0, enquirer_1.prompt)({
|
|
@@ -23,15 +23,7 @@ async function addThemeToApplicationGenerator(tree) {
|
|
|
23
23
|
required: true,
|
|
24
24
|
name: 'theme',
|
|
25
25
|
message: 'Choose which theme to apply. You can always re-run this generator and add a custom prefix to add other themes.',
|
|
26
|
-
choices:
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
type: 'select',
|
|
30
|
-
required: true,
|
|
31
|
-
name: 'radius',
|
|
32
|
-
initial: 2,
|
|
33
|
-
message: 'Which corner radius do you want to use with your theme:',
|
|
34
|
-
choices: [...supported_theme_generator_map_1.SupportedRadii],
|
|
26
|
+
choices: colors_1.themeNames,
|
|
35
27
|
},
|
|
36
28
|
{
|
|
37
29
|
type: 'input',
|
|
@@ -41,12 +33,11 @@ async function addThemeToApplicationGenerator(tree) {
|
|
|
41
33
|
{
|
|
42
34
|
type: 'input',
|
|
43
35
|
name: 'prefix',
|
|
44
|
-
message: "Prefix class name applied to your theme's style definitions: e.g., theme-
|
|
36
|
+
message: "Prefix class name applied to your theme's style definitions: e.g., theme-zinc. Leave empty for global theme.",
|
|
45
37
|
},
|
|
46
38
|
]);
|
|
47
39
|
(0, add_theme_to_application_styles_1.addThemeToApplicationStyles)(tree, {
|
|
48
40
|
project: project.name,
|
|
49
|
-
radius: Number.parseFloat(themeOptions.radius),
|
|
50
41
|
theme: themeOptions.theme,
|
|
51
42
|
addCdkStyles: themeOptions.addCdkStyles,
|
|
52
43
|
stylesEntryPoint: themeOptions.stylesEntryPoint,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/generator.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/theme/generator.ts"],"names":[],"mappings":";;AAMA,iDAqDC;AA1DD,uCAAkC;AAClC,qEAAoE;AACpE,4FAAqF;AACrF,0CAAsD;AAEvC,KAAK,UAAU,8BAA8B,CAAC,IAAU;IACtE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,IAAA,uCAAmB,EAAC,IAAI,CAAC,CAAC;IAE7D,MAAM,QAAQ,GAAoB,MAAM,IAAA,iBAAM,EAAC;QAC9C,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,wDAAwD;QACjE,OAAO,EAAE,YAAY;KACrB,CAAC,CAAC;IACH,MAAM,OAAO,GAAqC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAE7E,IAAI,CAAC,OAAO;QAAE,OAAO;IAErB,MAAM,YAAY,GAKd,MAAM,IAAA,iBAAM,EAAC;QAChB;YACC,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,OAAO;YACb,OAAO,EACN,gHAAgH;YACjH,OAAO,EAAE,mBAAU;SACnB;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,kBAAkB;YACxB,OAAO,EACN,yJAAyJ;SAC1J;QACD;YACC,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,OAAO,EACN,8GAA8G;SAC/G;KACD,CAAC,CAAC;IAEH,IAAA,6DAA2B,EAC1B,IAAI,EACJ;QACC,OAAO,EAAE,OAAO,CAAC,IAAI;QACrB,KAAK,EAAE,YAAY,CAAC,KAAK;QACzB,YAAY,EAAE,YAAY,CAAC,YAAY;QACvC,gBAAgB,EAAE,YAAY,CAAC,gBAAgB;QAC/C,MAAM,EAAE,YAAY,CAAC,MAAM;KAC3B,EACD,OAAO,CACP,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { type ProjectConfiguration, type Tree } from '@nx/devkit';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeName } from './colors';
|
|
3
3
|
export interface AddThemeToApplicationStylesOptions {
|
|
4
4
|
project: string;
|
|
5
|
-
theme:
|
|
6
|
-
radius: number;
|
|
5
|
+
theme: ThemeName;
|
|
7
6
|
addCdkStyles: boolean;
|
|
8
7
|
stylesEntryPoint?: string;
|
|
9
8
|
prefix?: string;
|