@raintonic/formaui 0.2.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.
- package/CHANGELOG.md +7 -0
- package/README.md +145 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs +806 -0
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs +86 -0
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs +1757 -0
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +287 -0
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs +217 -0
- package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs +161 -0
- package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs +726 -0
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs +92 -0
- package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs +107 -0
- package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs +68 -0
- package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +55 -0
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-button.mjs +241 -0
- package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-card.mjs +270 -0
- package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs +295 -0
- package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs +631 -0
- package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs +1331 -0
- package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs +41 -0
- package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs +190 -0
- package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs +266 -0
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs +33 -0
- package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs +246 -0
- package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs +482 -0
- package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs +117 -0
- package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-input.mjs +327 -0
- package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-list.mjs +149 -0
- package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs +896 -0
- package/fesm2022/raintonic-formaui-components-menu.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs +345 -0
- package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs +139 -0
- package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs +306 -0
- package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs +451 -0
- package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs +148 -0
- package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs +260 -0
- package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-select.mjs +1011 -0
- package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs +150 -0
- package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs +257 -0
- package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs +50 -0
- package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs +347 -0
- package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs +63 -0
- package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs +317 -0
- package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs +197 -0
- package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs +78 -0
- package/fesm2022/raintonic-formaui-components-tag.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs +644 -0
- package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs +171 -0
- package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs +140 -0
- package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs +555 -0
- package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs +314 -0
- package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs +103 -0
- package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs +430 -0
- package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-core.mjs +62 -0
- package/fesm2022/raintonic-formaui-core.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs +798 -0
- package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs +391 -0
- package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs +248 -0
- package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs +66 -0
- package/fesm2022/raintonic-formaui-test-utils.mjs.map +1 -0
- package/fesm2022/raintonic-formaui.mjs +15 -0
- package/fesm2022/raintonic-formaui.mjs.map +1 -0
- package/llms-full.txt +1627 -0
- package/llms.txt +60 -0
- package/package.json +251 -0
- package/styles/_fonts-entry.scss +3 -0
- package/styles/fonts/dm-mono-400-latin.woff2 +0 -0
- package/styles/fonts/inter-tight-latin-italic.woff2 +0 -0
- package/styles/fonts/inter-tight-latin.woff2 +0 -0
- package/styles/index.scss +127 -0
- package/styles/partials/_constants.scss +29 -0
- package/styles/partials/_fonts.scss +36 -0
- package/styles/partials/_grid.scss +171 -0
- package/styles/partials/_mixins.scss +145 -0
- package/styles/partials/_motion.scss +252 -0
- package/styles/partials/_theme.scss +275 -0
- package/styles/partials/_typography.scss +112 -0
- package/styles/partials/_utilities.scss +480 -0
- package/styles/partials/themes/_dark.scss +254 -0
- package/styles/partials/themes/_light.scss +254 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts +196 -0
- package/types/raintonic-formaui-cdk-drag-drop.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts +62 -0
- package/types/raintonic-formaui-cdk-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts +843 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts +112 -0
- package/types/raintonic-formaui-cdk-virtual-scroll.d.ts.map +1 -0
- package/types/raintonic-formaui-components-accordion.d.ts +124 -0
- package/types/raintonic-formaui-components-accordion.d.ts.map +1 -0
- package/types/raintonic-formaui-components-alert.d.ts +143 -0
- package/types/raintonic-formaui-components-alert.d.ts.map +1 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts +193 -0
- package/types/raintonic-formaui-components-autocomplete.d.ts.map +1 -0
- package/types/raintonic-formaui-components-avatar.d.ts +52 -0
- package/types/raintonic-formaui-components-avatar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-badge.d.ts +47 -0
- package/types/raintonic-formaui-components-badge.d.ts.map +1 -0
- package/types/raintonic-formaui-components-big-menu.d.ts +62 -0
- package/types/raintonic-formaui-components-big-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts +26 -0
- package/types/raintonic-formaui-components-breadcrumb.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button-group.d.ts +61 -0
- package/types/raintonic-formaui-components-button-group.d.ts.map +1 -0
- package/types/raintonic-formaui-components-button.d.ts +116 -0
- package/types/raintonic-formaui-components-button.d.ts.map +1 -0
- package/types/raintonic-formaui-components-card.d.ts +191 -0
- package/types/raintonic-formaui-components-card.d.ts.map +1 -0
- package/types/raintonic-formaui-components-checkbox.d.ts +132 -0
- package/types/raintonic-formaui-components-checkbox.d.ts.map +1 -0
- package/types/raintonic-formaui-components-data-table.d.ts +368 -0
- package/types/raintonic-formaui-components-data-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-date-picker.d.ts +341 -0
- package/types/raintonic-formaui-components-date-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-divider.d.ts +21 -0
- package/types/raintonic-formaui-components-divider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-drawer.d.ts +48 -0
- package/types/raintonic-formaui-components-drawer.d.ts.map +1 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts +412 -0
- package/types/raintonic-formaui-components-dynamic-form.d.ts.map +1 -0
- package/types/raintonic-formaui-components-empty-state.d.ts +14 -0
- package/types/raintonic-formaui-components-empty-state.d.ts.map +1 -0
- package/types/raintonic-formaui-components-file-upload.d.ts +77 -0
- package/types/raintonic-formaui-components-file-upload.d.ts.map +1 -0
- package/types/raintonic-formaui-components-form-field.d.ts +271 -0
- package/types/raintonic-formaui-components-form-field.d.ts.map +1 -0
- package/types/raintonic-formaui-components-icon.d.ts +61 -0
- package/types/raintonic-formaui-components-icon.d.ts.map +1 -0
- package/types/raintonic-formaui-components-input.d.ts +149 -0
- package/types/raintonic-formaui-components-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-list.d.ts +48 -0
- package/types/raintonic-formaui-components-list.d.ts.map +1 -0
- package/types/raintonic-formaui-components-menu.d.ts +403 -0
- package/types/raintonic-formaui-components-menu.d.ts.map +1 -0
- package/types/raintonic-formaui-components-number-input.d.ts +127 -0
- package/types/raintonic-formaui-components-number-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-paginator.d.ts +37 -0
- package/types/raintonic-formaui-components-paginator.d.ts.map +1 -0
- package/types/raintonic-formaui-components-password-input.d.ts +111 -0
- package/types/raintonic-formaui-components-password-input.d.ts.map +1 -0
- package/types/raintonic-formaui-components-popover.d.ts +131 -0
- package/types/raintonic-formaui-components-popover.d.ts.map +1 -0
- package/types/raintonic-formaui-components-progressbar.d.ts +111 -0
- package/types/raintonic-formaui-components-progressbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-radio.d.ts +95 -0
- package/types/raintonic-formaui-components-radio.d.ts.map +1 -0
- package/types/raintonic-formaui-components-select.d.ts +307 -0
- package/types/raintonic-formaui-components-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-side-panel.d.ts +51 -0
- package/types/raintonic-formaui-components-side-panel.d.ts.map +1 -0
- package/types/raintonic-formaui-components-sidebar.d.ts +174 -0
- package/types/raintonic-formaui-components-sidebar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-skeleton.d.ts +20 -0
- package/types/raintonic-formaui-components-skeleton.d.ts.map +1 -0
- package/types/raintonic-formaui-components-slider.d.ts +108 -0
- package/types/raintonic-formaui-components-slider.d.ts.map +1 -0
- package/types/raintonic-formaui-components-spinner.d.ts +42 -0
- package/types/raintonic-formaui-components-spinner.d.ts.map +1 -0
- package/types/raintonic-formaui-components-stepper.d.ts +126 -0
- package/types/raintonic-formaui-components-stepper.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tab.d.ts +96 -0
- package/types/raintonic-formaui-components-tab.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tag.d.ts +34 -0
- package/types/raintonic-formaui-components-tag.d.ts.map +1 -0
- package/types/raintonic-formaui-components-time-picker.d.ts +172 -0
- package/types/raintonic-formaui-components-time-picker.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toggle.d.ts +70 -0
- package/types/raintonic-formaui-components-toggle.d.ts.map +1 -0
- package/types/raintonic-formaui-components-toolbar.d.ts +128 -0
- package/types/raintonic-formaui-components-toolbar.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tooltip.d.ts +268 -0
- package/types/raintonic-formaui-components-tooltip.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-select.d.ts +80 -0
- package/types/raintonic-formaui-components-tree-select.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree-table.d.ts +90 -0
- package/types/raintonic-formaui-components-tree-table.d.ts.map +1 -0
- package/types/raintonic-formaui-components-tree.d.ts +104 -0
- package/types/raintonic-formaui-components-tree.d.ts.map +1 -0
- package/types/raintonic-formaui-core.d.ts +115 -0
- package/types/raintonic-formaui-core.d.ts.map +1 -0
- package/types/raintonic-formaui-services-dialog.d.ts +451 -0
- package/types/raintonic-formaui-services-dialog.d.ts.map +1 -0
- package/types/raintonic-formaui-services-notification.d.ts +221 -0
- package/types/raintonic-formaui-services-notification.d.ts.map +1 -0
- package/types/raintonic-formaui-services-theme.d.ts +126 -0
- package/types/raintonic-formaui-services-theme.d.ts.map +1 -0
- package/types/raintonic-formaui-test-utils.d.ts +24 -0
- package/types/raintonic-formaui-test-utils.d.ts.map +1 -0
- package/types/raintonic-formaui.d.ts +4 -0
- package/types/raintonic-formaui.d.ts.map +1 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
// Theme system with CSS variables
|
|
2
|
+
@use 'constants' as *;
|
|
3
|
+
@use './themes/light' as light;
|
|
4
|
+
@use './themes/dark' as dark;
|
|
5
|
+
|
|
6
|
+
// Re-export mixins so existing @use "theme" still works
|
|
7
|
+
@mixin fui-light-theme {
|
|
8
|
+
@include light.fui-light-theme;
|
|
9
|
+
}
|
|
10
|
+
@mixin fui-dark-theme {
|
|
11
|
+
@include dark.fui-dark-theme;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// Default theme setup
|
|
15
|
+
:root {
|
|
16
|
+
@include fui-light-theme();
|
|
17
|
+
|
|
18
|
+
// === SPACING SYSTEM ===
|
|
19
|
+
--fui-spacing-01: #{$fui-spacing-01};
|
|
20
|
+
--fui-spacing-02: #{$fui-spacing-02};
|
|
21
|
+
--fui-spacing-03: #{$fui-spacing-03};
|
|
22
|
+
--fui-spacing-04: #{$fui-spacing-04};
|
|
23
|
+
--fui-spacing-05: #{$fui-spacing-05};
|
|
24
|
+
--fui-spacing-06: #{$fui-spacing-06};
|
|
25
|
+
--fui-spacing-07: #{$fui-spacing-07};
|
|
26
|
+
--fui-spacing-08: #{$fui-spacing-08};
|
|
27
|
+
--fui-spacing-09: #{$fui-spacing-09};
|
|
28
|
+
--fui-spacing-10: #{$fui-spacing-10};
|
|
29
|
+
--fui-spacing-11: #{$fui-spacing-11};
|
|
30
|
+
--fui-spacing-12: #{$fui-spacing-12};
|
|
31
|
+
|
|
32
|
+
// === GAP TOKENS (Figma: forma-gap) ===
|
|
33
|
+
--fui-gap-4: 4px;
|
|
34
|
+
--fui-gap-8: 8px;
|
|
35
|
+
--fui-gap-10: 10px;
|
|
36
|
+
--fui-gap-16: 16px;
|
|
37
|
+
--fui-gap-24: 24px;
|
|
38
|
+
--fui-gap-32: 32px;
|
|
39
|
+
--fui-gap-40: 40px;
|
|
40
|
+
--fui-gap-48: 48px;
|
|
41
|
+
|
|
42
|
+
// === PADDING TOKENS (Figma: forma-padding) ===
|
|
43
|
+
--fui-padding-8: 8px;
|
|
44
|
+
--fui-padding-10: 10px;
|
|
45
|
+
--fui-padding-12: 12px;
|
|
46
|
+
--fui-padding-16: 16px;
|
|
47
|
+
--fui-padding-24: 24px;
|
|
48
|
+
--fui-padding-32: 32px;
|
|
49
|
+
--fui-padding-40: 40px;
|
|
50
|
+
--fui-padding-48: 48px;
|
|
51
|
+
|
|
52
|
+
// === TYPOGRAPHY SCALE ===
|
|
53
|
+
// Font families
|
|
54
|
+
--fui-font-family-sans: 'Inter Tight', sans-serif;
|
|
55
|
+
--fui-font-family-mono: 'DM Mono', monospace;
|
|
56
|
+
|
|
57
|
+
// Font sizes (rem)
|
|
58
|
+
--fui-font-size-01: 0.75rem;
|
|
59
|
+
--fui-font-size-02: 0.875rem;
|
|
60
|
+
--fui-font-size-03: 1rem;
|
|
61
|
+
--fui-font-size-04: 1.125rem;
|
|
62
|
+
--fui-font-size-05: 1.25rem;
|
|
63
|
+
--fui-font-size-06: 1.5rem;
|
|
64
|
+
--fui-font-size-07: 1.875rem;
|
|
65
|
+
--fui-font-size-08: 2.25rem;
|
|
66
|
+
--fui-font-size-09: 3rem;
|
|
67
|
+
--fui-font-size-10: 3.75rem;
|
|
68
|
+
--fui-font-size-11: 4.5rem;
|
|
69
|
+
|
|
70
|
+
// Font weights
|
|
71
|
+
--fui-font-weight-light: 300;
|
|
72
|
+
--fui-font-weight-regular: 400;
|
|
73
|
+
--fui-font-weight-medium: 500;
|
|
74
|
+
--fui-font-weight-semibold: 600;
|
|
75
|
+
--fui-font-weight-bold: 700;
|
|
76
|
+
|
|
77
|
+
// Line heights
|
|
78
|
+
--fui-line-height-condensed: 1.25rem;
|
|
79
|
+
--fui-line-height-body: 1.5rem;
|
|
80
|
+
--fui-line-height-heading: 1.125rem;
|
|
81
|
+
// Detailed line-height scale for utilities
|
|
82
|
+
--fui-line-height-01: 1.125rem;
|
|
83
|
+
--fui-line-height-02: 1.25rem;
|
|
84
|
+
--fui-line-height-03: 1.375rem;
|
|
85
|
+
--fui-line-height-04: 1.5rem;
|
|
86
|
+
--fui-line-height-05: 1.625rem;
|
|
87
|
+
--fui-line-height-06: 1.75rem;
|
|
88
|
+
--fui-line-height-07: 2rem;
|
|
89
|
+
|
|
90
|
+
// Specific line-heights for typography utilities
|
|
91
|
+
--fui-line-height-text-xs: 18px;
|
|
92
|
+
--fui-line-height-text-sm: 20px;
|
|
93
|
+
--fui-line-height-text-md: 24px;
|
|
94
|
+
--fui-line-height-text-lg: 28px;
|
|
95
|
+
--fui-line-height-text-xl: 30px;
|
|
96
|
+
|
|
97
|
+
--fui-line-height-display-xs: 32px;
|
|
98
|
+
--fui-line-height-display-sm: 38px;
|
|
99
|
+
--fui-line-height-display-md: 44px;
|
|
100
|
+
// For display-lg original design uses 80% (≈38.4px at 3rem); keep multiplier
|
|
101
|
+
--fui-line-height-display-lg: 0.8;
|
|
102
|
+
--fui-line-height-display-xl: 72px;
|
|
103
|
+
--fui-line-height-display-2xl: 90px;
|
|
104
|
+
|
|
105
|
+
// Letter spacing
|
|
106
|
+
--fui-letter-spacing-tight: -0.01em;
|
|
107
|
+
--fui-letter-spacing-normal: 0;
|
|
108
|
+
--fui-letter-spacing-wide: 0.02em;
|
|
109
|
+
|
|
110
|
+
// === MOTION SYSTEM ===
|
|
111
|
+
// Durations
|
|
112
|
+
--fui-duration-fast-01: 70ms;
|
|
113
|
+
--fui-duration-fast-02: 110ms;
|
|
114
|
+
--fui-duration-moderate-01: 150ms;
|
|
115
|
+
--fui-duration-moderate-02: 240ms;
|
|
116
|
+
--fui-duration-slow-01: 400ms;
|
|
117
|
+
--fui-duration-slow-02: 700ms;
|
|
118
|
+
|
|
119
|
+
// Easings
|
|
120
|
+
--fui-ease-standard: cubic-bezier(0.2, 0, 0.38, 0.9);
|
|
121
|
+
--fui-ease-entrance: cubic-bezier(0, 0, 0.38, 0.9);
|
|
122
|
+
--fui-ease-exit: cubic-bezier(0.2, 0, 1, 0.9);
|
|
123
|
+
--fui-ease-expressive: cubic-bezier(0.4, 0.14, 0.3, 1);
|
|
124
|
+
|
|
125
|
+
// === LAYOUT SYSTEM ===
|
|
126
|
+
// Border radius (Figma: forma-radius)
|
|
127
|
+
--fui-border-radius-xs: 4px;
|
|
128
|
+
--fui-border-radius-sm: 8px;
|
|
129
|
+
--fui-border-radius-md: 10px;
|
|
130
|
+
--fui-border-radius-lg: 16px;
|
|
131
|
+
--fui-border-radius-xl: 24px;
|
|
132
|
+
--fui-border-radius-pill: 999px;
|
|
133
|
+
|
|
134
|
+
// Border widths
|
|
135
|
+
--fui-border-width-sm: 1px;
|
|
136
|
+
--fui-border-width-md: 2px;
|
|
137
|
+
--fui-border-width-lg: 3px;
|
|
138
|
+
|
|
139
|
+
// Shadows
|
|
140
|
+
--fui-shadow-01: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
141
|
+
--fui-shadow-02: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
|
|
142
|
+
--fui-shadow-03: 0 3px 6px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.12);
|
|
143
|
+
--fui-shadow-04: 0 10px 20px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
|
|
144
|
+
--fui-shadow-05: 0 15px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.05);
|
|
145
|
+
|
|
146
|
+
// === COMPONENT SIZES ===
|
|
147
|
+
// Button heights
|
|
148
|
+
--fui-button-height-sm: 1.5rem; // 32px
|
|
149
|
+
--fui-button-height-md: 2.5rem; // 40px
|
|
150
|
+
--fui-button-height-lg: 3rem; // 48px
|
|
151
|
+
--fui-button-height-xl: 4rem; // 64px
|
|
152
|
+
|
|
153
|
+
// Input heights
|
|
154
|
+
--fui-input-height: 2.5rem; // 44px
|
|
155
|
+
|
|
156
|
+
// Icon sizes
|
|
157
|
+
--fui-icon-size-sm: 0.75rem; // 16px
|
|
158
|
+
--fui-icon-size-md: 1.25rem; // 20px
|
|
159
|
+
--fui-icon-size-lg: 1.5rem; // 24px
|
|
160
|
+
--fui-icon-size-xl: 2rem; // 32px
|
|
161
|
+
|
|
162
|
+
// === Z-INDEX SCALE ===
|
|
163
|
+
--fui-z-dropdown: 1000;
|
|
164
|
+
--fui-z-sticky: 1020;
|
|
165
|
+
--fui-z-fixed: 1030;
|
|
166
|
+
--fui-z-modal-backdrop: 1040;
|
|
167
|
+
--fui-z-modal: 1050;
|
|
168
|
+
--fui-z-popover: 1060;
|
|
169
|
+
--fui-z-tooltip: 1070;
|
|
170
|
+
|
|
171
|
+
// === BREAKPOINTS ===
|
|
172
|
+
--fui-breakpoint-xs: #{$fui-breakpoint-xs};
|
|
173
|
+
--fui-breakpoint-sm: #{$fui-breakpoint-sm};
|
|
174
|
+
--fui-breakpoint-md: #{$fui-breakpoint-md};
|
|
175
|
+
--fui-breakpoint-lg: #{$fui-breakpoint-lg};
|
|
176
|
+
--fui-breakpoint-xl: #{$fui-breakpoint-xl};
|
|
177
|
+
--fui-breakpoint-xxl: #{$fui-breakpoint-xxl};
|
|
178
|
+
|
|
179
|
+
// === GRID SYSTEM ===
|
|
180
|
+
--fui-grid-columns: #{$fui-grid-columns};
|
|
181
|
+
--fui-grid-gutter: #{$fui-grid-gutter};
|
|
182
|
+
--fui-container-max-width: #{$fui-container-max-width};
|
|
183
|
+
|
|
184
|
+
// === TRANSITIONS ===
|
|
185
|
+
// Standard transitions for consistency
|
|
186
|
+
--fui-transition-all: all var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
187
|
+
--fui-transition-colors:
|
|
188
|
+
background-color var(--fui-duration-fast-02) var(--fui-ease-standard),
|
|
189
|
+
border-color var(--fui-duration-fast-02) var(--fui-ease-standard),
|
|
190
|
+
color var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
191
|
+
--fui-transition-transform: transform var(--fui-duration-moderate-01) var(--fui-ease-standard);
|
|
192
|
+
--fui-transition-opacity: opacity var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
193
|
+
--fui-transition-shadow: box-shadow var(--fui-duration-fast-02) var(--fui-ease-standard);
|
|
194
|
+
|
|
195
|
+
// === MOTION: ANIMATION DEFAULTS ===
|
|
196
|
+
// Component-level animation tokens that can be themed
|
|
197
|
+
--fui-icon-spin-duration: var(--fui-duration-moderate-01);
|
|
198
|
+
--fui-icon-spin-timing: linear;
|
|
199
|
+
--fui-icon-pulse-duration: var(--fui-duration-slow-01);
|
|
200
|
+
--fui-icon-pulse-timing: var(--fui-ease-expressive);
|
|
201
|
+
|
|
202
|
+
--fui-opacity-disabled: 0.5;
|
|
203
|
+
|
|
204
|
+
--fui-tooltip-background: #334155;
|
|
205
|
+
--fui-tooltip-text: #f8fafc;
|
|
206
|
+
|
|
207
|
+
// === ADDITIONAL LAYOUT TOKENS ===
|
|
208
|
+
--fui-border-radius-none: 0;
|
|
209
|
+
|
|
210
|
+
// === FONT SIZE ALIASES (semantic) ===
|
|
211
|
+
--fui-font-size-xs: var(--fui-font-size-01);
|
|
212
|
+
--fui-font-size-sm: var(--fui-font-size-02);
|
|
213
|
+
--fui-font-size-md: var(--fui-font-size-03);
|
|
214
|
+
|
|
215
|
+
// === SHADOW ALIASES ===
|
|
216
|
+
--fui-shadow-lg: var(--fui-shadow-04);
|
|
217
|
+
|
|
218
|
+
// === CARD COMPONENT TOKENS ===
|
|
219
|
+
--fui-card-shadow: var(--fui-shadow-02);
|
|
220
|
+
--fui-card-shadow-hover: var(--fui-shadow-04);
|
|
221
|
+
--fui-card-padding: var(--fui-spacing-05);
|
|
222
|
+
--fui-card-border-radius: var(--fui-border-radius-xl);
|
|
223
|
+
|
|
224
|
+
// === FOCUS RING TOKENS ===
|
|
225
|
+
--fui-focus-ring-width: 2px;
|
|
226
|
+
--fui-focus-ring-color: var(--fui-primary-50);
|
|
227
|
+
--fui-focus-ring-offset: 2px;
|
|
228
|
+
|
|
229
|
+
// === DENSITY SYSTEM ===
|
|
230
|
+
--fui-density-scale: 1;
|
|
231
|
+
|
|
232
|
+
// Control heights
|
|
233
|
+
--fui-control-height-sm: calc(1.5rem * var(--fui-density-scale));
|
|
234
|
+
--fui-control-height-md: calc(2.5rem * var(--fui-density-scale));
|
|
235
|
+
--fui-control-height-lg: calc(3rem * var(--fui-density-scale));
|
|
236
|
+
|
|
237
|
+
// Control padding
|
|
238
|
+
--fui-control-padding-sm: calc(var(--fui-spacing-02) * var(--fui-density-scale));
|
|
239
|
+
--fui-control-padding-md: calc(var(--fui-spacing-03) * var(--fui-density-scale));
|
|
240
|
+
--fui-control-padding-lg: calc(var(--fui-spacing-04) * var(--fui-density-scale));
|
|
241
|
+
|
|
242
|
+
// Cell spacing (for tables)
|
|
243
|
+
--fui-cell-padding-y: calc(var(--fui-spacing-03) * var(--fui-density-scale));
|
|
244
|
+
--fui-cell-padding-x: calc(var(--fui-spacing-04) * var(--fui-density-scale));
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Dark theme class
|
|
248
|
+
.fui-theme-dark {
|
|
249
|
+
@include fui-dark-theme();
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
// Theme toggle utility
|
|
253
|
+
//@media (prefers-color-scheme: dark) {
|
|
254
|
+
// :root:not(.fui-theme-light) {
|
|
255
|
+
// @include fui-theme($fui-default-primary, $fui-default-secondary, true);
|
|
256
|
+
// @include fui-dark-theme();
|
|
257
|
+
// }
|
|
258
|
+
//}
|
|
259
|
+
|
|
260
|
+
// High contrast mode support (WCAG 2.1 AA)
|
|
261
|
+
@media (prefers-contrast: more) {
|
|
262
|
+
:root {
|
|
263
|
+
--fui-border-color: #000;
|
|
264
|
+
--fui-text-primary: #000;
|
|
265
|
+
--fui-focus-ring-color: #000;
|
|
266
|
+
--fui-border-width-sm: 2px;
|
|
267
|
+
--fui-border-width-md: 3px;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.fui-theme-dark {
|
|
271
|
+
--fui-border-color: #fff;
|
|
272
|
+
--fui-text-primary: #fff;
|
|
273
|
+
--fui-focus-ring-color: #fff;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
.fui-text-xs {
|
|
2
|
+
font-size: var(--fui-font-size-01);
|
|
3
|
+
font-style: normal;
|
|
4
|
+
font-weight: var(--fui-font-weight-regular);
|
|
5
|
+
line-height: var(--fui-line-height-text-xs);
|
|
6
|
+
letter-spacing: 0.24px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.fui-text-sm {
|
|
10
|
+
font-size: var(--fui-font-size-02);
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: var(--fui-font-weight-regular);
|
|
13
|
+
line-height: var(--fui-line-height-text-sm);
|
|
14
|
+
letter-spacing: 0.56px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.fui-text-md {
|
|
18
|
+
font-size: var(--fui-font-size-03);
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: var(--fui-font-weight-regular);
|
|
21
|
+
line-height: var(--fui-line-height-text-md);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.fui-text-lg {
|
|
25
|
+
font-size: var(--fui-font-size-04);
|
|
26
|
+
font-style: normal;
|
|
27
|
+
font-weight: var(--fui-font-weight-regular);
|
|
28
|
+
line-height: var(--fui-line-height-text-lg);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fui-text-xl {
|
|
32
|
+
font-size: var(--fui-font-size-05);
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: var(--fui-font-weight-regular);
|
|
35
|
+
line-height: var(--fui-line-height-text-xl);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Display text
|
|
39
|
+
.fui-display-xs {
|
|
40
|
+
font-size: var(--fui-font-size-06);
|
|
41
|
+
font-style: normal;
|
|
42
|
+
font-weight: var(--fui-font-weight-regular);
|
|
43
|
+
line-height: var(--fui-line-height-display-xs);
|
|
44
|
+
letter-spacing: 0.48px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.fui-display-sm {
|
|
48
|
+
font-size: var(--fui-font-size-07);
|
|
49
|
+
font-style: normal;
|
|
50
|
+
font-weight: var(--fui-font-weight-regular);
|
|
51
|
+
line-height: var(--fui-line-height-display-sm);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.fui-display-md {
|
|
55
|
+
font-size: var(--fui-font-size-08);
|
|
56
|
+
font-style: normal;
|
|
57
|
+
font-weight: var(--fui-font-weight-regular);
|
|
58
|
+
line-height: var(--fui-line-height-display-md);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.fui-display-lg {
|
|
62
|
+
font-size: var(--fui-font-size-09);
|
|
63
|
+
font-style: normal;
|
|
64
|
+
font-weight: var(--fui-font-weight-regular);
|
|
65
|
+
line-height: var(--fui-line-height-display-lg);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.fui-display-xl {
|
|
69
|
+
font-size: var(--fui-font-size-10);
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: var(--fui-font-weight-regular);
|
|
72
|
+
line-height: var(--fui-line-height-display-xl);
|
|
73
|
+
letter-spacing: -1.2px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.fui-display-2xl {
|
|
77
|
+
font-size: var(--fui-font-size-11);
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-weight: var(--fui-font-weight-regular);
|
|
80
|
+
line-height: var(--fui-line-height-display-2xl);
|
|
81
|
+
letter-spacing: -1.44px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Code text
|
|
85
|
+
.fui-code-01 {
|
|
86
|
+
font-family: var(--fui-font-family-mono);
|
|
87
|
+
font-size: var(--fui-font-size-01);
|
|
88
|
+
line-height: var(--fui-line-height-04);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.fui-code-02 {
|
|
92
|
+
font-family: var(--fui-font-family-mono);
|
|
93
|
+
font-size: var(--fui-font-size-02);
|
|
94
|
+
line-height: var(--fui-line-height-04);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Helper classes
|
|
98
|
+
.fui-font-light {
|
|
99
|
+
font-weight: var(--fui-font-weight-light);
|
|
100
|
+
}
|
|
101
|
+
.fui-font-regular {
|
|
102
|
+
font-weight: var(--fui-font-weight-regular);
|
|
103
|
+
}
|
|
104
|
+
.fui-font-medium {
|
|
105
|
+
font-weight: var(--fui-font-weight-medium);
|
|
106
|
+
}
|
|
107
|
+
.fui-font-semibold {
|
|
108
|
+
font-weight: var(--fui-font-weight-semibold);
|
|
109
|
+
}
|
|
110
|
+
.fui-font-bold {
|
|
111
|
+
font-weight: var(--fui-font-weight-bold);
|
|
112
|
+
}
|