ps-helix 6.2.3 → 7.0.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.
Files changed (31) hide show
  1. package/CONFIGURATION.md +492 -0
  2. package/README.md +131 -125
  3. package/THEME.md +37 -27
  4. package/TOKENS.md +662 -0
  5. package/fesm2022/ps-helix.mjs +7777 -5714
  6. package/fesm2022/ps-helix.mjs.map +1 -1
  7. package/package.json +18 -8
  8. package/src/lib/styles/base/a11y.css +36 -0
  9. package/src/lib/styles/base/behavior.css +15 -0
  10. package/src/lib/styles/base/global.css +9 -26
  11. package/src/lib/styles/compat.css +580 -0
  12. package/src/lib/styles/themes/dark-auto.css +315 -0
  13. package/src/lib/styles/themes/dark.css +259 -157
  14. package/src/lib/styles/themes/light.css +236 -221
  15. package/src/lib/styles/tokens/animations.tokens.css +30 -21
  16. package/src/lib/styles/tokens/breakpoints.tokens.css +22 -6
  17. package/src/lib/styles/tokens/effects.tokens.css +25 -25
  18. package/src/lib/styles/tokens/layout.tokens.css +32 -32
  19. package/src/lib/styles/tokens/sizing.tokens.css +87 -75
  20. package/src/lib/styles/tokens/spacing.tokens.css +18 -18
  21. package/src/lib/styles/tokens/typography.tokens.css +34 -34
  22. package/src/lib/styles/utilities/animations.utils.css +18 -18
  23. package/src/lib/styles/utilities/colors.utils.css +196 -196
  24. package/src/lib/styles/utilities/focus.utils.css +13 -13
  25. package/src/lib/styles/utilities/layout.utils.css +9 -9
  26. package/src/lib/styles/utilities/responsive.utils.css +49 -49
  27. package/src/lib/styles/utilities/spacing.utils.css +96 -96
  28. package/src/lib/styles/utilities/typography.utils.css +25 -25
  29. package/styles-full.css +25 -0
  30. package/styles.css +17 -8
  31. package/types/ps-helix.d.ts +3251 -1724
@@ -0,0 +1,315 @@
1
+ /*
2
+ * Generated by scripts/generate-auto-dark.mjs — do not edit.
3
+ *
4
+ * The dark tokens again, behind the OS preference, so the stylesheet is correct without
5
+ * PshThemeService and on the SSR first paint. `:not([data-theme="light"])` means an explicit
6
+ * choice by the consumer always beats the OS.
7
+ *
8
+ * Edit themes/dark.css; `npm run docs:auto-dark` regenerates this and
9
+ * `npm run verify:auto-dark` fails CI if the two have drifted.
10
+ */
11
+ @media (prefers-color-scheme: dark) {
12
+ :root:not([data-theme="light"]) {
13
+ /* Surface Colors */
14
+ --psh-surface-0: #0a0d16;
15
+ --psh-surface-50: #141a27;
16
+ --psh-surface-100: #1e293b;
17
+ --psh-surface-200: #334155;
18
+ --psh-surface-300: #475569;
19
+ --psh-surface-400: #64748b;
20
+ --psh-surface-500: #94a3b8;
21
+ --psh-surface-600: #cbd5e1;
22
+ --psh-surface-700: #e2e8f0;
23
+ --psh-surface-800: #f1f5f9;
24
+ --psh-surface-900: #f8fafc;
25
+ --psh-surface-900-rgb: 248, 250, 252;
26
+
27
+ /* Teal Palette */
28
+ --psh-teal-50: #134E4A;
29
+ --psh-teal-100: #115E59;
30
+ --psh-teal-200: #0F766E;
31
+ --psh-teal-300: #0D9488;
32
+ --psh-teal-400: #14B8A6;
33
+ --psh-teal-500: #2DD4BF;
34
+ --psh-teal-600: #5EEAD4;
35
+ --psh-teal-700: #99F6E4;
36
+ --psh-teal-800: #CCFBF1;
37
+ --psh-teal-900: #F0FDFA;
38
+
39
+ /* Emerald Palette */
40
+ --psh-emerald-50: #064E3B;
41
+ --psh-emerald-100: #065F46;
42
+ --psh-emerald-200: #047857;
43
+ --psh-emerald-300: #059669;
44
+ --psh-emerald-400: #10B981;
45
+ --psh-emerald-500: #34D399;
46
+ --psh-emerald-600: #6EE7B7;
47
+ --psh-emerald-700: #A7F3D0;
48
+ --psh-emerald-800: #D1FAE5;
49
+ --psh-emerald-900: #ECFDF5;
50
+
51
+ /* Indigo Palette */
52
+ --psh-indigo-50: #312E81;
53
+ --psh-indigo-100: #3730A3;
54
+ --psh-indigo-200: #4338CA;
55
+ --psh-indigo-300: #4F46E5;
56
+ --psh-indigo-400: #6366F1;
57
+ --psh-indigo-500: #818CF8;
58
+ --psh-indigo-600: #A5B4FC;
59
+ --psh-indigo-700: #C7D2FE;
60
+ --psh-indigo-800: #E0E7FF;
61
+ --psh-indigo-900: #EEF2FF;
62
+
63
+ /* Purple Palette */
64
+ --psh-purple-50: #581C87;
65
+ --psh-purple-100: #6B21A8;
66
+ --psh-purple-200: #7C3AED;
67
+ --psh-purple-300: #9333EA;
68
+ --psh-purple-400: #A855F7;
69
+ --psh-purple-500: #C084FC;
70
+ --psh-purple-600: #D8B4FE;
71
+ --psh-purple-700: #E9D5FF;
72
+ --psh-purple-800: #F3E8FF;
73
+ --psh-purple-900: #FAF5FF;
74
+
75
+ /* Fuchsia Palette */
76
+ --psh-fuchsia-50: #701A75;
77
+ --psh-fuchsia-100: #86198F;
78
+ --psh-fuchsia-200: #A21CAF;
79
+ --psh-fuchsia-300: #C026D3;
80
+ --psh-fuchsia-400: #D946EF;
81
+ --psh-fuchsia-500: #E879F9;
82
+ --psh-fuchsia-600: #F0ABFC;
83
+ --psh-fuchsia-700: #F5D0FE;
84
+ --psh-fuchsia-800: #FAE8FF;
85
+ --psh-fuchsia-900: #FDF4FF;
86
+
87
+ /* Rose Palette */
88
+ --psh-rose-50: #881337;
89
+ --psh-rose-100: #9F1239;
90
+ --psh-rose-200: #BE123C;
91
+ --psh-rose-300: #E11D48;
92
+ --psh-rose-400: #F43F5E;
93
+ --psh-rose-500: #FB7185;
94
+ --psh-rose-600: #FDA4AF;
95
+ --psh-rose-700: #FECDD3;
96
+ --psh-rose-800: #FFE4E6;
97
+ --psh-rose-900: #FFF1F2;
98
+
99
+ /* Amber Palette */
100
+ --psh-amber-50: #78350F;
101
+ --psh-amber-100: #92400E;
102
+ --psh-amber-200: #B45309;
103
+ --psh-amber-300: #D97706;
104
+ --psh-amber-400: #F59E0B;
105
+ --psh-amber-500: #FBBF24;
106
+ --psh-amber-600: #FCD34D;
107
+ --psh-amber-700: #FDE68A;
108
+ --psh-amber-800: #FEF3C7;
109
+ --psh-amber-900: #FFFBEB;
110
+
111
+ /* Pink Palette */
112
+ --psh-pink-50: #831843;
113
+ --psh-pink-100: #9D174D;
114
+ --psh-pink-200: #BE185D;
115
+ --psh-pink-300: #DB2777;
116
+ --psh-pink-400: #EC4899;
117
+ --psh-pink-500: #F472B6;
118
+ --psh-pink-600: #F9A8D4;
119
+ --psh-pink-700: #FBCFE8;
120
+ --psh-pink-800: #FCE7F3;
121
+ --psh-pink-900: #FDF2F8;
122
+
123
+ /* ------------------------------------------------------------------------
124
+ These seven families were defined in light.css but never inverted here, so
125
+ --psh-blue-500, --psh-red-500 and friends kept their light values in dark mode —
126
+ breaking contrast for every consumer of the raw palette and of the
127
+ .psh-bg-red-500 / .psh-text-blue-600 utilities. Inverted on the same rule as
128
+ the eight families above: dark-50 = light-900 … dark-900 = light-50.
129
+ ------------------------------------------------------------------------ */
130
+
131
+ /* Blue Palette */
132
+ --psh-blue-50: #312E81;
133
+ --psh-blue-100: #3730A3;
134
+ --psh-blue-200: #4338CA;
135
+ --psh-blue-300: #4F46E5;
136
+ --psh-blue-400: #6366F1;
137
+ --psh-blue-500: #818CF8;
138
+ --psh-blue-600: #A5B4FC;
139
+ --psh-blue-700: #C7D2FE;
140
+ --psh-blue-800: #E0E7FF;
141
+ --psh-blue-900: #EEF2FF;
142
+
143
+ /* Red Palette */
144
+ --psh-red-50: #7F1D1D;
145
+ --psh-red-100: #991B1B;
146
+ --psh-red-200: #B91C1C;
147
+ --psh-red-300: #DC2626;
148
+ --psh-red-400: #EF4444;
149
+ --psh-red-500: #F87171;
150
+ --psh-red-600: #FCA5A5;
151
+ --psh-red-700: #FECACA;
152
+ --psh-red-800: #FEE2E2;
153
+ --psh-red-900: #FEF2F2;
154
+
155
+ /* Green Palette */
156
+ --psh-green-50: #14532D;
157
+ --psh-green-100: #166534;
158
+ --psh-green-200: #15803D;
159
+ --psh-green-300: #16A34A;
160
+ --psh-green-400: #22C55E;
161
+ --psh-green-500: #4ADE80;
162
+ --psh-green-600: #86EFAC;
163
+ --psh-green-700: #BBF7D0;
164
+ --psh-green-800: #DCFCE7;
165
+ --psh-green-900: #F0FDF4;
166
+
167
+ /* Orange Palette */
168
+ --psh-orange-50: #7C2D12;
169
+ --psh-orange-100: #9A3412;
170
+ --psh-orange-200: #C2410C;
171
+ --psh-orange-300: #EA580C;
172
+ --psh-orange-400: #F97316;
173
+ --psh-orange-500: #FB923C;
174
+ --psh-orange-600: #FDBA74;
175
+ --psh-orange-700: #FED7AA;
176
+ --psh-orange-800: #FFEDD5;
177
+ --psh-orange-900: #FFF7ED;
178
+
179
+ /* Yellow Palette */
180
+ --psh-yellow-50: #713F12;
181
+ --psh-yellow-100: #854D0E;
182
+ --psh-yellow-200: #A16207;
183
+ --psh-yellow-300: #CA8A04;
184
+ --psh-yellow-400: #EAB308;
185
+ --psh-yellow-500: #FACC15;
186
+ --psh-yellow-600: #FDE047;
187
+ --psh-yellow-700: #FEF08A;
188
+ --psh-yellow-800: #FEF9C3;
189
+ --psh-yellow-900: #FEFCE8;
190
+
191
+ /* Violet Palette */
192
+ --psh-violet-50: #4C1D95;
193
+ --psh-violet-100: #5B21B6;
194
+ --psh-violet-200: #6D28D9;
195
+ --psh-violet-300: #7C3AED;
196
+ --psh-violet-400: #8B5CF6;
197
+ --psh-violet-500: #A78BFA;
198
+ --psh-violet-600: #C4B5FD;
199
+ --psh-violet-700: #DDD6FE;
200
+ --psh-violet-800: #EDE9FE;
201
+ --psh-violet-900: #F5F3FF;
202
+
203
+ /* Cyan Palette */
204
+ --psh-cyan-50: #164E63;
205
+ --psh-cyan-100: #155E75;
206
+ --psh-cyan-200: #0E7490;
207
+ --psh-cyan-300: #0891B2;
208
+ --psh-cyan-400: #06B6D4;
209
+ --psh-cyan-500: #22D3EE;
210
+ --psh-cyan-600: #67E8F9;
211
+ --psh-cyan-700: #A5F3FC;
212
+ --psh-cyan-800: #CFFAFE;
213
+ --psh-cyan-900: #ECFEFF;
214
+
215
+ /* Functional Colors */
216
+ --psh-surface-ground: var(--psh-surface-0);
217
+ --psh-surface-section: var(--psh-surface-50);
218
+
219
+ /* Alert Colors */
220
+ --psh-alert-info-bg: rgba(107, 95, 227, 0.15);
221
+ --psh-alert-info-border-color: #6B5FE3;
222
+ --psh-alert-info-text-color: #A5B4FC;
223
+
224
+ --psh-surface-card: var(--psh-surface-50);
225
+ --psh-surface-overlay: var(--psh-surface-200);
226
+ --psh-surface-border: var(--psh-surface-300);
227
+ --psh-surface-hover: rgba(255, 255, 255, 0.05);
228
+
229
+ /* Text Colors */
230
+ --psh-text-color: rgba(255, 255, 255, 0.95);
231
+ --psh-text-color-secondary: rgba(255, 255, 255, 0.75);
232
+ --psh-text-color-tertiary: rgba(255, 255, 255, 0.6);
233
+ --psh-text-color-disabled: rgba(255, 255, 255, 0.4);
234
+
235
+ /* Text on colored backgrounds */
236
+ --psh-text-on-primary: #FFFFFF;
237
+ --psh-text-on-secondary: #FFFFFF;
238
+ --psh-text-on-success: #000000;
239
+ --psh-text-on-warning: #000000;
240
+ --psh-text-on-danger: #000000;
241
+ --psh-text-on-info: #000000;
242
+ /* Neutral is a light slate in dark mode, so its text is dark: white on #9AA0B0 is
243
+ about 2.5:1, well under the 4.5:1 floor. */
244
+ --psh-text-on-neutral: #000000;
245
+ --psh-text-on-surface: var(--psh-text-color);
246
+ --psh-text-on-dark: #FFFFFF;
247
+ --psh-text-on-light: #0a0d16;
248
+
249
+ /* Primary Colors - Use customer context with fallbacks (lighter shades for dark theme contrast) */
250
+ --psh-primary-color: var(--psh-customer-primary-color, var(--customer-primary-color, #8178F7));
251
+ --psh-primary-color-light: var(--psh-customer-primary-color-light, var(--customer-primary-color-light, #8A7FED));
252
+ --psh-primary-color-lighter: var(--psh-customer-primary-color-lighter, var(--customer-primary-color-lighter, #A99FF7));
253
+ --psh-primary-color-dark: var(--psh-customer-primary-color-dark, var(--customer-primary-color-dark, #4A3FD9));
254
+ --psh-primary-color-darker: var(--psh-customer-primary-color-darker, var(--customer-primary-color-darker, #3730A3));
255
+ --psh-primary-color-text: var(--psh-customer-primary-color-text, var(--customer-primary-color-text, #FFFFFF));
256
+ --psh-primary-color-rgb: var(--psh-customer-primary-color-rgb, var(--customer-primary-color-rgb, 107, 95, 227));
257
+
258
+ /* Primary Gradients - Automatically adapt to custom colors */
259
+ --psh-primary-gradient: linear-gradient(to right, var(--psh-primary-color), var(--psh-primary-color-light));
260
+ --psh-primary-gradient-hover: linear-gradient(to right, var(--psh-primary-color), var(--psh-primary-color-lighter));
261
+ --psh-primary-gradient-reversed: linear-gradient(to left, var(--psh-primary-color-dark), var(--psh-primary-color-light));
262
+
263
+ /* Secondary Colors - Use customer context with fallbacks (gray tones for dark theme) */
264
+ --psh-secondary-color: var(--psh-customer-secondary-color, var(--customer-secondary-color, #5B5A5A));
265
+ --psh-secondary-color-light: var(--psh-customer-secondary-color-light, var(--customer-secondary-color-light, #838181));
266
+ --psh-secondary-color-lighter: var(--psh-customer-secondary-color-lighter, var(--customer-secondary-color-lighter, #9E9D9D));
267
+ --psh-secondary-color-dark: var(--psh-customer-secondary-color-dark, var(--customer-secondary-color-dark, #4E4D4D));
268
+ --psh-secondary-color-darker: var(--psh-customer-secondary-color-darker, var(--customer-secondary-color-darker, #3D3838));
269
+ --psh-secondary-color-text: var(--psh-customer-secondary-color-text, var(--customer-secondary-color-text, #FFFFFF));
270
+ --psh-secondary-color-rgb: var(--psh-customer-secondary-color-rgb, var(--customer-secondary-color-rgb, 48, 48, 48));
271
+
272
+ /* Success Colors */
273
+ /* No -light / -dark variants: light.css defines those only for primary and secondary,
274
+ and these three had zero consumers. A token that exists in one theme only is a
275
+ contract the other theme cannot honour. */
276
+ --psh-success-color: #12B94F;
277
+ --psh-success-color-rgb: 18, 185, 79;
278
+ --psh-success-color-text: #000000;
279
+
280
+ /* Info and Neutral Colors — see light.css for why these exist. */
281
+ --psh-info-color: #5B9BFF;
282
+ --psh-info-color-rgb: 91, 155, 255;
283
+ --psh-info-color-text: #000000;
284
+
285
+ --psh-neutral-color: #9AA0B0;
286
+ --psh-neutral-color-rgb: 154, 160, 176;
287
+ --psh-neutral-color-text: #000000;
288
+
289
+ /* Warning Colors */
290
+ --psh-warning-color: #E07518;
291
+ --psh-warning-color-rgb: 224, 117, 24;
292
+ --psh-warning-color-text: #000000;
293
+
294
+ /* Danger Colors */
295
+ --psh-danger-color: #FF4040;
296
+ --psh-danger-color-rgb: 255, 64, 64;
297
+ --psh-danger-color-text: #000000;
298
+
299
+ /* Chart Colors */
300
+ --psh-chart-text-color: var(--psh-text-color);
301
+ --psh-chart-grid-color: var(--psh-surface-border);
302
+ --psh-chart-primary-color: var(--psh-primary-color);
303
+ --psh-chart-secondary-color: var(--psh-secondary-color);
304
+ --psh-chart-success-color: var(--psh-success-color);
305
+ --psh-chart-warning-color: var(--psh-warning-color);
306
+ --psh-chart-danger-color: var(--psh-danger-color);
307
+ --psh-chart-tooltip-background: var(--psh-surface-card);
308
+ --psh-chart-tooltip-text: var(--psh-text-color);
309
+ --psh-chart-legend-text: var(--psh-text-color);
310
+
311
+ /* Background */
312
+ --psh-background-opacity: 0.3;
313
+ --psh-body-gradient: radial-gradient(325.86% 141.42% at 100% 0%, #1A1F33 0%, #0A0D16 100%);
314
+ }
315
+ }