@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.
Files changed (105) hide show
  1. package/README.md +19 -0
  2. package/dist/index.d.ts +103 -0
  3. package/dist/index.js +313 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/styles/base/borders.css +26 -0
  6. package/dist/styles/base/breakpoints.css +26 -0
  7. package/dist/styles/base/colors.css +150 -0
  8. package/dist/styles/base/global.css +108 -0
  9. package/dist/styles/base/reset-accessibility.css +119 -0
  10. package/dist/styles/base/reset.css +451 -0
  11. package/dist/styles/base/shadows.css +42 -0
  12. package/dist/styles/base/spacing.css +62 -0
  13. package/dist/styles/base/transitions.css +29 -0
  14. package/dist/styles/base/typography.css +63 -0
  15. package/dist/styles/base/z-index.css +22 -0
  16. package/dist/styles/components/AGGrid.css +6 -0
  17. package/dist/styles/components/Accordion.css +184 -0
  18. package/dist/styles/components/AlertDialog.css +172 -0
  19. package/dist/styles/components/Autocomplete.css +261 -0
  20. package/dist/styles/components/Avatar.css +154 -0
  21. package/dist/styles/components/Button.css +164 -0
  22. package/dist/styles/components/Checkbox.css +199 -0
  23. package/dist/styles/components/CheckboxGroup.css +21 -0
  24. package/dist/styles/components/Collapsible.css +115 -0
  25. package/dist/styles/components/Combobox.css +514 -0
  26. package/dist/styles/components/ContextMenu.css +209 -0
  27. package/dist/styles/components/Dialog.css +159 -0
  28. package/dist/styles/components/Field.css +138 -0
  29. package/dist/styles/components/Fieldset.css +48 -0
  30. package/dist/styles/components/Form.css +22 -0
  31. package/dist/styles/components/Input.css +106 -0
  32. package/dist/styles/components/Menu.css +158 -0
  33. package/dist/styles/components/Menubar.css +201 -0
  34. package/dist/styles/components/Meter.css +104 -0
  35. package/dist/styles/components/NavigationMenu.css +469 -0
  36. package/dist/styles/components/NumberField.css +182 -0
  37. package/dist/styles/components/Popover.css +167 -0
  38. package/dist/styles/components/PreviewCard.css +148 -0
  39. package/dist/styles/components/Progress.css +130 -0
  40. package/dist/styles/components/Radio.css +178 -0
  41. package/dist/styles/components/ScrollArea.css +103 -0
  42. package/dist/styles/components/Select.css +297 -0
  43. package/dist/styles/components/Separator.css +34 -0
  44. package/dist/styles/components/Slider.css +163 -0
  45. package/dist/styles/components/Switch.css +197 -0
  46. package/dist/styles/components/Tabs.css +163 -0
  47. package/dist/styles/components/Toast.css +261 -0
  48. package/dist/styles/components/Toggle.css +103 -0
  49. package/dist/styles/components/ToggleGroup.css +19 -0
  50. package/dist/styles/components/Toolbar.css +78 -0
  51. package/dist/styles/components/Tooltip.css +87 -0
  52. package/dist/styles/index.css +103 -0
  53. package/dist/styles/semantic/accessibility.css +77 -0
  54. package/dist/styles/semantic/accordion.css +102 -0
  55. package/dist/styles/semantic/ag-grid.css +114 -0
  56. package/dist/styles/semantic/alert-dialog.css +78 -0
  57. package/dist/styles/semantic/autocomplete.css +162 -0
  58. package/dist/styles/semantic/avatar.css +96 -0
  59. package/dist/styles/semantic/badge.css +16 -0
  60. package/dist/styles/semantic/button.css +145 -0
  61. package/dist/styles/semantic/card.css +14 -0
  62. package/dist/styles/semantic/checkbox-group.css +18 -0
  63. package/dist/styles/semantic/checkbox.css +117 -0
  64. package/dist/styles/semantic/collapsible.css +123 -0
  65. package/dist/styles/semantic/combobox.css +325 -0
  66. package/dist/styles/semantic/context-menu.css +131 -0
  67. package/dist/styles/semantic/dialog.css +91 -0
  68. package/dist/styles/semantic/dropdown.css +16 -0
  69. package/dist/styles/semantic/field.css +73 -0
  70. package/dist/styles/semantic/fieldset.css +45 -0
  71. package/dist/styles/semantic/form.css +20 -0
  72. package/dist/styles/semantic/input.css +83 -0
  73. package/dist/styles/semantic/menu.css +104 -0
  74. package/dist/styles/semantic/menubar.css +70 -0
  75. package/dist/styles/semantic/meter.css +88 -0
  76. package/dist/styles/semantic/modal.css +14 -0
  77. package/dist/styles/semantic/navigation-menu.css +171 -0
  78. package/dist/styles/semantic/number-field.css +142 -0
  79. package/dist/styles/semantic/popover.css +113 -0
  80. package/dist/styles/semantic/preview-card.css +108 -0
  81. package/dist/styles/semantic/progress.css +85 -0
  82. package/dist/styles/semantic/radio.css +103 -0
  83. package/dist/styles/semantic/scroll-area.css +64 -0
  84. package/dist/styles/semantic/select.css +197 -0
  85. package/dist/styles/semantic/separator.css +37 -0
  86. package/dist/styles/semantic/slider.css +120 -0
  87. package/dist/styles/semantic/switch.css +158 -0
  88. package/dist/styles/semantic/tabs.css +150 -0
  89. package/dist/styles/semantic/toast.css +171 -0
  90. package/dist/styles/semantic/toggle-group.css +29 -0
  91. package/dist/styles/semantic/toggle.css +94 -0
  92. package/dist/styles/semantic/toolbar.css +47 -0
  93. package/dist/styles/semantic/tooltip.css +56 -0
  94. package/dist/styles/theme/README.md +179 -0
  95. package/dist/styles/theme/theme-accessibility.css +13 -0
  96. package/dist/styles/theme/theme-primitives.css +7 -0
  97. package/dist/styles/theme/theme-radius.css +12 -0
  98. package/dist/styles/theme/theme-roles.css +66 -0
  99. package/dist/styles/theme/theme-spacing.css +28 -0
  100. package/dist/styles/theme/theme-stroke.css +7 -0
  101. package/dist/styles/theme/theme-typography.css +218 -0
  102. package/dist/styles/utilities/color-styles.css +34 -0
  103. package/dist/styles/utilities/layout-styles.css +19 -0
  104. package/dist/styles/utilities/text-styles.css +102 -0
  105. package/package.json +75 -0
@@ -0,0 +1,159 @@
1
+ /* Dialog - Mojave Theme */
2
+
3
+ /* Backdrop */
4
+ .DialogBackdrop {
5
+ position: fixed;
6
+ inset: 0;
7
+ background: var(--dialog-backdrop-background);
8
+ z-index: var(--dialog-backdrop-z-index);
9
+ animation: fadeIn var(--dialog-backdrop-animation-duration) var(--dialog-backdrop-animation-easing);
10
+ }
11
+
12
+ @keyframes fadeIn {
13
+ from {
14
+ opacity: 0;
15
+ }
16
+ to {
17
+ opacity: 1;
18
+ }
19
+ }
20
+
21
+ .DialogBackdrop[data-state='closing'] {
22
+ animation: fadeOut var(--dialog-backdrop-animation-duration) var(--dialog-backdrop-animation-easing);
23
+ }
24
+
25
+ @keyframes fadeOut {
26
+ from {
27
+ opacity: 1;
28
+ }
29
+ to {
30
+ opacity: 0;
31
+ }
32
+ }
33
+
34
+ /* Popup */
35
+ .DialogPopup {
36
+ position: fixed;
37
+ top: 50%;
38
+ left: 50%;
39
+ transform: translate(-50%, -50%);
40
+ width: var(--dialog-popup-width);
41
+ max-width: var(--dialog-popup-max-width);
42
+ max-height: var(--dialog-popup-max-height);
43
+ background: var(--dialog-popup-background);
44
+ border: var(--dialog-popup-border-width) solid var(--dialog-popup-border-color);
45
+ border-radius: var(--dialog-popup-border-radius);
46
+ box-shadow: var(--dialog-popup-box-shadow);
47
+ padding: var(--dialog-popup-padding);
48
+ z-index: var(--dialog-popup-z-index);
49
+ animation: slideIn var(--dialog-popup-animation-duration) var(--dialog-popup-animation-easing);
50
+ display: flex;
51
+ flex-direction: column;
52
+ gap: var(--dialog-popup-gap);
53
+ }
54
+
55
+ @keyframes slideIn {
56
+ from {
57
+ opacity: 0;
58
+ transform: translate(-50%, -48%);
59
+ }
60
+ to {
61
+ opacity: 1;
62
+ transform: translate(-50%, -50%);
63
+ }
64
+ }
65
+
66
+ .DialogPopup[data-state='closing'] {
67
+ animation: slideOut var(--dialog-popup-animation-duration) var(--dialog-popup-animation-easing);
68
+ }
69
+
70
+ @keyframes slideOut {
71
+ from {
72
+ opacity: 1;
73
+ transform: translate(-50%, -50%);
74
+ }
75
+ to {
76
+ opacity: 0;
77
+ transform: translate(-50%, -48%);
78
+ }
79
+ }
80
+
81
+ /* Close Button */
82
+ .DialogClose {
83
+ position: var(--popover-close-position);
84
+ top: var(--popover-close-top);
85
+ right: var(--popover-close-right);
86
+ width: var(--popover-close-width);
87
+ height: var(--popover-close-height);
88
+ padding: var(--popover-close-padding);
89
+ border: var(--popover-close-border);
90
+ border-radius: var(--popover-close-border-radius);
91
+ background: var(--popover-close-background);
92
+ color: var(--popover-close-color);
93
+ cursor: var(--popover-close-cursor);
94
+ transition: var(--popover-close-transition);
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ outline: none;
99
+ }
100
+
101
+ /* Title */
102
+ .DialogTitle {
103
+ font-family: var(--dialog-title-font-family);
104
+ font-size: var(--dialog-title-font-size);
105
+ font-weight: var(--dialog-title-font-weight);
106
+ line-height: var(--dialog-title-line-height);
107
+ letter-spacing: var(--dialog-title-letter-spacing);
108
+ color: var(--dialog-title-color);
109
+ margin: 0;
110
+ }
111
+
112
+ /* Description */
113
+ .DialogDescription {
114
+ font-family: var(--dialog-description-font-family);
115
+ font-size: var(--dialog-description-font-size);
116
+ font-weight: var(--dialog-description-font-weight);
117
+ line-height: var(--dialog-description-line-height);
118
+ letter-spacing: var(--dialog-description-letter-spacing);
119
+ color: var(--dialog-description-color);
120
+ margin: 0;
121
+ }
122
+
123
+ /* Content (for scrollable content) */
124
+ .DialogContent {
125
+ flex: 1;
126
+ overflow-y: auto;
127
+ margin: var(--dialog-content-margin);
128
+ padding-right: var(--dialog-content-padding-right);
129
+ }
130
+
131
+ .DialogContent p {
132
+ margin: 0 0 var(--space-4) 0;
133
+ }
134
+
135
+ .DialogContent p:last-child {
136
+ margin-bottom: 0;
137
+ }
138
+
139
+ /* Form inside Dialog - override Form component spacing */
140
+ .DialogPopup .Form {
141
+ gap: var(--dialog-form-gap);
142
+ margin: var(--dialog-form-margin);
143
+ }
144
+
145
+ /* Actions */
146
+ .DialogActions {
147
+ display: var(--dialog-actions-display);
148
+ gap: var(--dialog-actions-gap);
149
+ justify-content: var(--dialog-actions-justify-content);
150
+ margin-top: var(--dialog-actions-margin-top);
151
+ }
152
+
153
+ /* Reduced Motion */
154
+ @media (prefers-reduced-motion: reduce) {
155
+ .DialogBackdrop,
156
+ .DialogPopup {
157
+ animation: none;
158
+ }
159
+ }
@@ -0,0 +1,138 @@
1
+ /* Field - Mojave Theme */
2
+
3
+ /* ============================================
4
+ ROOT CONTAINER (new - not in Input)
5
+ ============================================ */
6
+
7
+ .FieldRoot {
8
+ display: var(--field-root-display);
9
+ flex-direction: var(--field-root-flex-direction);
10
+ gap: var(--field-root-gap);
11
+ }
12
+
13
+ .FieldRoot[data-disabled] {
14
+ opacity: var(--field-disabled-opacity);
15
+ pointer-events: none;
16
+ }
17
+
18
+ /* ============================================
19
+ LABEL (new - not in Input)
20
+ ============================================ */
21
+
22
+ .FieldLabel {
23
+ font-family: var(--field-label-font-family);
24
+ font-size: var(--field-label-font-size);
25
+ font-weight: var(--field-label-font-weight);
26
+ line-height: var(--field-label-line-height);
27
+ letter-spacing: var(--field-label-letter-spacing);
28
+ color: var(--field-label-color);
29
+ display: block;
30
+ margin-bottom: var(--field-label-margin-bottom);
31
+ }
32
+
33
+ /* ============================================
34
+ CONTROL (inherits ALL styles from Input)
35
+ ============================================ */
36
+
37
+ .FieldControl {
38
+ /* Inherit all base input styles */
39
+ box-sizing: border-box;
40
+ width: var(--input-width);
41
+ height: var(--input-height);
42
+ padding-block: var(--input-padding-block);
43
+ padding-inline: var(--input-padding-inline);
44
+ font-family: var(--input-font-family);
45
+ font-size: var(--input-font-size);
46
+ font-weight: var(--input-font-weight);
47
+ line-height: var(--input-line-height);
48
+ letter-spacing: var(--input-letter-spacing);
49
+ color: var(--input-color);
50
+ background: var(--input-background);
51
+ border: var(--input-border-width) solid var(--input-border-color);
52
+ border-radius: var(--input-border-radius);
53
+ transition: var(--input-transition);
54
+ outline: none;
55
+ }
56
+
57
+ .FieldControl::placeholder {
58
+ color: var(--input-placeholder-color);
59
+ }
60
+
61
+ .FieldControl:hover:not(:disabled):not(:focus) {
62
+ border-color: var(--input-border-color-hover);
63
+ }
64
+
65
+ .FieldControl:focus {
66
+ outline: none;
67
+ border-color: var(--input-border-color-focus);
68
+ box-shadow: var(--input-shadow-focus);
69
+ }
70
+
71
+ .FieldControl:disabled {
72
+ background: var(--input-background-disabled);
73
+ color: var(--input-color-disabled);
74
+ cursor: var(--input-cursor-disabled);
75
+ }
76
+
77
+ /* ============================================
78
+ WARNING STATE
79
+ ============================================ */
80
+
81
+ .FieldRoot[data-invalid] .FieldControl,
82
+ .FieldControl[aria-invalid="true"] {
83
+ border-color: var(--input-border-color-error);
84
+ }
85
+
86
+ .FieldRoot[data-invalid] .FieldControl:focus,
87
+ .FieldControl[aria-invalid="true"]:focus {
88
+ border-color: var(--input-border-color-error);
89
+ box-shadow: var(--input-shadow-focus-error);
90
+ }
91
+
92
+ /* ============================================
93
+ DESCRIPTION (new - not in Input)
94
+ ============================================ */
95
+
96
+ .FieldDescription {
97
+ margin-top: var(--field-description-margin-top);
98
+ font-family: var(--field-description-font-family);
99
+ font-size: var(--field-description-font-size);
100
+ font-weight: var(--field-description-font-weight);
101
+ line-height: var(--field-description-line-height);
102
+ letter-spacing: var(--field-description-letter-spacing);
103
+ color: var(--field-description-color);
104
+ }
105
+
106
+ /* ============================================
107
+ ERROR (new - not in Input)
108
+ ============================================ */
109
+
110
+ .FieldError {
111
+ margin-top: var(--field-error-margin-top);
112
+ font-family: var(--field-error-font-family);
113
+ font-size: var(--field-error-font-size);
114
+ line-height: var(--field-error-line-height);
115
+ letter-spacing: var(--field-error-letter-spacing);
116
+ color: var(--field-error-color);
117
+ font-weight: var(--field-error-font-weight);
118
+ }
119
+
120
+ /* ============================================
121
+ TEXTAREA VARIANT (new - not in Input)
122
+ ============================================ */
123
+
124
+ textarea.FieldControl {
125
+ resize: vertical;
126
+ min-height: 80px;
127
+ height: auto;
128
+ }
129
+
130
+ /* ============================================
131
+ REDUCED MOTION
132
+ ============================================ */
133
+
134
+ @media (prefers-reduced-motion: reduce) {
135
+ .FieldControl {
136
+ transition: none;
137
+ }
138
+ }
@@ -0,0 +1,48 @@
1
+ /* Fieldset - Mojave Theme */
2
+
3
+ /* ============================================
4
+ FIELDSET
5
+ ============================================ */
6
+
7
+ .Fieldset {
8
+ border: var(--fieldset-border);
9
+ padding: var(--fieldset-padding);
10
+ margin: var(--fieldset-margin);
11
+ display: var(--fieldset-display);
12
+ flex-direction: var(--fieldset-flex-direction);
13
+ gap: var(--fieldset-gap);
14
+ }
15
+
16
+ .Fieldset[disabled] {
17
+ opacity: var(--fieldset-disabled-opacity);
18
+ pointer-events: none;
19
+ }
20
+
21
+ /* ============================================
22
+ LEGEND
23
+ ============================================ */
24
+
25
+ .FieldsetLegend {
26
+ font-family: var(--fieldset-legend-font-family);
27
+ font-size: var(--fieldset-legend-font-size);
28
+ font-weight: var(--fieldset-legend-font-weight);
29
+ line-height: var(--fieldset-legend-line-height);
30
+ letter-spacing: var(--fieldset-legend-letter-spacing);
31
+ color: var(--fieldset-legend-color);
32
+ margin-bottom: var(--fieldset-legend-margin-bottom);
33
+ padding: var(--fieldset-legend-padding);
34
+ }
35
+
36
+ /* ============================================
37
+ DESCRIPTION
38
+ ============================================ */
39
+
40
+ .FieldsetDescription {
41
+ font-family: var(--fieldset-description-font-family);
42
+ font-size: var(--fieldset-description-font-size);
43
+ font-weight: var(--fieldset-description-font-weight);
44
+ color: var(--fieldset-description-color);
45
+ line-height: var(--fieldset-description-line-height);
46
+ letter-spacing: var(--fieldset-description-letter-spacing);
47
+ margin-bottom: var(--fieldset-description-margin-bottom);
48
+ }
@@ -0,0 +1,22 @@
1
+ /* Form - Mojave Theme */
2
+
3
+ /* ============================================
4
+ FORM
5
+ ============================================ */
6
+
7
+ .Form {
8
+ display: var(--form-display);
9
+ flex-direction: var(--form-flex-direction);
10
+ gap: var(--form-gap);
11
+ }
12
+
13
+ /* ============================================
14
+ FORM ACTIONS (button container)
15
+ ============================================ */
16
+
17
+ .FormActions {
18
+ display: var(--form-actions-display);
19
+ gap: var(--form-actions-gap);
20
+ justify-content: var(--form-actions-justify-content);
21
+ margin-top: var(--form-actions-margin-top);
22
+ }
@@ -0,0 +1,106 @@
1
+ /* Input - Mojave Theme */
2
+
3
+ /* ============================================
4
+ BASE INPUT
5
+ ============================================ */
6
+
7
+ .Input {
8
+ box-sizing: border-box;
9
+ width: var(--input-width);
10
+ height: var(--input-height);
11
+ padding-block: var(--input-padding-block);
12
+ padding-inline: var(--input-padding-inline);
13
+ font-family: var(--input-font-family);
14
+ font-size: var(--input-font-size);
15
+ font-weight: var(--input-font-weight);
16
+ line-height: var(--input-line-height);
17
+ letter-spacing: var(--input-letter-spacing);
18
+ color: var(--input-color);
19
+ background: var(--input-background);
20
+ border: var(--input-border-width) solid var(--input-border-color);
21
+ border-radius: var(--input-border-radius);
22
+ transition: var(--input-transition);
23
+ outline: none;
24
+ }
25
+
26
+ .Input::placeholder {
27
+ color: var(--input-placeholder-color);
28
+ }
29
+
30
+ .Input:hover:not(:disabled):not(:focus) {
31
+ border-color: var(--input-border-color-hover);
32
+ }
33
+
34
+ .Input:focus {
35
+ outline: none;
36
+ border-color: var(--input-border-color-focus);
37
+ box-shadow: var(--input-shadow-focus);
38
+ }
39
+
40
+ .Input:disabled {
41
+ background: var(--input-background-disabled);
42
+ color: var(--input-color-disabled);
43
+ cursor: var(--input-cursor-disabled);
44
+ }
45
+
46
+ /* ============================================
47
+ WARNING STATE
48
+ ============================================ */
49
+
50
+ .Input[data-error],
51
+ .Input[aria-invalid="true"] {
52
+ border-color: var(--input-border-color-error);
53
+ }
54
+
55
+ .Input[data-error]:focus,
56
+ .Input[aria-invalid="true"]:focus {
57
+ border-color: var(--input-border-color-error);
58
+ box-shadow: var(--input-shadow-focus-error);
59
+ }
60
+
61
+ /* ============================================
62
+ SIZE VARIANTS
63
+ ============================================ */
64
+
65
+ .Input[data-size="xs"] {
66
+ height: var(--input-height-xs);
67
+ padding-block: var(--input-padding-block-xs);
68
+ padding-inline: var(--input-padding-inline-xs);
69
+ font-family: var(--input-font-family-xs);
70
+ font-size: var(--input-font-size-xs);
71
+ font-weight: var(--input-font-weight-xs);
72
+ line-height: var(--input-line-height-xs);
73
+ letter-spacing: var(--input-letter-spacing-xs);
74
+ }
75
+
76
+ .Input[data-size="sm"] {
77
+ height: var(--input-height-sm);
78
+ padding-block: var(--input-padding-block-sm);
79
+ padding-inline: var(--input-padding-inline-sm);
80
+ font-family: var(--input-font-family-sm);
81
+ font-size: var(--input-font-size-sm);
82
+ font-weight: var(--input-font-weight-sm);
83
+ line-height: var(--input-line-height-sm);
84
+ letter-spacing: var(--input-letter-spacing-sm);
85
+ }
86
+
87
+ .Input[data-size="lg"] {
88
+ height: var(--input-height-lg);
89
+ padding-block: var(--input-padding-block-lg);
90
+ padding-inline: var(--input-padding-inline-lg);
91
+ font-family: var(--input-font-family-lg);
92
+ font-size: var(--input-font-size-lg);
93
+ font-weight: var(--input-font-weight-lg);
94
+ line-height: var(--input-line-height-lg);
95
+ letter-spacing: var(--input-letter-spacing-lg);
96
+ }
97
+
98
+ /* ============================================
99
+ REDUCED MOTION
100
+ ============================================ */
101
+
102
+ @media (prefers-reduced-motion: reduce) {
103
+ .Input {
104
+ transition: none;
105
+ }
106
+ }
@@ -0,0 +1,158 @@
1
+ /* Menu - Mojave Theme */
2
+
3
+ /* ============================================
4
+ TRIGGER (uses Button component)
5
+ ============================================ */
6
+
7
+ /* No trigger styles needed - uses Button component */
8
+
9
+ /* ============================================
10
+ POSITIONER
11
+ ============================================ */
12
+
13
+ .MenuPositioner {
14
+ z-index: var(--menu-positioner-z-index);
15
+ }
16
+
17
+ /* ============================================
18
+ POPUP
19
+ ============================================ */
20
+
21
+ .MenuPopup {
22
+ min-width: var(--menu-popup-min-width);
23
+ background: var(--menu-popup-background);
24
+ border: var(--menu-popup-border);
25
+ border-radius: var(--menu-popup-border-radius);
26
+ padding: var(--menu-popup-padding);
27
+ box-shadow: var(--menu-popup-shadow);
28
+ animation: menuFadeIn var(--menu-popup-animation-duration) var(--menu-popup-animation-easing);
29
+ }
30
+
31
+ @keyframes menuFadeIn {
32
+ from {
33
+ opacity: 0;
34
+ transform: scale(0.95);
35
+ }
36
+ to {
37
+ opacity: 1;
38
+ transform: scale(1);
39
+ }
40
+ }
41
+
42
+ /* ============================================
43
+ ITEM
44
+ ============================================ */
45
+
46
+ .MenuItem,
47
+ .MenuCheckboxItem,
48
+ .MenuRadioItem,
49
+ .MenuSubmenuTrigger {
50
+ padding: var(--menu-item-padding-block) var(--menu-item-padding-inline);
51
+ font-size: var(--menu-item-font-size);
52
+ color: var(--menu-item-color);
53
+ cursor: var(--menu-item-cursor);
54
+ border-radius: var(--menu-item-border-radius);
55
+ transition: var(--menu-item-transition);
56
+ display: flex;
57
+ align-items: center;
58
+ gap: var(--menu-item-gap);
59
+ outline: none;
60
+ list-style: none;
61
+ }
62
+
63
+ .MenuItem:hover,
64
+ .MenuCheckboxItem:hover,
65
+ .MenuRadioItem:hover,
66
+ .MenuSubmenuTrigger:hover {
67
+ background: var(--menu-item-background-hover);
68
+ color: var(--menu-item-color-hover);
69
+ }
70
+
71
+ .MenuItem[data-disabled],
72
+ .MenuCheckboxItem[data-disabled],
73
+ .MenuRadioItem[data-disabled] {
74
+ color: var(--menu-item-color-disabled);
75
+ cursor: var(--menu-item-cursor-disabled);
76
+ opacity: var(--menu-item-opacity-disabled);
77
+ }
78
+
79
+ /* ============================================
80
+ CHECKBOX & RADIO ITEM INDICATORS
81
+ ============================================ */
82
+
83
+ .MenuCheckboxItemIndicator,
84
+ .MenuRadioItemIndicator {
85
+ width: var(--menu-item-indicator-width);
86
+ height: var(--menu-item-indicator-height);
87
+ display: inline-flex;
88
+ align-items: center;
89
+ justify-content: center;
90
+ color: var(--menu-item-indicator-color);
91
+ font-size: var(--menu-item-indicator-font-size);
92
+ font-weight: bold;
93
+ }
94
+
95
+ .MenuCheckboxItemIndicatorIcon,
96
+ .MenuRadioItemIndicatorIcon {
97
+ font-size: var(--menu-item-indicator-width);
98
+ line-height: 1;
99
+ }
100
+
101
+ /* Hide unchecked radio button indicator */
102
+ .MenuRadioItemIndicator[data-unchecked] {
103
+ display: none;
104
+ }
105
+
106
+ /* ============================================
107
+ GROUP
108
+ ============================================ */
109
+
110
+ .MenuGroup {
111
+ padding: var(--menu-group-padding);
112
+ }
113
+
114
+ /* ============================================
115
+ GROUP LABEL
116
+ ============================================ */
117
+
118
+ .MenuGroupLabel {
119
+ padding-block-start: var(--menu-group-label-padding-block-start);
120
+ padding-block-end: var(--menu-group-label-padding-block-end);
121
+ padding-inline: var(--menu-group-label-padding-inline);
122
+ font-size: var(--menu-group-label-font-size);
123
+ font-weight: var(--menu-group-label-font-weight);
124
+ color: var(--menu-group-label-color);
125
+ text-transform: var(--menu-group-label-text-transform);
126
+ letter-spacing: var(--menu-group-label-letter-spacing);
127
+ }
128
+
129
+ /* ============================================
130
+ SEPARATOR
131
+ ============================================ */
132
+
133
+ .MenuSeparator {
134
+ height: var(--menu-separator-height);
135
+ background: var(--menu-separator-background);
136
+ margin-block: var(--menu-separator-margin-block);
137
+ }
138
+
139
+ /* ============================================
140
+ SUBMENU TRIGGER ARROW
141
+ ============================================ */
142
+
143
+ .MenuSubmenuTrigger::after {
144
+ content: '→';
145
+ margin-left: auto;
146
+ color: var(--menu-submenu-arrow-color);
147
+ font-size: var(--menu-submenu-arrow-font-size);
148
+ }
149
+
150
+ /* ============================================
151
+ REDUCED MOTION
152
+ ============================================ */
153
+
154
+ @media (prefers-reduced-motion: reduce) {
155
+ .MenuPopup {
156
+ animation: none;
157
+ }
158
+ }