@parallelogram-js/dashboard 0.0.0-stage → 0.1.1

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 (77) hide show
  1. package/CHANGELOG.md +113 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1390 -2
  4. package/dist/parallelogram-dashboard.css +9401 -0
  5. package/dist/parallelogram-dashboard.css.map +1 -0
  6. package/dist/parallelogram-dashboard.min.css +1 -0
  7. package/package.json +72 -4
  8. package/scss/_base.scss +403 -0
  9. package/scss/_datetime.scss +50 -0
  10. package/scss/_icon.scss +40 -0
  11. package/scss/_index.scss +60 -0
  12. package/scss/_mixins.scss +396 -0
  13. package/scss/_tokens.scss +340 -0
  14. package/scss/_utilities.scss +464 -0
  15. package/scss/_variables.scss +219 -0
  16. package/scss/components/_accordion.scss +297 -0
  17. package/scss/components/_actionbar.scss +333 -0
  18. package/scss/components/_alert.scss +183 -0
  19. package/scss/components/_avatar.scss +203 -0
  20. package/scss/components/_badge.scss +176 -0
  21. package/scss/components/_banner.scss +344 -0
  22. package/scss/components/_breadcrumb.scss +220 -0
  23. package/scss/components/_button.scss +264 -0
  24. package/scss/components/_card.scss +256 -0
  25. package/scss/components/_chart.scss +246 -0
  26. package/scss/components/_command.scss +267 -0
  27. package/scss/components/_dashboard.scss +681 -0
  28. package/scss/components/_data-list.scss +280 -0
  29. package/scss/components/_dropdown.scss +318 -0
  30. package/scss/components/_empty.scss +226 -0
  31. package/scss/components/_filebrowser.scss +906 -0
  32. package/scss/components/_form-layout.scss +332 -0
  33. package/scss/components/_input.scss +310 -0
  34. package/scss/components/_list.scss +130 -0
  35. package/scss/components/_media.scss +239 -0
  36. package/scss/components/_modal.scss +298 -0
  37. package/scss/components/_navbar.scss +312 -0
  38. package/scss/components/_notification.scss +59 -0
  39. package/scss/components/_pageheader.scss +99 -0
  40. package/scss/components/_pagination.scss +165 -0
  41. package/scss/components/_progress.scss +333 -0
  42. package/scss/components/_separator.scss +129 -0
  43. package/scss/components/_sheet.scss +286 -0
  44. package/scss/components/_sidebar.scss +324 -0
  45. package/scss/components/_skeleton.scss +246 -0
  46. package/scss/components/_stat.scss +218 -0
  47. package/scss/components/_table.scss +589 -0
  48. package/scss/components/_tabs.scss +266 -0
  49. package/scss/components/_timeline.scss +339 -0
  50. package/scss/components/_toast.scss +259 -0
  51. package/scss/components/_toolbar.scss +301 -0
  52. package/scss/components/_tooltip.scss +250 -0
  53. package/scss/main.scss +6 -0
  54. package/src/js/behaviours/accordion.js +58 -0
  55. package/src/js/behaviours/action-bar-list.js +406 -0
  56. package/src/js/behaviours/action-bar.js +29 -0
  57. package/src/js/behaviours/chart.js +339 -0
  58. package/src/js/behaviours/collapsible.js +34 -0
  59. package/src/js/behaviours/editable-table.js +91 -0
  60. package/src/js/behaviours/expandable.js +80 -0
  61. package/src/js/behaviours/overflow-actions.js +137 -0
  62. package/src/js/behaviours/publish-schedule.js +91 -0
  63. package/src/js/behaviours/search-clear.js +19 -0
  64. package/src/js/behaviours/segmented-control.js +43 -0
  65. package/src/js/behaviours/submenu.js +73 -0
  66. package/src/js/behaviours/table-columns.js +77 -0
  67. package/src/js/behaviours/table-paste.js +305 -0
  68. package/src/js/behaviours/table-reorder.js +252 -0
  69. package/src/js/behaviours/table-sort.js +101 -0
  70. package/src/js/behaviours/tabs.js +148 -0
  71. package/src/js/behaviours/toast-manager.js +106 -0
  72. package/src/js/behaviours/toggle.js +186 -0
  73. package/src/js/behaviours/unsaved-guard.js +88 -0
  74. package/src/js/core-loader.js +26 -0
  75. package/src/js/index.js +85 -0
  76. package/src/js/polyfills/dialog-commands.js +20 -0
  77. package/src/js/util/dom.js +39 -0
@@ -0,0 +1,464 @@
1
+ // ==========================================================================
2
+ // Utilities - BEM-style utility blocks
3
+ // ==========================================================================
4
+
5
+ @use "variables" as *;
6
+ @use "mixins" as *;
7
+
8
+ // -------------------------------------------------------------------------
9
+ // Layout Block - Flex and grid layouts
10
+ // -------------------------------------------------------------------------
11
+ .layout {
12
+ display: flex;
13
+
14
+ // Direction modifiers
15
+ &--col { flex-direction: column; }
16
+ &--row { flex-direction: row; }
17
+ &--wrap { flex-wrap: wrap; }
18
+
19
+ // Alignment modifiers
20
+ &--center {
21
+ align-items: center;
22
+ justify-content: center;
23
+ }
24
+ &--between { justify-content: space-between; }
25
+ &--start { align-items: flex-start; }
26
+ &--end { align-items: flex-end; }
27
+
28
+ // Gap modifiers
29
+ &--gap-xs { gap: 0.25rem; }
30
+ &--gap-sm { gap: 0.5rem; }
31
+ &--gap-md { gap: 1rem; }
32
+ &--gap-lg { gap: 1.5rem; }
33
+ &--gap-xl { gap: 2rem; }
34
+ }
35
+
36
+ // -------------------------------------------------------------------------
37
+ // Stack Block - Vertical stacking with consistent spacing
38
+ // -------------------------------------------------------------------------
39
+ .stack {
40
+ display: flex;
41
+ flex-direction: column;
42
+
43
+ &--xs { gap: 0.25rem; }
44
+ &--sm { gap: 0.5rem; }
45
+ &--md { gap: 1rem; }
46
+ &--lg { gap: 1.5rem; }
47
+ &--xl { gap: 2rem; }
48
+ &--2xl { gap: 3rem; }
49
+
50
+ &--divided > * + * {
51
+ padding-top: 1rem;
52
+ border-top: 1px solid var(--border);
53
+ }
54
+ }
55
+
56
+ // -------------------------------------------------------------------------
57
+ // Cluster Block - Horizontal grouping with wrapping
58
+ // -------------------------------------------------------------------------
59
+ .cluster {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ align-items: center;
63
+
64
+ &--xs { gap: 0.25rem; }
65
+ &--sm { gap: 0.5rem; }
66
+ &--md { gap: 1rem; }
67
+ &--lg { gap: 1.5rem; }
68
+ &--xl { gap: 2rem; }
69
+
70
+ &--start { align-items: flex-start; }
71
+ &--center { justify-content: center; }
72
+ &--between { justify-content: space-between; }
73
+ }
74
+
75
+ // -------------------------------------------------------------------------
76
+ // Constrain Block - Max-width containers
77
+ // -------------------------------------------------------------------------
78
+ .constrain {
79
+ width: 100%;
80
+
81
+ &--xs { max-width: 12.5rem; } // 200px
82
+ &--sm { max-width: 25rem; } // 400px
83
+ &--md { max-width: 37.5rem; } // 600px
84
+ &--lg { max-width: 50rem; } // 800px
85
+ }
86
+
87
+ // -------------------------------------------------------------------------
88
+ // Spacer Block - Spacing utility
89
+ // -------------------------------------------------------------------------
90
+ .spacer {
91
+ &--xs { margin-top: 0.25rem; }
92
+ &--sm { margin-top: 0.5rem; }
93
+ &--md { margin-top: 1rem; }
94
+ &--lg { margin-top: 1.5rem; }
95
+ &--xl { margin-top: 2rem; }
96
+ &--2xl { margin-top: 3rem; }
97
+ }
98
+
99
+ // -------------------------------------------------------------------------
100
+ // Layout Helpers
101
+ // -------------------------------------------------------------------------
102
+ .layout--relative {
103
+ position: relative;
104
+ }
105
+
106
+ // -------------------------------------------------------------------------
107
+ // Grid Block - CSS Grid layouts
108
+ // -------------------------------------------------------------------------
109
+ .grid {
110
+ display: grid;
111
+ gap: 1.5rem;
112
+
113
+ // Let wide content (e.g. a scrolling table) scroll inside a column instead of widening it
114
+ > * {
115
+ min-width: 0;
116
+ }
117
+
118
+ &--2-1 {
119
+ grid-template-columns: 2fr 1fr;
120
+ }
121
+
122
+ &--1-2 {
123
+ grid-template-columns: 1fr 2fr;
124
+ }
125
+
126
+ &--2 {
127
+ grid-template-columns: repeat(2, 1fr);
128
+ }
129
+
130
+ &--3 {
131
+ grid-template-columns: repeat(3, 1fr);
132
+ }
133
+
134
+ &--4 {
135
+ grid-template-columns: repeat(4, 1fr);
136
+ }
137
+
138
+ &--2-1,
139
+ &--1-2 {
140
+ @include max-lg {
141
+ grid-template-columns: 1fr;
142
+ }
143
+ }
144
+
145
+ &--3,
146
+ &--4 {
147
+ @include max-lg {
148
+ grid-template-columns: repeat(2, 1fr);
149
+ }
150
+ }
151
+
152
+ &--2,
153
+ &--3,
154
+ &--4 {
155
+ @include max-md {
156
+ grid-template-columns: 1fr;
157
+ }
158
+ }
159
+
160
+ &--gap-sm { gap: 0.5rem; }
161
+ &--gap-md { gap: 1rem; }
162
+ &--gap-lg { gap: 1.5rem; }
163
+ &--gap-xl { gap: 2rem; }
164
+
165
+ &--start { align-items: start; }
166
+ }
167
+
168
+ // -------------------------------------------------------------------------
169
+ // Text Block - Typography utilities
170
+ // -------------------------------------------------------------------------
171
+ .text {
172
+ &--center { text-align: center; }
173
+ &--left { text-align: left; }
174
+ &--right { text-align: right; }
175
+
176
+ &--medium { font-weight: 500; }
177
+ &--semibold { font-weight: 600; }
178
+ &--bold { font-weight: 700; }
179
+
180
+ &--xs { font-size: 0.75rem; }
181
+ &--sm { font-size: 0.875rem; }
182
+ &--lg { font-size: 1.125rem; }
183
+ &--xl { font-size: 1.25rem; }
184
+
185
+ &--muted { color: var(--fg-muted); }
186
+ &--subtle { color: var(--fg-subtle); }
187
+ }
188
+
189
+ // -------------------------------------------------------------------------
190
+ // Center Block - Centered containers
191
+ // -------------------------------------------------------------------------
192
+ .center {
193
+ margin-left: auto;
194
+ margin-right: auto;
195
+
196
+ &--sm { max-width: 32rem; } // 512px
197
+ &--md { max-width: 40rem; } // 640px
198
+ &--lg { max-width: 48rem; } // 768px
199
+ }
200
+
201
+ // -------------------------------------------------------------------------
202
+ // Flex Item Utilities
203
+ // -------------------------------------------------------------------------
204
+ .flex--1 { flex: 1; }
205
+ .flex--none { flex: none; }
206
+ .flex--shrink0 { flex-shrink: 0; }
207
+
208
+ // -------------------------------------------------------------------------
209
+ // Margin Block - Margin utilities
210
+ // -------------------------------------------------------------------------
211
+ .mb {
212
+ &--xs { margin-bottom: 0.25rem; }
213
+ &--sm { margin-bottom: 0.5rem; }
214
+ &--md { margin-bottom: 1rem; }
215
+ &--lg { margin-bottom: 1.5rem; }
216
+ &--xl { margin-bottom: 2rem; }
217
+ &--2xl { margin-bottom: 3rem; }
218
+ }
219
+
220
+ .mt {
221
+ &--xs { margin-top: 0.25rem; }
222
+ &--sm { margin-top: 0.5rem; }
223
+ &--md { margin-top: 1rem; }
224
+ &--lg { margin-top: 1.5rem; }
225
+ &--xl { margin-top: 2rem; }
226
+ &--2xl { margin-top: 3rem; }
227
+ }
228
+
229
+ .my {
230
+ &--md {
231
+ margin-top: 1rem;
232
+ margin-bottom: 1rem;
233
+ }
234
+ &--lg {
235
+ margin-top: 1.5rem;
236
+ margin-bottom: 1.5rem;
237
+ }
238
+ }
239
+
240
+ // -------------------------------------------------------------------------
241
+ // Dot Block - Category/status indicator dots
242
+ // -------------------------------------------------------------------------
243
+ .dot {
244
+ width: 0.5rem;
245
+ height: 0.5rem;
246
+ border-radius: 50%;
247
+ flex-shrink: 0;
248
+
249
+ &--blue { background-color: #3b82f6; }
250
+ &--green { background-color: #22c55e; }
251
+ &--yellow { background-color: #f59e0b; }
252
+ &--red { background-color: #ef4444; }
253
+ &--purple { background-color: #8b5cf6; }
254
+ &--pink { background-color: #ec4899; }
255
+ }
256
+
257
+ // -------------------------------------------------------------------------
258
+ // Avatar Color Modifiers
259
+ // -------------------------------------------------------------------------
260
+ .avatar__fallback--blue { background-color: #3b82f6; }
261
+ .avatar__fallback--green { background-color: #22c55e; }
262
+ .avatar__fallback--yellow { background-color: #f59e0b; }
263
+ .avatar__fallback--orange { background-color: #f97316; }
264
+ .avatar__fallback--red { background-color: #ef4444; }
265
+ .avatar__fallback--purple { background-color: #8b5cf6; }
266
+ .avatar__fallback--pink { background-color: #ec4899; }
267
+
268
+ // -------------------------------------------------------------------------
269
+ // Icon Color Modifiers
270
+ // -------------------------------------------------------------------------
271
+ .icon--primary { color: var(--primary); }
272
+ .icon--warning { color: var(--warning); }
273
+ .icon--destructive { color: var(--destructive); }
274
+ .icon--success { color: var(--success); }
275
+ .icon--muted { color: var(--fg-muted); }
276
+
277
+ // -------------------------------------------------------------------------
278
+ // Width Utilities
279
+ // -------------------------------------------------------------------------
280
+ .w--full { width: 100%; }
281
+
282
+ // -------------------------------------------------------------------------
283
+ // Box Block - Generic container with padding/background
284
+ // -------------------------------------------------------------------------
285
+ .box {
286
+ &--muted {
287
+ background-color: var(--bg-muted);
288
+ border-radius: 0.5rem;
289
+ padding: 1rem;
290
+ }
291
+
292
+ &--icon {
293
+ display: inline-flex;
294
+ align-items: center;
295
+ justify-content: center;
296
+ width: 2.5rem;
297
+ height: 2.5rem;
298
+ border-radius: 0.5rem;
299
+ background-color: var(--bg-muted);
300
+ color: var(--fg-muted);
301
+ flex-shrink: 0;
302
+
303
+ &.box--sm {
304
+ width: 2rem;
305
+ height: 2rem;
306
+ }
307
+ }
308
+
309
+ &--primary {
310
+ background-color: var(--accent);
311
+ color: var(--primary);
312
+ }
313
+
314
+ &--success {
315
+ background-color: var(--success-muted);
316
+ color: var(--success);
317
+ }
318
+
319
+ &--warning {
320
+ background-color: var(--warning-muted);
321
+ color: var(--warning);
322
+ }
323
+
324
+ &--destructive {
325
+ background-color: var(--destructive-muted);
326
+ color: var(--destructive);
327
+ }
328
+
329
+ &--info {
330
+ background-color: var(--info-muted);
331
+ color: var(--info);
332
+ }
333
+
334
+ &--secondary {
335
+ background-color: var(--secondary);
336
+ color: var(--secondary-fg);
337
+ }
338
+ }
339
+
340
+ // -------------------------------------------------------------------------
341
+ // Code Block - Inline code styling
342
+ // -------------------------------------------------------------------------
343
+ code.code--sm {
344
+ font-size: 0.75rem;
345
+ }
346
+
347
+ // -------------------------------------------------------------------------
348
+ // Background Utilities
349
+ // -------------------------------------------------------------------------
350
+ .bg--muted {
351
+ background-color: var(--bg-muted);
352
+ }
353
+
354
+ // -------------------------------------------------------------------------
355
+ // Text Color Utilities
356
+ // -------------------------------------------------------------------------
357
+ .text--destructive {
358
+ color: var(--destructive);
359
+ }
360
+
361
+ .text--success {
362
+ color: var(--success);
363
+ }
364
+
365
+ .text--warning {
366
+ color: var(--warning);
367
+ }
368
+
369
+ .text--primary {
370
+ color: var(--primary);
371
+ }
372
+
373
+ /**
374
+ * Overflow actions
375
+ *
376
+ * main.js sets data-overflow-level on the boundary (a .table__wrapper, or the container itself):
377
+ * 1 folds [data-priority="low"] actions into the "more" menu, 2 folds "medium" ones as well.
378
+ * Every container in the boundary folds together, so table rows stay aligned.
379
+ */
380
+ :is([data-overflow-level="1"], [data-overflow-level="2"]) [data-overflow-actions] > [data-priority="low"],
381
+ :is([data-overflow-level="1"], [data-overflow-level="2"])[data-overflow-actions] > [data-priority="low"],
382
+ [data-overflow-level="2"] [data-overflow-actions] > [data-priority="medium"],
383
+ [data-overflow-level="2"][data-overflow-actions] > [data-priority="medium"],
384
+ [data-overflow-level="0"] [data-overflow-actions] > [data-overflow-more],
385
+ [data-overflow-level="0"][data-overflow-actions] > [data-overflow-more] {
386
+ display: none !important;
387
+ }
388
+
389
+ /**
390
+ * Unsaved changes
391
+ *
392
+ * main.js sets data-dirty on a [data-unsaved-guard] area while any of its fields differ from
393
+ * their saved values. Mark an "Unsaved changes" badge or similar with data-unsaved-indicator and
394
+ * it only shows while the area is dirty.
395
+ */
396
+ [data-unsaved-guard]:not([data-dirty]) [data-unsaved-indicator] {
397
+ display: none !important;
398
+ }
399
+
400
+ /**
401
+ * Expandable
402
+ *
403
+ * main.js moves a [data-expandable] element into dialog.expandable to show it full-screen. The
404
+ * element fills the window; a card's flush content (such as a table) takes the remaining height
405
+ * and scrolls inside it. Anything marked data-column-expanded only shows while expanded.
406
+ */
407
+ .expandable {
408
+ width: 100vw;
409
+ max-width: none;
410
+ height: 100dvh;
411
+ max-height: none;
412
+ margin: 0;
413
+ padding: $spacing-sm;
414
+ background-color: var(--bg);
415
+ border: 0;
416
+
417
+ &[open] {
418
+ display: flex;
419
+ flex-direction: column;
420
+ }
421
+
422
+ &::backdrop {
423
+ background-color: var(--bg);
424
+ }
425
+
426
+ > [data-expanded] {
427
+ flex: 1;
428
+ min-height: 0;
429
+ }
430
+
431
+ [data-expanded] .card__content--flush {
432
+ display: flex;
433
+ flex-direction: column;
434
+ min-height: 0;
435
+
436
+ > .table__wrapper {
437
+ flex: 1;
438
+ min-height: 0;
439
+ overflow: auto;
440
+ }
441
+ }
442
+ }
443
+
444
+ [data-expandable]:not([data-expanded]) [data-column-expanded] {
445
+ display: none;
446
+ }
447
+
448
+ // An expand button can carry both icons; the one for the current state shows
449
+ [data-expandable]:not([data-expanded]) [data-expand-icon="collapse"],
450
+ [data-expanded] [data-expand-icon="expand"] {
451
+ display: none;
452
+ }
453
+
454
+ /**
455
+ * Publish state
456
+ *
457
+ * PublishSchedule sets data-publish-state on a [data-publish-schedule] area; anything inside it
458
+ * marked data-publish-show="…" (a list of states) only shows in those states.
459
+ */
460
+ @each $state in draft, scheduled, live, expired, archived {
461
+ [data-publish-state="#{$state}"] [data-publish-show]:not([data-publish-show~="#{$state}"]) {
462
+ display: none !important;
463
+ }
464
+ }
@@ -0,0 +1,219 @@
1
+ // ==========================================================================
2
+ // Design Tokens - Inspired by shadcn/ui
3
+ // ==========================================================================
4
+
5
+ @use "sass:math";
6
+
7
+ // --------------------------------------------------------------------------
8
+ // Color Palette (Zinc-based, shadcn style)
9
+ // --------------------------------------------------------------------------
10
+
11
+ $zinc-50: #fafafa !default;
12
+ $zinc-100: #f4f4f5 !default;
13
+ $zinc-200: #e4e4e7 !default;
14
+ $zinc-300: #d4d4d8 !default;
15
+ $zinc-400: #a1a1aa !default;
16
+ $zinc-500: #71717a !default;
17
+ $zinc-600: #52525b !default;
18
+ $zinc-700: #3f3f46 !default;
19
+ $zinc-800: #27272a !default;
20
+ $zinc-900: #18181b !default;
21
+ $zinc-950: #09090b !default;
22
+
23
+ // Accent Colors
24
+ $red-50: #fef2f2 !default;
25
+ $red-100: #fee2e2 !default;
26
+ $red-500: #ef4444 !default;
27
+ $red-600: #dc2626 !default;
28
+ $red-900: #7f1d1d !default;
29
+
30
+ $green-50: #f0fdf4 !default;
31
+ $green-100: #dcfce7 !default;
32
+ $green-500: #22c55e !default;
33
+ $green-600: #16a34a !default;
34
+ $green-900: #14532d !default;
35
+
36
+ $blue-50: #eff6ff !default;
37
+ $blue-100: #dbeafe !default;
38
+ $blue-500: #3b82f6 !default;
39
+ $blue-600: #2563eb !default;
40
+ $blue-900: #1e3a8a !default;
41
+
42
+ $amber-50: #fffbeb !default;
43
+ $amber-100: #fef3c7 !default;
44
+ $amber-500: #f59e0b !default;
45
+ $amber-600: #d97706 !default;
46
+ $amber-900: #78350f !default;
47
+
48
+ // --------------------------------------------------------------------------
49
+ // Typography
50
+ // --------------------------------------------------------------------------
51
+
52
+ $font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
53
+ "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !default;
54
+ $font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
55
+ "Liberation Mono", monospace !default;
56
+
57
+ $font-size-xs: 0.75rem !default; // 12px
58
+ $font-size-sm: 0.875rem !default; // 14px
59
+ $font-size-base: 1rem !default; // 16px
60
+ $font-size-lg: 1.125rem !default; // 18px
61
+ $font-size-xl: 1.25rem !default; // 20px
62
+ $font-size-2xl: 1.5rem !default; // 24px
63
+ $font-size-3xl: 1.875rem !default; // 30px
64
+ $font-size-4xl: 2.25rem !default; // 36px
65
+
66
+ // Heading scale, compact for dashboards. Each step is (phone, desktop) in rem; fluid() eases
67
+ // between them across $fluid-min-width to $fluid-max-width, and equal values stay fixed.
68
+ $fluid-min-width: 23.4375rem !default; // 375px
69
+ $fluid-max-width: 80rem !default; // 1280px
70
+
71
+ $heading-sizes: (
72
+ 1: (1.5rem, 1.875rem), // 24 → 30px
73
+ 2: (1.25rem, 1.5rem), // 20 → 24px
74
+ 3: (1.125rem, 1.25rem), // 18 → 20px
75
+ 4: (1.125rem, 1.125rem), // 18px
76
+ 5: (1rem, 1rem), // 16px
77
+ 6: (0.875rem, 0.875rem), // 14px
78
+ ) !default;
79
+
80
+ @function fluid($min, $max) {
81
+ @if $min == $max {
82
+ @return $min;
83
+ }
84
+ $slope: math.div($max - $min, $fluid-max-width - $fluid-min-width);
85
+ $intercept: $min - $slope * $fluid-min-width;
86
+ @return clamp(#{$min}, #{math.div(math.round($intercept * 1000), 1000)} + #{math.div(math.round($slope * 100000), 1000)}vw, #{$max});
87
+ }
88
+
89
+ $font-weight-normal: 400 !default;
90
+ $font-weight-medium: 500 !default;
91
+ $font-weight-semibold: 600 !default;
92
+ $font-weight-bold: 700 !default;
93
+
94
+ $line-height-none: 1 !default;
95
+ $line-height-tight: 1.25 !default;
96
+ $line-height-snug: 1.375 !default;
97
+ $line-height-normal: 1.5 !default;
98
+ $line-height-relaxed: 1.625 !default;
99
+
100
+ $letter-spacing-tight: -0.025em !default;
101
+ $letter-spacing-normal: 0 !default;
102
+ $letter-spacing-wide: 0.025em !default;
103
+
104
+ // --------------------------------------------------------------------------
105
+ // Spacing
106
+ // --------------------------------------------------------------------------
107
+
108
+ $spacing-0: 0 !default;
109
+ $spacing-3xs: 0.25rem !default; // 4px
110
+ $spacing-2xs: 0.5rem !default; // 8px
111
+ $spacing-xs: 0.75rem !default; // 12px
112
+ $spacing-sm: 1rem !default; // 16px
113
+ $spacing-md: 1.25rem !default; // 20px
114
+ $spacing-lg: 1.5rem !default; // 24px
115
+ $spacing-xl: 2rem !default; // 32px
116
+ $spacing-2xl: 2.5rem !default; // 40px
117
+ $spacing-3xl: 3rem !default; // 48px
118
+ $spacing-4xl: 4rem !default; // 64px
119
+
120
+ // --------------------------------------------------------------------------
121
+ // Border Radius
122
+ // --------------------------------------------------------------------------
123
+
124
+ // Sizes behind the --radius-* tokens (emitted in _tokens.scss). Components read the tokens through
125
+ // the $radius-* names below, so a theme can reshape every corner at run time by setting the tokens
126
+ $radius-sizes: (
127
+ sm: 0.25rem, // 4px
128
+ md: 0.375rem, // 6px (shadcn default for smaller elements)
129
+ lg: 0.5rem, // 8px (shadcn default)
130
+ xl: 0.75rem, // 12px
131
+ 2xl: 1rem, // 16px
132
+ ) !default;
133
+
134
+ $radius-none: 0 !default;
135
+ $radius-sm: var(--radius-sm) !default;
136
+ $radius-md: var(--radius-md) !default;
137
+ $radius-lg: var(--radius-lg) !default;
138
+ $radius-xl: var(--radius-xl) !default;
139
+ $radius-2xl: var(--radius-2xl) !default;
140
+ $radius-full: 9999px !default;
141
+
142
+ $radius: $radius-lg !default;
143
+
144
+ // The general tokens a chrome region (rail, section menu, page header) points at its own; see
145
+ // $chrome-tokens in _tokens.scss
146
+ $chrome-remapped: (bg, fg, fg-muted, fg-subtle, bg-muted, bg-subtle, accent, accent-fg, border, input, input-placeholder, icon-stroke-width) !default;
147
+
148
+ // Border width of form controls and outline buttons, emitted as --control-border-width
149
+ $control-border-width: 1px !default;
150
+
151
+ // Stroke width of line icons, emitted as --icon-stroke-width
152
+ $icon-stroke-width: 2 !default;
153
+
154
+ // --------------------------------------------------------------------------
155
+ // Shadows
156
+ // --------------------------------------------------------------------------
157
+
158
+ $shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05) !default;
159
+ $shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !default;
160
+ $shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1) !default;
161
+ $shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !default;
162
+
163
+ // --------------------------------------------------------------------------
164
+ // Transitions
165
+ // --------------------------------------------------------------------------
166
+
167
+ $transition-fast: 150ms !default;
168
+ $transition-base: 200ms !default;
169
+ $transition-slow: 300ms !default;
170
+ $transition-easing: cubic-bezier(0.4, 0, 0.2, 1) !default;
171
+
172
+ // --------------------------------------------------------------------------
173
+ // Z-Index Scale
174
+ // --------------------------------------------------------------------------
175
+
176
+ $z-dropdown: 50 !default;
177
+ $z-sticky: 100 !default;
178
+ $z-fixed: 200 !default;
179
+ $z-modal-backdrop: 300 !default;
180
+ $z-modal: 400 !default;
181
+ $z-popover: 500 !default;
182
+ $z-toast: 550 !default;
183
+ $z-tooltip: 600 !default;
184
+
185
+ // --------------------------------------------------------------------------
186
+ // Breakpoints
187
+ // --------------------------------------------------------------------------
188
+
189
+ $breakpoint-sm: 640px !default;
190
+ $breakpoint-md: 768px !default;
191
+ $breakpoint-lg: 1024px !default;
192
+ $breakpoint-xl: 1280px !default;
193
+ $breakpoint-2xl: 1536px !default;
194
+
195
+ // --------------------------------------------------------------------------
196
+ // Component Sizes
197
+ // --------------------------------------------------------------------------
198
+
199
+ // Button heights
200
+ $btn-height-sm: 2rem !default; // 32px
201
+ $btn-height-md: 2.5rem !default; // 40px
202
+ $btn-height-lg: 2.75rem !default; // 44px
203
+
204
+ // Input heights
205
+ $input-height-sm: 2rem !default; // 32px
206
+ $input-height-md: 2.5rem !default; // 40px
207
+ $input-height-lg: 2.75rem !default; // 44px
208
+
209
+ // Icon sizes
210
+ $icon-size-sm: 1rem !default; // 16px
211
+ $icon-size-md: 1.25rem !default; // 20px
212
+ $icon-size-lg: 1.5rem !default; // 24px
213
+
214
+ // Sidebar width
215
+ $sidebar-width: 16rem !default; // 256px
216
+ $sidebar-width-collapsed: 4rem !default; // 64px
217
+
218
+ // Navbar height
219
+ $navbar-height: 4rem !default; // 64px