@ethlete/components 1.0.0-next.100 → 1.0.0-next.102

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 (273) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/design/banner.ts +1 -1
  3. package/design/breadcrumb.ts +0 -1
  4. package/design/button.ts +0 -2
  5. package/design/card.ts +1 -1
  6. package/design/dialog.ts +1 -7
  7. package/design/grid.ts +3 -3
  8. package/design/masonry.ts +3 -3
  9. package/design/menu.ts +5 -3
  10. package/design/notification.ts +0 -1
  11. package/design/scheduler.ts +1 -1
  12. package/design/sdk/components/accent-on-light/accent-on-light.css +5 -5
  13. package/design/sdk/components/accordion/accordion.css +3 -3
  14. package/design/sdk/components/action-sheet/action-sheet.css +13 -13
  15. package/design/sdk/components/action-sheet/action-sheet.ts +5 -3
  16. package/design/sdk/components/anchored-dialog/anchored-dialog.css +5 -5
  17. package/design/sdk/components/avatar/avatar.css +3 -3
  18. package/design/sdk/components/badge/badge.css +3 -3
  19. package/design/sdk/components/banner/banner.css +4 -4
  20. package/design/sdk/components/bracket/bracket.css +8 -11
  21. package/design/sdk/components/breadcrumb/breadcrumb.css +4 -4
  22. package/design/sdk/components/button/button.css +3 -13
  23. package/design/sdk/components/calendar/calendar.css +7 -7
  24. package/design/sdk/components/card/card.css +4 -4
  25. package/design/sdk/components/carousel/carousel.css +6 -6
  26. package/design/sdk/components/chart/chart.css +8 -8
  27. package/design/sdk/components/checkbox/checkbox.css +2 -2
  28. package/design/sdk/components/chip/chip.css +4 -4
  29. package/design/sdk/components/copy-button/copy-button.css +3 -3
  30. package/design/sdk/components/description-list/description-list.css +2 -2
  31. package/design/sdk/components/dialog/dialog.css +4 -4
  32. package/design/sdk/components/divider/divider.css +2 -2
  33. package/design/sdk/components/empty-state/empty-state.css +4 -4
  34. package/design/sdk/components/floating-action/floating-action.css +4 -4
  35. package/design/sdk/components/grid/grid.css +4 -4
  36. package/design/sdk/components/input/input.css +13 -22
  37. package/design/sdk/components/kbd/kbd.css +2 -2
  38. package/design/sdk/components/loader/loader.css +6 -6
  39. package/design/sdk/components/masonry/masonry.css +2 -2
  40. package/design/sdk/components/match/match.css +5 -8
  41. package/design/sdk/components/menu/menu.css +2 -2
  42. package/design/sdk/components/menu/menu.ts +2 -2
  43. package/design/sdk/components/notification/notification.css +6 -6
  44. package/design/sdk/components/otp-input/otp-input.css +8 -8
  45. package/design/sdk/components/pagination/pagination.css +2 -2
  46. package/design/sdk/components/picture/picture.css +5 -5
  47. package/design/sdk/components/progress-steps/progress-steps.css +6 -6
  48. package/design/sdk/components/query-error/query-error.css +5 -11
  49. package/design/sdk/components/radio-group/radio-group.css +2 -2
  50. package/design/sdk/components/scheduler/scheduler.css +9 -15
  51. package/design/sdk/components/scrollable/scrollable.css +5 -5
  52. package/design/sdk/components/scrollbar/scrollbar.css +3 -3
  53. package/design/sdk/components/select/select.css +1 -1
  54. package/design/sdk/components/skeleton/skeleton.css +2 -2
  55. package/design/sdk/components/slider/slider.css +8 -13
  56. package/design/sdk/components/standings/standings.css +7 -8
  57. package/design/sdk/components/stat-tile/stat-tile.css +3 -3
  58. package/design/sdk/components/stream/stream.css +7 -13
  59. package/design/sdk/components/table/table.css +13 -13
  60. package/design/sdk/components/tabs/tabs.css +2 -2
  61. package/design/sdk/components/textarea/textarea.css +13 -22
  62. package/design/sdk/components/timeline/timeline.css +4 -4
  63. package/design/sdk/components/toolbar/toolbar.css +6 -6
  64. package/design/sdk/components/tooltip/tooltip.css +3 -3
  65. package/design/sdk/components/tooltip/tooltip.ts +1 -1
  66. package/design/sdk/components/tree/selected-tint.css +3 -3
  67. package/design/sdk/foundations/colors/colors.css +363 -421
  68. package/design/sdk/foundations/colors/colors.ts +27 -25
  69. package/design/sdk/foundations/colors/shared/contrast.ts +10 -10
  70. package/design/sdk/foundations/elevation/elevation.css +2 -2
  71. package/design/sdk/foundations/elevation/elevation.ts +1 -1
  72. package/design/sdk/foundations/elevation/shared/elevation/scene.css +16 -11
  73. package/design/sdk/ready.json +4 -109
  74. package/design/tabs.ts +1 -1
  75. package/design/toggletip.ts +85 -0
  76. package/fesm2022/ethlete-components.mjs +725 -417
  77. package/fesm2022/ethlete-components.mjs.map +1 -1
  78. package/generators/generators.json +10 -0
  79. package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
  80. package/generators/migrate-overlay-and-column-api/migration.js +39 -0
  81. package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
  82. package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
  83. package/generators/migrate-overlay-and-column-api/schema.json +26 -0
  84. package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
  85. package/generators/migrate-tabs-active-underline/migration.js +31 -0
  86. package/generators/migrate-tabs-active-underline/schema.json +26 -0
  87. package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
  88. package/migrations.json +18 -0
  89. package/package.json +2 -2
  90. package/src/lib/accordion/accordion.component.css +10 -11
  91. package/src/lib/avatar/avatar-group.component.css +1 -1
  92. package/src/lib/avatar/avatar.component.css +3 -3
  93. package/src/lib/badge/badge.component.css +13 -9
  94. package/src/lib/banner/banner.component.css +5 -5
  95. package/src/lib/bracket/bracket-default-continue.component.css +2 -2
  96. package/src/lib/bracket/bracket-default-final-match.component.css +6 -6
  97. package/src/lib/bracket/bracket-default-round-header.component.css +2 -2
  98. package/src/lib/bracket/bracket-default-section-title.component.css +1 -1
  99. package/src/lib/bracket/bracket-pick-card.component.css +21 -21
  100. package/src/lib/bracket/bracket-rounds-list.component.css +1 -1
  101. package/src/lib/bracket/bracket.component.css +2 -2
  102. package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
  103. package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +5 -1
  104. package/src/lib/breadcrumb/breadcrumb-overflow.component.css +3 -3
  105. package/src/lib/breadcrumb/breadcrumb.component.css +5 -6
  106. package/src/lib/button/button-properties-styles.component.css +12 -12
  107. package/src/lib/button/button.component.css +52 -35
  108. package/src/lib/button/fab.component.css +17 -20
  109. package/src/lib/button/icon-button.component.css +15 -19
  110. package/src/lib/button/split-button.component.css +11 -14
  111. package/src/lib/button/text-button.component.css +1 -1
  112. package/src/lib/button/window-control-button.component.css +21 -32
  113. package/src/lib/calendar/calendar-comparison-band-styles.component.css +1 -1
  114. package/src/lib/calendar/calendar-week-numbers-styles.component.css +3 -3
  115. package/src/lib/calendar/calendar.component.css +21 -23
  116. package/src/lib/card/card.component.css +5 -5
  117. package/src/lib/carousel/carousel-autoplay-styles.component.css +2 -8
  118. package/src/lib/carousel/carousel.component.css +7 -19
  119. package/src/lib/chart/bar-chart.component.css +6 -6
  120. package/src/lib/chart/chart-grid.component.css +1 -1
  121. package/src/lib/chart/chart-legend.component.css +2 -2
  122. package/src/lib/chart/chart-tooltip.component.css +2 -2
  123. package/src/lib/chart/line-chart-tooltip.component.css +2 -2
  124. package/src/lib/chart/line-chart.component.css +11 -11
  125. package/src/lib/chart/pie-chart.component.css +8 -8
  126. package/src/lib/chart/sankey-chart.component.css +13 -13
  127. package/src/lib/chip/chip.component.css +15 -17
  128. package/src/lib/command-palette/command-palette-item.component.css +5 -5
  129. package/src/lib/command-palette/command-palette.component.css +3 -3
  130. package/src/lib/description-list/description-list.component.css +2 -2
  131. package/src/lib/divider/divider.component.css +2 -2
  132. package/src/lib/empty-state/empty-state.component.css +4 -4
  133. package/src/lib/floating-action/floating-action-styles.component.css +3 -3
  134. package/src/lib/focus-ring/focus-ring-styles.component.css +1 -1
  135. package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +8 -8
  136. package/src/lib/forms/cascader/cascader-panel.component.css +27 -24
  137. package/src/lib/forms/cascader/cascader-sheet-styles.component.css +3 -3
  138. package/src/lib/forms/cascader/cascader.component.css +1 -1
  139. package/src/lib/forms/checkbox/checkbox.component.css +26 -39
  140. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +3 -3
  141. package/src/lib/forms/choice-field/choice-field.component.css +7 -7
  142. package/src/lib/forms/color-input/color-input.component.css +2 -3
  143. package/src/lib/forms/color-input/color-picker-panel.component.css +16 -15
  144. package/src/lib/forms/date-time/date-input/date-input.component.css +1 -1
  145. package/src/lib/forms/date-time/date-picker-panel.component.css +8 -5
  146. package/src/lib/forms/date-time/date-range-presets.component.css +2 -2
  147. package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +4 -4
  148. package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +3 -3
  149. package/src/lib/forms/date-time/duration-input/duration-input.component.css +3 -3
  150. package/src/lib/forms/date-time/range-input-shell-styles.component.css +2 -2
  151. package/src/lib/forms/date-time/time-input/time-input.component.css +1 -1
  152. package/src/lib/forms/description/description.component.css +1 -1
  153. package/src/lib/forms/dropzone/dropzone-crop.component.css +8 -8
  154. package/src/lib/forms/dropzone/dropzone-item.component.css +5 -5
  155. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +5 -5
  156. package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +1 -1
  157. package/src/lib/forms/dropzone/dropzone-row-styles.component.css +3 -3
  158. package/src/lib/forms/dropzone/dropzone.component.css +20 -22
  159. package/src/lib/forms/form-field/counter.component.css +2 -2
  160. package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +12 -14
  161. package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +1 -1
  162. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +22 -35
  163. package/src/lib/forms/form-field/form-field.component.css +9 -10
  164. package/src/lib/forms/form-field/form-support-styles.component.css +2 -2
  165. package/src/lib/forms/form-field/headless/label.directive.css +2 -2
  166. package/src/lib/forms/form-field/hint.component.css +2 -2
  167. package/src/lib/forms/input/input.component.css +1 -1
  168. package/src/lib/forms/input/number-input.component.css +5 -5
  169. package/src/lib/forms/input/password-input.component.css +7 -8
  170. package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +7 -10
  171. package/src/lib/forms/otp-input/otp-input.component.css +11 -15
  172. package/src/lib/forms/phone-input/phone-input.component.css +4 -5
  173. package/src/lib/forms/rating/rating.component.css +8 -9
  174. package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +6 -6
  175. package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +7 -4
  176. package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +6 -6
  177. package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +4 -4
  178. package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +12 -9
  179. package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +6 -8
  180. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +7 -7
  181. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +2 -2
  182. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +4 -4
  183. package/src/lib/forms/select/select-extras-styles.component.css +10 -13
  184. package/src/lib/forms/select/select-option-group.component.css +2 -2
  185. package/src/lib/forms/select/select-option-styles.component.css +6 -6
  186. package/src/lib/forms/select/select-panel.component.css +13 -10
  187. package/src/lib/forms/select/select.component.css +4 -4
  188. package/src/lib/forms/selection-card-styles.component.css +10 -14
  189. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +11 -21
  190. package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +4 -4
  191. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +11 -21
  192. package/src/lib/forms/selection-list/radio-group/radio-group.component.css +4 -4
  193. package/src/lib/forms/selection-list/radio-group/radio.component.css +10 -20
  194. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +7 -7
  195. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +16 -15
  196. package/src/lib/forms/slider/range-slider.component.css +18 -24
  197. package/src/lib/forms/slider/slider.component.css +18 -24
  198. package/src/lib/forms/switch/switch.component.css +19 -22
  199. package/src/lib/forms/tag-input/tag-input.component.css +1 -1
  200. package/src/lib/forms/textarea/textarea.component.css +1 -1
  201. package/src/lib/grid/grid-debug.component.css +18 -18
  202. package/src/lib/grid/grid-item-default-actions.component.css +2 -2
  203. package/src/lib/grid/grid-item.component.css +3 -4
  204. package/src/lib/grid/grid.component.css +2 -2
  205. package/src/lib/kbd/kbd.component.css +3 -3
  206. package/src/lib/loader/brand-loader/brand-loader.component.css +3 -3
  207. package/src/lib/loader/progress-bar/progress-bar.component.css +1 -1
  208. package/src/lib/loader/spinner/spinner-styles.component.css +1 -1
  209. package/src/lib/match/match-card.component.css +18 -29
  210. package/src/lib/match/match-participant.component.css +11 -11
  211. package/src/lib/match/match-score.component.css +1 -1
  212. package/src/lib/match/match-scoreline.component.css +3 -3
  213. package/src/lib/menu/menu-group-label.component.css +1 -1
  214. package/src/lib/menu/menu-item-shortcut.component.css +1 -1
  215. package/src/lib/menu/menu-item-submenu-icon.component.css +1 -1
  216. package/src/lib/menu/menu-search-styles.component.css +3 -3
  217. package/src/lib/menu/menu-selection-item.component.css +2 -2
  218. package/src/lib/menu/menu-separator.component.css +1 -1
  219. package/src/lib/menu/menu.component.css +13 -10
  220. package/src/lib/notification/notification.component.css +10 -10
  221. package/src/lib/overlay/alert-dialog/alert-dialog.component.css +2 -2
  222. package/src/lib/overlay/floating-tip-styles.component.css +4 -4
  223. package/src/lib/overlay/overlay-container.component.css +9 -6
  224. package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +2 -2
  225. package/src/lib/overlay/strategies/sheet-styles.component.css +2 -2
  226. package/src/lib/pagination/pagination.component.css +9 -10
  227. package/src/lib/progress-steps/progress-step.component.css +19 -19
  228. package/src/lib/query-error/query-error.component.css +1 -1
  229. package/src/lib/scheduler/scheduler-agenda-view.component.css +8 -8
  230. package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +4 -1
  231. package/src/lib/scheduler/scheduler-appointment-styles.component.css +12 -10
  232. package/src/lib/scheduler/scheduler-edit-color.component.css +2 -2
  233. package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +2 -2
  234. package/src/lib/scheduler/scheduler-edit-surface-children.component.css +4 -4
  235. package/src/lib/scheduler/scheduler-month-view.component.css +16 -18
  236. package/src/lib/scheduler/scheduler-time-grid-view.component.css +24 -26
  237. package/src/lib/scheduler/scheduler.component.css +1 -1
  238. package/src/lib/scrollable/headless/scrollable-buttons.component.css +55 -6
  239. package/src/lib/scrollable/headless/scrollable-masks.component.css +2 -2
  240. package/src/lib/scrollable/headless/scrollable-navigation.component.css +2 -2
  241. package/src/lib/scrollbar/scrollbar.component.css +2 -2
  242. package/src/lib/skeleton/skeleton.component.css +2 -8
  243. package/src/lib/standings/standings-pick.component.css +13 -21
  244. package/src/lib/standings/standings.component.css +24 -30
  245. package/src/lib/stat-tile/stat-tile-sparkline.component.css +2 -2
  246. package/src/lib/stat-tile/stat-tile.component.css +5 -5
  247. package/src/lib/stream/consent/stream-consent.component.css +2 -2
  248. package/src/lib/stream/error/stream-player-error.component.css +2 -2
  249. package/src/lib/stream/loading/stream-player-loading.component.css +3 -3
  250. package/src/lib/stream/pip/pip-slot-placeholder.component.css +2 -2
  251. package/src/lib/stream/pip/pip-stage-styles.component.css +3 -6
  252. package/src/lib/stream/pip/pip-window.component.css +4 -5
  253. package/src/lib/stream/stream-overlay-card-styles.component.css +4 -4
  254. package/src/lib/stream/stream-player-slot-styles.component.css +1 -1
  255. package/src/lib/table/table-column-menu-trigger.component.css +1 -1
  256. package/src/lib/table/table-expander-cell.component.css +2 -2
  257. package/src/lib/table/table-filter-trigger.component.css +4 -4
  258. package/src/lib/table/table-group-header-row.component.css +1 -1
  259. package/src/lib/table/table-reorder-overlay.component.css +4 -4
  260. package/src/lib/table/table-resize-grip.component.css +4 -5
  261. package/src/lib/table/table-row-box-styles.component.css +7 -11
  262. package/src/lib/table/table-select-cell.component.css +7 -7
  263. package/src/lib/table/table-sort-priority-styles.component.css +1 -1
  264. package/src/lib/table/table.component.css +37 -49
  265. package/src/lib/tabs/tab-bar-styles.component.css +44 -8
  266. package/src/lib/time-picker/time-picker.component.css +16 -25
  267. package/src/lib/timeline/timeline-item.component.css +7 -10
  268. package/src/lib/timeline/timeline.component.css +1 -1
  269. package/src/lib/toggletip/toggletip.component.css +6 -1
  270. package/src/lib/toolbar/toolbar.component.css +1 -1
  271. package/src/lib/tooltip/tooltip.component.css +4 -4
  272. package/src/lib/tree/tree.component.css +18 -18
  273. package/types/ethlete-components.d.ts +85 -28
@@ -4,243 +4,190 @@
4
4
  @layer base {
5
5
  .et-surface--default-light,
6
6
  .et-surface--light {
7
- --et-surface-background: 255 255 255;
8
- --et-surface-color: 23 23 23;
9
- --et-surface-color-muted: 82 82 82;
10
- --et-surface-color-subtle: 112 112 112;
11
- --et-surface-border: 229 229 229;
7
+ --et-surface-background: rgb(255 255 255);
8
+ --et-surface-text: rgb(23 23 23);
9
+ --et-surface-text-muted: rgb(82 82 82);
10
+ --et-surface-text-subtle: rgb(112 112 112);
11
+ --et-surface-border: rgb(229 229 229);
12
12
  --et-surface-type: light;
13
13
  --et-surface-elevation: 0;
14
- --et-shadow-color-rgb: 23 23 23;
14
+ --et-shadow-color: rgb(23 23 23);
15
15
  --et-surface-color-theme-variants:
16
16
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
17
- --et-surface-interaction: 115 115 115;
18
- --et-surface-interaction-hover: 64 64 64;
19
- --et-surface-interaction-focus: 64 64 64;
20
- --et-surface-interaction-active: 23 23 23;
21
- --et-surface-interaction-disabled: 180 180 180;
17
+ --et-surface-tint: rgb(115 115 115);
18
+ --et-surface-control-text: rgb(115 115 115);
19
+ --et-surface-control-text-hover: rgb(64 64 64);
20
+ --et-surface-control-text-focus: rgb(64 64 64);
21
+ --et-surface-control-text-active: rgb(23 23 23);
22
+ --et-surface-control-text-disabled: rgb(180 180 180);
22
23
  }
23
24
 
24
25
  .et-surface--default-dark,
25
26
  .et-surface--dark {
26
- --et-surface-background: 23 23 23;
27
- --et-surface-color: 250 250 250;
28
- --et-surface-color-muted: 161 161 161;
29
- --et-surface-color-subtle: 135 135 135;
30
- --et-surface-border: 64 64 64;
27
+ --et-surface-background: rgb(23 23 23);
28
+ --et-surface-text: rgb(250 250 250);
29
+ --et-surface-text-muted: rgb(161 161 161);
30
+ --et-surface-text-subtle: rgb(135 135 135);
31
+ --et-surface-border: rgb(64 64 64);
31
32
  --et-surface-type: dark;
32
33
  --et-surface-elevation: 0;
33
- --et-shadow-color-rgb: 0 0 0;
34
- --et-surface-interaction: 161 161 161;
35
- --et-surface-interaction-hover: 220 220 220;
36
- --et-surface-interaction-focus: 220 220 220;
37
- --et-surface-interaction-active: 250 250 250;
38
- --et-surface-interaction-disabled: 100 100 100;
34
+ --et-shadow-color: rgb(0 0 0);
35
+ --et-surface-tint: rgb(161 161 161);
36
+ --et-surface-control-text: rgb(161 161 161);
37
+ --et-surface-control-text-hover: rgb(220 220 220);
38
+ --et-surface-control-text-focus: rgb(220 220 220);
39
+ --et-surface-control-text-active: rgb(250 250 250);
40
+ --et-surface-control-text-disabled: rgb(100 100 100);
39
41
  }
40
42
 
41
43
  .et-surface--light-elevated {
42
- --et-surface-background: 240 240 240;
43
- --et-surface-color: 23 23 23;
44
- --et-surface-color-muted: 82 82 82;
45
- --et-surface-color-subtle: 161 161 161;
46
- --et-surface-border: 229 229 229;
44
+ --et-surface-background: rgb(240 240 240);
45
+ --et-surface-text: rgb(23 23 23);
46
+ --et-surface-text-muted: rgb(82 82 82);
47
+ --et-surface-text-subtle: rgb(161 161 161);
48
+ --et-surface-border: rgb(229 229 229);
47
49
  --et-surface-type: light;
48
50
  --et-surface-elevation: 1;
49
- --et-shadow-color-rgb: 23 23 23;
51
+ --et-shadow-color: rgb(23 23 23);
50
52
  --et-surface-color-theme-variants:
51
53
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
52
- --et-surface-interaction: 115 115 115;
53
- --et-surface-interaction-hover: 64 64 64;
54
- --et-surface-interaction-focus: 64 64 64;
55
- --et-surface-interaction-active: 23 23 23;
56
- --et-surface-interaction-disabled: 180 180 180;
54
+ --et-surface-tint: rgb(115 115 115);
55
+ --et-surface-control-text: rgb(115 115 115);
56
+ --et-surface-control-text-hover: rgb(64 64 64);
57
+ --et-surface-control-text-focus: rgb(64 64 64);
58
+ --et-surface-control-text-active: rgb(23 23 23);
59
+ --et-surface-control-text-disabled: rgb(180 180 180);
57
60
  }
58
61
 
59
62
  .et-surface--dark-elevated {
60
- --et-surface-background: 38 38 38;
61
- --et-surface-color: 250 250 250;
62
- --et-surface-color-muted: 161 161 161;
63
- --et-surface-color-subtle: 115 115 115;
64
- --et-surface-border: 64 64 64;
63
+ --et-surface-background: rgb(38 38 38);
64
+ --et-surface-text: rgb(250 250 250);
65
+ --et-surface-text-muted: rgb(161 161 161);
66
+ --et-surface-text-subtle: rgb(115 115 115);
67
+ --et-surface-border: rgb(64 64 64);
65
68
  --et-surface-type: dark;
66
69
  --et-surface-elevation: 1;
67
- --et-shadow-color-rgb: 0 0 0;
68
- --et-surface-interaction: 161 161 161;
69
- --et-surface-interaction-hover: 220 220 220;
70
- --et-surface-interaction-focus: 220 220 220;
71
- --et-surface-interaction-active: 250 250 250;
72
- --et-surface-interaction-disabled: 100 100 100;
70
+ --et-shadow-color: rgb(0 0 0);
71
+ --et-surface-tint: rgb(161 161 161);
72
+ --et-surface-control-text: rgb(161 161 161);
73
+ --et-surface-control-text-hover: rgb(220 220 220);
74
+ --et-surface-control-text-focus: rgb(220 220 220);
75
+ --et-surface-control-text-active: rgb(250 250 250);
76
+ --et-surface-control-text-disabled: rgb(100 100 100);
73
77
  }
74
78
 
75
79
  @media (prefers-color-scheme: light) {
76
80
  :root {
77
- --et-surface-background: 255 255 255;
78
- --et-surface-color: 23 23 23;
79
- --et-surface-color-muted: 82 82 82;
80
- --et-surface-color-subtle: 112 112 112;
81
- --et-surface-border: 229 229 229;
81
+ --et-surface-background: rgb(255 255 255);
82
+ --et-surface-text: rgb(23 23 23);
83
+ --et-surface-text-muted: rgb(82 82 82);
84
+ --et-surface-text-subtle: rgb(112 112 112);
85
+ --et-surface-border: rgb(229 229 229);
82
86
  --et-surface-type: light;
83
87
  --et-surface-elevation: 0;
84
- --et-shadow-color-rgb: 23 23 23;
88
+ --et-shadow-color: rgb(23 23 23);
85
89
  --et-surface-color-theme-variants:
86
90
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
87
- --et-surface-interaction: 115 115 115;
88
- --et-surface-interaction-hover: 64 64 64;
89
- --et-surface-interaction-focus: 64 64 64;
90
- --et-surface-interaction-active: 23 23 23;
91
- --et-surface-interaction-disabled: 180 180 180;
91
+ --et-surface-tint: rgb(115 115 115);
92
+ --et-surface-control-text: rgb(115 115 115);
93
+ --et-surface-control-text-hover: rgb(64 64 64);
94
+ --et-surface-control-text-focus: rgb(64 64 64);
95
+ --et-surface-control-text-active: rgb(23 23 23);
96
+ --et-surface-control-text-disabled: rgb(180 180 180);
92
97
  color-scheme: light;
93
98
  }
94
99
  }
95
100
 
96
101
  @media (prefers-color-scheme: dark) {
97
102
  :root {
98
- --et-surface-background: 23 23 23;
99
- --et-surface-color: 250 250 250;
100
- --et-surface-color-muted: 161 161 161;
101
- --et-surface-color-subtle: 135 135 135;
102
- --et-surface-border: 64 64 64;
103
+ --et-surface-background: rgb(23 23 23);
104
+ --et-surface-text: rgb(250 250 250);
105
+ --et-surface-text-muted: rgb(161 161 161);
106
+ --et-surface-text-subtle: rgb(135 135 135);
107
+ --et-surface-border: rgb(64 64 64);
103
108
  --et-surface-type: dark;
104
109
  --et-surface-elevation: 0;
105
- --et-shadow-color-rgb: 0 0 0;
106
- --et-surface-interaction: 161 161 161;
107
- --et-surface-interaction-hover: 220 220 220;
108
- --et-surface-interaction-focus: 220 220 220;
109
- --et-surface-interaction-active: 250 250 250;
110
- --et-surface-interaction-disabled: 100 100 100;
110
+ --et-shadow-color: rgb(0 0 0);
111
+ --et-surface-tint: rgb(161 161 161);
112
+ --et-surface-control-text: rgb(161 161 161);
113
+ --et-surface-control-text-hover: rgb(220 220 220);
114
+ --et-surface-control-text-focus: rgb(220 220 220);
115
+ --et-surface-control-text-active: rgb(250 250 250);
116
+ --et-surface-control-text-disabled: rgb(100 100 100);
111
117
  color-scheme: dark;
112
118
  }
113
119
  }
114
120
 
115
121
  :root.et-scheme--light {
116
- --et-surface-background: 255 255 255;
117
- --et-surface-color: 23 23 23;
118
- --et-surface-color-muted: 82 82 82;
119
- --et-surface-color-subtle: 112 112 112;
120
- --et-surface-border: 229 229 229;
122
+ --et-surface-background: rgb(255 255 255);
123
+ --et-surface-text: rgb(23 23 23);
124
+ --et-surface-text-muted: rgb(82 82 82);
125
+ --et-surface-text-subtle: rgb(112 112 112);
126
+ --et-surface-border: rgb(229 229 229);
121
127
  --et-surface-type: light;
122
128
  --et-surface-elevation: 0;
123
- --et-shadow-color-rgb: 23 23 23;
129
+ --et-shadow-color: rgb(23 23 23);
124
130
  --et-surface-color-theme-variants:
125
131
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
126
- --et-surface-interaction: 115 115 115;
127
- --et-surface-interaction-hover: 64 64 64;
128
- --et-surface-interaction-focus: 64 64 64;
129
- --et-surface-interaction-active: 23 23 23;
130
- --et-surface-interaction-disabled: 180 180 180;
132
+ --et-surface-tint: rgb(115 115 115);
133
+ --et-surface-control-text: rgb(115 115 115);
134
+ --et-surface-control-text-hover: rgb(64 64 64);
135
+ --et-surface-control-text-focus: rgb(64 64 64);
136
+ --et-surface-control-text-active: rgb(23 23 23);
137
+ --et-surface-control-text-disabled: rgb(180 180 180);
131
138
  color-scheme: light;
132
139
  }
133
140
 
134
141
  :root.et-scheme--dark {
135
- --et-surface-background: 23 23 23;
136
- --et-surface-color: 250 250 250;
137
- --et-surface-color-muted: 161 161 161;
138
- --et-surface-color-subtle: 135 135 135;
139
- --et-surface-border: 64 64 64;
142
+ --et-surface-background: rgb(23 23 23);
143
+ --et-surface-text: rgb(250 250 250);
144
+ --et-surface-text-muted: rgb(161 161 161);
145
+ --et-surface-text-subtle: rgb(135 135 135);
146
+ --et-surface-border: rgb(64 64 64);
140
147
  --et-surface-type: dark;
141
148
  --et-surface-elevation: 0;
142
- --et-shadow-color-rgb: 0 0 0;
143
- --et-surface-interaction: 161 161 161;
144
- --et-surface-interaction-hover: 220 220 220;
145
- --et-surface-interaction-focus: 220 220 220;
146
- --et-surface-interaction-active: 250 250 250;
147
- --et-surface-interaction-disabled: 100 100 100;
149
+ --et-shadow-color: rgb(0 0 0);
150
+ --et-surface-tint: rgb(161 161 161);
151
+ --et-surface-control-text: rgb(161 161 161);
152
+ --et-surface-control-text-hover: rgb(220 220 220);
153
+ --et-surface-control-text-focus: rgb(220 220 220);
154
+ --et-surface-control-text-active: rgb(250 250 250);
155
+ --et-surface-control-text-disabled: rgb(100 100 100);
148
156
  color-scheme: dark;
149
157
  }
150
158
  }
151
-
152
- /* Convenience aliases (rgb + solid variants) */
153
159
  @layer base {
154
160
  :root,
155
161
  :where([class*='et-surface--']) {
156
- --et-surface-background-rgb: var(--et-surface-background);
157
- --et-surface-background-solid: rgb(var(--et-surface-background-rgb));
158
-
159
- --et-surface-color-rgb: var(--et-surface-color);
160
- --et-surface-color-solid: rgb(var(--et-surface-color-rgb));
161
-
162
- --et-surface-color-muted-rgb: var(--et-surface-color-muted);
163
- --et-surface-color-muted-solid: rgb(var(--et-surface-color-muted-rgb));
164
-
165
- --et-surface-color-subtle-rgb: var(--et-surface-color-subtle);
166
- --et-surface-color-subtle-solid: rgb(var(--et-surface-color-subtle-rgb));
167
-
168
- --et-surface-border-rgb: var(--et-surface-border);
169
- --et-surface-border-solid: rgb(var(--et-surface-border-rgb));
170
-
171
- --et-surface-interaction-rgb: var(--et-surface-interaction);
172
- --et-surface-interaction-solid: rgb(var(--et-surface-interaction-rgb));
173
-
174
- --et-surface-interaction-hover-rgb: var(--et-surface-interaction-hover);
175
- --et-surface-interaction-hover-solid: rgb(var(--et-surface-interaction-hover-rgb));
176
-
177
- --et-surface-interaction-focus-rgb: var(--et-surface-interaction-focus);
178
- --et-surface-interaction-focus-solid: rgb(var(--et-surface-interaction-focus-rgb));
179
-
180
- --et-surface-interaction-active-rgb: var(--et-surface-interaction-active);
181
- --et-surface-interaction-active-solid: rgb(var(--et-surface-interaction-active-rgb));
182
-
183
- --et-surface-interaction-disabled-rgb: var(--et-surface-interaction-disabled);
184
- --et-surface-interaction-disabled-solid: rgb(var(--et-surface-interaction-disabled-rgb));
185
162
  }
186
163
  }
187
164
 
188
- /* The reserved `surface` color: resolves the color tokens from the ambient surface's neutral swatch. */
165
+ /* The reserved `surface` color: resolves the tone from the ambient surface's neutral swatch. */
189
166
  @layer base {
190
167
  .et-color--surface {
191
- --et-color-primary: var(--et-surface-interaction, var(--et-surface-color));
192
- --et-color-primary-hover: var(
193
- --et-surface-interaction-hover,
194
- var(--et-surface-interaction, var(--et-surface-color))
195
- );
196
- --et-color-primary-focus: var(
197
- --et-surface-interaction-focus,
198
- var(--et-surface-interaction, var(--et-surface-color))
168
+ --et-tone-fill-rest: var(--et-surface-control-text, var(--et-surface-text));
169
+ --et-tone-fill-hover: var(--et-surface-control-text-hover, var(--et-surface-control-text, var(--et-surface-text)));
170
+ --et-tone-fill-focus: var(--et-surface-control-text-focus, var(--et-surface-control-text, var(--et-surface-text)));
171
+ --et-tone-fill-active: var(
172
+ --et-surface-control-text-active,
173
+ var(--et-surface-control-text, var(--et-surface-text))
199
174
  );
200
- --et-color-primary-active: var(
201
- --et-surface-interaction-active,
202
- var(--et-surface-interaction, var(--et-surface-color))
203
- );
204
- --et-color-primary-disabled: var(
205
- --et-surface-interaction-disabled,
206
- var(--et-surface-interaction, var(--et-surface-color))
175
+ --et-tone-fill-disabled: var(
176
+ --et-surface-control-text-disabled,
177
+ var(--et-surface-control-text, var(--et-surface-text))
207
178
  );
208
179
 
209
- --et-color-on-primary: var(--et-surface-on-interaction, var(--et-surface-background));
210
- --et-color-on-primary-hover: var(
211
- --et-surface-on-interaction-hover,
212
- var(--et-surface-on-interaction, var(--et-surface-background))
213
- );
214
- --et-color-on-primary-focus: var(
215
- --et-surface-on-interaction-focus,
216
- var(--et-surface-on-interaction, var(--et-surface-background))
217
- );
218
- --et-color-on-primary-active: var(
219
- --et-surface-on-interaction-active,
220
- var(--et-surface-on-interaction, var(--et-surface-background))
221
- );
222
- --et-color-on-primary-disabled: var(
223
- --et-surface-on-interaction-disabled,
224
- var(--et-surface-on-interaction, var(--et-surface-background))
225
- );
180
+ --et-tone-on-fill-rest: var(--et-surface-background);
181
+ --et-tone-on-fill-hover: var(--et-surface-background);
182
+ --et-tone-on-fill-focus: var(--et-surface-background);
183
+ --et-tone-on-fill-active: var(--et-surface-background);
184
+ --et-tone-on-fill-disabled: var(--et-surface-background);
226
185
 
227
- --et-color-primary-ink: var(--et-surface-interaction-ink, var(--et-surface-color));
228
- --et-color-primary-ink-hover: var(
229
- --et-surface-interaction-ink-hover,
230
- var(--et-surface-interaction-ink, var(--et-surface-color))
231
- );
232
- --et-color-primary-ink-focus: var(
233
- --et-surface-interaction-ink-focus,
234
- var(--et-surface-interaction-ink, var(--et-surface-color))
235
- );
236
- --et-color-primary-ink-active: var(
237
- --et-surface-interaction-ink-active,
238
- var(--et-surface-interaction-ink, var(--et-surface-color))
239
- );
240
- --et-color-primary-ink-disabled: var(
241
- --et-surface-interaction-ink-disabled,
242
- var(--et-surface-interaction-ink, var(--et-surface-color))
243
- );
186
+ --et-tone-text-rest: var(--et-surface-text);
187
+ --et-tone-text-hover: var(--et-surface-text);
188
+ --et-tone-text-focus: var(--et-surface-text);
189
+ --et-tone-text-active: var(--et-surface-text);
190
+ --et-tone-text-disabled: var(--et-surface-text);
244
191
  }
245
192
  }
246
193
 
@@ -248,148 +195,137 @@
248
195
  :root,
249
196
  .et-color--default,
250
197
  .et-color--brand {
251
- --et-color-primary: 0 255 161;
252
- --et-color-primary-hover: 76 247 184;
253
- --et-color-primary-focus: 76 247 184;
254
- --et-color-primary-active: 0 198 126;
255
- --et-color-primary-disabled: 0 122 77;
198
+ --et-tone-fill-rest: rgb(0 255 161);
199
+ --et-tone-fill-hover: rgb(76 247 184);
200
+ --et-tone-fill-focus: rgb(76 247 184);
201
+ --et-tone-fill-active: rgb(0 198 126);
202
+ --et-tone-fill-disabled: rgb(0 122 77);
256
203
 
257
- --et-color-on-primary: 0 0 0;
258
- --et-color-on-primary-hover: 0 0 0;
259
- --et-color-on-primary-focus: 0 0 0;
260
- --et-color-on-primary-active: 0 0 0;
261
- --et-color-on-primary-disabled: 0 36 23;
204
+ --et-tone-on-fill-rest: rgb(0 0 0);
205
+ --et-tone-on-fill-hover: rgb(0 0 0);
206
+ --et-tone-on-fill-focus: rgb(0 0 0);
207
+ --et-tone-on-fill-active: rgb(0 0 0);
208
+ --et-tone-on-fill-disabled: rgb(0 36 23);
262
209
 
263
- --et-color-primary-ink: 0 255 161;
264
- --et-color-primary-ink-hover: 0 255 161;
265
- --et-color-primary-ink-focus: 0 255 161;
266
- --et-color-primary-ink-active: 0 255 161;
267
- --et-color-primary-ink-disabled: 0 255 161;
210
+ --et-tone-text-rest: rgb(0 255 161);
211
+ --et-tone-text-hover: rgb(0 255 161);
212
+ --et-tone-text-focus: rgb(0 255 161);
213
+ --et-tone-text-active: rgb(0 255 161);
214
+ --et-tone-text-disabled: rgb(0 255 161);
268
215
  }
269
216
 
270
217
  .et-color--danger {
271
218
  --et-color-theme-type: error;
272
- --et-color-primary: 220 38 38;
273
- --et-color-primary-hover: 185 28 28;
274
- --et-color-primary-focus: 185 28 28;
275
- --et-color-primary-active: 153 27 27;
276
- --et-color-primary-disabled: 120 52 52;
219
+ --et-tone-fill-rest: rgb(220 38 38);
220
+ --et-tone-fill-hover: rgb(185 28 28);
221
+ --et-tone-fill-focus: rgb(185 28 28);
222
+ --et-tone-fill-active: rgb(153 27 27);
223
+ --et-tone-fill-disabled: rgb(120 52 52);
277
224
 
278
- --et-color-on-primary: 255 255 255;
279
- --et-color-on-primary-hover: 255 255 255;
280
- --et-color-on-primary-focus: 255 255 255;
281
- --et-color-on-primary-active: 255 255 255;
282
- --et-color-on-primary-disabled: 255 220 220;
225
+ --et-tone-on-fill-rest: rgb(255 255 255);
226
+ --et-tone-on-fill-hover: rgb(255 255 255);
227
+ --et-tone-on-fill-focus: rgb(255 255 255);
228
+ --et-tone-on-fill-active: rgb(255 255 255);
229
+ --et-tone-on-fill-disabled: rgb(255 220 220);
283
230
 
284
- --et-color-primary-ink: 248 113 113;
285
- --et-color-primary-ink-hover: 252 165 165;
286
- --et-color-primary-ink-focus: 252 165 165;
287
- --et-color-primary-ink-active: 239 68 68;
288
- --et-color-primary-ink-disabled: 153 75 75;
231
+ --et-tone-text-rest: rgb(248 113 113);
232
+ --et-tone-text-hover: rgb(252 165 165);
233
+ --et-tone-text-focus: rgb(252 165 165);
234
+ --et-tone-text-active: rgb(239 68 68);
235
+ --et-tone-text-disabled: rgb(153 75 75);
289
236
  }
290
237
 
291
238
  .et-color--warning {
292
239
  --et-color-theme-type: warning;
293
- --et-color-primary: 217 119 6;
294
- --et-color-primary-hover: 245 158 11;
295
- --et-color-primary-focus: 245 158 11;
296
- --et-color-primary-active: 251 191 36;
297
- --et-color-primary-disabled: 133 77 14;
240
+ --et-tone-fill-rest: rgb(217 119 6);
241
+ --et-tone-fill-hover: rgb(245 158 11);
242
+ --et-tone-fill-focus: rgb(245 158 11);
243
+ --et-tone-fill-active: rgb(251 191 36);
244
+ --et-tone-fill-disabled: rgb(133 77 14);
298
245
 
299
- --et-color-on-primary: 23 23 23;
300
- --et-color-on-primary-hover: 23 23 23;
301
- --et-color-on-primary-focus: 23 23 23;
302
- --et-color-on-primary-active: 23 23 23;
303
- --et-color-on-primary-disabled: 255 237 213;
246
+ --et-tone-on-fill-rest: rgb(23 23 23);
247
+ --et-tone-on-fill-hover: rgb(23 23 23);
248
+ --et-tone-on-fill-focus: rgb(23 23 23);
249
+ --et-tone-on-fill-active: rgb(23 23 23);
250
+ --et-tone-on-fill-disabled: rgb(255 237 213);
304
251
 
305
- --et-color-primary-ink: 245 158 11;
306
- --et-color-primary-ink-hover: 251 191 36;
307
- --et-color-primary-ink-focus: 251 191 36;
308
- --et-color-primary-ink-active: 217 119 6;
309
- --et-color-primary-ink-disabled: 133 77 14;
252
+ --et-tone-text-rest: rgb(245 158 11);
253
+ --et-tone-text-hover: rgb(251 191 36);
254
+ --et-tone-text-focus: rgb(251 191 36);
255
+ --et-tone-text-active: rgb(217 119 6);
256
+ --et-tone-text-disabled: rgb(133 77 14);
310
257
  }
311
258
 
312
259
  .et-color--brand-on-light {
313
- --et-color-primary: 0 255 161;
314
- --et-color-primary-hover: 76 247 184;
315
- --et-color-primary-focus: 76 247 184;
316
- --et-color-primary-active: 0 198 126;
317
- --et-color-primary-disabled: 0 122 77;
260
+ --et-tone-fill-rest: rgb(0 255 161);
261
+ --et-tone-fill-hover: rgb(76 247 184);
262
+ --et-tone-fill-focus: rgb(76 247 184);
263
+ --et-tone-fill-active: rgb(0 198 126);
264
+ --et-tone-fill-disabled: rgb(0 122 77);
318
265
 
319
- --et-color-on-primary: 0 0 0;
320
- --et-color-on-primary-hover: 0 0 0;
321
- --et-color-on-primary-focus: 0 0 0;
322
- --et-color-on-primary-active: 0 0 0;
323
- --et-color-on-primary-disabled: 0 36 23;
266
+ --et-tone-on-fill-rest: rgb(0 0 0);
267
+ --et-tone-on-fill-hover: rgb(0 0 0);
268
+ --et-tone-on-fill-focus: rgb(0 0 0);
269
+ --et-tone-on-fill-active: rgb(0 0 0);
270
+ --et-tone-on-fill-disabled: rgb(0 36 23);
324
271
 
325
- --et-color-primary-ink: 4 120 87;
326
- --et-color-primary-ink-hover: 6 95 70;
327
- --et-color-primary-ink-focus: 6 95 70;
328
- --et-color-primary-ink-active: 6 78 59;
329
- --et-color-primary-ink-disabled: 130 200 170;
272
+ --et-tone-text-rest: rgb(4 120 87);
273
+ --et-tone-text-hover: rgb(6 95 70);
274
+ --et-tone-text-focus: rgb(6 95 70);
275
+ --et-tone-text-active: rgb(6 78 59);
276
+ --et-tone-text-disabled: rgb(130 200 170);
330
277
  }
331
278
 
332
279
  .et-color--danger-on-light {
333
- --et-color-primary: 220 38 38;
334
- --et-color-primary-hover: 185 28 28;
335
- --et-color-primary-focus: 185 28 28;
336
- --et-color-primary-active: 153 27 27;
337
- --et-color-primary-disabled: 120 52 52;
280
+ --et-tone-fill-rest: rgb(220 38 38);
281
+ --et-tone-fill-hover: rgb(185 28 28);
282
+ --et-tone-fill-focus: rgb(185 28 28);
283
+ --et-tone-fill-active: rgb(153 27 27);
284
+ --et-tone-fill-disabled: rgb(120 52 52);
338
285
 
339
- --et-color-on-primary: 255 255 255;
340
- --et-color-on-primary-hover: 255 255 255;
341
- --et-color-on-primary-focus: 255 255 255;
342
- --et-color-on-primary-active: 255 255 255;
343
- --et-color-on-primary-disabled: 255 220 220;
286
+ --et-tone-on-fill-rest: rgb(255 255 255);
287
+ --et-tone-on-fill-hover: rgb(255 255 255);
288
+ --et-tone-on-fill-focus: rgb(255 255 255);
289
+ --et-tone-on-fill-active: rgb(255 255 255);
290
+ --et-tone-on-fill-disabled: rgb(255 220 220);
344
291
 
345
- --et-color-primary-ink: 185 28 28;
346
- --et-color-primary-ink-hover: 153 27 27;
347
- --et-color-primary-ink-focus: 153 27 27;
348
- --et-color-primary-ink-active: 127 29 29;
349
- --et-color-primary-ink-disabled: 220 150 150;
292
+ --et-tone-text-rest: rgb(185 28 28);
293
+ --et-tone-text-hover: rgb(153 27 27);
294
+ --et-tone-text-focus: rgb(153 27 27);
295
+ --et-tone-text-active: rgb(127 29 29);
296
+ --et-tone-text-disabled: rgb(220 150 150);
350
297
  }
351
298
 
352
299
  .et-color--warning-on-light {
353
- --et-color-primary: 217 119 6;
354
- --et-color-primary-hover: 245 158 11;
355
- --et-color-primary-focus: 245 158 11;
356
- --et-color-primary-active: 251 191 36;
357
- --et-color-primary-disabled: 133 77 14;
358
-
359
- --et-color-on-primary: 23 23 23;
360
- --et-color-on-primary-hover: 23 23 23;
361
- --et-color-on-primary-focus: 23 23 23;
362
- --et-color-on-primary-active: 23 23 23;
363
- --et-color-on-primary-disabled: 255 237 213;
364
-
365
- --et-color-primary-ink: 146 64 14;
366
- --et-color-primary-ink-hover: 120 53 15;
367
- --et-color-primary-ink-focus: 120 53 15;
368
- --et-color-primary-ink-active: 69 26 3;
369
- --et-color-primary-ink-disabled: 220 170 120;
300
+ --et-tone-fill-rest: rgb(217 119 6);
301
+ --et-tone-fill-hover: rgb(245 158 11);
302
+ --et-tone-fill-focus: rgb(245 158 11);
303
+ --et-tone-fill-active: rgb(251 191 36);
304
+ --et-tone-fill-disabled: rgb(133 77 14);
305
+
306
+ --et-tone-on-fill-rest: rgb(23 23 23);
307
+ --et-tone-on-fill-hover: rgb(23 23 23);
308
+ --et-tone-on-fill-focus: rgb(23 23 23);
309
+ --et-tone-on-fill-active: rgb(23 23 23);
310
+ --et-tone-on-fill-disabled: rgb(255 237 213);
311
+
312
+ --et-tone-text-rest: rgb(146 64 14);
313
+ --et-tone-text-hover: rgb(120 53 15);
314
+ --et-tone-text-focus: rgb(120 53 15);
315
+ --et-tone-text-active: rgb(69 26 3);
316
+ --et-tone-text-disabled: rgb(220 170 120);
370
317
  }
371
318
  }
372
319
 
373
- /* Convenience aliases (rgb + solid + opacity variants) */
320
+ /* The current tone at rest, plus the dynamic Tailwind tone colors - re-declared per color scope so
321
+ that bg-et-tone-* utilities resolve against the nearest .et-color--*
322
+ scope instead of the value computed once at :root. */
374
323
  @layer base {
375
324
  :root,
376
325
  :where([class*='et-color--']) {
377
- --et-theme-color-primary-rgb: var(--et-color-primary);
378
- --et-theme-color-primary-opacity: 1;
379
- --et-theme-color-primary-solid: rgb(var(--et-theme-color-primary-rgb));
380
- --et-theme-color-primary: rgb(var(--et-theme-color-primary-rgb) / var(--et-theme-color-primary-opacity));
381
-
382
- --et-theme-color-on-primary-rgb: var(--et-color-on-primary);
383
- --et-theme-color-on-primary-opacity: 1;
384
- --et-theme-color-on-primary-solid: rgb(
385
- var(--et-theme-color-on-primary-rgb) / var(--et-theme-color-on-primary-opacity)
386
- );
387
- --et-theme-color-on-primary: rgb(var(--et-theme-color-on-primary-rgb) / var(--et-theme-color-on-primary-opacity));
388
-
389
- --et-theme-color-ink-rgb: var(--et-color-primary-ink, var(--et-color-primary));
390
- --et-theme-color-ink-opacity: 1;
391
- --et-theme-color-ink-solid: rgb(var(--et-theme-color-ink-rgb) / var(--et-theme-color-ink-opacity));
392
- --et-theme-color-ink: rgb(var(--et-theme-color-ink-rgb) / var(--et-theme-color-ink-opacity));
326
+ --et-tone-fill: var(--et-tone-fill-rest);
327
+ --et-tone-on-fill: var(--et-tone-on-fill-rest);
328
+ --et-tone-text: var(--et-tone-text-rest, var(--et-tone-fill-rest));
393
329
  }
394
330
  }
395
331
 
@@ -397,240 +333,246 @@
397
333
  @media (prefers-color-scheme: light) {
398
334
  :root,
399
335
  .et-color--brand {
400
- --et-color-primary-ink: 4 120 87;
401
- --et-color-primary-ink-hover: 6 95 70;
402
- --et-color-primary-ink-focus: 6 95 70;
403
- --et-color-primary-ink-active: 6 78 59;
404
- --et-color-primary-ink-disabled: 130 200 170;
336
+ --et-tone-text-rest: rgb(4 120 87);
337
+ --et-tone-text-hover: rgb(6 95 70);
338
+ --et-tone-text-focus: rgb(6 95 70);
339
+ --et-tone-text-active: rgb(6 78 59);
340
+ --et-tone-text-disabled: rgb(130 200 170);
405
341
  }
406
342
 
407
343
  .et-color--danger {
408
- --et-color-primary-ink: 185 28 28;
409
- --et-color-primary-ink-hover: 153 27 27;
410
- --et-color-primary-ink-focus: 153 27 27;
411
- --et-color-primary-ink-active: 127 29 29;
412
- --et-color-primary-ink-disabled: 220 150 150;
344
+ --et-tone-text-rest: rgb(185 28 28);
345
+ --et-tone-text-hover: rgb(153 27 27);
346
+ --et-tone-text-focus: rgb(153 27 27);
347
+ --et-tone-text-active: rgb(127 29 29);
348
+ --et-tone-text-disabled: rgb(220 150 150);
413
349
  }
414
350
 
415
351
  .et-color--warning {
416
- --et-color-primary-ink: 146 64 14;
417
- --et-color-primary-ink-hover: 120 53 15;
418
- --et-color-primary-ink-focus: 120 53 15;
419
- --et-color-primary-ink-active: 69 26 3;
420
- --et-color-primary-ink-disabled: 220 170 120;
352
+ --et-tone-text-rest: rgb(146 64 14);
353
+ --et-tone-text-hover: rgb(120 53 15);
354
+ --et-tone-text-focus: rgb(120 53 15);
355
+ --et-tone-text-active: rgb(69 26 3);
356
+ --et-tone-text-disabled: rgb(220 170 120);
421
357
  }
422
358
  }
423
359
 
424
360
  :root.et-scheme--light,
425
361
  :where(:root.et-scheme--light) .et-color--brand {
426
- --et-color-primary-ink: 4 120 87;
427
- --et-color-primary-ink-hover: 6 95 70;
428
- --et-color-primary-ink-focus: 6 95 70;
429
- --et-color-primary-ink-active: 6 78 59;
430
- --et-color-primary-ink-disabled: 130 200 170;
362
+ --et-tone-text-rest: rgb(4 120 87);
363
+ --et-tone-text-hover: rgb(6 95 70);
364
+ --et-tone-text-focus: rgb(6 95 70);
365
+ --et-tone-text-active: rgb(6 78 59);
366
+ --et-tone-text-disabled: rgb(130 200 170);
431
367
  }
432
368
 
433
369
  :where(:root.et-scheme--light) .et-color--danger {
434
- --et-color-primary-ink: 185 28 28;
435
- --et-color-primary-ink-hover: 153 27 27;
436
- --et-color-primary-ink-focus: 153 27 27;
437
- --et-color-primary-ink-active: 127 29 29;
438
- --et-color-primary-ink-disabled: 220 150 150;
370
+ --et-tone-text-rest: rgb(185 28 28);
371
+ --et-tone-text-hover: rgb(153 27 27);
372
+ --et-tone-text-focus: rgb(153 27 27);
373
+ --et-tone-text-active: rgb(127 29 29);
374
+ --et-tone-text-disabled: rgb(220 150 150);
439
375
  }
440
376
 
441
377
  :where(:root.et-scheme--light) .et-color--warning {
442
- --et-color-primary-ink: 146 64 14;
443
- --et-color-primary-ink-hover: 120 53 15;
444
- --et-color-primary-ink-focus: 120 53 15;
445
- --et-color-primary-ink-active: 69 26 3;
446
- --et-color-primary-ink-disabled: 220 170 120;
378
+ --et-tone-text-rest: rgb(146 64 14);
379
+ --et-tone-text-hover: rgb(120 53 15);
380
+ --et-tone-text-focus: rgb(120 53 15);
381
+ --et-tone-text-active: rgb(69 26 3);
382
+ --et-tone-text-disabled: rgb(220 170 120);
447
383
  }
448
384
 
449
385
  :root.et-scheme--dark,
450
386
  :where(:root.et-scheme--dark) .et-color--brand {
451
- --et-color-primary-ink: 0 255 161;
452
- --et-color-primary-ink-hover: 0 255 161;
453
- --et-color-primary-ink-focus: 0 255 161;
454
- --et-color-primary-ink-active: 0 255 161;
455
- --et-color-primary-ink-disabled: 0 255 161;
387
+ --et-tone-text-rest: rgb(0 255 161);
388
+ --et-tone-text-hover: rgb(0 255 161);
389
+ --et-tone-text-focus: rgb(0 255 161);
390
+ --et-tone-text-active: rgb(0 255 161);
391
+ --et-tone-text-disabled: rgb(0 255 161);
456
392
  }
457
393
 
458
394
  :where(:root.et-scheme--dark) .et-color--danger {
459
- --et-color-primary-ink: 248 113 113;
460
- --et-color-primary-ink-hover: 252 165 165;
461
- --et-color-primary-ink-focus: 252 165 165;
462
- --et-color-primary-ink-active: 239 68 68;
463
- --et-color-primary-ink-disabled: 153 75 75;
395
+ --et-tone-text-rest: rgb(248 113 113);
396
+ --et-tone-text-hover: rgb(252 165 165);
397
+ --et-tone-text-focus: rgb(252 165 165);
398
+ --et-tone-text-active: rgb(239 68 68);
399
+ --et-tone-text-disabled: rgb(153 75 75);
464
400
  }
465
401
 
466
402
  :where(:root.et-scheme--dark) .et-color--warning {
467
- --et-color-primary-ink: 245 158 11;
468
- --et-color-primary-ink-hover: 251 191 36;
469
- --et-color-primary-ink-focus: 251 191 36;
470
- --et-color-primary-ink-active: 217 119 6;
471
- --et-color-primary-ink-disabled: 133 77 14;
403
+ --et-tone-text-rest: rgb(245 158 11);
404
+ --et-tone-text-hover: rgb(251 191 36);
405
+ --et-tone-text-focus: rgb(251 191 36);
406
+ --et-tone-text-active: rgb(217 119 6);
407
+ --et-tone-text-disabled: rgb(133 77 14);
472
408
  }
473
409
 
474
410
  .et-surface--light.et-color--brand,
475
411
  .et-surface--light .et-color--brand {
476
- --et-color-primary-ink: 4 120 87;
477
- --et-color-primary-ink-hover: 6 95 70;
478
- --et-color-primary-ink-focus: 6 95 70;
479
- --et-color-primary-ink-active: 6 78 59;
480
- --et-color-primary-ink-disabled: 130 200 170;
412
+ --et-tone-text-rest: rgb(4 120 87);
413
+ --et-tone-text-hover: rgb(6 95 70);
414
+ --et-tone-text-focus: rgb(6 95 70);
415
+ --et-tone-text-active: rgb(6 78 59);
416
+ --et-tone-text-disabled: rgb(130 200 170);
481
417
  }
482
418
 
483
419
  .et-surface--light.et-color--danger,
484
420
  .et-surface--light .et-color--danger {
485
- --et-color-primary-ink: 185 28 28;
486
- --et-color-primary-ink-hover: 153 27 27;
487
- --et-color-primary-ink-focus: 153 27 27;
488
- --et-color-primary-ink-active: 127 29 29;
489
- --et-color-primary-ink-disabled: 220 150 150;
421
+ --et-tone-text-rest: rgb(185 28 28);
422
+ --et-tone-text-hover: rgb(153 27 27);
423
+ --et-tone-text-focus: rgb(153 27 27);
424
+ --et-tone-text-active: rgb(127 29 29);
425
+ --et-tone-text-disabled: rgb(220 150 150);
490
426
  }
491
427
 
492
428
  .et-surface--light.et-color--warning,
493
429
  .et-surface--light .et-color--warning {
494
- --et-color-primary-ink: 146 64 14;
495
- --et-color-primary-ink-hover: 120 53 15;
496
- --et-color-primary-ink-focus: 120 53 15;
497
- --et-color-primary-ink-active: 69 26 3;
498
- --et-color-primary-ink-disabled: 220 170 120;
430
+ --et-tone-text-rest: rgb(146 64 14);
431
+ --et-tone-text-hover: rgb(120 53 15);
432
+ --et-tone-text-focus: rgb(120 53 15);
433
+ --et-tone-text-active: rgb(69 26 3);
434
+ --et-tone-text-disabled: rgb(220 170 120);
499
435
  }
500
436
 
501
437
  .et-surface--dark.et-color--brand,
502
438
  .et-surface--dark .et-color--brand {
503
- --et-color-primary-ink: 0 255 161;
504
- --et-color-primary-ink-hover: 0 255 161;
505
- --et-color-primary-ink-focus: 0 255 161;
506
- --et-color-primary-ink-active: 0 255 161;
507
- --et-color-primary-ink-disabled: 0 255 161;
439
+ --et-tone-text-rest: rgb(0 255 161);
440
+ --et-tone-text-hover: rgb(0 255 161);
441
+ --et-tone-text-focus: rgb(0 255 161);
442
+ --et-tone-text-active: rgb(0 255 161);
443
+ --et-tone-text-disabled: rgb(0 255 161);
508
444
  }
509
445
 
510
446
  .et-surface--dark.et-color--danger,
511
447
  .et-surface--dark .et-color--danger {
512
- --et-color-primary-ink: 248 113 113;
513
- --et-color-primary-ink-hover: 252 165 165;
514
- --et-color-primary-ink-focus: 252 165 165;
515
- --et-color-primary-ink-active: 239 68 68;
516
- --et-color-primary-ink-disabled: 153 75 75;
448
+ --et-tone-text-rest: rgb(248 113 113);
449
+ --et-tone-text-hover: rgb(252 165 165);
450
+ --et-tone-text-focus: rgb(252 165 165);
451
+ --et-tone-text-active: rgb(239 68 68);
452
+ --et-tone-text-disabled: rgb(153 75 75);
517
453
  }
518
454
 
519
455
  .et-surface--dark.et-color--warning,
520
456
  .et-surface--dark .et-color--warning {
521
- --et-color-primary-ink: 245 158 11;
522
- --et-color-primary-ink-hover: 251 191 36;
523
- --et-color-primary-ink-focus: 251 191 36;
524
- --et-color-primary-ink-active: 217 119 6;
525
- --et-color-primary-ink-disabled: 133 77 14;
457
+ --et-tone-text-rest: rgb(245 158 11);
458
+ --et-tone-text-hover: rgb(251 191 36);
459
+ --et-tone-text-focus: rgb(251 191 36);
460
+ --et-tone-text-active: rgb(217 119 6);
461
+ --et-tone-text-disabled: rgb(133 77 14);
526
462
  }
527
463
  }
528
464
 
529
465
  @layer base {
530
466
  .et-surface--light[data-et-surface-fill] {
531
- --et-surface-background: 240 240 240;
532
- --et-surface-color: 23 23 23;
533
- --et-surface-color-muted: 82 82 82;
534
- --et-surface-color-subtle: 161 161 161;
535
- --et-surface-border: 229 229 229;
467
+ --et-surface-background: rgb(240 240 240);
468
+ --et-surface-text: rgb(23 23 23);
469
+ --et-surface-text-muted: rgb(82 82 82);
470
+ --et-surface-text-subtle: rgb(161 161 161);
471
+ --et-surface-border: rgb(229 229 229);
536
472
  --et-surface-type: light;
537
473
  --et-surface-elevation: 1;
538
- --et-shadow-color-rgb: 23 23 23;
474
+ --et-shadow-color: rgb(23 23 23);
539
475
  --et-surface-color-theme-variants:
540
476
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
541
- --et-surface-interaction: 115 115 115;
542
- --et-surface-interaction-hover: 64 64 64;
543
- --et-surface-interaction-focus: 64 64 64;
544
- --et-surface-interaction-active: 23 23 23;
545
- --et-surface-interaction-disabled: 180 180 180;
477
+ --et-surface-tint: rgb(115 115 115);
478
+ --et-surface-control-text: rgb(115 115 115);
479
+ --et-surface-control-text-hover: rgb(64 64 64);
480
+ --et-surface-control-text-focus: rgb(64 64 64);
481
+ --et-surface-control-text-active: rgb(23 23 23);
482
+ --et-surface-control-text-disabled: rgb(180 180 180);
546
483
  }
547
484
 
548
485
  .et-surface--dark[data-et-surface-fill] {
549
- --et-surface-background: 38 38 38;
550
- --et-surface-color: 250 250 250;
551
- --et-surface-color-muted: 161 161 161;
552
- --et-surface-color-subtle: 115 115 115;
553
- --et-surface-border: 64 64 64;
486
+ --et-surface-background: rgb(38 38 38);
487
+ --et-surface-text: rgb(250 250 250);
488
+ --et-surface-text-muted: rgb(161 161 161);
489
+ --et-surface-text-subtle: rgb(115 115 115);
490
+ --et-surface-border: rgb(64 64 64);
554
491
  --et-surface-type: dark;
555
492
  --et-surface-elevation: 1;
556
- --et-shadow-color-rgb: 0 0 0;
557
- --et-surface-interaction: 161 161 161;
558
- --et-surface-interaction-hover: 220 220 220;
559
- --et-surface-interaction-focus: 220 220 220;
560
- --et-surface-interaction-active: 250 250 250;
561
- --et-surface-interaction-disabled: 100 100 100;
493
+ --et-shadow-color: rgb(0 0 0);
494
+ --et-surface-tint: rgb(161 161 161);
495
+ --et-surface-control-text: rgb(161 161 161);
496
+ --et-surface-control-text-hover: rgb(220 220 220);
497
+ --et-surface-control-text-focus: rgb(220 220 220);
498
+ --et-surface-control-text-active: rgb(250 250 250);
499
+ --et-surface-control-text-disabled: rgb(100 100 100);
562
500
  }
563
501
 
564
502
  @media (prefers-color-scheme: light) {
565
503
  .et-surface--inherited[data-et-surface-fill] {
566
- --et-surface-background: 240 240 240;
567
- --et-surface-color: 23 23 23;
568
- --et-surface-color-muted: 82 82 82;
569
- --et-surface-color-subtle: 161 161 161;
570
- --et-surface-border: 229 229 229;
504
+ --et-surface-background: rgb(240 240 240);
505
+ --et-surface-text: rgb(23 23 23);
506
+ --et-surface-text-muted: rgb(82 82 82);
507
+ --et-surface-text-subtle: rgb(161 161 161);
508
+ --et-surface-border: rgb(229 229 229);
571
509
  --et-surface-type: light;
572
510
  --et-surface-elevation: 1;
573
- --et-shadow-color-rgb: 23 23 23;
511
+ --et-shadow-color: rgb(23 23 23);
574
512
  --et-surface-color-theme-variants:
575
513
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
576
- --et-surface-interaction: 115 115 115;
577
- --et-surface-interaction-hover: 64 64 64;
578
- --et-surface-interaction-focus: 64 64 64;
579
- --et-surface-interaction-active: 23 23 23;
580
- --et-surface-interaction-disabled: 180 180 180;
514
+ --et-surface-tint: rgb(115 115 115);
515
+ --et-surface-control-text: rgb(115 115 115);
516
+ --et-surface-control-text-hover: rgb(64 64 64);
517
+ --et-surface-control-text-focus: rgb(64 64 64);
518
+ --et-surface-control-text-active: rgb(23 23 23);
519
+ --et-surface-control-text-disabled: rgb(180 180 180);
581
520
  }
582
521
  }
583
522
 
584
523
  @media (prefers-color-scheme: dark) {
585
524
  .et-surface--inherited[data-et-surface-fill] {
586
- --et-surface-background: 38 38 38;
587
- --et-surface-color: 250 250 250;
588
- --et-surface-color-muted: 161 161 161;
589
- --et-surface-color-subtle: 115 115 115;
590
- --et-surface-border: 64 64 64;
525
+ --et-surface-background: rgb(38 38 38);
526
+ --et-surface-text: rgb(250 250 250);
527
+ --et-surface-text-muted: rgb(161 161 161);
528
+ --et-surface-text-subtle: rgb(115 115 115);
529
+ --et-surface-border: rgb(64 64 64);
591
530
  --et-surface-type: dark;
592
531
  --et-surface-elevation: 1;
593
- --et-shadow-color-rgb: 0 0 0;
594
- --et-surface-interaction: 161 161 161;
595
- --et-surface-interaction-hover: 220 220 220;
596
- --et-surface-interaction-focus: 220 220 220;
597
- --et-surface-interaction-active: 250 250 250;
598
- --et-surface-interaction-disabled: 100 100 100;
532
+ --et-shadow-color: rgb(0 0 0);
533
+ --et-surface-tint: rgb(161 161 161);
534
+ --et-surface-control-text: rgb(161 161 161);
535
+ --et-surface-control-text-hover: rgb(220 220 220);
536
+ --et-surface-control-text-focus: rgb(220 220 220);
537
+ --et-surface-control-text-active: rgb(250 250 250);
538
+ --et-surface-control-text-disabled: rgb(100 100 100);
599
539
  }
600
540
  }
601
541
 
602
542
  :root.et-scheme--light .et-surface--inherited[data-et-surface-fill] {
603
- --et-surface-background: 240 240 240;
604
- --et-surface-color: 23 23 23;
605
- --et-surface-color-muted: 82 82 82;
606
- --et-surface-color-subtle: 161 161 161;
607
- --et-surface-border: 229 229 229;
543
+ --et-surface-background: rgb(240 240 240);
544
+ --et-surface-text: rgb(23 23 23);
545
+ --et-surface-text-muted: rgb(82 82 82);
546
+ --et-surface-text-subtle: rgb(161 161 161);
547
+ --et-surface-border: rgb(229 229 229);
608
548
  --et-surface-type: light;
609
549
  --et-surface-elevation: 1;
610
- --et-shadow-color-rgb: 23 23 23;
550
+ --et-shadow-color: rgb(23 23 23);
611
551
  --et-surface-color-theme-variants:
612
552
  brand brand-on-light, danger danger-on-light, success success-on-light, warning warning-on-light;
613
- --et-surface-interaction: 115 115 115;
614
- --et-surface-interaction-hover: 64 64 64;
615
- --et-surface-interaction-focus: 64 64 64;
616
- --et-surface-interaction-active: 23 23 23;
617
- --et-surface-interaction-disabled: 180 180 180;
553
+ --et-surface-tint: rgb(115 115 115);
554
+ --et-surface-control-text: rgb(115 115 115);
555
+ --et-surface-control-text-hover: rgb(64 64 64);
556
+ --et-surface-control-text-focus: rgb(64 64 64);
557
+ --et-surface-control-text-active: rgb(23 23 23);
558
+ --et-surface-control-text-disabled: rgb(180 180 180);
618
559
  }
619
560
 
620
561
  :root.et-scheme--dark .et-surface--inherited[data-et-surface-fill] {
621
- --et-surface-background: 38 38 38;
622
- --et-surface-color: 250 250 250;
623
- --et-surface-color-muted: 161 161 161;
624
- --et-surface-color-subtle: 115 115 115;
625
- --et-surface-border: 64 64 64;
562
+ --et-surface-background: rgb(38 38 38);
563
+ --et-surface-text: rgb(250 250 250);
564
+ --et-surface-text-muted: rgb(161 161 161);
565
+ --et-surface-text-subtle: rgb(115 115 115);
566
+ --et-surface-border: rgb(64 64 64);
626
567
  --et-surface-type: dark;
627
568
  --et-surface-elevation: 1;
628
- --et-shadow-color-rgb: 0 0 0;
629
- --et-surface-interaction: 161 161 161;
630
- --et-surface-interaction-hover: 220 220 220;
631
- --et-surface-interaction-focus: 220 220 220;
632
- --et-surface-interaction-active: 250 250 250;
633
- --et-surface-interaction-disabled: 100 100 100;
569
+ --et-shadow-color: rgb(0 0 0);
570
+ --et-surface-tint: rgb(161 161 161);
571
+ --et-surface-control-text: rgb(161 161 161);
572
+ --et-surface-control-text-hover: rgb(220 220 220);
573
+ --et-surface-control-text-focus: rgb(220 220 220);
574
+ --et-surface-control-text-active: rgb(250 250 250);
575
+ --et-surface-control-text-disabled: rgb(100 100 100);
634
576
  }
635
577
  }
636
578
 
@@ -646,8 +588,8 @@ body {
646
588
  margin: 0;
647
589
  font-family: var(--et-font-family);
648
590
  font-size: 1.4rem;
649
- background: var(--et-surface-background-solid);
650
- color: var(--et-surface-color-solid);
591
+ background: var(--et-surface-background);
592
+ color: var(--et-surface-text);
651
593
  }
652
594
 
653
595
  @layer base {