@scattered-light/base-ui-theme 0.1.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/README.md +19 -0
- package/dist/index.d.ts +103 -0
- package/dist/index.js +313 -0
- package/dist/index.js.map +1 -0
- package/dist/styles/base/borders.css +26 -0
- package/dist/styles/base/breakpoints.css +26 -0
- package/dist/styles/base/colors.css +150 -0
- package/dist/styles/base/global.css +108 -0
- package/dist/styles/base/reset-accessibility.css +119 -0
- package/dist/styles/base/reset.css +451 -0
- package/dist/styles/base/shadows.css +42 -0
- package/dist/styles/base/spacing.css +62 -0
- package/dist/styles/base/transitions.css +29 -0
- package/dist/styles/base/typography.css +63 -0
- package/dist/styles/base/z-index.css +22 -0
- package/dist/styles/components/AGGrid.css +6 -0
- package/dist/styles/components/Accordion.css +184 -0
- package/dist/styles/components/AlertDialog.css +172 -0
- package/dist/styles/components/Autocomplete.css +261 -0
- package/dist/styles/components/Avatar.css +154 -0
- package/dist/styles/components/Button.css +164 -0
- package/dist/styles/components/Checkbox.css +199 -0
- package/dist/styles/components/CheckboxGroup.css +21 -0
- package/dist/styles/components/Collapsible.css +115 -0
- package/dist/styles/components/Combobox.css +514 -0
- package/dist/styles/components/ContextMenu.css +209 -0
- package/dist/styles/components/Dialog.css +159 -0
- package/dist/styles/components/Field.css +138 -0
- package/dist/styles/components/Fieldset.css +48 -0
- package/dist/styles/components/Form.css +22 -0
- package/dist/styles/components/Input.css +106 -0
- package/dist/styles/components/Menu.css +158 -0
- package/dist/styles/components/Menubar.css +201 -0
- package/dist/styles/components/Meter.css +104 -0
- package/dist/styles/components/NavigationMenu.css +469 -0
- package/dist/styles/components/NumberField.css +182 -0
- package/dist/styles/components/Popover.css +167 -0
- package/dist/styles/components/PreviewCard.css +148 -0
- package/dist/styles/components/Progress.css +130 -0
- package/dist/styles/components/Radio.css +178 -0
- package/dist/styles/components/ScrollArea.css +103 -0
- package/dist/styles/components/Select.css +297 -0
- package/dist/styles/components/Separator.css +34 -0
- package/dist/styles/components/Slider.css +163 -0
- package/dist/styles/components/Switch.css +197 -0
- package/dist/styles/components/Tabs.css +163 -0
- package/dist/styles/components/Toast.css +261 -0
- package/dist/styles/components/Toggle.css +103 -0
- package/dist/styles/components/ToggleGroup.css +19 -0
- package/dist/styles/components/Toolbar.css +78 -0
- package/dist/styles/components/Tooltip.css +87 -0
- package/dist/styles/index.css +103 -0
- package/dist/styles/semantic/accessibility.css +77 -0
- package/dist/styles/semantic/accordion.css +102 -0
- package/dist/styles/semantic/ag-grid.css +114 -0
- package/dist/styles/semantic/alert-dialog.css +78 -0
- package/dist/styles/semantic/autocomplete.css +162 -0
- package/dist/styles/semantic/avatar.css +96 -0
- package/dist/styles/semantic/badge.css +16 -0
- package/dist/styles/semantic/button.css +145 -0
- package/dist/styles/semantic/card.css +14 -0
- package/dist/styles/semantic/checkbox-group.css +18 -0
- package/dist/styles/semantic/checkbox.css +117 -0
- package/dist/styles/semantic/collapsible.css +123 -0
- package/dist/styles/semantic/combobox.css +325 -0
- package/dist/styles/semantic/context-menu.css +131 -0
- package/dist/styles/semantic/dialog.css +91 -0
- package/dist/styles/semantic/dropdown.css +16 -0
- package/dist/styles/semantic/field.css +73 -0
- package/dist/styles/semantic/fieldset.css +45 -0
- package/dist/styles/semantic/form.css +20 -0
- package/dist/styles/semantic/input.css +83 -0
- package/dist/styles/semantic/menu.css +104 -0
- package/dist/styles/semantic/menubar.css +70 -0
- package/dist/styles/semantic/meter.css +88 -0
- package/dist/styles/semantic/modal.css +14 -0
- package/dist/styles/semantic/navigation-menu.css +171 -0
- package/dist/styles/semantic/number-field.css +142 -0
- package/dist/styles/semantic/popover.css +113 -0
- package/dist/styles/semantic/preview-card.css +108 -0
- package/dist/styles/semantic/progress.css +85 -0
- package/dist/styles/semantic/radio.css +103 -0
- package/dist/styles/semantic/scroll-area.css +64 -0
- package/dist/styles/semantic/select.css +197 -0
- package/dist/styles/semantic/separator.css +37 -0
- package/dist/styles/semantic/slider.css +120 -0
- package/dist/styles/semantic/switch.css +158 -0
- package/dist/styles/semantic/tabs.css +150 -0
- package/dist/styles/semantic/toast.css +171 -0
- package/dist/styles/semantic/toggle-group.css +29 -0
- package/dist/styles/semantic/toggle.css +94 -0
- package/dist/styles/semantic/toolbar.css +47 -0
- package/dist/styles/semantic/tooltip.css +56 -0
- package/dist/styles/theme/README.md +179 -0
- package/dist/styles/theme/theme-accessibility.css +13 -0
- package/dist/styles/theme/theme-primitives.css +7 -0
- package/dist/styles/theme/theme-radius.css +12 -0
- package/dist/styles/theme/theme-roles.css +66 -0
- package/dist/styles/theme/theme-spacing.css +28 -0
- package/dist/styles/theme/theme-stroke.css +7 -0
- package/dist/styles/theme/theme-typography.css +218 -0
- package/dist/styles/utilities/color-styles.css +34 -0
- package/dist/styles/utilities/layout-styles.css +19 -0
- package/dist/styles/utilities/text-styles.css +102 -0
- package/package.json +75 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* Field Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
ROOT CONTAINER
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--field-root-display: flex;
|
|
9
|
+
--field-root-flex-direction: column;
|
|
10
|
+
--field-root-gap: var(--space-1-5);
|
|
11
|
+
|
|
12
|
+
/* ============================================
|
|
13
|
+
LABEL — ui label (caption + medium)
|
|
14
|
+
============================================ */
|
|
15
|
+
|
|
16
|
+
--field-label-font-family: var(--theme-font-base-label-font-family);
|
|
17
|
+
--field-label-font-size: var(--theme-font-base-label-font-size);
|
|
18
|
+
--field-label-font-weight: var(--theme-font-base-label-font-weight);
|
|
19
|
+
--field-label-line-height: var(--theme-font-base-label-line-height);
|
|
20
|
+
--field-label-letter-spacing: var(--theme-font-base-label-letter-spacing);
|
|
21
|
+
--field-label-color: var(--text-primary);
|
|
22
|
+
--field-label-margin-bottom: var(--space-1);
|
|
23
|
+
|
|
24
|
+
/* ============================================
|
|
25
|
+
CONTROL (reuses input tokens - no duplication)
|
|
26
|
+
============================================ */
|
|
27
|
+
|
|
28
|
+
/* All control styling comes from input tokens via inheritance */
|
|
29
|
+
|
|
30
|
+
/* ============================================
|
|
31
|
+
DESCRIPTION (help text) — caption
|
|
32
|
+
============================================ */
|
|
33
|
+
|
|
34
|
+
--field-description-font-family: var(--theme-font-condense-font-family);
|
|
35
|
+
--field-description-font-size: var(--theme-font-condense-font-size);
|
|
36
|
+
--field-description-font-weight: var(--theme-font-condense-font-weight);
|
|
37
|
+
--field-description-line-height: var(--theme-font-condense-line-height);
|
|
38
|
+
--field-description-letter-spacing: var(--theme-font-condense-letter-spacing);
|
|
39
|
+
--field-description-color: var(--text-secondary);
|
|
40
|
+
--field-description-margin-top: var(--space-1);
|
|
41
|
+
|
|
42
|
+
/* ============================================
|
|
43
|
+
ERROR — caption + medium weight
|
|
44
|
+
============================================ */
|
|
45
|
+
|
|
46
|
+
--field-error-font-family: var(--theme-font-condense-font-family);
|
|
47
|
+
--field-error-font-size: var(--theme-font-condense-font-size);
|
|
48
|
+
--field-error-font-weight: var(--font-weight-medium);
|
|
49
|
+
--field-error-line-height: var(--theme-font-condense-line-height);
|
|
50
|
+
--field-error-letter-spacing: var(--theme-font-condense-letter-spacing);
|
|
51
|
+
--field-error-color: var(--theme-status-error);
|
|
52
|
+
--field-error-margin-top: var(--space-1);
|
|
53
|
+
|
|
54
|
+
/* ============================================
|
|
55
|
+
DISABLED STATE
|
|
56
|
+
============================================ */
|
|
57
|
+
|
|
58
|
+
--field-disabled-opacity: 0.6;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/* ============================================
|
|
62
|
+
DARK MODE OVERRIDES
|
|
63
|
+
============================================ */
|
|
64
|
+
|
|
65
|
+
@media (prefers-color-scheme: dark) {
|
|
66
|
+
:root {
|
|
67
|
+
--field-error-color: var(--theme-status-error);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
[data-theme='dark'] {
|
|
72
|
+
--field-error-color: var(--theme-status-error);
|
|
73
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* Fieldset Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
FIELDSET
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--fieldset-border: none;
|
|
9
|
+
--fieldset-padding: 0;
|
|
10
|
+
--fieldset-margin: 0;
|
|
11
|
+
--fieldset-display: flex;
|
|
12
|
+
--fieldset-flex-direction: column;
|
|
13
|
+
--fieldset-gap: var(--space-6);
|
|
14
|
+
|
|
15
|
+
/* ============================================
|
|
16
|
+
LEGEND
|
|
17
|
+
============================================ */
|
|
18
|
+
|
|
19
|
+
--fieldset-legend-font-family: var(--theme-maximize-lg-font-family);
|
|
20
|
+
--fieldset-legend-font-size: var(--theme-maximize-lg-font-size);
|
|
21
|
+
--fieldset-legend-font-weight: var(--theme-maximize-lg-font-weight);
|
|
22
|
+
--fieldset-legend-line-height: var(--theme-maximize-lg-line-height);
|
|
23
|
+
--fieldset-legend-letter-spacing: var(--theme-maximize-lg-letter-spacing);
|
|
24
|
+
--fieldset-legend-color: var(--text-primary);
|
|
25
|
+
--fieldset-legend-margin-bottom: var(--space-4);
|
|
26
|
+
--fieldset-legend-padding: 0;
|
|
27
|
+
|
|
28
|
+
/* ============================================
|
|
29
|
+
DESCRIPTION
|
|
30
|
+
============================================ */
|
|
31
|
+
|
|
32
|
+
--fieldset-description-font-family: var(--theme-font-condense-font-family);
|
|
33
|
+
--fieldset-description-font-size: var(--theme-font-condense-font-size);
|
|
34
|
+
--fieldset-description-font-weight: var(--theme-font-condense-font-weight);
|
|
35
|
+
--fieldset-description-line-height: var(--theme-font-condense-line-height);
|
|
36
|
+
--fieldset-description-letter-spacing: var(--theme-font-condense-letter-spacing);
|
|
37
|
+
--fieldset-description-color: var(--text-secondary);
|
|
38
|
+
--fieldset-description-margin-bottom: var(--space-4);
|
|
39
|
+
|
|
40
|
+
/* ============================================
|
|
41
|
+
DISABLED STATE
|
|
42
|
+
============================================ */
|
|
43
|
+
|
|
44
|
+
--fieldset-disabled-opacity: 0.6;
|
|
45
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* Form Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
FORM
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--form-display: flex;
|
|
9
|
+
--form-flex-direction: column;
|
|
10
|
+
--form-gap: var(--space-8);
|
|
11
|
+
|
|
12
|
+
/* ============================================
|
|
13
|
+
FORM ACTIONS (button container)
|
|
14
|
+
============================================ */
|
|
15
|
+
|
|
16
|
+
--form-actions-display: flex;
|
|
17
|
+
--form-actions-gap: var(--space-3);
|
|
18
|
+
--form-actions-justify-content: flex-start;
|
|
19
|
+
--form-actions-margin-top: var(--space-6);
|
|
20
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* Input Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
BASE INPUT — theme body (md)
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--input-width: 100%;
|
|
9
|
+
--input-height: var(--theme-control-height-md);
|
|
10
|
+
--input-padding-block: var(--theme-control-padding-block);
|
|
11
|
+
--input-padding-inline: var(--theme-control-padding-inline);
|
|
12
|
+
--input-font-family: var(--theme-font-base-font-family);
|
|
13
|
+
--input-font-size: var(--theme-font-base-font-size);
|
|
14
|
+
--input-font-weight: var(--theme-font-base-font-weight);
|
|
15
|
+
--input-line-height: var(--theme-font-base-line-height);
|
|
16
|
+
--input-letter-spacing: var(--theme-font-base-letter-spacing);
|
|
17
|
+
--input-color: var(--text-primary);
|
|
18
|
+
--input-background: var(--surface-base);
|
|
19
|
+
--input-border-width: var(--theme-stroke-default);
|
|
20
|
+
--input-border-color: var(--border-default);
|
|
21
|
+
--input-border-radius: var(--theme-radius-control);
|
|
22
|
+
--input-transition: all 0.2s ease;
|
|
23
|
+
--input-placeholder-color: var(--text-tertiary);
|
|
24
|
+
|
|
25
|
+
/* Input states */
|
|
26
|
+
--input-border-color-hover: var(--border-strong);
|
|
27
|
+
--input-border-color-focus: var(--theme-primary-600);
|
|
28
|
+
--input-shadow-focus: var(--theme-focus-shadow-3px-primary);
|
|
29
|
+
--input-background-disabled: var(--theme-neutral-100);
|
|
30
|
+
--input-color-disabled: var(--text-disabled);
|
|
31
|
+
--input-cursor-disabled: not-allowed;
|
|
32
|
+
|
|
33
|
+
/* Warning state */
|
|
34
|
+
--input-border-color-error: var(--theme-status-error);
|
|
35
|
+
--input-shadow-focus-error: var(--theme-focus-shadow-3px-error);
|
|
36
|
+
|
|
37
|
+
/* ============================================
|
|
38
|
+
SIZE VARIANTS — xs overline, sm caption, lg body-lead
|
|
39
|
+
============================================ */
|
|
40
|
+
|
|
41
|
+
--input-height-xs: var(--theme-control-height-xs);
|
|
42
|
+
--input-padding-block-xs: var(--theme-control-padding-block-xs);
|
|
43
|
+
--input-padding-inline-xs: var(--theme-control-padding-inline-xs);
|
|
44
|
+
--input-font-family-xs: var(--theme-font-minimize-font-family);
|
|
45
|
+
--input-font-size-xs: var(--theme-font-minimize-font-size);
|
|
46
|
+
--input-font-weight-xs: var(--theme-font-minimize-font-weight);
|
|
47
|
+
--input-line-height-xs: var(--theme-font-minimize-line-height);
|
|
48
|
+
--input-letter-spacing-xs: var(--theme-font-minimize-letter-spacing);
|
|
49
|
+
|
|
50
|
+
--input-height-sm: var(--theme-control-height-sm);
|
|
51
|
+
--input-padding-block-sm: var(--theme-control-padding-block-sm);
|
|
52
|
+
--input-padding-inline-sm: var(--theme-control-padding-inline-sm);
|
|
53
|
+
--input-font-family-sm: var(--theme-font-condense-font-family);
|
|
54
|
+
--input-font-size-sm: var(--theme-font-condense-font-size);
|
|
55
|
+
--input-font-weight-sm: var(--theme-font-condense-font-weight);
|
|
56
|
+
--input-line-height-sm: var(--theme-font-condense-line-height);
|
|
57
|
+
--input-letter-spacing-sm: var(--theme-font-condense-letter-spacing);
|
|
58
|
+
|
|
59
|
+
--input-height-lg: var(--theme-control-height-lg);
|
|
60
|
+
--input-padding-block-lg: var(--theme-control-padding-block-lg);
|
|
61
|
+
--input-padding-inline-lg: var(--theme-control-padding-inline-lg);
|
|
62
|
+
--input-font-family-lg: var(--theme-font-magnify-font-family);
|
|
63
|
+
--input-font-size-lg: var(--theme-font-magnify-font-size);
|
|
64
|
+
--input-font-weight-lg: var(--theme-font-magnify-font-weight);
|
|
65
|
+
--input-line-height-lg: var(--theme-font-magnify-line-height);
|
|
66
|
+
--input-letter-spacing-lg: var(--theme-font-magnify-letter-spacing);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* ============================================
|
|
70
|
+
DARK MODE OVERRIDES
|
|
71
|
+
============================================ */
|
|
72
|
+
|
|
73
|
+
@media (prefers-color-scheme: dark) {
|
|
74
|
+
:root {
|
|
75
|
+
--input-background: var(--theme-neutral-50);
|
|
76
|
+
--input-border-color: var(--theme-neutral-600);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
[data-theme='dark'] {
|
|
81
|
+
--input-background: var(--theme-neutral-50);
|
|
82
|
+
--input-border-color: var(--theme-neutral-600);
|
|
83
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/* Menu Component Tokens - Mojave Theme */
|
|
2
|
+
/* Menu references ContextMenu tokens - they share the same popup structure */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
/* ============================================
|
|
6
|
+
TRIGGER
|
|
7
|
+
============================================ */
|
|
8
|
+
|
|
9
|
+
/* Trigger uses Button component - no unique tokens needed */
|
|
10
|
+
|
|
11
|
+
/* ============================================
|
|
12
|
+
POSITIONER
|
|
13
|
+
============================================ */
|
|
14
|
+
|
|
15
|
+
--menu-positioner-z-index: var(--context-menu-positioner-z-index);
|
|
16
|
+
|
|
17
|
+
/* ============================================
|
|
18
|
+
POPUP
|
|
19
|
+
============================================ */
|
|
20
|
+
|
|
21
|
+
--menu-popup-min-width: var(--context-menu-popup-min-width);
|
|
22
|
+
--menu-popup-background: var(--context-menu-popup-background);
|
|
23
|
+
--menu-popup-border: var(--context-menu-popup-border);
|
|
24
|
+
--menu-popup-border-radius: var(--context-menu-popup-border-radius);
|
|
25
|
+
--menu-popup-padding: var(--context-menu-popup-padding);
|
|
26
|
+
--menu-popup-shadow: var(--context-menu-popup-shadow);
|
|
27
|
+
--menu-popup-animation-duration: var(--context-menu-popup-animation-duration);
|
|
28
|
+
--menu-popup-animation-easing: var(--context-menu-popup-animation-easing);
|
|
29
|
+
|
|
30
|
+
/* ============================================
|
|
31
|
+
ITEM
|
|
32
|
+
============================================ */
|
|
33
|
+
|
|
34
|
+
--menu-item-padding-block: var(--context-menu-item-padding-block);
|
|
35
|
+
--menu-item-padding-inline: var(--context-menu-item-padding-inline);
|
|
36
|
+
--menu-item-font-size: var(--context-menu-item-font-size);
|
|
37
|
+
--menu-item-color: var(--context-menu-item-color);
|
|
38
|
+
--menu-item-cursor: var(--context-menu-item-cursor);
|
|
39
|
+
--menu-item-border-radius: var(--context-menu-item-border-radius);
|
|
40
|
+
--menu-item-transition: var(--context-menu-item-transition);
|
|
41
|
+
--menu-item-gap: var(--context-menu-item-gap);
|
|
42
|
+
|
|
43
|
+
--menu-item-background-hover: var(--context-menu-item-background-hover);
|
|
44
|
+
--menu-item-color-hover: var(--context-menu-item-color-hover);
|
|
45
|
+
|
|
46
|
+
--menu-item-color-disabled: var(--context-menu-item-color-disabled);
|
|
47
|
+
--menu-item-cursor-disabled: var(--context-menu-item-cursor-disabled);
|
|
48
|
+
--menu-item-opacity-disabled: var(--context-menu-item-opacity-disabled);
|
|
49
|
+
|
|
50
|
+
/* ============================================
|
|
51
|
+
CHECKBOX & RADIO INDICATORS
|
|
52
|
+
============================================ */
|
|
53
|
+
|
|
54
|
+
--menu-item-indicator-width: var(--context-menu-item-indicator-width);
|
|
55
|
+
--menu-item-indicator-height: var(--context-menu-item-indicator-height);
|
|
56
|
+
--menu-item-indicator-color: var(--context-menu-item-indicator-color);
|
|
57
|
+
--menu-item-indicator-font-size: var(--context-menu-item-indicator-font-size);
|
|
58
|
+
|
|
59
|
+
/* ============================================
|
|
60
|
+
GROUP
|
|
61
|
+
============================================ */
|
|
62
|
+
|
|
63
|
+
--menu-group-padding: var(--context-menu-group-padding);
|
|
64
|
+
|
|
65
|
+
--menu-group-label-padding-block-start: var(--context-menu-group-label-padding-block-start);
|
|
66
|
+
--menu-group-label-padding-block-end: var(--context-menu-group-label-padding-block-end);
|
|
67
|
+
--menu-group-label-padding-inline: var(--context-menu-group-label-padding-inline);
|
|
68
|
+
--menu-group-label-font-size: var(--context-menu-group-label-font-size);
|
|
69
|
+
--menu-group-label-font-weight: var(--context-menu-group-label-font-weight);
|
|
70
|
+
--menu-group-label-color: var(--context-menu-group-label-color);
|
|
71
|
+
--menu-group-label-text-transform: var(--context-menu-group-label-text-transform);
|
|
72
|
+
--menu-group-label-letter-spacing: var(--context-menu-group-label-letter-spacing);
|
|
73
|
+
|
|
74
|
+
/* ============================================
|
|
75
|
+
SEPARATOR
|
|
76
|
+
============================================ */
|
|
77
|
+
|
|
78
|
+
--menu-separator-height: var(--context-menu-separator-height);
|
|
79
|
+
--menu-separator-background: var(--context-menu-separator-background);
|
|
80
|
+
--menu-separator-margin-block: var(--context-menu-separator-margin-block);
|
|
81
|
+
|
|
82
|
+
/* ============================================
|
|
83
|
+
SUBMENU TRIGGER
|
|
84
|
+
============================================ */
|
|
85
|
+
|
|
86
|
+
--menu-submenu-arrow-color: var(--context-menu-submenu-arrow-color);
|
|
87
|
+
--menu-submenu-arrow-font-size: var(--context-menu-submenu-arrow-font-size);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/* ============================================
|
|
91
|
+
DARK MODE OVERRIDES
|
|
92
|
+
============================================ */
|
|
93
|
+
|
|
94
|
+
@media (prefers-color-scheme: dark) {
|
|
95
|
+
:root {
|
|
96
|
+
--menu-popup-background: var(--context-menu-popup-background);
|
|
97
|
+
--menu-popup-border: var(--context-menu-popup-border);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[data-theme='dark'] {
|
|
102
|
+
--menu-popup-background: var(--context-menu-popup-background);
|
|
103
|
+
--menu-popup-border: var(--context-menu-popup-border);
|
|
104
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/* Menubar Component Tokens - Mojave Theme */
|
|
2
|
+
/* Menubar is a horizontal container of Menu components */
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
/* ============================================
|
|
6
|
+
ROOT CONTAINER
|
|
7
|
+
============================================ */
|
|
8
|
+
|
|
9
|
+
--menubar-root-display: flex;
|
|
10
|
+
--menubar-root-align-items: center;
|
|
11
|
+
--menubar-root-gap: var(--space-1);
|
|
12
|
+
--menubar-root-padding: var(--space-1);
|
|
13
|
+
--menubar-root-background: var(--surface-base);
|
|
14
|
+
--menubar-root-border: var(--theme-stroke-default) solid var(--border-subtle);
|
|
15
|
+
--menubar-root-border-radius: var(--theme-radius-chrome);
|
|
16
|
+
|
|
17
|
+
/* ============================================
|
|
18
|
+
TRIGGER (Menu trigger in menubar)
|
|
19
|
+
============================================ */
|
|
20
|
+
|
|
21
|
+
--menubar-trigger-padding-block: var(--space-2);
|
|
22
|
+
--menubar-trigger-padding-inline: var(--space-3);
|
|
23
|
+
--menubar-trigger-font-family: var(--theme-font-base-label-font-family);
|
|
24
|
+
--menubar-trigger-font-size: var(--theme-font-base-label-font-size);
|
|
25
|
+
--menubar-trigger-font-weight: var(--theme-font-base-label-font-weight);
|
|
26
|
+
--menubar-trigger-line-height: var(--theme-font-base-label-line-height);
|
|
27
|
+
--menubar-trigger-letter-spacing: var(--theme-font-base-label-letter-spacing);
|
|
28
|
+
--menubar-trigger-color: var(--text-primary);
|
|
29
|
+
--menubar-trigger-background: transparent;
|
|
30
|
+
--menubar-trigger-border: none;
|
|
31
|
+
--menubar-trigger-border-radius: var(--theme-radius-item);
|
|
32
|
+
--menubar-trigger-cursor: pointer;
|
|
33
|
+
--menubar-trigger-transition: all 0.15s ease;
|
|
34
|
+
|
|
35
|
+
/* Trigger states */
|
|
36
|
+
--menubar-trigger-background-hover: var(--surface-raised);
|
|
37
|
+
--menubar-trigger-background-active: var(--theme-primary-100);
|
|
38
|
+
--menubar-trigger-color-active: var(--theme-primary-800);
|
|
39
|
+
|
|
40
|
+
/* ============================================
|
|
41
|
+
MENU ITEMS (inherit from Menu)
|
|
42
|
+
============================================ */
|
|
43
|
+
|
|
44
|
+
/* All menu popup/item styles are inherited from Menu component */
|
|
45
|
+
--menubar-positioner-z-index: var(--menu-positioner-z-index);
|
|
46
|
+
--menubar-popup-min-width: var(--menu-popup-min-width);
|
|
47
|
+
--menubar-popup-background: var(--menu-popup-background);
|
|
48
|
+
--menubar-popup-border: var(--menu-popup-border);
|
|
49
|
+
--menubar-popup-border-radius: var(--menu-popup-border-radius);
|
|
50
|
+
--menubar-popup-padding: var(--menu-popup-padding);
|
|
51
|
+
--menubar-popup-shadow: var(--menu-popup-shadow);
|
|
52
|
+
--menubar-popup-animation-duration: var(--menu-popup-animation-duration);
|
|
53
|
+
--menubar-popup-animation-easing: var(--menu-popup-animation-easing);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ============================================
|
|
57
|
+
DARK MODE OVERRIDES
|
|
58
|
+
============================================ */
|
|
59
|
+
|
|
60
|
+
@media (prefers-color-scheme: dark) {
|
|
61
|
+
:root {
|
|
62
|
+
--menubar-root-background: var(--theme-neutral-100);
|
|
63
|
+
--menubar-root-border: var(--theme-stroke-default) solid var(--theme-neutral-600);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
[data-theme='dark'] {
|
|
68
|
+
--menubar-root-background: var(--theme-neutral-100);
|
|
69
|
+
--menubar-root-border: var(--theme-stroke-default) solid var(--theme-neutral-600);
|
|
70
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Meter Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
ROOT CONTAINER
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--meter-root-display: flex;
|
|
9
|
+
--meter-root-flex-direction: column;
|
|
10
|
+
--meter-root-gap: var(--space-2);
|
|
11
|
+
--meter-root-width: 100%;
|
|
12
|
+
|
|
13
|
+
/* ============================================
|
|
14
|
+
LABEL
|
|
15
|
+
============================================ */
|
|
16
|
+
|
|
17
|
+
--meter-label-font-family: var(--theme-font-base-label-font-family);
|
|
18
|
+
--meter-label-font-size: var(--theme-font-base-label-font-size);
|
|
19
|
+
--meter-label-font-weight: var(--theme-font-base-label-font-weight);
|
|
20
|
+
--meter-label-line-height: var(--theme-font-base-label-line-height);
|
|
21
|
+
--meter-label-letter-spacing: var(--theme-font-base-label-letter-spacing);
|
|
22
|
+
--meter-label-color: var(--text-primary);
|
|
23
|
+
--meter-label-margin-bottom: var(--space-1);
|
|
24
|
+
|
|
25
|
+
/* ============================================
|
|
26
|
+
TRACK (Background bar)
|
|
27
|
+
============================================ */
|
|
28
|
+
|
|
29
|
+
--meter-track-height: 8px;
|
|
30
|
+
--meter-track-background: var(--theme-neutral-200);
|
|
31
|
+
--meter-track-border-radius: var(--theme-radius-pill);
|
|
32
|
+
--meter-track-overflow: hidden;
|
|
33
|
+
|
|
34
|
+
/* ============================================
|
|
35
|
+
INDICATOR (Filled portion)
|
|
36
|
+
============================================ */
|
|
37
|
+
|
|
38
|
+
--meter-indicator-background: var(--theme-primary-600);
|
|
39
|
+
--meter-indicator-transition: width 0.3s ease;
|
|
40
|
+
--meter-indicator-height: 100%;
|
|
41
|
+
--meter-indicator-border-radius: var(--theme-radius-pill);
|
|
42
|
+
|
|
43
|
+
/* ============================================
|
|
44
|
+
VALUE LABEL (Optional text showing value)
|
|
45
|
+
============================================ */
|
|
46
|
+
|
|
47
|
+
--meter-value-font-family: var(--theme-font-minimize-font-family);
|
|
48
|
+
--meter-value-font-size: var(--theme-font-minimize-font-size);
|
|
49
|
+
--meter-value-font-weight: var(--theme-font-minimize-font-weight);
|
|
50
|
+
--meter-value-line-height: var(--theme-font-minimize-line-height);
|
|
51
|
+
--meter-value-letter-spacing: var(--theme-font-minimize-letter-spacing);
|
|
52
|
+
--meter-value-color: var(--text-secondary);
|
|
53
|
+
--meter-value-text-align: right;
|
|
54
|
+
|
|
55
|
+
/* ============================================
|
|
56
|
+
STATUS COLORS (optimum, sub-optimum, sub-sub-optimum)
|
|
57
|
+
============================================ */
|
|
58
|
+
|
|
59
|
+
/* Optimum - value is in the optimal range */
|
|
60
|
+
--meter-indicator-background-optimum: var(--theme-status-success);
|
|
61
|
+
|
|
62
|
+
/* Sub-optimum - value is outside optimal but not critical */
|
|
63
|
+
--meter-indicator-background-sub-optimum: var(--theme-status-warning);
|
|
64
|
+
|
|
65
|
+
/* Sub-sub-optimum - value is in critical range */
|
|
66
|
+
--meter-indicator-background-sub-sub-optimum: var(--theme-status-error);
|
|
67
|
+
|
|
68
|
+
/* ============================================
|
|
69
|
+
SIZE VARIANTS
|
|
70
|
+
============================================ */
|
|
71
|
+
|
|
72
|
+
--meter-track-height-sm: 4px;
|
|
73
|
+
--meter-track-height-lg: 12px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* ============================================
|
|
77
|
+
DARK MODE OVERRIDES
|
|
78
|
+
============================================ */
|
|
79
|
+
|
|
80
|
+
@media (prefers-color-scheme: dark) {
|
|
81
|
+
:root {
|
|
82
|
+
--meter-track-background: var(--theme-neutral-300);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[data-theme='dark'] {
|
|
87
|
+
--meter-track-background: var(--theme-neutral-300);
|
|
88
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Modal Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
MODAL TOKENS
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--modal-bg: var(--surface-overlay);
|
|
9
|
+
--modal-border-radius: var(--theme-radius-modal);
|
|
10
|
+
--modal-padding: var(--space-8);
|
|
11
|
+
--modal-shadow: var(--shadow-2xl);
|
|
12
|
+
--modal-backdrop-bg: color-mix(in srgb, var(--theme-overlay-base) 50%, transparent);
|
|
13
|
+
--modal-max-width: 32rem;
|
|
14
|
+
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/* Navigation Menu Component Tokens - Mojave Theme */
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
/* ============================================
|
|
5
|
+
ROOT CONTAINER
|
|
6
|
+
============================================ */
|
|
7
|
+
|
|
8
|
+
--navigation-menu-root-display: flex;
|
|
9
|
+
--navigation-menu-root-align-items: center;
|
|
10
|
+
--navigation-menu-root-gap: var(--space-1);
|
|
11
|
+
--navigation-menu-root-background: var(--theme-neutral-100);
|
|
12
|
+
--navigation-menu-root-border-radius: var(--theme-radius-chrome);
|
|
13
|
+
--navigation-menu-root-padding: var(--space-1);
|
|
14
|
+
|
|
15
|
+
/* ============================================
|
|
16
|
+
TRIGGER
|
|
17
|
+
============================================ */
|
|
18
|
+
|
|
19
|
+
--navigation-menu-trigger-display: flex;
|
|
20
|
+
--navigation-menu-trigger-align-items: center;
|
|
21
|
+
--navigation-menu-trigger-justify-content: center;
|
|
22
|
+
--navigation-menu-trigger-gap: var(--space-1-5);
|
|
23
|
+
--navigation-menu-trigger-height: 40px;
|
|
24
|
+
--navigation-menu-trigger-padding-block: var(--space-2);
|
|
25
|
+
--navigation-menu-trigger-padding-inline: var(--space-3-5);
|
|
26
|
+
--navigation-menu-trigger-font-family: var(--theme-font-base-trigger-font-family);
|
|
27
|
+
--navigation-menu-trigger-font-size: var(--theme-font-base-trigger-font-size);
|
|
28
|
+
--navigation-menu-trigger-font-weight: var(--theme-font-base-trigger-font-weight);
|
|
29
|
+
--navigation-menu-trigger-line-height: var(--theme-font-base-trigger-line-height);
|
|
30
|
+
--navigation-menu-trigger-letter-spacing: var(--theme-font-base-trigger-letter-spacing);
|
|
31
|
+
--navigation-menu-trigger-color: var(--text-primary);
|
|
32
|
+
--navigation-menu-trigger-background: var(--theme-neutral-100);
|
|
33
|
+
--navigation-menu-trigger-border: none;
|
|
34
|
+
--navigation-menu-trigger-border-radius: var(--theme-radius-item);
|
|
35
|
+
--navigation-menu-trigger-cursor: pointer;
|
|
36
|
+
--navigation-menu-trigger-transition: background-color 0.2s ease;
|
|
37
|
+
|
|
38
|
+
/* Trigger states */
|
|
39
|
+
--navigation-menu-trigger-background-hover: var(--theme-neutral-200);
|
|
40
|
+
--navigation-menu-trigger-color-hover: var(--text-primary);
|
|
41
|
+
--navigation-menu-trigger-background-active: var(--theme-neutral-200);
|
|
42
|
+
--navigation-menu-trigger-color-active: var(--text-primary);
|
|
43
|
+
|
|
44
|
+
/* ============================================
|
|
45
|
+
INDICATOR (chevron icon)
|
|
46
|
+
============================================ */
|
|
47
|
+
|
|
48
|
+
--navigation-menu-indicator-size: 10px;
|
|
49
|
+
--navigation-menu-indicator-color: currentColor;
|
|
50
|
+
--navigation-menu-indicator-transition: transform 0.2s ease;
|
|
51
|
+
|
|
52
|
+
/* ============================================
|
|
53
|
+
POSITIONER
|
|
54
|
+
============================================ */
|
|
55
|
+
|
|
56
|
+
--navigation-menu-positioner-z-index: 1000;
|
|
57
|
+
|
|
58
|
+
/* ============================================
|
|
59
|
+
POPUP
|
|
60
|
+
============================================ */
|
|
61
|
+
|
|
62
|
+
--navigation-menu-popup-min-width: 400px;
|
|
63
|
+
--navigation-menu-popup-max-width: 600px;
|
|
64
|
+
--navigation-menu-popup-padding: var(--space-6);
|
|
65
|
+
--navigation-menu-popup-background: var(--surface-base);
|
|
66
|
+
--navigation-menu-popup-color: var(--text-primary);
|
|
67
|
+
--navigation-menu-popup-border-width: var(--theme-stroke-default);
|
|
68
|
+
--navigation-menu-popup-border-color: var(--theme-neutral-300);
|
|
69
|
+
--navigation-menu-popup-border-color-dark: var(--theme-neutral-600);
|
|
70
|
+
--navigation-menu-popup-border-radius: var(--theme-radius-chrome);
|
|
71
|
+
--navigation-menu-popup-shadow:
|
|
72
|
+
0 10px 15px -3px var(--theme-neutral-300),
|
|
73
|
+
0 4px 6px -4px var(--theme-neutral-300);
|
|
74
|
+
|
|
75
|
+
/* ============================================
|
|
76
|
+
CONTENT
|
|
77
|
+
============================================ */
|
|
78
|
+
|
|
79
|
+
--navigation-menu-content-display: grid;
|
|
80
|
+
--navigation-menu-content-gap: var(--space-2);
|
|
81
|
+
--navigation-menu-content-grid-columns: 12rem 12rem;
|
|
82
|
+
|
|
83
|
+
/* ============================================
|
|
84
|
+
LINK
|
|
85
|
+
============================================ */
|
|
86
|
+
|
|
87
|
+
--navigation-menu-link-display: block;
|
|
88
|
+
--navigation-menu-link-flex-direction: column;
|
|
89
|
+
--navigation-menu-link-gap: var(--space-1);
|
|
90
|
+
--navigation-menu-link-padding: var(--space-2);
|
|
91
|
+
--navigation-menu-link-border-radius: var(--theme-radius-item);
|
|
92
|
+
--navigation-menu-link-text-decoration: none;
|
|
93
|
+
--navigation-menu-link-transition: background-color 0.15s ease;
|
|
94
|
+
|
|
95
|
+
--navigation-menu-link-background-hover: var(--theme-neutral-200);
|
|
96
|
+
|
|
97
|
+
/* ============================================
|
|
98
|
+
LINK TITLE
|
|
99
|
+
============================================ */
|
|
100
|
+
|
|
101
|
+
--navigation-menu-link-title-font-family: var(--theme-font-base-trigger-font-family);
|
|
102
|
+
--navigation-menu-link-title-font-size: var(--theme-font-base-trigger-font-size);
|
|
103
|
+
--navigation-menu-link-title-font-weight: var(--theme-font-base-trigger-font-weight);
|
|
104
|
+
--navigation-menu-link-title-line-height: var(--theme-font-base-trigger-line-height);
|
|
105
|
+
--navigation-menu-link-title-letter-spacing: var(--theme-font-base-trigger-letter-spacing);
|
|
106
|
+
--navigation-menu-link-title-color: var(--text-primary);
|
|
107
|
+
|
|
108
|
+
/* ============================================
|
|
109
|
+
LINK DESCRIPTION
|
|
110
|
+
============================================ */
|
|
111
|
+
|
|
112
|
+
--navigation-menu-link-description-font-family: var(--theme-font-condense-font-family);
|
|
113
|
+
--navigation-menu-link-description-font-size: var(--theme-font-condense-font-size);
|
|
114
|
+
--navigation-menu-link-description-font-weight: var(--theme-font-condense-font-weight);
|
|
115
|
+
--navigation-menu-link-description-line-height: var(--theme-font-condense-line-height);
|
|
116
|
+
--navigation-menu-link-description-letter-spacing: var(--theme-font-condense-letter-spacing);
|
|
117
|
+
--navigation-menu-link-description-color: var(--text-secondary);
|
|
118
|
+
|
|
119
|
+
/* ============================================
|
|
120
|
+
SECTION
|
|
121
|
+
============================================ */
|
|
122
|
+
|
|
123
|
+
--navigation-menu-section-display: flex;
|
|
124
|
+
--navigation-menu-section-flex-direction: column;
|
|
125
|
+
--navigation-menu-section-gap: var(--space-2);
|
|
126
|
+
|
|
127
|
+
/* ============================================
|
|
128
|
+
SECTION HEADING
|
|
129
|
+
============================================ */
|
|
130
|
+
|
|
131
|
+
--navigation-menu-section-heading-font-family: var(--theme-font-condense-subtitle-label-font-family);
|
|
132
|
+
--navigation-menu-section-heading-font-size: var(--theme-font-condense-subtitle-label-font-size);
|
|
133
|
+
--navigation-menu-section-heading-font-weight: var(--theme-font-condense-subtitle-label-font-weight);
|
|
134
|
+
--navigation-menu-section-heading-line-height: var(--theme-font-condense-subtitle-label-line-height);
|
|
135
|
+
--navigation-menu-section-heading-letter-spacing: var(--theme-font-condense-subtitle-label-letter-spacing);
|
|
136
|
+
--navigation-menu-section-heading-color: var(--text-secondary);
|
|
137
|
+
--navigation-menu-section-heading-text-transform: var(--theme-font-condense-subtitle-label-text-transform);
|
|
138
|
+
--navigation-menu-section-heading-margin-bottom: var(--space-2);
|
|
139
|
+
|
|
140
|
+
/* ============================================
|
|
141
|
+
SEPARATOR
|
|
142
|
+
============================================ */
|
|
143
|
+
|
|
144
|
+
--navigation-menu-separator-height: var(--theme-stroke-default);
|
|
145
|
+
--navigation-menu-separator-background: var(--border-subtle);
|
|
146
|
+
--navigation-menu-separator-margin-block: var(--space-2);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ============================================
|
|
150
|
+
DARK MODE OVERRIDES
|
|
151
|
+
============================================ */
|
|
152
|
+
|
|
153
|
+
@media (prefers-color-scheme: dark) {
|
|
154
|
+
:root {
|
|
155
|
+
--navigation-menu-root-background: var(--theme-neutral-200);
|
|
156
|
+
--navigation-menu-trigger-background: var(--theme-neutral-200);
|
|
157
|
+
--navigation-menu-trigger-background-hover: var(--theme-neutral-300);
|
|
158
|
+
--navigation-menu-trigger-background-active: var(--theme-neutral-300);
|
|
159
|
+
--navigation-menu-popup-background: var(--theme-neutral-50);
|
|
160
|
+
--navigation-menu-link-background-hover: var(--theme-neutral-100);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
[data-theme='dark'] {
|
|
165
|
+
--navigation-menu-root-background: var(--theme-neutral-200);
|
|
166
|
+
--navigation-menu-trigger-background: var(--theme-neutral-200);
|
|
167
|
+
--navigation-menu-trigger-background-hover: var(--theme-neutral-300);
|
|
168
|
+
--navigation-menu-trigger-background-active: var(--theme-neutral-300);
|
|
169
|
+
--navigation-menu-popup-background: var(--theme-neutral-50);
|
|
170
|
+
--navigation-menu-link-background-hover: var(--theme-neutral-100);
|
|
171
|
+
}
|