@celestia-island/hikari 0.55.415 → 0.55.416

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 (69) hide show
  1. package/package.json +1 -1
  2. package/src/components/HkAffixPicker.scss +2 -2
  3. package/src/components/HkAlert.scss +12 -12
  4. package/src/components/HkAuthSubmitButton.scss +1 -1
  5. package/src/components/HkBlockingToast.scss +7 -7
  6. package/src/components/HkBreadcrumb.scss +3 -3
  7. package/src/components/HkCardList.scss +3 -3
  8. package/src/components/HkColorSchemeEditor.test.ts +179 -0
  9. package/src/components/HkColorSchemeEditor.tsx +57 -2
  10. package/src/components/HkCookieConsent.scss +1 -1
  11. package/src/components/HkCurrencySelect.scss +2 -2
  12. package/src/components/HkDiffViewer.scss +5 -5
  13. package/src/components/HkEditableTable.scss +1 -1
  14. package/src/components/HkEmergencySnoozeTray.scss +2 -2
  15. package/src/components/HkFileBrowserDialog.scss +2 -2
  16. package/src/components/HkFileField.scss +3 -3
  17. package/src/components/HkFilePickerField.scss +2 -2
  18. package/src/components/HkFilterPanel.scss +1 -1
  19. package/src/components/HkIcon.scss +3 -3
  20. package/src/components/HkIconButtonGroup.scss +1 -1
  21. package/src/components/HkIconChip.scss +4 -4
  22. package/src/components/HkInput.scss +3 -3
  23. package/src/components/HkLogWindow.scss +2 -2
  24. package/src/components/HkMenu.scss +1 -1
  25. package/src/components/HkMessageBox.scss +2 -2
  26. package/src/components/HkMoneyInput.scss +2 -2
  27. package/src/components/HkNotificationBell.scss +3 -3
  28. package/src/components/HkOtpInput.scss +2 -2
  29. package/src/components/HkPasswordSurface.scss +12 -12
  30. package/src/components/HkPersistentToast.scss +3 -3
  31. package/src/components/HkPillToggleGroup.scss +6 -6
  32. package/src/components/HkPillToggleGroup.test.tsx +12 -7
  33. package/src/components/HkPopupSelect.scss +3 -3
  34. package/src/components/HkProgressBar.scss +1 -1
  35. package/src/components/HkProgressBar.styles.test.ts +1 -1
  36. package/src/components/HkProgressRing.scss +2 -2
  37. package/src/components/HkQuote.scss +3 -3
  38. package/src/components/HkRangeRibbon.scss +1 -1
  39. package/src/components/HkSecretRevealModal.scss +1 -1
  40. package/src/components/HkSelect.scss +3 -3
  41. package/src/components/HkSelectionGrid.scss +4 -4
  42. package/src/components/HkSelectionGrid.test.tsx +183 -54
  43. package/src/components/HkSelectionWaterfall.scss +4 -4
  44. package/src/components/HkStatCard.scss +4 -4
  45. package/src/components/HkStatusBar.tsx +9 -9
  46. package/src/components/HkStatusRow.scss +3 -3
  47. package/src/components/HkStepGuide.scss +2 -2
  48. package/src/components/HkSwitch.scss +1 -1
  49. package/src/components/HkTag.scss +12 -12
  50. package/src/components/HkTemplateField.scss +1 -1
  51. package/src/components/HkTextarea.scss +1 -1
  52. package/src/components/HkToast.scss +5 -5
  53. package/src/components/HkTree.scss +2 -2
  54. package/src/components/_menu-item.scss +4 -4
  55. package/src/plugins/boot-recovery.details.test.ts +1 -1
  56. package/src/plugins/boot-recovery.diagnostics.test.ts +1 -1
  57. package/src/plugins/boot-recovery.error-context.test.ts +1 -1
  58. package/src/plugins/boot-recovery.locales.test.ts +1 -1
  59. package/src/plugins/bootLandingCss.js +1 -1
  60. package/src/plugins/bootLandingDetailsCss.js +1 -1
  61. package/src/styles/admin-tokens.scss +16 -16
  62. package/src/styles/theme/channels.scss +23 -13
  63. package/src/styles/theme/scrollbar.scss +3 -3
  64. package/src/styles/tokenInventory.test.ts +19 -0
  65. package/src/theme/_field.scss +3 -3
  66. package/src/theme/index.ts +1 -1
  67. package/src/theme/presets.ts +72 -8
  68. package/src/theme/solidInk.contract.test.ts +65 -6
  69. package/src/tokens.scss +23 -13
package/src/tokens.scss CHANGED
@@ -30,15 +30,15 @@
30
30
  --c-primary-medium: rgb(var(--color-primary, 122 162 247) / 25%);
31
31
  --c-primary-strong: rgb(var(--color-primary, 122 162 247) / 40%);
32
32
  --c-primary-intense: rgb(var(--color-primary, 122 162 247) / 40%);
33
- --c-error-dim: rgb(var(--color-error, 247 118 142) / 10%);
34
- --c-error-overlay: rgb(var(--color-error, 247 118 142) / 20%);
35
- --c-error-strong: rgb(var(--color-error, 247 118 142) / 50%);
33
+ --c-error-dim: rgb(var(--color-error, 166 41 55) / 10%);
34
+ --c-error-overlay: rgb(var(--color-error, 166 41 55) / 20%);
35
+ --c-error-strong: rgb(var(--color-error, 166 41 55) / 50%);
36
36
  --shadow-elevated: 0 8px 32px rgb(0 0 0 / 15%);
37
37
  --shadow-dropdown: 0 4px 24px rgb(0 0 0 / 12%), 0 0 0 1px rgb(255 255 255 / 4%);
38
38
  --shadow-button: 0 4px 14px rgb(var(--color-primary, 122 162 247) / 35%);
39
- --shadow-button-danger: 0 4px 14px rgb(var(--color-error, 247 118 142) / 35%);
39
+ --shadow-button-danger: 0 4px 14px rgb(var(--color-error, 166 41 55) / 35%);
40
40
  --shadow-focus: 0 0 0 3px rgb(var(--color-primary, 122 162 247) / 12%);
41
- --shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 247 118 142) / 12%);
41
+ --shadow-focus-error: 0 0 0 3px rgb(var(--color-error, 166 41 55) / 12%);
42
42
  --border-input: rgb(var(--color-border, 100 100 100) / 15%);
43
43
  --border-faint: rgb(var(--color-border, 100 100 100) / 10%);
44
44
  --border-subtle: rgb(var(--color-border, 100 100 100) / 12%);
@@ -62,8 +62,8 @@
62
62
  --hi-bg-surface-dark: rgb(var(--color-muted, 108 108 108) / 12%);
63
63
  --hi-color-primary-dark: color-mix(in srgb, rgb(var(--color-primary, 122 162 247)) 82%, #000);
64
64
  --hi-color-secondary-dark: color-mix(in srgb, rgb(var(--color-secondary, 81 154 115)) 82%, #000);
65
- --hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 247 118 142)) 82%, #000);
66
- --hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 14 184 64)) 82%, #000);
65
+ --hi-color-danger-dark: color-mix(in srgb, rgb(var(--color-error, 166 41 55)) 82%, #000);
66
+ --hi-color-success-dark: color-mix(in srgb, rgb(var(--color-success, 31 101 48)) 82%, #000);
67
67
  --hi-color-text-on-secondary: rgb(var(--color-on-solid, 255 255 255));
68
68
  --hi-color-text-on-danger: rgb(var(--color-on-solid, 255 255 255));
69
69
  --hi-color-text-on-success: rgb(var(--color-on-solid, 255 255 255));
@@ -85,8 +85,14 @@
85
85
  * re-derives these per tone from its own fills (see tokensToCSSVars). */
86
86
  --color-on-danger: 255 255 255;
87
87
  --color-on-success: 255 255 255;
88
- --color-on-warning: 0 0 0;
89
- --color-on-info: 0 0 0;
88
+ --color-on-warning: 255 255 255;
89
+ --color-on-info: 255 255 255;
90
+ /* Per-tone page-readable fills (readable_on vs the page): the canonical
91
+ * fills themselves — they read on the light page as-is. */
92
+ --color-success-fg: 31 101 48;
93
+ --color-error-fg: 166 41 55;
94
+ --color-warning-fg: 137 72 0;
95
+ --color-info-fg: 0 98 116;
90
96
  --color-secondary: 81 154 115;
91
97
  --color-accent: 247 181 0;
92
98
  --color-text: 30 30 30;
@@ -109,10 +115,10 @@
109
115
  --color-selected-bg: 191 218 242;
110
116
  --color-selected-text: 30 30 30;
111
117
  --color-status-bar-bg: 240 244 248;
112
- --color-success: 14 184 64;
113
- --color-error: 247 118 142;
114
- --color-warning: 238 214 119;
115
- --color-info: 106 190 214;
118
+ --color-success: 31 101 48;
119
+ --color-error: 166 41 55;
120
+ --color-warning: 137 72 0;
121
+ --color-info: 0 98 116;
116
122
 
117
123
  --hi-color-primary: rgb(var(--color-primary));
118
124
  --hi-color-secondary: rgb(var(--color-secondary));
@@ -139,6 +145,10 @@
139
145
  --hi-color-text-on-success: rgb(var(--color-on-success));
140
146
  --hi-color-text-on-warning: rgb(var(--color-on-warning));
141
147
  --hi-color-text-on-info: rgb(var(--color-on-info));
148
+ --hi-color-success-fg: rgb(var(--color-success-fg));
149
+ --hi-color-danger-fg: rgb(var(--color-error-fg));
150
+ --hi-color-warning-fg: rgb(var(--color-warning-fg));
151
+ --hi-color-info-fg: rgb(var(--color-info-fg));
142
152
  /* Surface-layer aliases the runtime writes on every apply — seeded so
143
153
  * no-JS consumers resolve them instead of invalid var(). */
144
154
  --hi-color-bg-subtle: rgb(var(--color-surface) / 0.5);