@clusterenvision/ui-scss 1.94.3
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/LICENSE +21 -0
- package/README.md +152 -0
- package/dist/ce-ui-min.css +2951 -0
- package/dist/ce-ui-min.css.map +1 -0
- package/dist/ce-ui.css +4894 -0
- package/dist/ce-ui.css.map +1 -0
- package/dist/components/advanced/calendar.css +37 -0
- package/dist/components/advanced/carousel.css +59 -0
- package/dist/components/advanced/chat.css +29 -0
- package/dist/components/advanced/code-block.css +16 -0
- package/dist/components/advanced/editor.css +122 -0
- package/dist/components/advanced/rating.css +19 -0
- package/dist/components/advanced/steps.css +46 -0
- package/dist/components/advanced/timeline.css +32 -0
- package/dist/components/buttons/button-group.css +28 -0
- package/dist/components/buttons/button.css +305 -0
- package/dist/components/buttons/icon-button.css +32 -0
- package/dist/components/charts/chart-types.css +36 -0
- package/dist/components/containers/accordion.css +65 -0
- package/dist/components/containers/card.css +60 -0
- package/dist/components/containers/drawer.css +33 -0
- package/dist/components/containers/modal.css +61 -0
- package/dist/components/containers/panel.css +27 -0
- package/dist/components/containers/toast.css +38 -0
- package/dist/components/content/avatar.css +54 -0
- package/dist/components/content/badge.css +44 -0
- package/dist/components/content/chip.css +234 -0
- package/dist/components/content/divider.css +27 -0
- package/dist/components/content/image.css +23 -0
- package/dist/components/feedback/alert.css +50 -0
- package/dist/components/feedback/message.css +18 -0
- package/dist/components/feedback/progress-bar.css +22 -0
- package/dist/components/feedback/skeleton.css +35 -0
- package/dist/components/feedback/snackbar.css +30 -0
- package/dist/components/form-controls/checkbox.css +183 -0
- package/dist/components/form-controls/date-picker.css +26 -0
- package/dist/components/form-controls/file-upload.css +48 -0
- package/dist/components/form-controls/form-group.css +19 -0
- package/dist/components/form-controls/input.css +96 -0
- package/dist/components/form-controls/radio.css +20 -0
- package/dist/components/form-controls/range.css +42 -0
- package/dist/components/form-controls/select.css +243 -0
- package/dist/components/form-controls/textarea.css +28 -0
- package/dist/components/form-controls/toggle.css +38 -0
- package/dist/components/navigation/breadcrumbs.css +33 -0
- package/dist/components/navigation/menu.css +43 -0
- package/dist/components/navigation/navbar.css +64 -0
- package/dist/components/navigation/pagination.css +45 -0
- package/dist/components/navigation/sidebar.css +35 -0
- package/dist/components/navigation/tabs.css +25 -0
- package/dist/components/overlays/backdrop.css +6 -0
- package/dist/components/overlays/dropdown.css +77 -0
- package/dist/components/overlays/loader.css +28 -0
- package/dist/components/overlays/popover.css +54 -0
- package/dist/components/overlays/tooltip.css +37 -0
- package/dist/components/specialty/ce-atm-card.css +204 -0
- package/dist/components/tables-lists/data-table.css +48 -0
- package/dist/components/tables-lists/list.css +22 -0
- package/dist/components/tables-lists/table.css +40 -0
- package/dist/components/tables-lists/tree-view.css +37 -0
- package/dist/themes/core/package.json +12 -0
- package/dist/themes/core/tokens.css +120 -0
- package/dist/themes/core/tokens.d.ts +69 -0
- package/dist/themes/core/tokens.json +136 -0
- package/dist/themes/premium/package.json +12 -0
- package/dist/themes/premium/tokens.css +120 -0
- package/dist/themes/premium/tokens.d.ts +69 -0
- package/dist/themes/premium/tokens.json +136 -0
- package/dist/tokens/tokens.css +120 -0
- package/dist/tokens/tokens.d.ts +69 -0
- package/dist/tokens/tokens.json +133 -0
- package/package.json +61 -0
- package/src/abstracts/_functions.scss +34 -0
- package/src/abstracts/_mixins.scss +162 -0
- package/src/abstracts/_placeholders.scss +18 -0
- package/src/abstracts/_variables.scss +413 -0
- package/src/abstracts/_z-index.scss +9 -0
- package/src/accessibility/_focus-ring.scss +11 -0
- package/src/accessibility/_theme-switcher.scss +41 -0
- package/src/base/_animations.scss +32 -0
- package/src/base/_forms.scss +62 -0
- package/src/base/_reset.scss +102 -0
- package/src/base/_theme-base.scss +162 -0
- package/src/base/_typography.scss +38 -0
- package/src/components/advanced/_calendar.scss +47 -0
- package/src/components/advanced/_carousel.scss +87 -0
- package/src/components/advanced/_chat.scss +37 -0
- package/src/components/advanced/_code-block.scss +22 -0
- package/src/components/advanced/_editor.scss +156 -0
- package/src/components/advanced/_modal.scss +96 -0
- package/src/components/advanced/_notification-center.scss +172 -0
- package/src/components/advanced/_popover.scss +68 -0
- package/src/components/advanced/_rating.scss +22 -0
- package/src/components/advanced/_stepper.scss +135 -0
- package/src/components/advanced/_steps.scss +57 -0
- package/src/components/advanced/_timeline.scss +47 -0
- package/src/components/advanced/_wizard.scss +132 -0
- package/src/components/buttons/_button-group.scss +40 -0
- package/src/components/buttons/_button.scss +296 -0
- package/src/components/buttons/_icon-button.scss +42 -0
- package/src/components/charts/_chart-types.scss +74 -0
- package/src/components/containers/_accordion.scss +65 -0
- package/src/components/containers/_card.scss +65 -0
- package/src/components/containers/_drawer.scss +48 -0
- package/src/components/containers/_modal.scss +78 -0
- package/src/components/containers/_panel.scss +37 -0
- package/src/components/containers/_toast.scss +40 -0
- package/src/components/content/_avatar.scss +56 -0
- package/src/components/content/_badge.scss +42 -0
- package/src/components/content/_calendar.scss +147 -0
- package/src/components/content/_carousel.scss +112 -0
- package/src/components/content/_chip.scss +246 -0
- package/src/components/content/_divider.scss +49 -0
- package/src/components/content/_image.scss +32 -0
- package/src/components/content/_rating.scss +60 -0
- package/src/components/content/_rich-text-editor.scss +153 -0
- package/src/components/content/_timeline-advanced.scss +138 -0
- package/src/components/content/_timeline.scss +86 -0
- package/src/components/feedback/_advanced-notification.scss +156 -0
- package/src/components/feedback/_alert.scss +86 -0
- package/src/components/feedback/_message.scss +26 -0
- package/src/components/feedback/_notification-center.scss +118 -0
- package/src/components/feedback/_progress-bar.scss +48 -0
- package/src/components/feedback/_skeleton.scss +47 -0
- package/src/components/feedback/_snackbar.scss +38 -0
- package/src/components/feedback/_spinner.scss +211 -0
- package/src/components/feedback/_toast-queue.scss +164 -0
- package/src/components/form-controls/_autocomplete.scss +80 -0
- package/src/components/form-controls/_checkbox.scss +202 -0
- package/src/components/form-controls/_date-picker.scss +50 -0
- package/src/components/form-controls/_file-upload.scss +61 -0
- package/src/components/form-controls/_form-group.scss +26 -0
- package/src/components/form-controls/_input.scss +139 -0
- package/src/components/form-controls/_multi-select.scss +175 -0
- package/src/components/form-controls/_radio.scss +27 -0
- package/src/components/form-controls/_range.scss +54 -0
- package/src/components/form-controls/_select.scss +242 -0
- package/src/components/form-controls/_textarea.scss +45 -0
- package/src/components/form-controls/_toggle.scss +47 -0
- package/src/components/navigation/_breadcrumbs.scss +41 -0
- package/src/components/navigation/_menu.scss +75 -0
- package/src/components/navigation/_navbar.scss +79 -0
- package/src/components/navigation/_pagination.scss +85 -0
- package/src/components/navigation/_sidebar.scss +44 -0
- package/src/components/navigation/_stepper.scss +115 -0
- package/src/components/navigation/_tabs.scss +50 -0
- package/src/components/navigation/_tree-view.scss +95 -0
- package/src/components/navigation/_wizard.scss +132 -0
- package/src/components/overlays/_backdrop.scss +10 -0
- package/src/components/overlays/_dropdown.scss +110 -0
- package/src/components/overlays/_loader.scss +32 -0
- package/src/components/overlays/_popover.scss +64 -0
- package/src/components/overlays/_tooltip.scss +64 -0
- package/src/components/specialty/_ce-atm-card.scss +255 -0
- package/src/components/tables/_data-grid.scss +92 -0
- package/src/components/tables/_filter-grid.scss +29 -0
- package/src/components/tables-lists/_data-table.scss +63 -0
- package/src/components/tables-lists/_list.scss +30 -0
- package/src/components/tables-lists/_table.scss +79 -0
- package/src/components/tables-lists/_tree-view.scss +47 -0
- package/src/layout/_container.scss +20 -0
- package/src/layout/_footer.scss +41 -0
- package/src/layout/_grid.scss +23 -0
- package/src/layout/_header.scss +41 -0
- package/src/layout/_section.scss +26 -0
- package/src/layout/_sidebar.scss +39 -0
- package/src/layout/_stack.scss +23 -0
- package/src/main.css +3250 -0
- package/src/main.css.map +1 -0
- package/src/main.scss +158 -0
- package/src/minimal.scss +62 -0
- package/src/themes/_cool-slate.scss +11 -0
- package/src/themes/_dark.scss +11 -0
- package/src/themes/_default.scss +12 -0
- package/src/themes/_forest.scss +11 -0
- package/src/themes/_glassy-aero-windows.scss +9 -0
- package/src/themes/_glassy-amber.scss +21 -0
- package/src/themes/_glassy-aurora-sky.scss +9 -0
- package/src/themes/_glassy-blue.scss +10 -0
- package/src/themes/_glassy-cyan.scss +9 -0
- package/src/themes/_glassy-emerald-mist.scss +9 -0
- package/src/themes/_glassy-frosted-silver.scss +9 -0
- package/src/themes/_glassy-glass-white.scss +9 -0
- package/src/themes/_glassy-gold.scss +9 -0
- package/src/themes/_glassy-green.scss +10 -0
- package/src/themes/_glassy-ice-black.scss +13 -0
- package/src/themes/_glassy-mac-dark.scss +13 -0
- package/src/themes/_glassy-midnight-blue.scss +12 -0
- package/src/themes/_glassy-neon-cyber.scss +9 -0
- package/src/themes/_glassy-orange.scss +10 -0
- package/src/themes/_glassy-pink.scss +9 -0
- package/src/themes/_glassy-purple.scss +10 -0
- package/src/themes/_glassy-rose-gold.scss +9 -0
- package/src/themes/_glassy-sakura-glass.scss +9 -0
- package/src/themes/_glassy-silver.scss +9 -0
- package/src/themes/_glassy-teal.scss +9 -0
- package/src/themes/_high-contrast.scss +11 -0
- package/src/themes/_light.scss +10 -0
- package/src/themes/_mac.scss +10 -0
- package/src/themes/_minimal-mono.scss +11 -0
- package/src/themes/_mintwave.scss +9 -0
- package/src/themes/_neutral-light.scss +11 -0
- package/src/themes/_nordwave.scss +9 -0
- package/src/themes/_ocean.scss +9 -0
- package/src/themes/_orange.scss +9 -0
- package/src/themes/_purple.scss +9 -0
- package/src/themes/_red.scss +9 -0
- package/src/themes/_skyfade.scss +9 -0
- package/src/themes/_soft-pastel.scss +11 -0
- package/src/themes/_solarized.scss +9 -0
- package/src/themes/_standard-dark.scss +8 -0
- package/src/themes/_standard-default.scss +9 -0
- package/src/themes/_transparent.scss +9 -0
- package/src/themes/_true-dark.scss +11 -0
- package/src/themes/_warm-neutral.scss +11 -0
- package/src/themes.zip +0 -0
- package/src/tokens/tokens.json +133 -0
- package/src/utilities/_display.scss +11 -0
- package/src/utilities/_flex.scss +9 -0
- package/src/utilities/_position.scss +6 -0
- package/src/utilities/_screen-reader.scss +9 -0
- package/src/utilities/_spacing.scss +22 -0
- package/src/utilities/_text.scss +14 -0
- package/src/utilities/_visibility.scss +4 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* CE UI Tokens v1.0.0 */
|
|
2
|
+
:root {
|
|
3
|
+
--ce-spacing-0: 0rem;
|
|
4
|
+
--ce-spacing-4: 0.25rem;
|
|
5
|
+
--ce-spacing-8: 0.5rem;
|
|
6
|
+
--ce-spacing-12: 0.75rem;
|
|
7
|
+
--ce-spacing-16: 1rem;
|
|
8
|
+
--ce-spacing-24: 1.5rem;
|
|
9
|
+
--ce-spacing-32: 2rem;
|
|
10
|
+
--ce-spacing-48: 3rem;
|
|
11
|
+
--ce-spacing-64: 4rem;
|
|
12
|
+
--ce-radius-none: 0;
|
|
13
|
+
--ce-radius-xs: 2px;
|
|
14
|
+
--ce-radius-sm: 4px;
|
|
15
|
+
--ce-radius-md: 8px;
|
|
16
|
+
--ce-radius-lg: 12px;
|
|
17
|
+
--ce-radius-xl: 16px;
|
|
18
|
+
--ce-radius-pill: 10px;
|
|
19
|
+
--ce-radius-circle: 50%;
|
|
20
|
+
--ce-typography-font-family: 'Inter', system-ui, sans-serif;
|
|
21
|
+
--ce-typography-font-size-xs: 0.75rem;
|
|
22
|
+
--ce-typography-font-size-sm: 0.875rem;
|
|
23
|
+
--ce-typography-font-size-md: 1rem;
|
|
24
|
+
--ce-typography-font-size-lg: 1.125rem;
|
|
25
|
+
--ce-typography-font-size-xl: 1.25rem;
|
|
26
|
+
--ce-typography-font-size-xxl: 1.5rem;
|
|
27
|
+
--ce-typography-font-weight-regular: 400;
|
|
28
|
+
--ce-typography-font-weight-medium: 500;
|
|
29
|
+
--ce-typography-font-weight-bold: 600;
|
|
30
|
+
--ce-typography-line-height-tight: 1.2;
|
|
31
|
+
--ce-typography-line-height-normal: 1.5;
|
|
32
|
+
--ce-typography-line-height-relaxed: 1.7;
|
|
33
|
+
--ce-density-comfortable: 1;
|
|
34
|
+
--ce-density-compact: 0.85;
|
|
35
|
+
--ce-component-button-background: var(--ce-color-primary);
|
|
36
|
+
--ce-component-button-foreground: #ffffff;
|
|
37
|
+
--ce-component-button-border: var(--ce-color-primary);
|
|
38
|
+
--ce-component-button-radius: var(--ce-radius-sm);
|
|
39
|
+
--ce-component-button-padding-y: var(--ce-space-8);
|
|
40
|
+
--ce-component-button-padding-x: var(--ce-space-16);
|
|
41
|
+
--ce-component-input-background: var(--ce-color-surface);
|
|
42
|
+
--ce-component-input-foreground: var(--ce-color-text);
|
|
43
|
+
--ce-component-input-border: var(--ce-color-border);
|
|
44
|
+
--ce-component-input-radius: var(--ce-radius-sm);
|
|
45
|
+
--ce-component-input-padding-y: var(--ce-space-8);
|
|
46
|
+
--ce-component-input-padding-x: var(--ce-space-12);
|
|
47
|
+
--ce-component-card-background: var(--ce-color-surface);
|
|
48
|
+
--ce-component-card-foreground: var(--ce-color-text);
|
|
49
|
+
--ce-component-card-border: var(--ce-color-border);
|
|
50
|
+
--ce-component-card-radius: var(--ce-radius-md);
|
|
51
|
+
--ce-component-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
52
|
+
--ce-component-tooltip-background: var(--ce-color-text);
|
|
53
|
+
--ce-component-tooltip-foreground: var(--ce-color-surface);
|
|
54
|
+
--ce-component-tooltip-radius: var(--ce-radius-sm);
|
|
55
|
+
--ce-component-tooltip-padding-y: var(--ce-space-4);
|
|
56
|
+
--ce-component-tooltip-padding-x: var(--ce-space-8);
|
|
57
|
+
--ce-color-background: #f8fafc;
|
|
58
|
+
--ce-color-surface: #ffffff;
|
|
59
|
+
--ce-color-text: #0f172a;
|
|
60
|
+
--ce-color-text-muted: #6b7280;
|
|
61
|
+
--ce-color-primary: #2563eb;
|
|
62
|
+
--ce-color-accent: #2563eb;
|
|
63
|
+
--ce-color-border: #e5e7eb;
|
|
64
|
+
--ce-color-focus-ring: #2563eb;
|
|
65
|
+
--ce-color-success: #34a853;
|
|
66
|
+
--ce-color-warning: #f9ab00;
|
|
67
|
+
--ce-color-danger: #ea4335;
|
|
68
|
+
--ce-color-info: #4285f4;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:root[data-ce-theme="dark"],
|
|
72
|
+
:root.theme-dark,
|
|
73
|
+
.theme-dark {
|
|
74
|
+
--ce-color-background: #202124;
|
|
75
|
+
--ce-color-surface: #111827;
|
|
76
|
+
--ce-color-text: #ffffff;
|
|
77
|
+
--ce-color-text-muted: #f8f9fa;
|
|
78
|
+
--ce-color-primary: #1a73e8;
|
|
79
|
+
--ce-color-accent: #1a73e8;
|
|
80
|
+
--ce-color-border: #2b2f36;
|
|
81
|
+
--ce-color-focus-ring: #1a73e8;
|
|
82
|
+
--ce-color-success: #34a853;
|
|
83
|
+
--ce-color-warning: #f9ab00;
|
|
84
|
+
--ce-color-danger: #ea4335;
|
|
85
|
+
--ce-color-info: #4285f4;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:root[data-ce-theme="high-contrast"],
|
|
89
|
+
:root.theme-high-contrast,
|
|
90
|
+
.theme-high-contrast {
|
|
91
|
+
--ce-color-background: #000000;
|
|
92
|
+
--ce-color-surface: #0f1115;
|
|
93
|
+
--ce-color-text: #ffffff;
|
|
94
|
+
--ce-color-text-muted: #cbd5e1;
|
|
95
|
+
--ce-color-primary: #1d4ed8;
|
|
96
|
+
--ce-color-accent: #1d4ed8;
|
|
97
|
+
--ce-color-border: #ffffff;
|
|
98
|
+
--ce-color-focus-ring: #ffffff;
|
|
99
|
+
--ce-color-success: #34a853;
|
|
100
|
+
--ce-color-warning: #f9ab00;
|
|
101
|
+
--ce-color-danger: #ea4335;
|
|
102
|
+
--ce-color-info: #4285f4;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-color-scheme: dark) {
|
|
106
|
+
:root:not([data-ce-theme]):not([data-theme]):not(.theme-dark):not(.theme-light) {
|
|
107
|
+
--ce-color-background: #202124;
|
|
108
|
+
--ce-color-surface: #111827;
|
|
109
|
+
--ce-color-text: #ffffff;
|
|
110
|
+
--ce-color-text-muted: #f8f9fa;
|
|
111
|
+
--ce-color-primary: #1a73e8;
|
|
112
|
+
--ce-color-accent: #1a73e8;
|
|
113
|
+
--ce-color-border: #2b2f36;
|
|
114
|
+
--ce-color-focus-ring: #1a73e8;
|
|
115
|
+
--ce-color-success: #34a853;
|
|
116
|
+
--ce-color-warning: #f9ab00;
|
|
117
|
+
--ce-color-danger: #ea4335;
|
|
118
|
+
--ce-color-info: #4285f4;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type CeTokenName =
|
|
2
|
+
"color.accent" |
|
|
3
|
+
"color.background" |
|
|
4
|
+
"color.border" |
|
|
5
|
+
"color.danger" |
|
|
6
|
+
"color.focusRing" |
|
|
7
|
+
"color.info" |
|
|
8
|
+
"color.primary" |
|
|
9
|
+
"color.success" |
|
|
10
|
+
"color.surface" |
|
|
11
|
+
"color.text" |
|
|
12
|
+
"color.textMuted" |
|
|
13
|
+
"color.warning" |
|
|
14
|
+
"component.button.background" |
|
|
15
|
+
"component.button.border" |
|
|
16
|
+
"component.button.foreground" |
|
|
17
|
+
"component.button.paddingX" |
|
|
18
|
+
"component.button.paddingY" |
|
|
19
|
+
"component.button.radius" |
|
|
20
|
+
"component.card.background" |
|
|
21
|
+
"component.card.border" |
|
|
22
|
+
"component.card.foreground" |
|
|
23
|
+
"component.card.radius" |
|
|
24
|
+
"component.card.shadow" |
|
|
25
|
+
"component.input.background" |
|
|
26
|
+
"component.input.border" |
|
|
27
|
+
"component.input.foreground" |
|
|
28
|
+
"component.input.paddingX" |
|
|
29
|
+
"component.input.paddingY" |
|
|
30
|
+
"component.input.radius" |
|
|
31
|
+
"component.tooltip.background" |
|
|
32
|
+
"component.tooltip.foreground" |
|
|
33
|
+
"component.tooltip.paddingX" |
|
|
34
|
+
"component.tooltip.paddingY" |
|
|
35
|
+
"component.tooltip.radius" |
|
|
36
|
+
"density.comfortable" |
|
|
37
|
+
"density.compact" |
|
|
38
|
+
"radius.circle" |
|
|
39
|
+
"radius.lg" |
|
|
40
|
+
"radius.md" |
|
|
41
|
+
"radius.none" |
|
|
42
|
+
"radius.pill" |
|
|
43
|
+
"radius.sm" |
|
|
44
|
+
"radius.xl" |
|
|
45
|
+
"radius.xs" |
|
|
46
|
+
"spacing.0" |
|
|
47
|
+
"spacing.12" |
|
|
48
|
+
"spacing.16" |
|
|
49
|
+
"spacing.24" |
|
|
50
|
+
"spacing.32" |
|
|
51
|
+
"spacing.4" |
|
|
52
|
+
"spacing.48" |
|
|
53
|
+
"spacing.64" |
|
|
54
|
+
"spacing.8" |
|
|
55
|
+
"typography.fontFamily" |
|
|
56
|
+
"typography.fontSize.lg" |
|
|
57
|
+
"typography.fontSize.md" |
|
|
58
|
+
"typography.fontSize.sm" |
|
|
59
|
+
"typography.fontSize.xl" |
|
|
60
|
+
"typography.fontSize.xs" |
|
|
61
|
+
"typography.fontSize.xxl" |
|
|
62
|
+
"typography.fontWeight.bold" |
|
|
63
|
+
"typography.fontWeight.medium" |
|
|
64
|
+
"typography.fontWeight.regular" |
|
|
65
|
+
"typography.lineHeight.normal" |
|
|
66
|
+
"typography.lineHeight.relaxed" |
|
|
67
|
+
"typography.lineHeight.tight";
|
|
68
|
+
|
|
69
|
+
export type CeTokenMap = Record<CeTokenName, string>;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"product": "premium",
|
|
4
|
+
"name": "@clusterenvision/ce-ui-theme-premium",
|
|
5
|
+
"description": "Premium CE UI tokens",
|
|
6
|
+
"tokens": {
|
|
7
|
+
"spacing": {
|
|
8
|
+
"0": "0rem",
|
|
9
|
+
"4": "0.25rem",
|
|
10
|
+
"8": "0.5rem",
|
|
11
|
+
"12": "0.75rem",
|
|
12
|
+
"16": "1rem",
|
|
13
|
+
"24": "1.5rem",
|
|
14
|
+
"32": "2rem",
|
|
15
|
+
"48": "3rem",
|
|
16
|
+
"64": "4rem"
|
|
17
|
+
},
|
|
18
|
+
"radius": {
|
|
19
|
+
"none": "0",
|
|
20
|
+
"xs": "2px",
|
|
21
|
+
"sm": "4px",
|
|
22
|
+
"md": "8px",
|
|
23
|
+
"lg": "12px",
|
|
24
|
+
"xl": "16px",
|
|
25
|
+
"pill": "10px",
|
|
26
|
+
"circle": "50%"
|
|
27
|
+
},
|
|
28
|
+
"typography": {
|
|
29
|
+
"fontFamily": "'Inter', system-ui, sans-serif",
|
|
30
|
+
"fontSize": {
|
|
31
|
+
"xs": "0.75rem",
|
|
32
|
+
"sm": "0.875rem",
|
|
33
|
+
"md": "1rem",
|
|
34
|
+
"lg": "1.125rem",
|
|
35
|
+
"xl": "1.25rem",
|
|
36
|
+
"xxl": "1.5rem"
|
|
37
|
+
},
|
|
38
|
+
"fontWeight": {
|
|
39
|
+
"regular": "400",
|
|
40
|
+
"medium": "500",
|
|
41
|
+
"bold": "600"
|
|
42
|
+
},
|
|
43
|
+
"lineHeight": {
|
|
44
|
+
"tight": "1.2",
|
|
45
|
+
"normal": "1.5",
|
|
46
|
+
"relaxed": "1.7"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"density": {
|
|
50
|
+
"comfortable": "1",
|
|
51
|
+
"compact": "0.85"
|
|
52
|
+
},
|
|
53
|
+
"component": {
|
|
54
|
+
"button": {
|
|
55
|
+
"background": "var(--ce-color-primary)",
|
|
56
|
+
"foreground": "#ffffff",
|
|
57
|
+
"border": "var(--ce-color-primary)",
|
|
58
|
+
"radius": "var(--ce-radius-sm)",
|
|
59
|
+
"paddingY": "var(--ce-space-8)",
|
|
60
|
+
"paddingX": "var(--ce-space-16)"
|
|
61
|
+
},
|
|
62
|
+
"input": {
|
|
63
|
+
"background": "var(--ce-color-surface)",
|
|
64
|
+
"foreground": "var(--ce-color-text)",
|
|
65
|
+
"border": "var(--ce-color-border)",
|
|
66
|
+
"radius": "var(--ce-radius-sm)",
|
|
67
|
+
"paddingY": "var(--ce-space-8)",
|
|
68
|
+
"paddingX": "var(--ce-space-12)"
|
|
69
|
+
},
|
|
70
|
+
"card": {
|
|
71
|
+
"background": "var(--ce-color-surface)",
|
|
72
|
+
"foreground": "var(--ce-color-text)",
|
|
73
|
+
"border": "var(--ce-color-border)",
|
|
74
|
+
"radius": "var(--ce-radius-md)",
|
|
75
|
+
"shadow": "0 8px 24px rgba(0, 0, 0, 0.08)"
|
|
76
|
+
},
|
|
77
|
+
"tooltip": {
|
|
78
|
+
"background": "var(--ce-color-text)",
|
|
79
|
+
"foreground": "var(--ce-color-surface)",
|
|
80
|
+
"radius": "var(--ce-radius-sm)",
|
|
81
|
+
"paddingY": "var(--ce-space-4)",
|
|
82
|
+
"paddingX": "var(--ce-space-8)"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"modes": {
|
|
87
|
+
"light": {
|
|
88
|
+
"color": {
|
|
89
|
+
"background": "#f8fafc",
|
|
90
|
+
"surface": "#ffffff",
|
|
91
|
+
"text": "#0f172a",
|
|
92
|
+
"textMuted": "#6b7280",
|
|
93
|
+
"primary": "#2563eb",
|
|
94
|
+
"accent": "#2563eb",
|
|
95
|
+
"border": "#e5e7eb",
|
|
96
|
+
"focusRing": "#2563eb",
|
|
97
|
+
"success": "#34a853",
|
|
98
|
+
"warning": "#f9ab00",
|
|
99
|
+
"danger": "#ea4335",
|
|
100
|
+
"info": "#4285f4"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"dark": {
|
|
104
|
+
"color": {
|
|
105
|
+
"background": "#202124",
|
|
106
|
+
"surface": "#111827",
|
|
107
|
+
"text": "#ffffff",
|
|
108
|
+
"textMuted": "#f8f9fa",
|
|
109
|
+
"primary": "#1a73e8",
|
|
110
|
+
"accent": "#1a73e8",
|
|
111
|
+
"border": "#2b2f36",
|
|
112
|
+
"focusRing": "#1a73e8",
|
|
113
|
+
"success": "#34a853",
|
|
114
|
+
"warning": "#f9ab00",
|
|
115
|
+
"danger": "#ea4335",
|
|
116
|
+
"info": "#4285f4"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"high-contrast": {
|
|
120
|
+
"color": {
|
|
121
|
+
"background": "#000000",
|
|
122
|
+
"surface": "#0f1115",
|
|
123
|
+
"text": "#ffffff",
|
|
124
|
+
"textMuted": "#cbd5e1",
|
|
125
|
+
"primary": "#1d4ed8",
|
|
126
|
+
"accent": "#1d4ed8",
|
|
127
|
+
"border": "#ffffff",
|
|
128
|
+
"focusRing": "#ffffff",
|
|
129
|
+
"success": "#34a853",
|
|
130
|
+
"warning": "#f9ab00",
|
|
131
|
+
"danger": "#ea4335",
|
|
132
|
+
"info": "#4285f4"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/* CE UI Tokens v1.0.0 */
|
|
2
|
+
:root {
|
|
3
|
+
--ce-spacing-0: 0rem;
|
|
4
|
+
--ce-spacing-4: 0.25rem;
|
|
5
|
+
--ce-spacing-8: 0.5rem;
|
|
6
|
+
--ce-spacing-12: 0.75rem;
|
|
7
|
+
--ce-spacing-16: 1rem;
|
|
8
|
+
--ce-spacing-24: 1.5rem;
|
|
9
|
+
--ce-spacing-32: 2rem;
|
|
10
|
+
--ce-spacing-48: 3rem;
|
|
11
|
+
--ce-spacing-64: 4rem;
|
|
12
|
+
--ce-radius-none: 0;
|
|
13
|
+
--ce-radius-xs: 2px;
|
|
14
|
+
--ce-radius-sm: 4px;
|
|
15
|
+
--ce-radius-md: 8px;
|
|
16
|
+
--ce-radius-lg: 12px;
|
|
17
|
+
--ce-radius-xl: 16px;
|
|
18
|
+
--ce-radius-pill: 10px;
|
|
19
|
+
--ce-radius-circle: 50%;
|
|
20
|
+
--ce-typography-font-family: 'Inter', system-ui, sans-serif;
|
|
21
|
+
--ce-typography-font-size-xs: 0.75rem;
|
|
22
|
+
--ce-typography-font-size-sm: 0.875rem;
|
|
23
|
+
--ce-typography-font-size-md: 1rem;
|
|
24
|
+
--ce-typography-font-size-lg: 1.125rem;
|
|
25
|
+
--ce-typography-font-size-xl: 1.25rem;
|
|
26
|
+
--ce-typography-font-size-xxl: 1.5rem;
|
|
27
|
+
--ce-typography-font-weight-regular: 400;
|
|
28
|
+
--ce-typography-font-weight-medium: 500;
|
|
29
|
+
--ce-typography-font-weight-bold: 600;
|
|
30
|
+
--ce-typography-line-height-tight: 1.2;
|
|
31
|
+
--ce-typography-line-height-normal: 1.5;
|
|
32
|
+
--ce-typography-line-height-relaxed: 1.7;
|
|
33
|
+
--ce-density-comfortable: 1;
|
|
34
|
+
--ce-density-compact: 0.85;
|
|
35
|
+
--ce-component-button-background: var(--ce-color-primary);
|
|
36
|
+
--ce-component-button-foreground: #ffffff;
|
|
37
|
+
--ce-component-button-border: var(--ce-color-primary);
|
|
38
|
+
--ce-component-button-radius: var(--ce-radius-sm);
|
|
39
|
+
--ce-component-button-padding-y: var(--ce-space-8);
|
|
40
|
+
--ce-component-button-padding-x: var(--ce-space-16);
|
|
41
|
+
--ce-component-input-background: var(--ce-color-surface);
|
|
42
|
+
--ce-component-input-foreground: var(--ce-color-text);
|
|
43
|
+
--ce-component-input-border: var(--ce-color-border);
|
|
44
|
+
--ce-component-input-radius: var(--ce-radius-sm);
|
|
45
|
+
--ce-component-input-padding-y: var(--ce-space-8);
|
|
46
|
+
--ce-component-input-padding-x: var(--ce-space-12);
|
|
47
|
+
--ce-component-card-background: var(--ce-color-surface);
|
|
48
|
+
--ce-component-card-foreground: var(--ce-color-text);
|
|
49
|
+
--ce-component-card-border: var(--ce-color-border);
|
|
50
|
+
--ce-component-card-radius: var(--ce-radius-md);
|
|
51
|
+
--ce-component-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
52
|
+
--ce-component-tooltip-background: var(--ce-color-text);
|
|
53
|
+
--ce-component-tooltip-foreground: var(--ce-color-surface);
|
|
54
|
+
--ce-component-tooltip-radius: var(--ce-radius-sm);
|
|
55
|
+
--ce-component-tooltip-padding-y: var(--ce-space-4);
|
|
56
|
+
--ce-component-tooltip-padding-x: var(--ce-space-8);
|
|
57
|
+
--ce-color-background: #f8fafc;
|
|
58
|
+
--ce-color-surface: #ffffff;
|
|
59
|
+
--ce-color-text: #0f172a;
|
|
60
|
+
--ce-color-text-muted: #6b7280;
|
|
61
|
+
--ce-color-primary: #2563eb;
|
|
62
|
+
--ce-color-accent: #2563eb;
|
|
63
|
+
--ce-color-border: #e5e7eb;
|
|
64
|
+
--ce-color-focus-ring: #2563eb;
|
|
65
|
+
--ce-color-success: #34a853;
|
|
66
|
+
--ce-color-warning: #f9ab00;
|
|
67
|
+
--ce-color-danger: #ea4335;
|
|
68
|
+
--ce-color-info: #4285f4;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:root[data-ce-theme="dark"],
|
|
72
|
+
:root.theme-dark,
|
|
73
|
+
.theme-dark {
|
|
74
|
+
--ce-color-background: #202124;
|
|
75
|
+
--ce-color-surface: #111827;
|
|
76
|
+
--ce-color-text: #ffffff;
|
|
77
|
+
--ce-color-text-muted: #f8f9fa;
|
|
78
|
+
--ce-color-primary: #1a73e8;
|
|
79
|
+
--ce-color-accent: #1a73e8;
|
|
80
|
+
--ce-color-border: #2b2f36;
|
|
81
|
+
--ce-color-focus-ring: #1a73e8;
|
|
82
|
+
--ce-color-success: #34a853;
|
|
83
|
+
--ce-color-warning: #f9ab00;
|
|
84
|
+
--ce-color-danger: #ea4335;
|
|
85
|
+
--ce-color-info: #4285f4;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:root[data-ce-theme="high-contrast"],
|
|
89
|
+
:root.theme-high-contrast,
|
|
90
|
+
.theme-high-contrast {
|
|
91
|
+
--ce-color-background: #000000;
|
|
92
|
+
--ce-color-surface: #0f1115;
|
|
93
|
+
--ce-color-text: #ffffff;
|
|
94
|
+
--ce-color-text-muted: #cbd5e1;
|
|
95
|
+
--ce-color-primary: #1d4ed8;
|
|
96
|
+
--ce-color-accent: #1d4ed8;
|
|
97
|
+
--ce-color-border: #ffffff;
|
|
98
|
+
--ce-color-focus-ring: #ffffff;
|
|
99
|
+
--ce-color-success: #34a853;
|
|
100
|
+
--ce-color-warning: #f9ab00;
|
|
101
|
+
--ce-color-danger: #ea4335;
|
|
102
|
+
--ce-color-info: #4285f4;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (prefers-color-scheme: dark) {
|
|
106
|
+
:root:not([data-ce-theme]):not([data-theme]):not(.theme-dark):not(.theme-light) {
|
|
107
|
+
--ce-color-background: #202124;
|
|
108
|
+
--ce-color-surface: #111827;
|
|
109
|
+
--ce-color-text: #ffffff;
|
|
110
|
+
--ce-color-text-muted: #f8f9fa;
|
|
111
|
+
--ce-color-primary: #1a73e8;
|
|
112
|
+
--ce-color-accent: #1a73e8;
|
|
113
|
+
--ce-color-border: #2b2f36;
|
|
114
|
+
--ce-color-focus-ring: #1a73e8;
|
|
115
|
+
--ce-color-success: #34a853;
|
|
116
|
+
--ce-color-warning: #f9ab00;
|
|
117
|
+
--ce-color-danger: #ea4335;
|
|
118
|
+
--ce-color-info: #4285f4;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export type CeTokenName =
|
|
2
|
+
"color.accent" |
|
|
3
|
+
"color.background" |
|
|
4
|
+
"color.border" |
|
|
5
|
+
"color.danger" |
|
|
6
|
+
"color.focusRing" |
|
|
7
|
+
"color.info" |
|
|
8
|
+
"color.primary" |
|
|
9
|
+
"color.success" |
|
|
10
|
+
"color.surface" |
|
|
11
|
+
"color.text" |
|
|
12
|
+
"color.textMuted" |
|
|
13
|
+
"color.warning" |
|
|
14
|
+
"component.button.background" |
|
|
15
|
+
"component.button.border" |
|
|
16
|
+
"component.button.foreground" |
|
|
17
|
+
"component.button.paddingX" |
|
|
18
|
+
"component.button.paddingY" |
|
|
19
|
+
"component.button.radius" |
|
|
20
|
+
"component.card.background" |
|
|
21
|
+
"component.card.border" |
|
|
22
|
+
"component.card.foreground" |
|
|
23
|
+
"component.card.radius" |
|
|
24
|
+
"component.card.shadow" |
|
|
25
|
+
"component.input.background" |
|
|
26
|
+
"component.input.border" |
|
|
27
|
+
"component.input.foreground" |
|
|
28
|
+
"component.input.paddingX" |
|
|
29
|
+
"component.input.paddingY" |
|
|
30
|
+
"component.input.radius" |
|
|
31
|
+
"component.tooltip.background" |
|
|
32
|
+
"component.tooltip.foreground" |
|
|
33
|
+
"component.tooltip.paddingX" |
|
|
34
|
+
"component.tooltip.paddingY" |
|
|
35
|
+
"component.tooltip.radius" |
|
|
36
|
+
"density.comfortable" |
|
|
37
|
+
"density.compact" |
|
|
38
|
+
"radius.circle" |
|
|
39
|
+
"radius.lg" |
|
|
40
|
+
"radius.md" |
|
|
41
|
+
"radius.none" |
|
|
42
|
+
"radius.pill" |
|
|
43
|
+
"radius.sm" |
|
|
44
|
+
"radius.xl" |
|
|
45
|
+
"radius.xs" |
|
|
46
|
+
"spacing.0" |
|
|
47
|
+
"spacing.12" |
|
|
48
|
+
"spacing.16" |
|
|
49
|
+
"spacing.24" |
|
|
50
|
+
"spacing.32" |
|
|
51
|
+
"spacing.4" |
|
|
52
|
+
"spacing.48" |
|
|
53
|
+
"spacing.64" |
|
|
54
|
+
"spacing.8" |
|
|
55
|
+
"typography.fontFamily" |
|
|
56
|
+
"typography.fontSize.lg" |
|
|
57
|
+
"typography.fontSize.md" |
|
|
58
|
+
"typography.fontSize.sm" |
|
|
59
|
+
"typography.fontSize.xl" |
|
|
60
|
+
"typography.fontSize.xs" |
|
|
61
|
+
"typography.fontSize.xxl" |
|
|
62
|
+
"typography.fontWeight.bold" |
|
|
63
|
+
"typography.fontWeight.medium" |
|
|
64
|
+
"typography.fontWeight.regular" |
|
|
65
|
+
"typography.lineHeight.normal" |
|
|
66
|
+
"typography.lineHeight.relaxed" |
|
|
67
|
+
"typography.lineHeight.tight";
|
|
68
|
+
|
|
69
|
+
export type CeTokenMap = Record<CeTokenName, string>;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "1.0.0",
|
|
3
|
+
"modes": {
|
|
4
|
+
"light": {
|
|
5
|
+
"color": {
|
|
6
|
+
"background": "#f8fafc",
|
|
7
|
+
"surface": "#ffffff",
|
|
8
|
+
"text": "#0f172a",
|
|
9
|
+
"textMuted": "#6b7280",
|
|
10
|
+
"primary": "#2563eb",
|
|
11
|
+
"accent": "#2563eb",
|
|
12
|
+
"border": "#e5e7eb",
|
|
13
|
+
"focusRing": "#2563eb",
|
|
14
|
+
"success": "#34a853",
|
|
15
|
+
"warning": "#f9ab00",
|
|
16
|
+
"danger": "#ea4335",
|
|
17
|
+
"info": "#4285f4"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"dark": {
|
|
21
|
+
"color": {
|
|
22
|
+
"background": "#202124",
|
|
23
|
+
"surface": "#111827",
|
|
24
|
+
"text": "#ffffff",
|
|
25
|
+
"textMuted": "#f8f9fa",
|
|
26
|
+
"primary": "#1a73e8",
|
|
27
|
+
"accent": "#1a73e8",
|
|
28
|
+
"border": "#2b2f36",
|
|
29
|
+
"focusRing": "#1a73e8",
|
|
30
|
+
"success": "#34a853",
|
|
31
|
+
"warning": "#f9ab00",
|
|
32
|
+
"danger": "#ea4335",
|
|
33
|
+
"info": "#4285f4"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"high-contrast": {
|
|
37
|
+
"color": {
|
|
38
|
+
"background": "#000000",
|
|
39
|
+
"surface": "#0f1115",
|
|
40
|
+
"text": "#ffffff",
|
|
41
|
+
"textMuted": "#cbd5e1",
|
|
42
|
+
"primary": "#1d4ed8",
|
|
43
|
+
"accent": "#1d4ed8",
|
|
44
|
+
"border": "#ffffff",
|
|
45
|
+
"focusRing": "#ffffff",
|
|
46
|
+
"success": "#34a853",
|
|
47
|
+
"warning": "#f9ab00",
|
|
48
|
+
"danger": "#ea4335",
|
|
49
|
+
"info": "#4285f4"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"tokens": {
|
|
54
|
+
"spacing": {
|
|
55
|
+
"0": "0rem",
|
|
56
|
+
"4": "0.25rem",
|
|
57
|
+
"8": "0.5rem",
|
|
58
|
+
"12": "0.75rem",
|
|
59
|
+
"16": "1rem",
|
|
60
|
+
"24": "1.5rem",
|
|
61
|
+
"32": "2rem",
|
|
62
|
+
"48": "3rem",
|
|
63
|
+
"64": "4rem"
|
|
64
|
+
},
|
|
65
|
+
"radius": {
|
|
66
|
+
"none": "0",
|
|
67
|
+
"xs": "2px",
|
|
68
|
+
"sm": "4px",
|
|
69
|
+
"md": "8px",
|
|
70
|
+
"lg": "12px",
|
|
71
|
+
"xl": "16px",
|
|
72
|
+
"pill": "10px",
|
|
73
|
+
"circle": "50%"
|
|
74
|
+
},
|
|
75
|
+
"typography": {
|
|
76
|
+
"fontFamily": "'Inter', system-ui, sans-serif",
|
|
77
|
+
"fontSize": {
|
|
78
|
+
"xs": "0.75rem",
|
|
79
|
+
"sm": "0.875rem",
|
|
80
|
+
"md": "1rem",
|
|
81
|
+
"lg": "1.125rem",
|
|
82
|
+
"xl": "1.25rem",
|
|
83
|
+
"xxl": "1.5rem"
|
|
84
|
+
},
|
|
85
|
+
"fontWeight": {
|
|
86
|
+
"regular": "400",
|
|
87
|
+
"medium": "500",
|
|
88
|
+
"bold": "600"
|
|
89
|
+
},
|
|
90
|
+
"lineHeight": {
|
|
91
|
+
"tight": "1.2",
|
|
92
|
+
"normal": "1.5",
|
|
93
|
+
"relaxed": "1.7"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"density": {
|
|
97
|
+
"comfortable": "1",
|
|
98
|
+
"compact": "0.85"
|
|
99
|
+
},
|
|
100
|
+
"component": {
|
|
101
|
+
"button": {
|
|
102
|
+
"background": "var(--ce-color-primary)",
|
|
103
|
+
"foreground": "#ffffff",
|
|
104
|
+
"border": "var(--ce-color-primary)",
|
|
105
|
+
"radius": "var(--ce-radius-sm)",
|
|
106
|
+
"paddingY": "var(--ce-space-8)",
|
|
107
|
+
"paddingX": "var(--ce-space-16)"
|
|
108
|
+
},
|
|
109
|
+
"input": {
|
|
110
|
+
"background": "var(--ce-color-surface)",
|
|
111
|
+
"foreground": "var(--ce-color-text)",
|
|
112
|
+
"border": "var(--ce-color-border)",
|
|
113
|
+
"radius": "var(--ce-radius-sm)",
|
|
114
|
+
"paddingY": "var(--ce-space-8)",
|
|
115
|
+
"paddingX": "var(--ce-space-12)"
|
|
116
|
+
},
|
|
117
|
+
"card": {
|
|
118
|
+
"background": "var(--ce-color-surface)",
|
|
119
|
+
"foreground": "var(--ce-color-text)",
|
|
120
|
+
"border": "var(--ce-color-border)",
|
|
121
|
+
"radius": "var(--ce-radius-md)",
|
|
122
|
+
"shadow": "0 8px 24px rgba(0, 0, 0, 0.08)"
|
|
123
|
+
},
|
|
124
|
+
"tooltip": {
|
|
125
|
+
"background": "var(--ce-color-text)",
|
|
126
|
+
"foreground": "var(--ce-color-surface)",
|
|
127
|
+
"radius": "var(--ce-radius-sm)",
|
|
128
|
+
"paddingY": "var(--ce-space-4)",
|
|
129
|
+
"paddingX": "var(--ce-space-8)"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|