@polyxd/react 0.2.2 → 0.4.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 (75) hide show
  1. package/NOTICE +45 -0
  2. package/README.md +15 -2
  3. package/dist/components/avatar.js +5 -36
  4. package/dist/components/avatar.js.map +1 -1
  5. package/dist/components/chart.js +4 -87
  6. package/dist/components/chart.js.map +1 -1
  7. package/dist/components/content.d.ts +0 -8
  8. package/dist/components/content.js +27 -349
  9. package/dist/components/content.js.map +1 -1
  10. package/dist/components/filter.js +1 -1
  11. package/dist/components/filter.js.map +1 -1
  12. package/dist/components/flow.js +11 -85
  13. package/dist/components/flow.js.map +1 -1
  14. package/dist/components/index.js +6 -1
  15. package/dist/components/index.js.map +1 -1
  16. package/dist/components/inputs.d.ts +2 -12
  17. package/dist/components/inputs.js +5 -47
  18. package/dist/components/inputs.js.map +1 -1
  19. package/dist/components/marks.js +5 -20
  20. package/dist/components/marks.js.map +1 -1
  21. package/dist/components/navigation.d.ts +2 -0
  22. package/dist/components/navigation.js +31 -19
  23. package/dist/components/navigation.js.map +1 -1
  24. package/dist/components/pickers.js +12 -160
  25. package/dist/components/pickers.js.map +1 -1
  26. package/dist/components/shell.d.ts +41 -0
  27. package/dist/components/shell.js +190 -0
  28. package/dist/components/shell.js.map +1 -0
  29. package/dist/components/split.d.ts +11 -0
  30. package/dist/components/split.js +85 -0
  31. package/dist/components/split.js.map +1 -0
  32. package/dist/components/structure.d.ts +8 -0
  33. package/dist/components/structure.js +12 -1
  34. package/dist/components/structure.js.map +1 -1
  35. package/dist/components/table.js +10 -17
  36. package/dist/components/table.js.map +1 -1
  37. package/dist/components/tree.js +6 -57
  38. package/dist/components/tree.js.map +1 -1
  39. package/dist/context.d.ts +34 -46
  40. package/dist/context.js +10 -7
  41. package/dist/context.js.map +1 -1
  42. package/dist/data.d.ts +2 -26
  43. package/dist/data.js +2 -51
  44. package/dist/data.js.map +1 -1
  45. package/dist/format.d.ts +2 -14
  46. package/dist/format.js +2 -69
  47. package/dist/format.js.map +1 -1
  48. package/dist/frame.d.ts +19 -0
  49. package/dist/frame.js +21 -0
  50. package/dist/frame.js.map +1 -0
  51. package/dist/index.d.ts +2 -1
  52. package/dist/index.js +2 -1
  53. package/dist/index.js.map +1 -1
  54. package/dist/skeleton.d.ts +2 -1
  55. package/dist/skeleton.js +9 -25
  56. package/dist/skeleton.js.map +1 -1
  57. package/dist/surface.d.ts +7 -3
  58. package/dist/surface.js +15 -13
  59. package/dist/surface.js.map +1 -1
  60. package/package.json +11 -6
  61. package/preview/polyxd.css +2 -0
  62. package/preview/polyxd.js +56 -0
  63. package/src/styles.css +623 -8
  64. package/themes/brutalist.css +300 -0
  65. package/themes/civic.css +300 -0
  66. package/themes/editorial.css +300 -0
  67. package/themes/finance.css +300 -0
  68. package/themes/glass.css +300 -0
  69. package/themes/health.css +300 -0
  70. package/themes/mono.css +300 -0
  71. package/themes/neon.css +300 -0
  72. package/themes/pastel.css +300 -0
  73. package/themes/sketch.css +356 -0
  74. package/themes/terminal.css +300 -0
  75. package/themes/wireframe.css +328 -0
@@ -0,0 +1,300 @@
1
+ /* Generated by @polyxd/react scripts/build-themes.ts from the brutalist pack. Do not edit. */
2
+
3
+ [data-pxd-theme="brutalist"]:not([data-pxd-mode]),
4
+ [data-pxd-theme="brutalist"][data-pxd-mode="light"] {
5
+ --pxd-color-surface-default: #ffffff;
6
+ --pxd-color-surface-subtle: #fff6b3;
7
+ --pxd-color-surface-raised: #ffffff;
8
+ --pxd-color-surface-overlay: #ffe600;
9
+ --pxd-color-surface-inverse: #000000;
10
+ --pxd-color-scrim: rgba(0, 0, 0, 0.7);
11
+ --pxd-color-text-default: #000000;
12
+ --pxd-color-text-muted: #333333;
13
+ --pxd-color-text-inverse: #ffe600;
14
+ --pxd-color-text-link: #1400ff;
15
+ --pxd-color-border-default: #000000;
16
+ --pxd-color-border-strong: #000000;
17
+ --pxd-color-border-focus: #1400ff;
18
+ --pxd-color-action-primary-background: #000000;
19
+ --pxd-color-action-primary-foreground: #ffe600;
20
+ --pxd-color-action-secondary-background: #ffe600;
21
+ --pxd-color-action-secondary-foreground: #000000;
22
+ --pxd-color-action-secondary-border: #000000;
23
+ --pxd-color-action-danger-background: #ff2d2d;
24
+ --pxd-color-action-danger-foreground: #000000;
25
+ --pxd-color-selection-background: #ffe600;
26
+ --pxd-color-selection-foreground: #000000;
27
+ --pxd-color-status-info-background: #cfe8ff;
28
+ --pxd-color-status-info-foreground: #000000;
29
+ --pxd-color-status-info-emphasis: #1400ff;
30
+ --pxd-color-status-success-background: #c8f7c5;
31
+ --pxd-color-status-success-foreground: #000000;
32
+ --pxd-color-status-success-emphasis: #007a1f;
33
+ --pxd-color-status-warning-background: #ffe600;
34
+ --pxd-color-status-warning-foreground: #000000;
35
+ --pxd-color-status-warning-emphasis: #7a6100;
36
+ --pxd-color-status-danger-background: #ffc9c9;
37
+ --pxd-color-status-danger-foreground: #000000;
38
+ --pxd-color-status-danger-emphasis: #d10000;
39
+ --pxd-color-data-categorical-1: #000000;
40
+ --pxd-color-data-categorical-2: #1400ff;
41
+ --pxd-color-data-categorical-3: #d10000;
42
+ --pxd-color-data-categorical-4: #007a1f;
43
+ --pxd-color-data-categorical-5: #7a6100;
44
+ --pxd-color-data-categorical-6: #c400a0;
45
+ --pxd-color-data-positive: #007a1f;
46
+ --pxd-color-data-negative: #d10000;
47
+ --pxd-color-data-neutral: #5c5c5c;
48
+ --pxd-type-title-page-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
49
+ --pxd-type-title-page-size: 40px;
50
+ --pxd-type-title-page-weight: 700;
51
+ --pxd-type-title-page-line-height: 1.05;
52
+ --pxd-type-title-page-letter-spacing: -1px;
53
+ --pxd-type-title-section-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
54
+ --pxd-type-title-section-size: 26px;
55
+ --pxd-type-title-section-weight: 700;
56
+ --pxd-type-title-section-line-height: 1.15;
57
+ --pxd-type-title-section-letter-spacing: -0.5px;
58
+ --pxd-type-title-item-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
59
+ --pxd-type-title-item-size: 19px;
60
+ --pxd-type-title-item-weight: 700;
61
+ --pxd-type-title-item-line-height: 1.25;
62
+ --pxd-type-title-item-letter-spacing: 0px;
63
+ --pxd-type-body-default-family: Arial, Helvetica, sans-serif;
64
+ --pxd-type-body-default-size: 16px;
65
+ --pxd-type-body-default-weight: 400;
66
+ --pxd-type-body-default-line-height: 1.5;
67
+ --pxd-type-body-default-letter-spacing: 0px;
68
+ --pxd-type-body-small-family: Arial, Helvetica, sans-serif;
69
+ --pxd-type-body-small-size: 14px;
70
+ --pxd-type-body-small-weight: 400;
71
+ --pxd-type-body-small-line-height: 1.45;
72
+ --pxd-type-body-small-letter-spacing: 0px;
73
+ --pxd-type-label-default-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
74
+ --pxd-type-label-default-size: 13px;
75
+ --pxd-type-label-default-weight: 700;
76
+ --pxd-type-label-default-line-height: 1.3;
77
+ --pxd-type-label-default-letter-spacing: 0.5px;
78
+ --pxd-type-label-small-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
79
+ --pxd-type-label-small-size: 11px;
80
+ --pxd-type-label-small-weight: 700;
81
+ --pxd-type-label-small-line-height: 1.3;
82
+ --pxd-type-label-small-letter-spacing: 0.8px;
83
+ --pxd-type-numeric-display-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
84
+ --pxd-type-numeric-display-size: 40px;
85
+ --pxd-type-numeric-display-weight: 700;
86
+ --pxd-type-numeric-display-line-height: 1;
87
+ --pxd-type-numeric-display-letter-spacing: -1px;
88
+ --pxd-space-inset-compact: 8px;
89
+ --pxd-space-inset-default: 16px;
90
+ --pxd-space-inset-comfortable: 24px;
91
+ --pxd-space-stack-tight: 4px;
92
+ --pxd-space-stack-default: 8px;
93
+ --pxd-space-stack-loose: 16px;
94
+ --pxd-space-stack-section: 40px;
95
+ --pxd-space-inline-tight: 4px;
96
+ --pxd-space-inline-default: 8px;
97
+ --pxd-space-inline-loose: 16px;
98
+ --pxd-size-target-min: 44px;
99
+ --pxd-size-icon-small: 16px;
100
+ --pxd-size-icon-default: 20px;
101
+ --pxd-radius-small: 0px;
102
+ --pxd-radius-control: 0px;
103
+ --pxd-radius-default: 0px;
104
+ --pxd-radius-large: 0px;
105
+ --pxd-radius-full: 0px;
106
+ --pxd-border-width-default: 2px;
107
+ --pxd-border-width-strong: 3px;
108
+ --pxd-focus-ring-width: 3px;
109
+ --pxd-focus-ring-offset: 2px;
110
+ --pxd-measure-max: 60;
111
+ --pxd-opacity-state-hover: 0.1;
112
+ --pxd-opacity-state-pressed: 0.2;
113
+ --pxd-opacity-state-focus: 0.2;
114
+ --pxd-opacity-state-disabled: 0.4;
115
+ --pxd-shadow-raised: 4px 4px 0px 0px #000000;
116
+ --pxd-shadow-overlay: 8px 8px 0px 0px #000000;
117
+ --pxd-motion-duration-instant: 0ms;
118
+ --pxd-motion-duration-short: 0ms;
119
+ --pxd-motion-duration-medium: 80ms;
120
+ --pxd-motion-duration-long: 120ms;
121
+ --pxd-motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
122
+ --pxd-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
123
+ --pxd-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
124
+
125
+ /* shadcn/ui variable names, so shadcn components follow this pack too */
126
+ --background: var(--pxd-color-surface-default);
127
+ --foreground: var(--pxd-color-text-default);
128
+ --card: var(--pxd-color-surface-raised);
129
+ --card-foreground: var(--pxd-color-text-default);
130
+ --popover: var(--pxd-color-surface-overlay);
131
+ --popover-foreground: var(--pxd-color-text-default);
132
+ --primary: var(--pxd-color-action-primary-background);
133
+ --primary-foreground: var(--pxd-color-action-primary-foreground);
134
+ --secondary: var(--pxd-color-action-secondary-background);
135
+ --secondary-foreground: var(--pxd-color-action-secondary-foreground);
136
+ --muted: var(--pxd-color-surface-subtle);
137
+ --muted-foreground: var(--pxd-color-text-muted);
138
+ --accent: var(--pxd-color-selection-background);
139
+ --accent-foreground: var(--pxd-color-selection-foreground);
140
+ --destructive: var(--pxd-color-action-danger-background);
141
+ --border: var(--pxd-color-border-default);
142
+ --input: var(--pxd-color-border-strong);
143
+ --ring: var(--pxd-color-border-focus);
144
+ --radius: var(--pxd-radius-default);
145
+ --chart-1: var(--pxd-color-data-categorical-1);
146
+ --chart-2: var(--pxd-color-data-categorical-2);
147
+ --chart-3: var(--pxd-color-data-categorical-3);
148
+ --chart-4: var(--pxd-color-data-categorical-4);
149
+ --chart-5: var(--pxd-color-data-categorical-5);
150
+ color-scheme: light;
151
+ }
152
+
153
+ [data-pxd-theme="brutalist"][data-pxd-mode="dark"] {
154
+ --pxd-color-surface-default: #111111;
155
+ --pxd-color-surface-subtle: #3a3200;
156
+ --pxd-color-surface-raised: #111111;
157
+ --pxd-color-surface-overlay: #1a1a1a;
158
+ --pxd-color-surface-inverse: #ffe600;
159
+ --pxd-color-scrim: rgba(0, 0, 0, 0.8);
160
+ --pxd-color-text-default: #ffffff;
161
+ --pxd-color-text-muted: #cfcfcf;
162
+ --pxd-color-text-inverse: #111111;
163
+ --pxd-color-text-link: #8fb1ff;
164
+ --pxd-color-border-default: #ffffff;
165
+ --pxd-color-border-strong: #ffffff;
166
+ --pxd-color-border-focus: #ffe600;
167
+ --pxd-color-action-primary-background: #ffe600;
168
+ --pxd-color-action-primary-foreground: #111111;
169
+ --pxd-color-action-secondary-background: #111111;
170
+ --pxd-color-action-secondary-foreground: #ffffff;
171
+ --pxd-color-action-secondary-border: #ffffff;
172
+ --pxd-color-action-danger-background: #ff5c5c;
173
+ --pxd-color-action-danger-foreground: #111111;
174
+ --pxd-color-selection-background: #ffe600;
175
+ --pxd-color-selection-foreground: #111111;
176
+ --pxd-color-status-info-background: #0f2a5c;
177
+ --pxd-color-status-info-foreground: #cfe0ff;
178
+ --pxd-color-status-info-emphasis: #8fb1ff;
179
+ --pxd-color-status-success-background: #0d3d16;
180
+ --pxd-color-status-success-foreground: #c8f7c5;
181
+ --pxd-color-status-success-emphasis: #4fdc6a;
182
+ --pxd-color-status-warning-background: #3a3200;
183
+ --pxd-color-status-warning-foreground: #ffe600;
184
+ --pxd-color-status-warning-emphasis: #ffe600;
185
+ --pxd-color-status-danger-background: #4d0f0f;
186
+ --pxd-color-status-danger-foreground: #ffc9c9;
187
+ --pxd-color-status-danger-emphasis: #ff5c5c;
188
+ --pxd-color-data-categorical-1: #ffe600;
189
+ --pxd-color-data-categorical-2: #8fb1ff;
190
+ --pxd-color-data-categorical-3: #ff5c5c;
191
+ --pxd-color-data-categorical-4: #4fdc6a;
192
+ --pxd-color-data-categorical-5: #ff9ee6;
193
+ --pxd-color-data-categorical-6: #ffffff;
194
+ --pxd-color-data-positive: #4fdc6a;
195
+ --pxd-color-data-negative: #ff5c5c;
196
+ --pxd-color-data-neutral: #9a9a9a;
197
+ --pxd-type-title-page-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
198
+ --pxd-type-title-page-size: 40px;
199
+ --pxd-type-title-page-weight: 700;
200
+ --pxd-type-title-page-line-height: 1.05;
201
+ --pxd-type-title-page-letter-spacing: -1px;
202
+ --pxd-type-title-section-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
203
+ --pxd-type-title-section-size: 26px;
204
+ --pxd-type-title-section-weight: 700;
205
+ --pxd-type-title-section-line-height: 1.15;
206
+ --pxd-type-title-section-letter-spacing: -0.5px;
207
+ --pxd-type-title-item-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
208
+ --pxd-type-title-item-size: 19px;
209
+ --pxd-type-title-item-weight: 700;
210
+ --pxd-type-title-item-line-height: 1.25;
211
+ --pxd-type-title-item-letter-spacing: 0px;
212
+ --pxd-type-body-default-family: Arial, Helvetica, sans-serif;
213
+ --pxd-type-body-default-size: 16px;
214
+ --pxd-type-body-default-weight: 400;
215
+ --pxd-type-body-default-line-height: 1.5;
216
+ --pxd-type-body-default-letter-spacing: 0px;
217
+ --pxd-type-body-small-family: Arial, Helvetica, sans-serif;
218
+ --pxd-type-body-small-size: 14px;
219
+ --pxd-type-body-small-weight: 400;
220
+ --pxd-type-body-small-line-height: 1.45;
221
+ --pxd-type-body-small-letter-spacing: 0px;
222
+ --pxd-type-label-default-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
223
+ --pxd-type-label-default-size: 13px;
224
+ --pxd-type-label-default-weight: 700;
225
+ --pxd-type-label-default-line-height: 1.3;
226
+ --pxd-type-label-default-letter-spacing: 0.5px;
227
+ --pxd-type-label-small-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
228
+ --pxd-type-label-small-size: 11px;
229
+ --pxd-type-label-small-weight: 700;
230
+ --pxd-type-label-small-line-height: 1.3;
231
+ --pxd-type-label-small-letter-spacing: 0.8px;
232
+ --pxd-type-numeric-display-family: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
233
+ --pxd-type-numeric-display-size: 40px;
234
+ --pxd-type-numeric-display-weight: 700;
235
+ --pxd-type-numeric-display-line-height: 1;
236
+ --pxd-type-numeric-display-letter-spacing: -1px;
237
+ --pxd-space-inset-compact: 8px;
238
+ --pxd-space-inset-default: 16px;
239
+ --pxd-space-inset-comfortable: 24px;
240
+ --pxd-space-stack-tight: 4px;
241
+ --pxd-space-stack-default: 8px;
242
+ --pxd-space-stack-loose: 16px;
243
+ --pxd-space-stack-section: 40px;
244
+ --pxd-space-inline-tight: 4px;
245
+ --pxd-space-inline-default: 8px;
246
+ --pxd-space-inline-loose: 16px;
247
+ --pxd-size-target-min: 44px;
248
+ --pxd-size-icon-small: 16px;
249
+ --pxd-size-icon-default: 20px;
250
+ --pxd-radius-small: 0px;
251
+ --pxd-radius-control: 0px;
252
+ --pxd-radius-default: 0px;
253
+ --pxd-radius-large: 0px;
254
+ --pxd-radius-full: 0px;
255
+ --pxd-border-width-default: 2px;
256
+ --pxd-border-width-strong: 3px;
257
+ --pxd-focus-ring-width: 3px;
258
+ --pxd-focus-ring-offset: 2px;
259
+ --pxd-measure-max: 60;
260
+ --pxd-opacity-state-hover: 0.1;
261
+ --pxd-opacity-state-pressed: 0.2;
262
+ --pxd-opacity-state-focus: 0.2;
263
+ --pxd-opacity-state-disabled: 0.4;
264
+ --pxd-shadow-raised: 4px 4px 0px 0px #ffffff;
265
+ --pxd-shadow-overlay: 8px 8px 0px 0px #ffe600;
266
+ --pxd-motion-duration-instant: 0ms;
267
+ --pxd-motion-duration-short: 0ms;
268
+ --pxd-motion-duration-medium: 80ms;
269
+ --pxd-motion-duration-long: 120ms;
270
+ --pxd-motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
271
+ --pxd-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
272
+ --pxd-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
273
+
274
+ /* shadcn/ui variable names, so shadcn components follow this pack too */
275
+ --background: var(--pxd-color-surface-default);
276
+ --foreground: var(--pxd-color-text-default);
277
+ --card: var(--pxd-color-surface-raised);
278
+ --card-foreground: var(--pxd-color-text-default);
279
+ --popover: var(--pxd-color-surface-overlay);
280
+ --popover-foreground: var(--pxd-color-text-default);
281
+ --primary: var(--pxd-color-action-primary-background);
282
+ --primary-foreground: var(--pxd-color-action-primary-foreground);
283
+ --secondary: var(--pxd-color-action-secondary-background);
284
+ --secondary-foreground: var(--pxd-color-action-secondary-foreground);
285
+ --muted: var(--pxd-color-surface-subtle);
286
+ --muted-foreground: var(--pxd-color-text-muted);
287
+ --accent: var(--pxd-color-selection-background);
288
+ --accent-foreground: var(--pxd-color-selection-foreground);
289
+ --destructive: var(--pxd-color-action-danger-background);
290
+ --border: var(--pxd-color-border-default);
291
+ --input: var(--pxd-color-border-strong);
292
+ --ring: var(--pxd-color-border-focus);
293
+ --radius: var(--pxd-radius-default);
294
+ --chart-1: var(--pxd-color-data-categorical-1);
295
+ --chart-2: var(--pxd-color-data-categorical-2);
296
+ --chart-3: var(--pxd-color-data-categorical-3);
297
+ --chart-4: var(--pxd-color-data-categorical-4);
298
+ --chart-5: var(--pxd-color-data-categorical-5);
299
+ color-scheme: dark;
300
+ }
@@ -0,0 +1,300 @@
1
+ /* Generated by @polyxd/react scripts/build-themes.ts from the civic pack. Do not edit. */
2
+
3
+ [data-pxd-theme="civic"]:not([data-pxd-mode]),
4
+ [data-pxd-theme="civic"][data-pxd-mode="light"] {
5
+ --pxd-color-surface-default: #ffffff;
6
+ --pxd-color-surface-subtle: #f0f0f0;
7
+ --pxd-color-surface-raised: #ffffff;
8
+ --pxd-color-surface-overlay: #ffffff;
9
+ --pxd-color-surface-inverse: #111111;
10
+ --pxd-color-scrim: rgba(0, 0, 0, 0.6);
11
+ --pxd-color-text-default: #111111;
12
+ --pxd-color-text-muted: #454545;
13
+ --pxd-color-text-inverse: #ffffff;
14
+ --pxd-color-text-link: #0d4f9c;
15
+ --pxd-color-border-default: #8a8a8a;
16
+ --pxd-color-border-strong: #4d4d4d;
17
+ --pxd-color-border-focus: #111111;
18
+ --pxd-color-action-primary-background: #0d4f9c;
19
+ --pxd-color-action-primary-foreground: #ffffff;
20
+ --pxd-color-action-secondary-background: #ffffff;
21
+ --pxd-color-action-secondary-foreground: #111111;
22
+ --pxd-color-action-secondary-border: #111111;
23
+ --pxd-color-action-danger-background: #b21f1f;
24
+ --pxd-color-action-danger-foreground: #ffffff;
25
+ --pxd-color-selection-background: #e6effa;
26
+ --pxd-color-selection-foreground: #0b3a73;
27
+ --pxd-color-status-info-background: #e6effa;
28
+ --pxd-color-status-info-foreground: #0b3a73;
29
+ --pxd-color-status-info-emphasis: #0d4f9c;
30
+ --pxd-color-status-success-background: #e3f3e3;
31
+ --pxd-color-status-success-foreground: #0f5a1f;
32
+ --pxd-color-status-success-emphasis: #1e7a30;
33
+ --pxd-color-status-warning-background: #fff2cc;
34
+ --pxd-color-status-warning-foreground: #5c4300;
35
+ --pxd-color-status-warning-emphasis: #946c00;
36
+ --pxd-color-status-danger-background: #fbe3e3;
37
+ --pxd-color-status-danger-foreground: #7d1414;
38
+ --pxd-color-status-danger-emphasis: #b21f1f;
39
+ --pxd-color-data-categorical-1: #0d4f9c;
40
+ --pxd-color-data-categorical-2: #1e7a30;
41
+ --pxd-color-data-categorical-3: #b21f1f;
42
+ --pxd-color-data-categorical-4: #946c00;
43
+ --pxd-color-data-categorical-5: #6b2f9e;
44
+ --pxd-color-data-categorical-6: #0b6e7a;
45
+ --pxd-color-data-positive: #1e7a30;
46
+ --pxd-color-data-negative: #b21f1f;
47
+ --pxd-color-data-neutral: #4d4d4d;
48
+ --pxd-type-title-page-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
49
+ --pxd-type-title-page-size: 36px;
50
+ --pxd-type-title-page-weight: 700;
51
+ --pxd-type-title-page-line-height: 1.15;
52
+ --pxd-type-title-page-letter-spacing: 0px;
53
+ --pxd-type-title-section-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
54
+ --pxd-type-title-section-size: 26px;
55
+ --pxd-type-title-section-weight: 700;
56
+ --pxd-type-title-section-line-height: 1.2;
57
+ --pxd-type-title-section-letter-spacing: 0px;
58
+ --pxd-type-title-item-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
59
+ --pxd-type-title-item-size: 20px;
60
+ --pxd-type-title-item-weight: 700;
61
+ --pxd-type-title-item-line-height: 1.3;
62
+ --pxd-type-title-item-letter-spacing: 0px;
63
+ --pxd-type-body-default-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
64
+ --pxd-type-body-default-size: 18px;
65
+ --pxd-type-body-default-weight: 400;
66
+ --pxd-type-body-default-line-height: 1.5;
67
+ --pxd-type-body-default-letter-spacing: 0px;
68
+ --pxd-type-body-small-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
69
+ --pxd-type-body-small-size: 16px;
70
+ --pxd-type-body-small-weight: 400;
71
+ --pxd-type-body-small-line-height: 1.5;
72
+ --pxd-type-body-small-letter-spacing: 0px;
73
+ --pxd-type-label-default-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
74
+ --pxd-type-label-default-size: 18px;
75
+ --pxd-type-label-default-weight: 600;
76
+ --pxd-type-label-default-line-height: 1.4;
77
+ --pxd-type-label-default-letter-spacing: 0px;
78
+ --pxd-type-label-small-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
79
+ --pxd-type-label-small-size: 16px;
80
+ --pxd-type-label-small-weight: 600;
81
+ --pxd-type-label-small-line-height: 1.4;
82
+ --pxd-type-label-small-letter-spacing: 0px;
83
+ --pxd-type-numeric-display-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
84
+ --pxd-type-numeric-display-size: 36px;
85
+ --pxd-type-numeric-display-weight: 700;
86
+ --pxd-type-numeric-display-line-height: 1.15;
87
+ --pxd-type-numeric-display-letter-spacing: 0px;
88
+ --pxd-space-inset-compact: 12px;
89
+ --pxd-space-inset-default: 20px;
90
+ --pxd-space-inset-comfortable: 32px;
91
+ --pxd-space-stack-tight: 8px;
92
+ --pxd-space-stack-default: 12px;
93
+ --pxd-space-stack-loose: 20px;
94
+ --pxd-space-stack-section: 48px;
95
+ --pxd-space-inline-tight: 8px;
96
+ --pxd-space-inline-default: 12px;
97
+ --pxd-space-inline-loose: 20px;
98
+ --pxd-size-target-min: 48px;
99
+ --pxd-size-icon-small: 18px;
100
+ --pxd-size-icon-default: 24px;
101
+ --pxd-radius-small: 2px;
102
+ --pxd-radius-control: 2px;
103
+ --pxd-radius-default: 4px;
104
+ --pxd-radius-large: 4px;
105
+ --pxd-radius-full: 999px;
106
+ --pxd-border-width-default: 1px;
107
+ --pxd-border-width-strong: 2px;
108
+ --pxd-focus-ring-width: 3px;
109
+ --pxd-focus-ring-offset: 0px;
110
+ --pxd-measure-max: 65;
111
+ --pxd-opacity-state-hover: 0.08;
112
+ --pxd-opacity-state-pressed: 0.16;
113
+ --pxd-opacity-state-focus: 0.16;
114
+ --pxd-opacity-state-disabled: 0.5;
115
+ --pxd-shadow-raised: 0px 0px 0px 0px rgba(0, 0, 0, 0);
116
+ --pxd-shadow-overlay: 0px 8px 24px 0px rgba(0, 0, 0, 0.25);
117
+ --pxd-motion-duration-instant: 0ms;
118
+ --pxd-motion-duration-short: 100ms;
119
+ --pxd-motion-duration-medium: 150ms;
120
+ --pxd-motion-duration-long: 200ms;
121
+ --pxd-motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
122
+ --pxd-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
123
+ --pxd-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
124
+
125
+ /* shadcn/ui variable names, so shadcn components follow this pack too */
126
+ --background: var(--pxd-color-surface-default);
127
+ --foreground: var(--pxd-color-text-default);
128
+ --card: var(--pxd-color-surface-raised);
129
+ --card-foreground: var(--pxd-color-text-default);
130
+ --popover: var(--pxd-color-surface-overlay);
131
+ --popover-foreground: var(--pxd-color-text-default);
132
+ --primary: var(--pxd-color-action-primary-background);
133
+ --primary-foreground: var(--pxd-color-action-primary-foreground);
134
+ --secondary: var(--pxd-color-action-secondary-background);
135
+ --secondary-foreground: var(--pxd-color-action-secondary-foreground);
136
+ --muted: var(--pxd-color-surface-subtle);
137
+ --muted-foreground: var(--pxd-color-text-muted);
138
+ --accent: var(--pxd-color-selection-background);
139
+ --accent-foreground: var(--pxd-color-selection-foreground);
140
+ --destructive: var(--pxd-color-action-danger-background);
141
+ --border: var(--pxd-color-border-default);
142
+ --input: var(--pxd-color-border-strong);
143
+ --ring: var(--pxd-color-border-focus);
144
+ --radius: var(--pxd-radius-default);
145
+ --chart-1: var(--pxd-color-data-categorical-1);
146
+ --chart-2: var(--pxd-color-data-categorical-2);
147
+ --chart-3: var(--pxd-color-data-categorical-3);
148
+ --chart-4: var(--pxd-color-data-categorical-4);
149
+ --chart-5: var(--pxd-color-data-categorical-5);
150
+ color-scheme: light;
151
+ }
152
+
153
+ [data-pxd-theme="civic"][data-pxd-mode="dark"] {
154
+ --pxd-color-surface-default: #121212;
155
+ --pxd-color-surface-subtle: #1e1e1e;
156
+ --pxd-color-surface-raised: #181818;
157
+ --pxd-color-surface-overlay: #1e1e1e;
158
+ --pxd-color-surface-inverse: #ffffff;
159
+ --pxd-color-scrim: rgba(0, 0, 0, 0.7);
160
+ --pxd-color-text-default: #ffffff;
161
+ --pxd-color-text-muted: #cfcfcf;
162
+ --pxd-color-text-inverse: #121212;
163
+ --pxd-color-text-link: #8ab8ff;
164
+ --pxd-color-border-default: #4d4d4d;
165
+ --pxd-color-border-strong: #9a9a9a;
166
+ --pxd-color-border-focus: #ffd54a;
167
+ --pxd-color-action-primary-background: #8ab8ff;
168
+ --pxd-color-action-primary-foreground: #0b1f3d;
169
+ --pxd-color-action-secondary-background: #121212;
170
+ --pxd-color-action-secondary-foreground: #ffffff;
171
+ --pxd-color-action-secondary-border: #ffffff;
172
+ --pxd-color-action-danger-background: #ff7b7b;
173
+ --pxd-color-action-danger-foreground: #3d0b0b;
174
+ --pxd-color-selection-background: #0f2d52;
175
+ --pxd-color-selection-foreground: #cfe0ff;
176
+ --pxd-color-status-info-background: #0f2d52;
177
+ --pxd-color-status-info-foreground: #cfe0ff;
178
+ --pxd-color-status-info-emphasis: #8ab8ff;
179
+ --pxd-color-status-success-background: #0f3a19;
180
+ --pxd-color-status-success-foreground: #c6efc9;
181
+ --pxd-color-status-success-emphasis: #5fd075;
182
+ --pxd-color-status-warning-background: #3f3000;
183
+ --pxd-color-status-warning-foreground: #ffe9a3;
184
+ --pxd-color-status-warning-emphasis: #f0c040;
185
+ --pxd-color-status-danger-background: #4a1010;
186
+ --pxd-color-status-danger-foreground: #ffc9c9;
187
+ --pxd-color-status-danger-emphasis: #ff7b7b;
188
+ --pxd-color-data-categorical-1: #8ab8ff;
189
+ --pxd-color-data-categorical-2: #5fd075;
190
+ --pxd-color-data-categorical-3: #ff7b7b;
191
+ --pxd-color-data-categorical-4: #f0c040;
192
+ --pxd-color-data-categorical-5: #c9a0ff;
193
+ --pxd-color-data-categorical-6: #5fd3e0;
194
+ --pxd-color-data-positive: #5fd075;
195
+ --pxd-color-data-negative: #ff7b7b;
196
+ --pxd-color-data-neutral: #9a9a9a;
197
+ --pxd-type-title-page-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
198
+ --pxd-type-title-page-size: 36px;
199
+ --pxd-type-title-page-weight: 700;
200
+ --pxd-type-title-page-line-height: 1.15;
201
+ --pxd-type-title-page-letter-spacing: 0px;
202
+ --pxd-type-title-section-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
203
+ --pxd-type-title-section-size: 26px;
204
+ --pxd-type-title-section-weight: 700;
205
+ --pxd-type-title-section-line-height: 1.2;
206
+ --pxd-type-title-section-letter-spacing: 0px;
207
+ --pxd-type-title-item-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
208
+ --pxd-type-title-item-size: 20px;
209
+ --pxd-type-title-item-weight: 700;
210
+ --pxd-type-title-item-line-height: 1.3;
211
+ --pxd-type-title-item-letter-spacing: 0px;
212
+ --pxd-type-body-default-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
213
+ --pxd-type-body-default-size: 18px;
214
+ --pxd-type-body-default-weight: 400;
215
+ --pxd-type-body-default-line-height: 1.5;
216
+ --pxd-type-body-default-letter-spacing: 0px;
217
+ --pxd-type-body-small-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
218
+ --pxd-type-body-small-size: 16px;
219
+ --pxd-type-body-small-weight: 400;
220
+ --pxd-type-body-small-line-height: 1.5;
221
+ --pxd-type-body-small-letter-spacing: 0px;
222
+ --pxd-type-label-default-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
223
+ --pxd-type-label-default-size: 18px;
224
+ --pxd-type-label-default-weight: 600;
225
+ --pxd-type-label-default-line-height: 1.4;
226
+ --pxd-type-label-default-letter-spacing: 0px;
227
+ --pxd-type-label-small-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
228
+ --pxd-type-label-small-size: 16px;
229
+ --pxd-type-label-small-weight: 600;
230
+ --pxd-type-label-small-line-height: 1.4;
231
+ --pxd-type-label-small-letter-spacing: 0px;
232
+ --pxd-type-numeric-display-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
233
+ --pxd-type-numeric-display-size: 36px;
234
+ --pxd-type-numeric-display-weight: 700;
235
+ --pxd-type-numeric-display-line-height: 1.15;
236
+ --pxd-type-numeric-display-letter-spacing: 0px;
237
+ --pxd-space-inset-compact: 12px;
238
+ --pxd-space-inset-default: 20px;
239
+ --pxd-space-inset-comfortable: 32px;
240
+ --pxd-space-stack-tight: 8px;
241
+ --pxd-space-stack-default: 12px;
242
+ --pxd-space-stack-loose: 20px;
243
+ --pxd-space-stack-section: 48px;
244
+ --pxd-space-inline-tight: 8px;
245
+ --pxd-space-inline-default: 12px;
246
+ --pxd-space-inline-loose: 20px;
247
+ --pxd-size-target-min: 48px;
248
+ --pxd-size-icon-small: 18px;
249
+ --pxd-size-icon-default: 24px;
250
+ --pxd-radius-small: 2px;
251
+ --pxd-radius-control: 2px;
252
+ --pxd-radius-default: 4px;
253
+ --pxd-radius-large: 4px;
254
+ --pxd-radius-full: 999px;
255
+ --pxd-border-width-default: 1px;
256
+ --pxd-border-width-strong: 2px;
257
+ --pxd-focus-ring-width: 3px;
258
+ --pxd-focus-ring-offset: 0px;
259
+ --pxd-measure-max: 65;
260
+ --pxd-opacity-state-hover: 0.08;
261
+ --pxd-opacity-state-pressed: 0.16;
262
+ --pxd-opacity-state-focus: 0.16;
263
+ --pxd-opacity-state-disabled: 0.5;
264
+ --pxd-shadow-raised: 0px 0px 0px 0px rgba(0, 0, 0, 0);
265
+ --pxd-shadow-overlay: 0px 8px 24px 0px rgba(0, 0, 0, 0.6);
266
+ --pxd-motion-duration-instant: 0ms;
267
+ --pxd-motion-duration-short: 100ms;
268
+ --pxd-motion-duration-medium: 150ms;
269
+ --pxd-motion-duration-long: 200ms;
270
+ --pxd-motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
271
+ --pxd-motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
272
+ --pxd-motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
273
+
274
+ /* shadcn/ui variable names, so shadcn components follow this pack too */
275
+ --background: var(--pxd-color-surface-default);
276
+ --foreground: var(--pxd-color-text-default);
277
+ --card: var(--pxd-color-surface-raised);
278
+ --card-foreground: var(--pxd-color-text-default);
279
+ --popover: var(--pxd-color-surface-overlay);
280
+ --popover-foreground: var(--pxd-color-text-default);
281
+ --primary: var(--pxd-color-action-primary-background);
282
+ --primary-foreground: var(--pxd-color-action-primary-foreground);
283
+ --secondary: var(--pxd-color-action-secondary-background);
284
+ --secondary-foreground: var(--pxd-color-action-secondary-foreground);
285
+ --muted: var(--pxd-color-surface-subtle);
286
+ --muted-foreground: var(--pxd-color-text-muted);
287
+ --accent: var(--pxd-color-selection-background);
288
+ --accent-foreground: var(--pxd-color-selection-foreground);
289
+ --destructive: var(--pxd-color-action-danger-background);
290
+ --border: var(--pxd-color-border-default);
291
+ --input: var(--pxd-color-border-strong);
292
+ --ring: var(--pxd-color-border-focus);
293
+ --radius: var(--pxd-radius-default);
294
+ --chart-1: var(--pxd-color-data-categorical-1);
295
+ --chart-2: var(--pxd-color-data-categorical-2);
296
+ --chart-3: var(--pxd-color-data-categorical-3);
297
+ --chart-4: var(--pxd-color-data-categorical-4);
298
+ --chart-5: var(--pxd-color-data-categorical-5);
299
+ color-scheme: dark;
300
+ }