@vialiq/flux-ui 0.20.0 → 0.21.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.
@@ -1,5 +1,6 @@
1
1
  // Forwards all global style modules in cascade order.
2
2
  // Usage: @use '@vialiq/flux-ui/styles';
3
+ @forward 'functions';
3
4
  @forward 'root';
4
5
  @forward 'reset';
5
6
  @forward 'theme';
@@ -193,6 +193,7 @@
193
193
 
194
194
  .min-h-screen {
195
195
  min-height: 100vh;
196
+ min-height: 100dvh;
196
197
  }
197
198
 
198
199
  .max-w-container {
@@ -238,7 +238,7 @@
238
238
  }
239
239
 
240
240
  .rounded-full {
241
- border-radius: 9999px;
241
+ border-radius: #{$border-radius-full};
242
242
  }
243
243
 
244
244
  // ============================================================================
@@ -13,6 +13,9 @@
13
13
  * are not supported inside @media queries or as integer math operands.
14
14
  */
15
15
 
16
+ @use 'sass:math';
17
+ @use './functions' as *;
18
+
16
19
  // Declare CSS layer order up-front so cascade is predictable regardless of
17
20
  // import order. Between layers, later ones win. Within a layer, normal selector
18
21
  // specificity still applies. Order: reset (lowest) → components → utilities (highest)
@@ -83,26 +86,17 @@ $color-blue-700: var(--vi-color-blue-700, #3676d0); // Deep azure (target)
83
86
  $color-blue-800: var(--vi-color-blue-800, #2d5fa8);
84
87
  $color-blue-900: var(--vi-color-blue-900, #254882); // Deep rich navy
85
88
 
86
- // -- Palette: Purple (Vibrant Violet) ---------------------------------------
87
-
88
- $color-purple-100: var(--vi-color-purple-100, #f3e8ff);
89
- $color-purple-200: var(--vi-color-purple-200, #e9d5ff);
90
- $color-purple-300: var(--vi-color-purple-300, #d8b4fe);
91
- $color-purple-400: var(--vi-color-purple-400, #c084fc);
92
- $color-purple-500: var(--vi-color-purple-500, #a855f7);
93
- $color-purple-600: var(--vi-color-purple-600, #9333ea);
94
- $color-purple-700: var(--vi-color-purple-700, #7e22ce);
95
- $color-purple-800: var(--vi-color-purple-800, #6b21a8);
96
- $color-purple-900: var(--vi-color-purple-900, #581c87);
97
- $color-purple-100: var(--vi-color-purple-100, #f0e5f9); // Soft pastel purple (target)
89
+ // -- Palette: Purple (Vibrant Violet) ----------------------------------------
90
+ // Custom curated violet scale. Goes from soft pastel to deep violet/navy.
91
+ $color-purple-100: var(--vi-color-purple-100, #f0e5f9); // Soft pastel purple
98
92
  $color-purple-200: var(--vi-color-purple-200, #dbbdf2);
99
93
  $color-purple-300: var(--vi-color-purple-300, #c18eeb);
100
94
  $color-purple-400: var(--vi-color-purple-400, #a454e2);
101
- $color-purple-500: var(--vi-color-purple-500, #7609d0); // Vibrant purple (target)
95
+ $color-purple-500: var(--vi-color-purple-500, #7609d0); // Vibrant purple
102
96
  $color-purple-600: var(--vi-color-purple-600, #6507c9);
103
97
  $color-purple-700: var(--vi-color-purple-700, #5505c2);
104
98
  $color-purple-800: var(--vi-color-purple-800, #4403bb);
105
- $color-purple-900: var(--vi-color-purple-900, #3400b4); // Deep violet/navy (target)
99
+ $color-purple-900: var(--vi-color-purple-900, #3400b4); // Deep violet/navy
106
100
 
107
101
  // -- Semantic colors (brand + status) ----------------------------------------
108
102
  // These map named design intents onto palette values.
@@ -120,7 +114,7 @@ $color-info: var(--vi-color-info, #3676d0); // blue-700
120
114
  $typeahead-highlight-bg: var(--vi-typeahead-highlight-bg, #ebf5ff); // blue-100
121
115
  $typeahead-highlight-color: var(--vi-typeahead-highlight-color, #3676d0); // primary / blue-700
122
116
 
123
- // -- Functional colors -------------------------------------------------------
117
+ // -- Semantic SASS Tokens -------------------------------------------------------
124
118
 
125
119
  $color-background: var(--vi-color-background, #ffffff);
126
120
  $color-foreground: var(--vi-color-foreground, #111827); // grey-900
@@ -181,27 +175,28 @@ $focus-ring-error-glow: var(--vi-color-red-100, #ffccce); // alias for $color-re
181
175
  $focus-ring-success-glow: var(--vi-color-green-100, #e6f0eb); // alias for $color-green-100
182
176
  // -- Primitive: Spacing ------------------------------------------------------
183
177
 
184
- $spacing-unit: var(--vi-spacing-unit, 8px);
185
- $spacing-xs: var(--vi-spacing-xs, 8px);
186
- $spacing-sm: var(--vi-spacing-sm, 16px);
187
- $spacing-md: var(--vi-spacing-md, 24px);
188
- $spacing-lg: var(--vi-spacing-lg, 32px);
189
- $spacing-xl: var(--vi-spacing-xl, 40px);
190
- $spacing-2xl: var(--vi-spacing-2xl, 48px);
191
- $spacing-3xl: var(--vi-spacing-3xl, 56px);
178
+ $spacing-unit: var(--vi-spacing-unit, to-rem(4px));
179
+ $spacing-xs: var(--vi-spacing-xs, to-rem(8px));
180
+ $spacing-sm: var(--vi-spacing-sm, to-rem(12px));
181
+ $spacing-md: var(--vi-spacing-md, to-rem(16px));
182
+ $spacing-lg: var(--vi-spacing-lg, to-rem(24px));
183
+ $spacing-xl: var(--vi-spacing-xl, to-rem(32px));
184
+ $spacing-2xl: var(--vi-spacing-2xl, to-rem(48px));
185
+ $spacing-3xl: var(--vi-spacing-3xl, to-rem(64px));
192
186
 
193
187
  // -- Primitive: Typography ---------------------------------------------------
194
188
 
195
189
  $font-family-base: var(--vi-font-family-base, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
196
190
  $font-family-mono: var(--vi-font-family-mono, 'Menlo', 'Monaco', 'Courier New', monospace);
197
191
 
198
- $font-size-xs: var(--vi-font-size-xs, 12px);
199
- $font-size-sm: var(--vi-font-size-sm, 14px);
200
- $font-size-base: var(--vi-font-size-base, 16px);
201
- $font-size-lg: var(--vi-font-size-lg, 18px);
202
- $font-size-xl: var(--vi-font-size-xl, 20px);
203
- $font-size-2xl: var(--vi-font-size-2xl, 24px);
204
- $font-size-3xl: var(--vi-font-size-3xl, 30px);
192
+ // Typography scale: xs=12, sm=13, base=14, lg=16, xl=20
193
+ $font-size-xs: var(--vi-font-size-xs, to-rem(12px)); // Compact labels, captions
194
+ $font-size-sm: var(--vi-font-size-sm, to-rem(13px)); // Sub-labels, secondary text
195
+ $font-size-base: var(--vi-font-size-base, to-rem(14px)); // Standard body text
196
+ $font-size-lg: var(--vi-font-size-lg, to-rem(16px)); // Large text, subheadings
197
+ $font-size-xl: var(--vi-font-size-xl, to-rem(20px)); // Display, section headings
198
+ $font-size-2xl: var(--vi-font-size-2xl, to-rem(24px));
199
+ $font-size-3xl: var(--vi-font-size-3xl, to-rem(30px));
205
200
 
206
201
  $font-weight-light: var(--vi-font-weight-light, 300);
207
202
  $font-weight-normal: var(--vi-font-weight-normal, 400);
@@ -210,7 +205,7 @@ $font-weight-semibold: var(--vi-font-weight-semibold, 600);
210
205
  $font-weight-bold: var(--vi-font-weight-bold, 700);
211
206
 
212
207
  $line-height-tight: var(--vi-line-height-tight, 1.2);
213
- $line-height-normal: var(--vi-line-height-normal, 1.5);
208
+ $line-height-normal: var(--vi-line-height-normal, 1.5715);
214
209
  $line-height-relaxed: var(--vi-line-height-relaxed, 1.75);
215
210
 
216
211
  // -- Primitive: Letter Spacing -----------------------------------------------
@@ -232,8 +227,8 @@ $shadow-xl: var(--vi-shadow-xl, 0 20px 25px -5px rgba(0, 0, 0, 0.1));
232
227
 
233
228
  // -- Primitive: Border radius ------------------------------------------------
234
229
 
235
- $border-radius-sm: var(--vi-border-radius-sm, 2px);
236
- $border-radius-md: var(--vi-border-radius-md, 4px);
230
+ $border-radius-sm: var(--vi-border-radius-sm, 4px);
231
+ $border-radius-md: var(--vi-border-radius-md, 6px);
237
232
  $border-radius-lg: var(--vi-border-radius-lg, 8px);
238
233
  $border-radius-xl: var(--vi-border-radius-xl, 12px);
239
234
  $border-radius-full: var(--vi-border-radius-full, 9999px);
@@ -345,6 +340,7 @@ $color-map: (
345
340
  );
346
341
 
347
342
  $spacing-map: (
343
+ 'unit': $spacing-unit,
348
344
  'xs': $spacing-xs,
349
345
  'sm': $spacing-sm,
350
346
  'md': $spacing-md,
@@ -408,9 +404,9 @@ $z-index-map: (
408
404
  $modal-bg: var(--vi-modal-bg, $color-background);
409
405
  $modal-border-radius: var(--vi-modal-border-radius, $border-radius-lg);
410
406
  $modal-shadow: var(--vi-modal-shadow, $shadow-xl);
411
- $modal-header-padding: var(--vi-modal-header-padding, 20px 24px);
412
- $modal-body-padding: var(--vi-modal-body-padding, 24px);
413
- $modal-footer-padding: var(--vi-modal-footer-padding, 16px 24px);
407
+ $modal-header-padding: var(--vi-modal-header-padding, #{$spacing-md} #{$spacing-lg});
408
+ $modal-body-padding: var(--vi-modal-body-padding, #{$spacing-lg});
409
+ $modal-footer-padding: var(--vi-modal-footer-padding, #{$spacing-xs} #{$spacing-md});
414
410
  $modal-footer-bg: var(--vi-modal-footer-bg, $layer-02);
415
411
  $modal-footer-border-color: var(--vi-modal-footer-border-color, $border-02);
416
412
  $modal-backdrop-bg: var(--vi-modal-backdrop-bg, rgba(0, 0, 0, 0.5));
@@ -422,7 +418,7 @@ $modal-animation-duration: var(--vi-modal-animation-duration, 200ms);
422
418
 
423
419
  $modal-max-width-xs: var(--vi-modal-max-width-xs, 320px);
424
420
  $modal-max-width-sm: var(--vi-modal-max-width-sm, 480px);
425
- $modal-max-width-md: var(--vi-modal-max-width-md, 640px);
421
+ $modal-max-width-md: var(--vi-modal-max-width-md, 520px);
426
422
  $modal-max-width-lg: var(--vi-modal-max-width-lg, 800px);
427
423
  $modal-max-width-xl: var(--vi-modal-max-width-xl, 960px);
428
424