@lucian-seo/lucian-ui 0.1.1

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 (401) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +227 -0
  3. package/dist/lib/Input-Bv7L1_wj.js +90 -0
  4. package/dist/lib/Input-Bv7L1_wj.js.map +1 -0
  5. package/dist/lib/Menu-B3G64GV4.js +321 -0
  6. package/dist/lib/Menu-B3G64GV4.js.map +1 -0
  7. package/dist/lib/Switch-BkMnC02l.js +999 -0
  8. package/dist/lib/Switch-BkMnC02l.js.map +1 -0
  9. package/dist/lib/Tag-Z8PjnJFt.js +60 -0
  10. package/dist/lib/Tag-Z8PjnJFt.js.map +1 -0
  11. package/dist/lib/TagInput-BaGz-QKU.js +372 -0
  12. package/dist/lib/TagInput-BaGz-QKU.js.map +1 -0
  13. package/dist/lib/Text-D7hoYpuZ.js +26 -0
  14. package/dist/lib/Text-D7hoYpuZ.js.map +1 -0
  15. package/dist/lib/ToggleButton-D6oEjMeF.js +238 -0
  16. package/dist/lib/ToggleButton-D6oEjMeF.js.map +1 -0
  17. package/dist/lib/Toolbar-DiP1iR_t.js +3088 -0
  18. package/dist/lib/Toolbar-DiP1iR_t.js.map +1 -0
  19. package/dist/lib/Tooltip-BJSUlXS2.js +117 -0
  20. package/dist/lib/Tooltip-BJSUlXS2.js.map +1 -0
  21. package/dist/lib/VisuallyHidden-DcE0EFpo.js +194 -0
  22. package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +1 -0
  23. package/dist/lib/VoiceControlBar-CWDLR71w.js +3447 -0
  24. package/dist/lib/VoiceControlBar-CWDLR71w.js.map +1 -0
  25. package/dist/lib/Waveform-BIE2Ztc8.js +318 -0
  26. package/dist/lib/Waveform-BIE2Ztc8.js.map +1 -0
  27. package/dist/lib/components/common/AspectRatio/AspectRatio.d.ts +26 -0
  28. package/dist/lib/components/common/AspectRatio/index.d.ts +2 -0
  29. package/dist/lib/components/common/Avatar/Avatar.d.ts +58 -0
  30. package/dist/lib/components/common/Avatar/index.d.ts +2 -0
  31. package/dist/lib/components/common/Badge/Badge.d.ts +36 -0
  32. package/dist/lib/components/common/Badge/index.d.ts +2 -0
  33. package/dist/lib/components/common/Blockquote/Blockquote.d.ts +40 -0
  34. package/dist/lib/components/common/Blockquote/index.d.ts +2 -0
  35. package/dist/lib/components/common/Button/Button.d.ts +38 -0
  36. package/dist/lib/components/common/Button/index.d.ts +2 -0
  37. package/dist/lib/components/common/CalibratedPulse/CalibratedPulse.d.ts +63 -0
  38. package/dist/lib/components/common/CalibratedPulse/index.d.ts +2 -0
  39. package/dist/lib/components/common/Center/Center.d.ts +23 -0
  40. package/dist/lib/components/common/Center/index.d.ts +2 -0
  41. package/dist/lib/components/common/Checkbox/Checkbox.d.ts +35 -0
  42. package/dist/lib/components/common/Checkbox/index.d.ts +2 -0
  43. package/dist/lib/components/common/Code/Code.d.ts +37 -0
  44. package/dist/lib/components/common/Code/index.d.ts +2 -0
  45. package/dist/lib/components/common/Collapse/Collapse.d.ts +29 -0
  46. package/dist/lib/components/common/Collapse/index.d.ts +2 -0
  47. package/dist/lib/components/common/Container/Container.d.ts +28 -0
  48. package/dist/lib/components/common/Container/index.d.ts +2 -0
  49. package/dist/lib/components/common/Divider/Divider.d.ts +28 -0
  50. package/dist/lib/components/common/Divider/index.d.ts +2 -0
  51. package/dist/lib/components/common/FileInput/FileInput.d.ts +52 -0
  52. package/dist/lib/components/common/FileInput/index.d.ts +2 -0
  53. package/dist/lib/components/common/Flex/Flex.d.ts +35 -0
  54. package/dist/lib/components/common/Flex/index.d.ts +2 -0
  55. package/dist/lib/components/common/Glass/Glass.d.ts +35 -0
  56. package/dist/lib/components/common/Glass/index.d.ts +2 -0
  57. package/dist/lib/components/common/Glass/refraction.d.ts +24 -0
  58. package/dist/lib/components/common/Glass/rim.d.ts +37 -0
  59. package/dist/lib/components/common/Grid/Grid.d.ts +28 -0
  60. package/dist/lib/components/common/Grid/GridItem.d.ts +31 -0
  61. package/dist/lib/components/common/Grid/index.d.ts +4 -0
  62. package/dist/lib/components/common/Group/Group.d.ts +38 -0
  63. package/dist/lib/components/common/Group/index.d.ts +2 -0
  64. package/dist/lib/components/common/Highlight/Highlight.d.ts +63 -0
  65. package/dist/lib/components/common/Highlight/index.d.ts +2 -0
  66. package/dist/lib/components/common/Icon/Icon.d.ts +39 -0
  67. package/dist/lib/components/common/Icon/index.d.ts +2 -0
  68. package/dist/lib/components/common/IconButton/IconButton.d.ts +34 -0
  69. package/dist/lib/components/common/IconButton/index.d.ts +2 -0
  70. package/dist/lib/components/common/Indicator/Indicator.d.ts +51 -0
  71. package/dist/lib/components/common/Indicator/index.d.ts +2 -0
  72. package/dist/lib/components/common/Input/Input.d.ts +84 -0
  73. package/dist/lib/components/common/Input/index.d.ts +2 -0
  74. package/dist/lib/components/common/Kbd/Kbd.d.ts +34 -0
  75. package/dist/lib/components/common/Kbd/index.d.ts +2 -0
  76. package/dist/lib/components/common/Link/Link.d.ts +21 -0
  77. package/dist/lib/components/common/Link/index.d.ts +2 -0
  78. package/dist/lib/components/common/Mark/Mark.d.ts +38 -0
  79. package/dist/lib/components/common/Mark/index.d.ts +2 -0
  80. package/dist/lib/components/common/MultiSelect/MultiSelect.d.ts +54 -0
  81. package/dist/lib/components/common/MultiSelect/index.d.ts +2 -0
  82. package/dist/lib/components/common/PinInput/PinInput.d.ts +49 -0
  83. package/dist/lib/components/common/PinInput/index.d.ts +2 -0
  84. package/dist/lib/components/common/Progress/Progress.d.ts +30 -0
  85. package/dist/lib/components/common/Progress/index.d.ts +2 -0
  86. package/dist/lib/components/common/Radio/Radio.d.ts +45 -0
  87. package/dist/lib/components/common/Radio/index.d.ts +2 -0
  88. package/dist/lib/components/common/RingProgress/RingProgress.d.ts +40 -0
  89. package/dist/lib/components/common/RingProgress/index.d.ts +2 -0
  90. package/dist/lib/components/common/ScrollArea/ScrollArea.d.ts +33 -0
  91. package/dist/lib/components/common/ScrollArea/index.d.ts +2 -0
  92. package/dist/lib/components/common/Select/Select.d.ts +50 -0
  93. package/dist/lib/components/common/Select/index.d.ts +2 -0
  94. package/dist/lib/components/common/Select/listbox.d.ts +68 -0
  95. package/dist/lib/components/common/SimpleGrid/SimpleGrid.d.ts +30 -0
  96. package/dist/lib/components/common/SimpleGrid/index.d.ts +2 -0
  97. package/dist/lib/components/common/Skeleton/Skeleton.d.ts +23 -0
  98. package/dist/lib/components/common/Skeleton/index.d.ts +2 -0
  99. package/dist/lib/components/common/Slider/Slider.d.ts +55 -0
  100. package/dist/lib/components/common/Slider/index.d.ts +2 -0
  101. package/dist/lib/components/common/Space/Space.d.ts +29 -0
  102. package/dist/lib/components/common/Space/index.d.ts +2 -0
  103. package/dist/lib/components/common/Spinner/Spinner.d.ts +25 -0
  104. package/dist/lib/components/common/Spinner/index.d.ts +2 -0
  105. package/dist/lib/components/common/Stack/Stack.d.ts +41 -0
  106. package/dist/lib/components/common/Stack/index.d.ts +2 -0
  107. package/dist/lib/components/common/Switch/Switch.d.ts +28 -0
  108. package/dist/lib/components/common/Switch/index.d.ts +2 -0
  109. package/dist/lib/components/common/Text/Text.d.ts +57 -0
  110. package/dist/lib/components/common/Text/index.d.ts +2 -0
  111. package/dist/lib/components/common/Textarea/Textarea.d.ts +29 -0
  112. package/dist/lib/components/common/Textarea/index.d.ts +2 -0
  113. package/dist/lib/components/common/Tooltip/Tooltip.d.ts +33 -0
  114. package/dist/lib/components/common/Tooltip/index.d.ts +2 -0
  115. package/dist/lib/components/common/VisuallyHidden/VisuallyHidden.d.ts +20 -0
  116. package/dist/lib/components/common/VisuallyHidden/index.d.ts +2 -0
  117. package/dist/lib/components/common/Waveform/Waveform.d.ts +66 -0
  118. package/dist/lib/components/common/Waveform/index.d.ts +2 -0
  119. package/dist/lib/components/common/index.d.ts +44 -0
  120. package/dist/lib/components/common/index.js +7 -0
  121. package/dist/lib/components/composed/AppShell/AppShell.d.ts +95 -0
  122. package/dist/lib/components/composed/AppShell/index.d.ts +2 -0
  123. package/dist/lib/components/composed/Breadcrumb/Breadcrumb.d.ts +46 -0
  124. package/dist/lib/components/composed/Breadcrumb/index.d.ts +2 -0
  125. package/dist/lib/components/composed/BulkActionBar/BulkActionBar.d.ts +48 -0
  126. package/dist/lib/components/composed/BulkActionBar/index.d.ts +2 -0
  127. package/dist/lib/components/composed/Callout/Callout.d.ts +43 -0
  128. package/dist/lib/components/composed/Callout/index.d.ts +2 -0
  129. package/dist/lib/components/composed/Card/Card.d.ts +80 -0
  130. package/dist/lib/components/composed/Card/index.d.ts +2 -0
  131. package/dist/lib/components/composed/Carousel/Carousel.d.ts +52 -0
  132. package/dist/lib/components/composed/Carousel/index.d.ts +2 -0
  133. package/dist/lib/components/composed/Combobox/Combobox.d.ts +50 -0
  134. package/dist/lib/components/composed/Combobox/index.d.ts +2 -0
  135. package/dist/lib/components/composed/CommandPalette/CommandPalette.d.ts +51 -0
  136. package/dist/lib/components/composed/CommandPalette/index.d.ts +2 -0
  137. package/dist/lib/components/composed/DatePicker/Calendar.d.ts +49 -0
  138. package/dist/lib/components/composed/DatePicker/DatePicker.d.ts +36 -0
  139. package/dist/lib/components/composed/DatePicker/dates.d.ts +50 -0
  140. package/dist/lib/components/composed/DatePicker/index.d.ts +3 -0
  141. package/dist/lib/components/composed/DateRangePicker/DateRangePicker.d.ts +40 -0
  142. package/dist/lib/components/composed/DateRangePicker/index.d.ts +2 -0
  143. package/dist/lib/components/composed/Disclosure/Disclosure.d.ts +44 -0
  144. package/dist/lib/components/composed/Disclosure/index.d.ts +2 -0
  145. package/dist/lib/components/composed/Drawer/Drawer.d.ts +39 -0
  146. package/dist/lib/components/composed/Drawer/index.d.ts +2 -0
  147. package/dist/lib/components/composed/EmptyState/EmptyState.d.ts +43 -0
  148. package/dist/lib/components/composed/EmptyState/index.d.ts +2 -0
  149. package/dist/lib/components/composed/Field/Field.d.ts +63 -0
  150. package/dist/lib/components/composed/Field/index.d.ts +2 -0
  151. package/dist/lib/components/composed/FilterBar/FilterBar.d.ts +58 -0
  152. package/dist/lib/components/composed/FilterBar/index.d.ts +2 -0
  153. package/dist/lib/components/composed/FormSection/FormSection.d.ts +35 -0
  154. package/dist/lib/components/composed/FormSection/index.d.ts +2 -0
  155. package/dist/lib/components/composed/ListRow/ListRow.d.ts +83 -0
  156. package/dist/lib/components/composed/ListRow/index.d.ts +2 -0
  157. package/dist/lib/components/composed/Menu/Menu.d.ts +102 -0
  158. package/dist/lib/components/composed/Menu/index.d.ts +2 -0
  159. package/dist/lib/components/composed/Menu/scope.d.ts +15 -0
  160. package/dist/lib/components/composed/Modal/Modal.d.ts +65 -0
  161. package/dist/lib/components/composed/Modal/index.d.ts +2 -0
  162. package/dist/lib/components/composed/PageHeader/PageHeader.d.ts +46 -0
  163. package/dist/lib/components/composed/PageHeader/index.d.ts +2 -0
  164. package/dist/lib/components/composed/Pagination/Pagination.d.ts +48 -0
  165. package/dist/lib/components/composed/Pagination/index.d.ts +2 -0
  166. package/dist/lib/components/composed/Popover/Popover.d.ts +47 -0
  167. package/dist/lib/components/composed/Popover/index.d.ts +2 -0
  168. package/dist/lib/components/composed/PreferenceRow/PreferenceRow.d.ts +43 -0
  169. package/dist/lib/components/composed/PreferenceRow/index.d.ts +2 -0
  170. package/dist/lib/components/composed/Sheet/Sheet.d.ts +53 -0
  171. package/dist/lib/components/composed/Sheet/index.d.ts +2 -0
  172. package/dist/lib/components/composed/SidePanel/SidePanel.d.ts +34 -0
  173. package/dist/lib/components/composed/SidePanel/index.d.ts +2 -0
  174. package/dist/lib/components/composed/SidebarNav/SidebarNav.d.ts +85 -0
  175. package/dist/lib/components/composed/SidebarNav/index.d.ts +2 -0
  176. package/dist/lib/components/composed/Spotlight/Spotlight.d.ts +57 -0
  177. package/dist/lib/components/composed/Spotlight/index.d.ts +2 -0
  178. package/dist/lib/components/composed/Stepper/Stepper.d.ts +36 -0
  179. package/dist/lib/components/composed/Stepper/index.d.ts +2 -0
  180. package/dist/lib/components/composed/Table/Table.d.ts +142 -0
  181. package/dist/lib/components/composed/Table/index.d.ts +2 -0
  182. package/dist/lib/components/composed/Tabs/Tabs.d.ts +48 -0
  183. package/dist/lib/components/composed/Tabs/index.d.ts +2 -0
  184. package/dist/lib/components/composed/TimeInput/TimeInput.d.ts +41 -0
  185. package/dist/lib/components/composed/TimeInput/index.d.ts +3 -0
  186. package/dist/lib/components/composed/TimeInput/times.d.ts +47 -0
  187. package/dist/lib/components/composed/Toast/Toast.d.ts +37 -0
  188. package/dist/lib/components/composed/Toast/index.d.ts +2 -0
  189. package/dist/lib/components/composed/Toolbar/Toolbar.d.ts +45 -0
  190. package/dist/lib/components/composed/Toolbar/index.d.ts +2 -0
  191. package/dist/lib/components/composed/index.d.ts +33 -0
  192. package/dist/lib/components/composed/index.js +3 -0
  193. package/dist/lib/components/derived/AvatarGroup/AvatarGroup.d.ts +52 -0
  194. package/dist/lib/components/derived/AvatarGroup/index.d.ts +2 -0
  195. package/dist/lib/components/derived/ButtonGroup/ButtonGroup.d.ts +33 -0
  196. package/dist/lib/components/derived/ButtonGroup/index.d.ts +2 -0
  197. package/dist/lib/components/derived/ChoiceCard/ChoiceCard.d.ts +43 -0
  198. package/dist/lib/components/derived/ChoiceCard/index.d.ts +2 -0
  199. package/dist/lib/components/derived/InputGroup/InputGroup.d.ts +23 -0
  200. package/dist/lib/components/derived/InputGroup/index.d.ts +2 -0
  201. package/dist/lib/components/derived/MorphIcon/MorphIcon.d.ts +71 -0
  202. package/dist/lib/components/derived/MorphIcon/index.d.ts +2 -0
  203. package/dist/lib/components/derived/NumberFlow/NumberFlow.d.ts +47 -0
  204. package/dist/lib/components/derived/NumberFlow/index.d.ts +2 -0
  205. package/dist/lib/components/derived/NumberInput/NumberInput.d.ts +54 -0
  206. package/dist/lib/components/derived/NumberInput/index.d.ts +2 -0
  207. package/dist/lib/components/derived/PasswordInput/PasswordInput.d.ts +53 -0
  208. package/dist/lib/components/derived/PasswordInput/index.d.ts +2 -0
  209. package/dist/lib/components/derived/SearchInput/SearchInput.d.ts +33 -0
  210. package/dist/lib/components/derived/SearchInput/index.d.ts +2 -0
  211. package/dist/lib/components/derived/SegmentedControl/SegmentedControl.d.ts +44 -0
  212. package/dist/lib/components/derived/SegmentedControl/index.d.ts +2 -0
  213. package/dist/lib/components/derived/SplitButton/SplitButton.d.ts +42 -0
  214. package/dist/lib/components/derived/SplitButton/index.d.ts +2 -0
  215. package/dist/lib/components/derived/StatusDot/StatusDot.d.ts +31 -0
  216. package/dist/lib/components/derived/StatusDot/index.d.ts +2 -0
  217. package/dist/lib/components/derived/Tag/Tag.d.ts +47 -0
  218. package/dist/lib/components/derived/Tag/index.d.ts +2 -0
  219. package/dist/lib/components/derived/TagInput/TagInput.d.ts +28 -0
  220. package/dist/lib/components/derived/TagInput/index.d.ts +2 -0
  221. package/dist/lib/components/derived/TextCycle/TextCycle.d.ts +40 -0
  222. package/dist/lib/components/derived/TextCycle/index.d.ts +2 -0
  223. package/dist/lib/components/derived/ToggleButton/ToggleButton.d.ts +43 -0
  224. package/dist/lib/components/derived/ToggleButton/index.d.ts +2 -0
  225. package/dist/lib/components/derived/index.d.ts +16 -0
  226. package/dist/lib/components/derived/index.js +4 -0
  227. package/dist/lib/components/extended/ActivityList/ActivityList.d.ts +38 -0
  228. package/dist/lib/components/extended/ActivityList/index.d.ts +2 -0
  229. package/dist/lib/components/extended/AddressForm/AddressForm.d.ts +71 -0
  230. package/dist/lib/components/extended/AddressForm/index.d.ts +2 -0
  231. package/dist/lib/components/extended/ApprovalGate/ApprovalGate.d.ts +60 -0
  232. package/dist/lib/components/extended/ApprovalGate/index.d.ts +2 -0
  233. package/dist/lib/components/extended/BackgroundProgress/BackgroundProgress.d.ts +63 -0
  234. package/dist/lib/components/extended/BackgroundProgress/index.d.ts +2 -0
  235. package/dist/lib/components/extended/Citation/Citation.d.ts +61 -0
  236. package/dist/lib/components/extended/Citation/index.d.ts +2 -0
  237. package/dist/lib/components/extended/CommentThread/CommentThread.d.ts +61 -0
  238. package/dist/lib/components/extended/CommentThread/index.d.ts +2 -0
  239. package/dist/lib/components/extended/Composer/Composer.d.ts +57 -0
  240. package/dist/lib/components/extended/Composer/index.d.ts +2 -0
  241. package/dist/lib/components/extended/CouponField/CouponField.d.ts +59 -0
  242. package/dist/lib/components/extended/CouponField/index.d.ts +2 -0
  243. package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +161 -0
  244. package/dist/lib/components/extended/DataGrid/DataGrid.state.d.ts +93 -0
  245. package/dist/lib/components/extended/DataGrid/index.d.ts +2 -0
  246. package/dist/lib/components/extended/Dropzone/Dropzone.d.ts +83 -0
  247. package/dist/lib/components/extended/Dropzone/index.d.ts +2 -0
  248. package/dist/lib/components/extended/FeedbackControl/FeedbackControl.d.ts +47 -0
  249. package/dist/lib/components/extended/FeedbackControl/index.d.ts +2 -0
  250. package/dist/lib/components/extended/FilterBuilder/FilterBuilder.d.ts +67 -0
  251. package/dist/lib/components/extended/FilterBuilder/index.d.ts +2 -0
  252. package/dist/lib/components/extended/FollowUpList/FollowUpList.d.ts +34 -0
  253. package/dist/lib/components/extended/FollowUpList/index.d.ts +2 -0
  254. package/dist/lib/components/extended/KanbanColumn/KanbanColumn.d.ts +62 -0
  255. package/dist/lib/components/extended/KanbanColumn/index.d.ts +2 -0
  256. package/dist/lib/components/extended/Message/Message.d.ts +43 -0
  257. package/dist/lib/components/extended/Message/index.d.ts +2 -0
  258. package/dist/lib/components/extended/MessageList/MessageList.d.ts +66 -0
  259. package/dist/lib/components/extended/MessageList/index.d.ts +2 -0
  260. package/dist/lib/components/extended/MetricCard/MetricCard.d.ts +60 -0
  261. package/dist/lib/components/extended/MetricCard/index.d.ts +2 -0
  262. package/dist/lib/components/extended/OrderSummary/OrderSummary.d.ts +70 -0
  263. package/dist/lib/components/extended/OrderSummary/index.d.ts +2 -0
  264. package/dist/lib/components/extended/PaymentMethodSelector/PaymentMethodSelector.d.ts +65 -0
  265. package/dist/lib/components/extended/PaymentMethodSelector/index.d.ts +2 -0
  266. package/dist/lib/components/extended/PresenceBar/PresenceBar.d.ts +49 -0
  267. package/dist/lib/components/extended/PresenceBar/index.d.ts +2 -0
  268. package/dist/lib/components/extended/PriceDisplay/PriceDisplay.d.ts +53 -0
  269. package/dist/lib/components/extended/PriceDisplay/index.d.ts +2 -0
  270. package/dist/lib/components/extended/ProductCard/ProductCard.d.ts +58 -0
  271. package/dist/lib/components/extended/ProductCard/index.d.ts +2 -0
  272. package/dist/lib/components/extended/QuantityStepper/QuantityStepper.d.ts +41 -0
  273. package/dist/lib/components/extended/QuantityStepper/index.d.ts +2 -0
  274. package/dist/lib/components/extended/ReasoningDisclosure/ReasoningDisclosure.d.ts +33 -0
  275. package/dist/lib/components/extended/ReasoningDisclosure/index.d.ts +2 -0
  276. package/dist/lib/components/extended/RecognitionFallback/RecognitionFallback.d.ts +57 -0
  277. package/dist/lib/components/extended/RecognitionFallback/index.d.ts +2 -0
  278. package/dist/lib/components/extended/RunStatusCard/RunStatusCard.d.ts +51 -0
  279. package/dist/lib/components/extended/RunStatusCard/index.d.ts +2 -0
  280. package/dist/lib/components/extended/SavedViewTabs/SavedViewTabs.d.ts +49 -0
  281. package/dist/lib/components/extended/SavedViewTabs/index.d.ts +2 -0
  282. package/dist/lib/components/extended/SourceChip/SourceChip.d.ts +37 -0
  283. package/dist/lib/components/extended/SourceChip/index.d.ts +2 -0
  284. package/dist/lib/components/extended/SourceChipRow/SourceChipRow.d.ts +54 -0
  285. package/dist/lib/components/extended/SourceChipRow/index.d.ts +2 -0
  286. package/dist/lib/components/extended/SourcePanel/SourcePanel.d.ts +46 -0
  287. package/dist/lib/components/extended/SourcePanel/index.d.ts +2 -0
  288. package/dist/lib/components/extended/StreamingText/StreamingText.d.ts +30 -0
  289. package/dist/lib/components/extended/StreamingText/index.d.ts +2 -0
  290. package/dist/lib/components/extended/ToolCallCard/ToolCallCard.d.ts +52 -0
  291. package/dist/lib/components/extended/ToolCallCard/index.d.ts +2 -0
  292. package/dist/lib/components/extended/TranscriptSync/TranscriptSync.d.ts +58 -0
  293. package/dist/lib/components/extended/TranscriptSync/index.d.ts +2 -0
  294. package/dist/lib/components/extended/TrustBlock/TrustBlock.d.ts +37 -0
  295. package/dist/lib/components/extended/TrustBlock/index.d.ts +2 -0
  296. package/dist/lib/components/extended/VoiceControlBar/VoiceControlBar.d.ts +77 -0
  297. package/dist/lib/components/extended/VoiceControlBar/index.d.ts +2 -0
  298. package/dist/lib/components/extended/index.d.ts +35 -0
  299. package/dist/lib/components/extended/index.js +2 -0
  300. package/dist/lib/fonts/pretendard/LICENSE.txt +94 -0
  301. package/dist/lib/fonts/pretendard/PretendardVariable.subset.0.woff2 +0 -0
  302. package/dist/lib/fonts/pretendard/PretendardVariable.subset.1.woff2 +0 -0
  303. package/dist/lib/fonts/pretendard/PretendardVariable.subset.10.woff2 +0 -0
  304. package/dist/lib/fonts/pretendard/PretendardVariable.subset.11.woff2 +0 -0
  305. package/dist/lib/fonts/pretendard/PretendardVariable.subset.12.woff2 +0 -0
  306. package/dist/lib/fonts/pretendard/PretendardVariable.subset.13.woff2 +0 -0
  307. package/dist/lib/fonts/pretendard/PretendardVariable.subset.14.woff2 +0 -0
  308. package/dist/lib/fonts/pretendard/PretendardVariable.subset.15.woff2 +0 -0
  309. package/dist/lib/fonts/pretendard/PretendardVariable.subset.16.woff2 +0 -0
  310. package/dist/lib/fonts/pretendard/PretendardVariable.subset.17.woff2 +0 -0
  311. package/dist/lib/fonts/pretendard/PretendardVariable.subset.18.woff2 +0 -0
  312. package/dist/lib/fonts/pretendard/PretendardVariable.subset.19.woff2 +0 -0
  313. package/dist/lib/fonts/pretendard/PretendardVariable.subset.2.woff2 +0 -0
  314. package/dist/lib/fonts/pretendard/PretendardVariable.subset.20.woff2 +0 -0
  315. package/dist/lib/fonts/pretendard/PretendardVariable.subset.21.woff2 +0 -0
  316. package/dist/lib/fonts/pretendard/PretendardVariable.subset.22.woff2 +0 -0
  317. package/dist/lib/fonts/pretendard/PretendardVariable.subset.23.woff2 +0 -0
  318. package/dist/lib/fonts/pretendard/PretendardVariable.subset.24.woff2 +0 -0
  319. package/dist/lib/fonts/pretendard/PretendardVariable.subset.25.woff2 +0 -0
  320. package/dist/lib/fonts/pretendard/PretendardVariable.subset.26.woff2 +0 -0
  321. package/dist/lib/fonts/pretendard/PretendardVariable.subset.27.woff2 +0 -0
  322. package/dist/lib/fonts/pretendard/PretendardVariable.subset.28.woff2 +0 -0
  323. package/dist/lib/fonts/pretendard/PretendardVariable.subset.29.woff2 +0 -0
  324. package/dist/lib/fonts/pretendard/PretendardVariable.subset.3.woff2 +0 -0
  325. package/dist/lib/fonts/pretendard/PretendardVariable.subset.30.woff2 +0 -0
  326. package/dist/lib/fonts/pretendard/PretendardVariable.subset.31.woff2 +0 -0
  327. package/dist/lib/fonts/pretendard/PretendardVariable.subset.32.woff2 +0 -0
  328. package/dist/lib/fonts/pretendard/PretendardVariable.subset.33.woff2 +0 -0
  329. package/dist/lib/fonts/pretendard/PretendardVariable.subset.34.woff2 +0 -0
  330. package/dist/lib/fonts/pretendard/PretendardVariable.subset.35.woff2 +0 -0
  331. package/dist/lib/fonts/pretendard/PretendardVariable.subset.36.woff2 +0 -0
  332. package/dist/lib/fonts/pretendard/PretendardVariable.subset.37.woff2 +0 -0
  333. package/dist/lib/fonts/pretendard/PretendardVariable.subset.38.woff2 +0 -0
  334. package/dist/lib/fonts/pretendard/PretendardVariable.subset.39.woff2 +0 -0
  335. package/dist/lib/fonts/pretendard/PretendardVariable.subset.4.woff2 +0 -0
  336. package/dist/lib/fonts/pretendard/PretendardVariable.subset.40.woff2 +0 -0
  337. package/dist/lib/fonts/pretendard/PretendardVariable.subset.41.woff2 +0 -0
  338. package/dist/lib/fonts/pretendard/PretendardVariable.subset.42.woff2 +0 -0
  339. package/dist/lib/fonts/pretendard/PretendardVariable.subset.43.woff2 +0 -0
  340. package/dist/lib/fonts/pretendard/PretendardVariable.subset.44.woff2 +0 -0
  341. package/dist/lib/fonts/pretendard/PretendardVariable.subset.45.woff2 +0 -0
  342. package/dist/lib/fonts/pretendard/PretendardVariable.subset.46.woff2 +0 -0
  343. package/dist/lib/fonts/pretendard/PretendardVariable.subset.47.woff2 +0 -0
  344. package/dist/lib/fonts/pretendard/PretendardVariable.subset.48.woff2 +0 -0
  345. package/dist/lib/fonts/pretendard/PretendardVariable.subset.49.woff2 +0 -0
  346. package/dist/lib/fonts/pretendard/PretendardVariable.subset.5.woff2 +0 -0
  347. package/dist/lib/fonts/pretendard/PretendardVariable.subset.50.woff2 +0 -0
  348. package/dist/lib/fonts/pretendard/PretendardVariable.subset.51.woff2 +0 -0
  349. package/dist/lib/fonts/pretendard/PretendardVariable.subset.52.woff2 +0 -0
  350. package/dist/lib/fonts/pretendard/PretendardVariable.subset.53.woff2 +0 -0
  351. package/dist/lib/fonts/pretendard/PretendardVariable.subset.54.woff2 +0 -0
  352. package/dist/lib/fonts/pretendard/PretendardVariable.subset.55.woff2 +0 -0
  353. package/dist/lib/fonts/pretendard/PretendardVariable.subset.56.woff2 +0 -0
  354. package/dist/lib/fonts/pretendard/PretendardVariable.subset.57.woff2 +0 -0
  355. package/dist/lib/fonts/pretendard/PretendardVariable.subset.58.woff2 +0 -0
  356. package/dist/lib/fonts/pretendard/PretendardVariable.subset.59.woff2 +0 -0
  357. package/dist/lib/fonts/pretendard/PretendardVariable.subset.6.woff2 +0 -0
  358. package/dist/lib/fonts/pretendard/PretendardVariable.subset.60.woff2 +0 -0
  359. package/dist/lib/fonts/pretendard/PretendardVariable.subset.61.woff2 +0 -0
  360. package/dist/lib/fonts/pretendard/PretendardVariable.subset.62.woff2 +0 -0
  361. package/dist/lib/fonts/pretendard/PretendardVariable.subset.63.woff2 +0 -0
  362. package/dist/lib/fonts/pretendard/PretendardVariable.subset.64.woff2 +0 -0
  363. package/dist/lib/fonts/pretendard/PretendardVariable.subset.65.woff2 +0 -0
  364. package/dist/lib/fonts/pretendard/PretendardVariable.subset.66.woff2 +0 -0
  365. package/dist/lib/fonts/pretendard/PretendardVariable.subset.67.woff2 +0 -0
  366. package/dist/lib/fonts/pretendard/PretendardVariable.subset.68.woff2 +0 -0
  367. package/dist/lib/fonts/pretendard/PretendardVariable.subset.69.woff2 +0 -0
  368. package/dist/lib/fonts/pretendard/PretendardVariable.subset.7.woff2 +0 -0
  369. package/dist/lib/fonts/pretendard/PretendardVariable.subset.70.woff2 +0 -0
  370. package/dist/lib/fonts/pretendard/PretendardVariable.subset.71.woff2 +0 -0
  371. package/dist/lib/fonts/pretendard/PretendardVariable.subset.72.woff2 +0 -0
  372. package/dist/lib/fonts/pretendard/PretendardVariable.subset.73.woff2 +0 -0
  373. package/dist/lib/fonts/pretendard/PretendardVariable.subset.74.woff2 +0 -0
  374. package/dist/lib/fonts/pretendard/PretendardVariable.subset.75.woff2 +0 -0
  375. package/dist/lib/fonts/pretendard/PretendardVariable.subset.76.woff2 +0 -0
  376. package/dist/lib/fonts/pretendard/PretendardVariable.subset.77.woff2 +0 -0
  377. package/dist/lib/fonts/pretendard/PretendardVariable.subset.78.woff2 +0 -0
  378. package/dist/lib/fonts/pretendard/PretendardVariable.subset.79.woff2 +0 -0
  379. package/dist/lib/fonts/pretendard/PretendardVariable.subset.8.woff2 +0 -0
  380. package/dist/lib/fonts/pretendard/PretendardVariable.subset.80.woff2 +0 -0
  381. package/dist/lib/fonts/pretendard/PretendardVariable.subset.81.woff2 +0 -0
  382. package/dist/lib/fonts/pretendard/PretendardVariable.subset.82.woff2 +0 -0
  383. package/dist/lib/fonts/pretendard/PretendardVariable.subset.83.woff2 +0 -0
  384. package/dist/lib/fonts/pretendard/PretendardVariable.subset.84.woff2 +0 -0
  385. package/dist/lib/fonts/pretendard/PretendardVariable.subset.85.woff2 +0 -0
  386. package/dist/lib/fonts/pretendard/PretendardVariable.subset.86.woff2 +0 -0
  387. package/dist/lib/fonts/pretendard/PretendardVariable.subset.87.woff2 +0 -0
  388. package/dist/lib/fonts/pretendard/PretendardVariable.subset.88.woff2 +0 -0
  389. package/dist/lib/fonts/pretendard/PretendardVariable.subset.89.woff2 +0 -0
  390. package/dist/lib/fonts/pretendard/PretendardVariable.subset.9.woff2 +0 -0
  391. package/dist/lib/fonts/pretendard/PretendardVariable.subset.90.woff2 +0 -0
  392. package/dist/lib/fonts/pretendard/PretendardVariable.subset.91.woff2 +0 -0
  393. package/dist/lib/foundation/focus.d.ts +10 -0
  394. package/dist/lib/foundation/josa.d.ts +4 -0
  395. package/dist/lib/index.d.ts +4 -0
  396. package/dist/lib/index.js +13 -0
  397. package/dist/lib/pretendard.css +940 -0
  398. package/dist/lib/reset.css +50 -0
  399. package/dist/lib/styles.css +3 -0
  400. package/dist/lib/tokens.css +1118 -0
  401. package/package.json +91 -0
@@ -0,0 +1,1118 @@
1
+ /*
2
+ * The token layer.
3
+ *
4
+ * Three levels, and the reason for three is the whole point of the file:
5
+ *
6
+ * 1. PRIMITIVE a raw scale. `--gray-900`, `--space-4`, `--text-md`. Never referenced by
7
+ * a component. Changing one changes every role built on it.
8
+ * 2. SEMANTIC a role. `--surface`, `--text`, `--accent`, `--border`. This is the only
9
+ * level a component is allowed to read, and the only level a variation
10
+ * overrides. A component that reads `--gray-900` cannot be re-themed; a
11
+ * component that reads `--surface` can.
12
+ * 3. COMPONENT declared by the component, defaulting to a semantic role:
13
+ * `--button-bg: var(--accent)`. An adopter overrides one control without
14
+ * touching the rest of the system.
15
+ *
16
+ * A variation is therefore a scope that redefines level 2 and nothing else. That is what
17
+ * makes it possible to ship several production sets off one set of components rather than
18
+ * forking them.
19
+ *
20
+ * The previous line of work had level 1 only: every component authored literal values and a
21
+ * checker kept the literals from drifting apart. It worked as far as it went and it could not
22
+ * be re-themed at all, because there was nothing between the component and the number.
23
+ */
24
+
25
+ :root {
26
+ /* ─────────────────────────────────────────────────────────────────────────
27
+ * 1. PRIMITIVE
28
+ * ───────────────────────────────────────────────────────────────────────── */
29
+
30
+ /* Space — 4px base. Every gap, pad and margin in the system is one of these.
31
+ * 4 is the base because 12-column layouts divide by 3 and 4, and an 8px base
32
+ * cannot express the half-step a dense control row needs. */
33
+ --space-0: 0;
34
+ /*
35
+ * One pixel. Not a step on the scale — the floor beneath it, for the places where a
36
+ * technique needs exactly one and no design decision is being made: the 1x1 box that keeps
37
+ * visually-hidden text in the accessibility tree, where 0x0 is dropped by some browsers.
38
+ * Anything that is a spacing decision uses a step.
39
+ */
40
+ --space-px: 1px;
41
+ --space-1: 4px;
42
+ --space-2: 8px;
43
+ --space-3: 12px;
44
+ --space-4: 16px;
45
+ --space-5: 20px;
46
+ --space-6: 24px;
47
+ --space-8: 32px;
48
+ --space-10: 40px;
49
+ --space-12: 48px;
50
+ --space-16: 64px;
51
+ --space-20: 80px;
52
+ --space-24: 96px;
53
+
54
+ /* Type size — rem, so the host page's root size still governs.
55
+ * 0.75rem is the floor. Nothing in a production surface goes below 12px: it is
56
+ * unreadable for a large share of readers, and Hangul loses stroke detail before
57
+ * Latin does. */
58
+ --text-xs: 0.75rem; /* 12 — label, meta, chip */
59
+ --text-sm: 0.875rem; /* 14 — secondary, dense UI */
60
+ --text-md: 1rem; /* 16 — body */
61
+ --text-lg: 1.125rem; /* 18 — lead, card title */
62
+ --text-xl: 1.375rem; /* 22 — section heading */
63
+ --text-2xl: 1.75rem; /* 28 */
64
+ --text-3xl: 2.25rem; /* 36 */
65
+ --text-4xl: 3rem; /* 48 — display */
66
+
67
+ /* Weight — Pretendard Variable covers 45–920, but these are the standard five so a
68
+ * host that swaps the family for a static one still gets every step. */
69
+ --weight-regular: 400;
70
+ --weight-medium: 500;
71
+ --weight-semibold: 600;
72
+ --weight-bold: 700;
73
+ --weight-heavy: 800;
74
+
75
+ /* Leading — unitless, so it scales with whatever size the element lands at.
76
+ * `--leading-none` is for a box that must not gain a line box, not for text. */
77
+ --leading-none: 1;
78
+ --leading-tight: 1.2; /* display and headings */
79
+ --leading-snug: 1.4; /* dense UI copy */
80
+ --leading-normal: 1.6; /* body, long-form */
81
+
82
+ /* Tracking — a Latin device. A Hangul syllable is already a composed block with its
83
+ * own internal spacing, so positive tracking reads as broken rather than as emphasis.
84
+ * The positive steps are for uppercase Latin and numerals only. */
85
+ --tracking-tight: -0.02em;
86
+ --tracking-snug: -0.01em;
87
+ --tracking-normal: 0;
88
+ --tracking-wide: 0.02em;
89
+ --tracking-widest: 0.08em;
90
+
91
+ /*
92
+ * 제목 — 크기·굵기·행간 셋을 단계마다 묶어 둡니다.
93
+ *
94
+ * 묶어 두지 않으면 「h2는 몇이지」를 호출부가 매번 고르고, 같은 h2가 화면마다 다른 크기로
95
+ * 나옵니다. 이 저장소에서 실제로 그랬습니다 — h3에 `md`가 745곳, `sm`이 3곳, `lg`가
96
+ * 1곳이었습니다. 단계가 크기를 정하면 그 셋이 어긋난 자리가 됩니다.
97
+ *
98
+ * **참조 구현(Mantine)의 굵기 700을 그대로 쓰지 않습니다.** 한글은 획이 네모 안에 꽉 차서
99
+ * 700에서 획끼리 붙어 뭉칩니다. 라틴 문자는 획 사이가 비어 있어 같은 굵기가 또렷합니다.
100
+ * 크기는 문자와 무관하므로 맞추고, 굵기만 600으로 둡니다.
101
+ *
102
+ * 행간도 한 단계씩 넉넉합니다. 같은 이유입니다 — 네모에 꽉 찬 글자는 줄이 붙어 보입니다.
103
+ */
104
+ --heading-1-size: 2.125rem; /* 34 */
105
+ --heading-1-leading: 1.35;
106
+ --heading-2-size: 1.625rem; /* 26 */
107
+ --heading-2-leading: 1.4;
108
+ --heading-3-size: 1.375rem; /* 22 */
109
+ --heading-3-leading: 1.45;
110
+ --heading-4-size: 1.125rem; /* 18 */
111
+ --heading-4-leading: 1.5;
112
+ --heading-5-size: 1rem; /* 16 */
113
+ --heading-5-leading: 1.5;
114
+ --heading-6-size: 0.875rem; /* 14 */
115
+ --heading-6-leading: 1.5;
116
+ --heading-weight: var(--weight-semibold);
117
+
118
+ /* Radius */
119
+ --radius-none: 0;
120
+ --radius-sm: 4px;
121
+ --radius-md: 8px;
122
+ --radius-lg: 12px;
123
+ --radius-xl: 16px;
124
+ --radius-full: 999px; /* a pill — a radius past half its box is a pill and says so */
125
+ --radius-circle: 50%; /* a shape, not a step; a circle cannot be approximated */
126
+
127
+ /*
128
+ * 손이 닿는 것의 모서리.
129
+ *
130
+ * 단계를 컴포넌트마다 고르게 두면 input이 8px, 세그먼티드 컨트롤이 12px, 버튼이 8px처럼
131
+ * 제각각이 됩니다. 실제로 그랬고, 나란히 놓기 전에는 아무도 못 봤습니다. 고르는 자리를
132
+ * 하나로 모으면 「우리 컨트롤의 모서리」가 한 줄이 됩니다.
133
+ *
134
+ * 참조 구현(Mantine)의 `theme.defaultRadius`와 같은 자리입니다. 다만 그쪽은 컴포넌트가
135
+ * 아무 말도 안 했을 때의 기본값이고, 이건 컨트롤이 이름으로 가리키는 값입니다 — 「기본」이
136
+ * 아니라 「컨트롤의 것」이라고 말해야 나중에 왜 그 값인지 찾을 수 있습니다.
137
+ */
138
+ --radius-control: var(--radius-sm);
139
+
140
+ /*
141
+ * 무언가를 담는 판의 모서리.
142
+ *
143
+ * 카드·표·팝오버·메뉴가 전부 이걸 가리킵니다. 원래는 각자 `--radius-lg`(12px)를 집었고,
144
+ * 그건 「판은 12px」이 서른다섯 곳에 흩어져 있다는 뜻이었습니다.
145
+ *
146
+ * 값이 8px인 것은 참조 구현(Mantine)의 카드를 재서 나온 값입니다. 12px은 우리가 정한
147
+ * 값이었고 근거가 없었습니다.
148
+ *
149
+ * `--radius-lg`를 그대로 두는 이유: 그 단계는 Modal·Drawer·Sheet가 쓰는 `xl` 바로 아래
150
+ * 자리이고, 스케일 자체를 올리면 모달이 32px이 됩니다. 참조 구현의 모달은 4px입니다.
151
+ * 이름이 같은 단계라도 어느 컴포넌트가 어느 단계를 집는지가 다르므로, 스케일 값이 아니라
152
+ * 집는 자리를 바꿉니다.
153
+ */
154
+ --radius-surface: var(--radius-md);
155
+
156
+ /* Border width — a hairline, an edge, an emphasis. There is no fourth reason. */
157
+ --border-thin: 1px;
158
+ --border-thick: 2px;
159
+
160
+ /* Neutral ramp — the only achromatic values in the system. Roles below are built from
161
+ * these, and a component never reads a step directly. */
162
+ --gray-0: #ffffff;
163
+ --gray-50: #f7f8fa;
164
+ --gray-100: #eef0f4;
165
+ --gray-200: #e2e5eb;
166
+ --gray-300: #cbd0d9;
167
+ --gray-400: #9aa2b1;
168
+ --gray-500: #6b7382;
169
+ --gray-600: #4c5361;
170
+ --gray-700: #363c47;
171
+ --gray-800: #23272f;
172
+ --gray-900: #171a20;
173
+ --gray-950: #0e1116;
174
+
175
+ /* Hues — one step each until a component needs more. A ramp nobody uses is a ramp
176
+ * that drifts. */
177
+ --blue-500: #2f6fed;
178
+ --blue-600: #1d55c9;
179
+ --green-500: #12855c;
180
+ --green-600: #0c6a49;
181
+ --amber-500: #b5730a;
182
+ --amber-600: #8f5a06;
183
+ --red-500: #d23b32;
184
+ --red-600: #ad2b24;
185
+
186
+ /* Motion — two ranges in one scale. Up to 400ms is a transition a reader waits
187
+ * through, so the steps are close. Past it is an ambient loop nobody waits for. */
188
+ --duration-instant: 0ms;
189
+ --duration-fast: 120ms;
190
+ --duration-base: 180ms;
191
+ --duration-slow: 260ms;
192
+ --duration-slower: 400ms;
193
+ --duration-ambient: 1200ms;
194
+ /*
195
+ * A loop that reports live state, and the one duration reduced motion does not collapse.
196
+ *
197
+ * The rest of this scale is motion a reader is waiting through, and collapsing it is the
198
+ * whole point of the preference. A spinner is not that: it is a component saying that
199
+ * something is still happening, and a spinner that stops is a spinner saying it stopped.
200
+ * WCAG 2.3.3 is about animation from interactions, and the vestibular concern is large
201
+ * translation and parallax — not a 16px ring turning.
202
+ *
203
+ * The rule that comes with it: a loop on this duration may rotate or fade a small mark. It
204
+ * may not move anything across the viewport, and it may not be decoration.
205
+ */
206
+ --duration-loop: 900ms;
207
+
208
+ /* Easing. `linear` is not a step on this scale — it is the absence of one, and a
209
+ * progress fill needs exactly that, so it is written as the keyword where it belongs. */
210
+ --ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1); /* leaves fast, settles slow */
211
+ --ease-entrance: cubic-bezier(0.22, 1, 0.36, 1); /* arriving from off-surface */
212
+ --ease-exit: cubic-bezier(0.4, 0.1, 1, 1); /* leaving; no settle to watch */
213
+ --ease-inout: cubic-bezier(0.4, 0, 0.2, 1); /* a loop that returns */
214
+
215
+ /*
216
+ * Gesture. The three above describe motion a component starts; these describe motion a
217
+ * finger started and let go of, which is a different problem — the thing is already moving
218
+ * when the transition begins, and an ease that starts from rest reads as a stall.
219
+ *
220
+ * `--ease-spring` is a damped spring's step response sampled at 22 points, zeta = 0.7,
221
+ * omega chosen so the curve is within 0.2% of its target over the last tenth. That gives
222
+ * **one** overshoot of 4.6% peaking at 55% of the duration. One is a thing settling; two is
223
+ * a thing playing, and past that it is a component asking to be looked at.
224
+ *
225
+ * node -e '...' — the derivation is in docs/VISUAL-INTERACTION-PLAN.md §3
226
+ */
227
+ --ease-spring: linear(0, 0.058, 0.193, 0.36, 0.527, 0.677, 0.801, 0.895, 0.963, 1.007, 1.032, 1.044, 1.046, 1.042, 1.036, 1.028, 1.02, 1.014, 1.008, 1.004, 1.001, 0.999, 1);
228
+
229
+ /*
230
+ * How long a released thing takes to reach where it is going. Its own step rather than
231
+ * `--duration-slow`, because the distance is not known in advance: a sheet let go one pixel
232
+ * from a detent and one let go two hundred pixels from it both arrive on this, and a
233
+ * duration tuned for the short one makes the long one a jump.
234
+ */
235
+ --duration-settle: 320ms;
236
+
237
+ /*
238
+ * How much of a drag past a boundary follows the finger. Rubber, not a wall: a wall says
239
+ * nothing about whether the gesture was understood, and a boundary with no give reads as a
240
+ * dropped touch. Unitless, because it multiplies a distance the component measures.
241
+ */
242
+ --drag-resist: 0.55;
243
+
244
+ /*
245
+ * The stack, in two ranges, because two different questions are being answered.
246
+ *
247
+ * The first range is local: a component ordering its own parts inside its own box. Those
248
+ * values stay single-digit on purpose. A sticky table head is in page flow, so its z-index
249
+ * is read in whatever stacking context the host gives it, and a head that reached for a big
250
+ * number would paint over a dialog it knows nothing about.
251
+ *
252
+ * The second range is the root contract. Every floating layer in this system portals to the
253
+ * end of `document.body` and none of them sets a container, so DOM order decides nothing and
254
+ * a single number at the root decides everything. That makes this ladder a contract rather
255
+ * than a scale: the order below is the order the reader sees, and it is ordered by which
256
+ * layer the reader is currently acting on.
257
+ *
258
+ * scrim the dim a dialog lays over the page
259
+ * dialog the panel that laid it — modal, drawer, sheet, command palette
260
+ * anchored menu, popover, select, combobox, date picker. Above the dialog, because a
261
+ * list opened from inside a dialog is the thing being read at that moment, and
262
+ * the previous ladder put it underneath.
263
+ * tooltip a hint about whatever is under it, so it is above everything it describes
264
+ * toast the report of something that happened elsewhere. Nothing may cover it, and
265
+ * both it and a dialog used to sit on the same number, which left the winner to
266
+ * DOM order: the toast region mounts at boot and a dialog portals on open, so
267
+ * the dialog won.
268
+ *
269
+ * The gaps of ten are room for an adopter to slot a layer between two of ours without
270
+ * editing this file.
271
+ */
272
+ --layer-behind: -1;
273
+ --layer-base: 0;
274
+ --layer-raised: 1;
275
+ --layer-sticky: 2;
276
+ --layer-sticky-cross: 3;
277
+
278
+ --layer-scrim: 10;
279
+ --layer-dialog: 20;
280
+ --layer-anchored: 30;
281
+ --layer-tooltip: 40;
282
+ --layer-toast: 50;
283
+
284
+ /* Grid — 12 columns, because 12 divides by 2, 3, 4 and 6 and every common split
285
+ * lands on a column edge. */
286
+ --grid-columns: 12;
287
+ --grid-gutter: var(--space-4);
288
+ --grid-gutter-wide: var(--space-6);
289
+ --grid-margin: var(--space-4);
290
+ --grid-margin-wide: var(--space-8);
291
+
292
+ /* Breakpoints, as values so they can be read in JS as well as matched in CSS.
293
+ * CSS media queries cannot use a custom property, so the numbers are repeated in
294
+ * `grid.css` — and that repetition is why they are written down here at all. */
295
+ --bp-sm: 480px;
296
+ --bp-md: 768px;
297
+ --bp-lg: 1024px;
298
+ --bp-xl: 1280px;
299
+
300
+ --container-sm: 640px;
301
+ --container-md: 768px;
302
+ --container-lg: 1024px;
303
+ --container-xl: 1200px;
304
+
305
+ /* Font families. `--font-sans` is a var-with-fallback so an adopter can replace the
306
+ * face without editing a stylesheet, and the fallback chain is what renders if the
307
+ * vendored Pretendard fails to load. */
308
+ --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
309
+ "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
310
+ --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
311
+ "Liberation Mono", monospace;
312
+
313
+ /* ─────────────────────────────────────────────────────────────────────────
314
+ * 2. SEMANTIC — the only level a component reads, and the only level a
315
+ * variation overrides.
316
+ * ───────────────────────────────────────────────────────────────────────── */
317
+
318
+ /*
319
+ * Grounds, from furthest back to nearest front.
320
+ *
321
+ * Three, not four. A fourth for overlays resolved to the same value as `raised` in both
322
+ * themes, and two tokens that always agree are one token written twice — a popover uses
323
+ * `raised` and a higher elevation, which is what actually separates it.
324
+ *
325
+ * `surface` and `surface-raised` are the same white in the light theme and two different
326
+ * greys in the dark one, and that asymmetry is the fact rather than an oversight: on a
327
+ * light ground, lift is carried by shadow and edge; on a dark one it is carried by
328
+ * lightness, because a shadow on near-black has nothing to darken.
329
+ */
330
+ --surface-sunken: var(--gray-50);
331
+ --surface: var(--gray-0);
332
+ --surface-raised: var(--gray-0);
333
+
334
+ /*
335
+ * Two tokens that only the glass look has an opinion about, declared here so that flat is
336
+ * the absence of an opinion rather than a second set of values.
337
+ *
338
+ * `--surface-backdrop` is the WHOLE `backdrop-filter` chain rather than a blur radius, and
339
+ * that is deliberate: the chain cannot be assembled from parts at the call site, because
340
+ * `backdrop-filter: var(--a) var(--b)` with either half empty is invalid at computed-value
341
+ * time. One token, one declaration, and `none` is the whole of flat's behaviour.
342
+ *
343
+ * `--surface-bevel` is a `box-shadow` list and its flat value is a shadow that paints
344
+ * nothing rather than `none`, for the same reason in reverse: a component composes it with
345
+ * its own elevation (`box-shadow: var(--surface-bevel), var(--elevation-2)`) and `none` in
346
+ * a list is invalid CSS. A zero-sized transparent shadow composes and costs nothing.
347
+ *
348
+ * `--surface-behind` is the ground a translucent surface is GUARANTEED against. A surface
349
+ * with alpha has no contrast of its own: the ink stands on the composite, and the composite
350
+ * depends on what is underneath. A page that puts glass over an image must set this to a
351
+ * colour that image actually contains, or the guarantee it inherits is about a ground that
352
+ * is not there.
353
+ */
354
+ /*
355
+ * The system material — the ground a floating surface is made of.
356
+ *
357
+ * A separate role from `--surface` because the two are not the same thing and the look must
358
+ * not confuse them. `--surface` is where CONTENT sits: a card, a table, a field. The
359
+ * material is what a thing that FLOATS ABOVE content is made of, and only that gets thinned.
360
+ * Apple's line, and the reason it is a line: "Elements using Liquid Glass require clear
361
+ * separation from content to maintain legibility." A page whose cards are also translucent
362
+ * has no separation left to give.
363
+ *
364
+ * In flat it is simply the raised surface, so nothing moves.
365
+ */
366
+ --material: var(--surface-raised);
367
+
368
+ /*
369
+ * The selected control that sits on a system material. It is separate from `--material`:
370
+ * the track and its selected thumb need two different values or the choice disappears.
371
+ * Flat resolves both to ordinary surfaces. The glass look thins both by different amounts.
372
+ */
373
+ --material-control: var(--surface);
374
+
375
+ /*
376
+ * Glass parameters are public tokens rather than numbers buried in the look block. A
377
+ * product can make its material clearer or softer without replacing the component rules.
378
+ * The two blur values stay separate because a refracting pane loses the bend under the
379
+ * heavier blur used by an ordinary floating panel.
380
+ */
381
+ --glass-material-opacity: 8%;
382
+ --glass-control-opacity: 18%;
383
+ --glass-border-opacity: 16%;
384
+ --glass-fill-opacity: 85%;
385
+ --glass-backdrop-blur: 14px;
386
+ --glass-lens-blur: 6px;
387
+ --glass-saturation: 1.7;
388
+ --glass-brightness: 1.06;
389
+ --glass-highlight-opacity: 34%;
390
+ --glass-shadow-opacity: 26%;
391
+ --glass-depth-opacity: 34%;
392
+
393
+ --surface-backdrop: none;
394
+
395
+ /*
396
+ * The scrollbar, which nothing in this library had ever named.
397
+ *
398
+ * Three components hide one — `Tabs`, `Carousel`, `SavedViewTabs` — and not one draws
399
+ * one, so every scroller in the library showed the operating system's: a light grey bar
400
+ * on a near-black grid, which is the one surface in a dark theme nobody chose.
401
+ *
402
+ * Roles rather than a colour, so the dark theme moves them with everything else.
403
+ */
404
+ --scrollbar-thumb: var(--border-strong);
405
+ --scrollbar-track: transparent;
406
+ --surface-bevel: 0 0 0 0 transparent;
407
+ /*
408
+ * The same correction a refracting pane wants, minus the heavy blur.
409
+ *
410
+ * A lens that also blurs by 14px throws away what it just bent, so the component that bends
411
+ * the backdrop reads this instead of `--surface-backdrop`. Flat leaves it `none` for the
412
+ * same reason: there is nothing to correct when nothing shows through.
413
+ */
414
+ --surface-lens: none;
415
+
416
+ /*
417
+ * How solid a solid fill is.
418
+ *
419
+ * A filled control on a glass page is the one thing that stays a flat plate, and on a real
420
+ * screen it reads as the piece nobody finished. Under glass it thins so the ground carries
421
+ * through it — but only so far: the fill is what its ink stands on, and unlike a surface it
422
+ * cannot borrow a scrim. Measured over `blocks/Checkout`'s ground, `--on-accent` holds to
423
+ * 70% and fails at 60%. 85% ships, which is a fifth of the way to the floor.
424
+ *
425
+ * It is NOT set by the look. A filled control is content unless it is riding on a floating
426
+ * surface, and only that surface knows which it is — so the functional-layer components set
427
+ * it on themselves and it inherits down. A button in a form stays solid; the same button in
428
+ * a sheet thins, which is Apple's "controls sit on top of a system material" written as a
429
+ * token rather than as a rule somebody has to remember.
430
+ */
431
+ --fill-solid: 100%;
432
+
433
+ /* The correction that rides with a thinned fill. Set by the floating surfaces alongside
434
+ `--fill-solid`, for the same reason: only they know a control is on glass. */
435
+ --fill-backdrop: none;
436
+ --surface-behind: var(--surface-sunken);
437
+
438
+ /* Reading. `--text` is the primary; the two below it are for text that is present
439
+ * because it is available, not because it is being read. */
440
+ --text: var(--gray-900);
441
+ --text-muted: var(--gray-600);
442
+ --text-subtle: var(--gray-500);
443
+ --text-on-fill: var(--gray-0);
444
+
445
+ --border: var(--gray-200);
446
+ --border-strong: var(--gray-300);
447
+
448
+ /*
449
+ * Each energy is three roles, not one, and the third is the one that gets forgotten.
450
+ *
451
+ * --x the fill. A button's background, a badge's solid ground.
452
+ * --on-x the ink that sits ON that fill.
453
+ * --x-ink the ink that sits on a NEUTRAL ground — a coloured word in running text,
454
+ * a label on the soft fill. Measured on light: the fills reach 4.55, 4.63,
455
+ * 5.78 and 4.76 against white, so three of the four still fail as text on
456
+ * the sunken surface. A fill is a fill.
457
+ * --x-subtle a tinted ground, for a soft badge or an inline callout.
458
+ */
459
+ /*
460
+ * The accent with no brand on it.
461
+ *
462
+ * A brand scope moves `--accent`, and a swatch that shows "the default brand" sits inside
463
+ * that scope like everything else — so the picker painted its own default chip in whatever
464
+ * brand was already chosen, and three chips showed two colours. This one is declared beside
465
+ * `--accent` and never overridden by a brand, so anything that has to show what the accent
466
+ * is WITHOUT the current brand reads it. Nothing else should: a component wanting the
467
+ * accent wants `--accent`, which is the brand's answer and not this one.
468
+ */
469
+ --accent-base: var(--blue-500);
470
+ --accent: var(--accent-base);
471
+ --accent-hover: var(--blue-600);
472
+ --accent-ink: var(--blue-600);
473
+ --accent-subtle: #e8f0fe;
474
+ --on-accent: var(--gray-0);
475
+
476
+ /*
477
+ * The far end of a gradient.
478
+ *
479
+ * A gradient needs two colours and `--accent` is one. Deriving the second from the first
480
+ * would give a same-hue ramp — blue 500 to blue 600 — which reads as a rendering artefact
481
+ * rather than as a decision. So each brand names its own second colour, the way it names
482
+ * `--accent-hover`. Nothing but a gradient reads this: a component that wants the brand
483
+ * wants `--accent`.
484
+ *
485
+ * **`--on-accent`가 이 끝에서도 읽혀야 합니다.** 채운 판은 한 색이 아니라 그러데이션이고,
486
+ * 글자는 판 어디에나 놓입니다. `--on-accent`는 `--accent`에 대해서만 검사되고 있었고,
487
+ * 먼 끝은 아무도 재지 않았습니다. 처음 값 `#22b8cf`는 흰 글자에 대해 **2.4:1**이었습니다.
488
+ */
489
+ --accent-far: #0b7285;
490
+ --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-far));
491
+
492
+ /*
493
+ * 코드에 입히는 색.
494
+ *
495
+ * 역할마다 이름을 가집니다 — 주석, 문자열, 예약어, 태그, 속성, 값, 숫자. 「보라」가 아니라
496
+ * 「예약어」인 이유는, 테마가 바뀌면 보라가 보라로 남을 이유가 없기 때문입니다.
497
+ *
498
+ * 일곱 색 전부 코드 바닥(`--surface-sunken`) 위에서 4.5:1을 넘어야 합니다. 색이 예뻐 보이려고
499
+ * 흐려지는 것이 문법 강조에서 가장 흔한 일이고, 그러면 주석은 아예 못 읽게 됩니다.
500
+ * `tests/component-contract.spec.ts`가 두 테마 전부를 잽니다.
501
+ */
502
+ --code-comment: #5c6370;
503
+ --code-string: #1a7548;
504
+ --code-keyword: #7128d4;
505
+ --code-tag: #1d4ed8;
506
+ --code-attr: #0e7490;
507
+ --code-prop: #9a3412;
508
+ --code-number: #9a3412;
509
+
510
+ /* Status. These are never attention-driven: a failed job is red because it failed. */
511
+ --success: var(--green-500);
512
+ --success-ink: var(--green-600);
513
+ --success-subtle: #e3f5ed;
514
+ --on-success: var(--gray-0);
515
+ /*
516
+ * Amber, and the one fill in this scale that was carrying dark ink.
517
+ *
518
+ * The first version used `--amber-500` with `--gray-950` on it, and wrote down why: white
519
+ * on an amber that is still amber measures 3.87:1, and reaching 4.5:1 with white means
520
+ * darkening the fill until it is brown. That reasoning was sound and its premise was
521
+ * wrong — a reader looked at the solid row and called the current fill brown already. It
522
+ * had been darkened most of the way there without being darkened enough to earn white.
523
+ *
524
+ * So it goes the rest of the way, and every number improves:
525
+ *
526
+ * ink on white on sunken
527
+ * was 500 4.88 3.87 3.65
528
+ * now 600 5.78 5.78 5.44
529
+ *
530
+ * And the solid row stops having four tones with white labels and one with a black one.
531
+ * The dark theme keeps dark ink on a bright amber — there the fill is the light thing and
532
+ * inverting is right, which is the whole reason each fill names its own partner.
533
+ */
534
+ --warning: var(--amber-600);
535
+ --warning-ink: var(--amber-600);
536
+ --warning-subtle: #fdf1dc;
537
+ --on-warning: var(--gray-0);
538
+ --danger: var(--red-500);
539
+ --danger-ink: var(--red-600);
540
+ --danger-subtle: #fdeceb;
541
+ --on-danger: var(--gray-0);
542
+
543
+ /*
544
+ * Categorical colour — the one scale in this file that means nothing.
545
+ *
546
+ * Every colour above is a role: red is danger, green is success, and a component that
547
+ * borrows one to tell two things apart has said something it did not mean. What was
548
+ * missing was a set whose only property is being different from each other — a chart's
549
+ * series, a person's avatar, a label with no status.
550
+ *
551
+ * The seven are the chromatic half of the Okabe–Ito palette (Okabe & Ito 2008), which is
552
+ * the published set for colour-vision deficiency. Adopting it rather than deriving one is
553
+ * deliberate: a set that survives dichromacy is not something a lightness search finds,
554
+ * and a generator that produced eight pretty hues would have looked better and been worse.
555
+ * Its black is dropped — this file already has a neutral ramp.
556
+ *
557
+ * DARK is Okabe-Ito exactly. The palette was drawn for a light page and its colours turn
558
+ * out to be, without exception, light enough to stand on a near-black one.
559
+ *
560
+ * LIGHT moves three of them, and only their lightness: as published, `sky`, `orange` and
561
+ * `yellow` measure 1.1 to 2.4 against white, so as solid areas on this page they would be
562
+ * invisible. Hue and chroma are untouched — the calibration is the reason for using this
563
+ * source at all, and an earlier version that let the darkened colours take back the chroma
564
+ * they had room for turned Okabe-Ito's muted reddish purple into `#ff2fb9`.
565
+ *
566
+ * THE ORDER IS PART OF THE DESIGN. A consumer hands out 1, 2, 3 in sequence, so the set is
567
+ * laid out by walking it from `blue` and always taking whichever colour is farthest from
568
+ * the one just placed. The closest pair in the light theme is `orange` and `yellow` at
569
+ * 0.069 in OKLab — yellow has to darken by 0.238 to be seen on white, which lands it near
570
+ * the orange — and this ordering puts them three apart, so nothing under seven series ever
571
+ * shows them together. The closest neighbours are 0.197 (light) and 0.242 (dark).
572
+ *
573
+ * Each names its own ink, for the reason `--on-accent` exists. Requiring one ink for all
574
+ * seven was tried and it is what flattens the palette: white on every light fill drags
575
+ * yellow down by a third of the lightness range and collapses `sky` into `blue`.
576
+ */
577
+ --category-1: #0072b2; --on-category-1: var(--gray-0); /* blue */
578
+ --category-2: #d55e00; --on-category-2: var(--gray-950); /* vermillion */
579
+ --category-3: #3d9dd1; --on-category-3: var(--gray-950); /* sky */
580
+ --category-4: #c68800; --on-category-4: var(--gray-950); /* orange */
581
+ --category-5: #009e73; --on-category-5: var(--gray-950); /* bluish green */
582
+ --category-6: #cc79a7; --on-category-6: var(--gray-950); /* reddish purple */
583
+ --category-7: #a19700; --on-category-7: var(--gray-950); /* yellow */
584
+
585
+
586
+ /*
587
+ * Elevation. 한 단계가 두 겹입니다.
588
+ *
589
+ * 그림자 하나는 두 가지 일을 한꺼번에 못 합니다. 물체가 바닥에 닿는 자리를 말하는 것과,
590
+ * 물체가 얼마나 떠 있는지를 말하는 것입니다. 한 겹으로 하면 둘 중 하나만 됩니다 — 우리
591
+ * 것은 앞쪽이었고, 그래서 가장자리는 뚜렷한데 아래로 퍼지지 않았습니다.
592
+ *
593
+ * **가까운 겹**은 닿는 자리입니다. 오프셋과 번짐이 먼 겹의 1/4이고, 짙기는 단계가 올라가도
594
+ * 거의 그대로입니다 — 물체가 높이 뜰수록 닿는 자리는 오히려 덜 중요해집니다.
595
+ * **먼 겹**은 떠 있는 정도입니다. 단계마다 오프셋·번짐·짙기가 함께 커집니다.
596
+ *
597
+ * 색이 토큰 안에 있는 이유는 짙기를 고정한 그림자가 밝은 바닥과 어두운 바닥 중 한쪽에서
598
+ * 사라지기 때문입니다.
599
+ */
600
+ --shadow-color: 220 12% 8%;
601
+ --elevation-0: none;
602
+ --elevation-1:
603
+ 0 1px 1px hsl(var(--shadow-color) / 0.06),
604
+ 0 1px 2px hsl(var(--shadow-color) / 0.08);
605
+ --elevation-2:
606
+ 0 1px 2px hsl(var(--shadow-color) / 0.06),
607
+ 0 2px 8px hsl(var(--shadow-color) / 0.10);
608
+ --elevation-3:
609
+ 0 2px 5px hsl(var(--shadow-color) / 0.06),
610
+ 0 8px 20px hsl(var(--shadow-color) / 0.12);
611
+ --elevation-4:
612
+ 0 4px 10px hsl(var(--shadow-color) / 0.07),
613
+ 0 16px 40px hsl(var(--shadow-color) / 0.16);
614
+
615
+ /* The focus ring is one token so it cannot drift between components, and it is a
616
+ * two-tone ring so it survives being drawn on either the accent or the surface. */
617
+ --focus-ring: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
618
+
619
+ /*
620
+ * Press — a veil, not a colour.
621
+ *
622
+ * A pressed control has to look pressed over five variants and five tones, and a token per
623
+ * pairing is twenty-five colours to keep in step. This is one translucent layer that
624
+ * composites over whatever the control's own fill resolved to, so nothing downstream has to
625
+ * know which fill that was. `linear-gradient(veil, veil)` as a `background-image` is how a
626
+ * component applies it: over the `background-color` it already has, with no second value to
627
+ * agree with.
628
+ *
629
+ * Not a size. A control that shrinks under the finger moves the box the browser hit-tests,
630
+ * out from under a decision the reader already made — `tests/motion-contract.spec.ts`
631
+ * refuses it, and rule 11 is the reason.
632
+ */
633
+ --press-veil: hsl(var(--shadow-color) / 0.14);
634
+ }
635
+
636
+ /*
637
+ * Variations. Nothing below touches a component and no component knows these blocks exist —
638
+ * that is what makes them variations rather than forks.
639
+ *
640
+ * There are five and they are not interchangeable, because they do not vary the same thing:
641
+ *
642
+ * THEME `[data-theme]` changes every role and not one primitive. The vocabulary is
643
+ * remapped; the scale is untouched.
644
+ * BRAND `[data-brand]` changes the accent roles and not one primitive. A theme that
645
+ * only has an opinion about one energy.
646
+ * RADIUS `[data-radius]` changes four corner steps and not one role, and not the pill
647
+ * or the circle — those are shapes, not sizes.
648
+ * DENSITY `[data-density]` changes the space scale and not one role. The measure moves;
649
+ * the vocabulary is untouched.
650
+ * LOOK `[data-look]` changes how a surface says it is above the page — the elevation
651
+ * scale, and for `glass` the surfaces and the edge as well. Never
652
+ * the ink, never the accent, never a size.
653
+ *
654
+ * Density is the one that edits a primitive, and it has to: spacing has no semantic level to
655
+ * override. Every component reads `--space-*` directly — 622 times across the four layers —
656
+ * and inventing `--pad-control` and `--gap-inline` to sit in front of them would mean
657
+ * rewriting all 622 call sites to arrive at the same pixels. The scale *is* what density
658
+ * varies, so it varies the scale, and the rule it must obey instead is the mirror of the
659
+ * theme's: no role moves.
660
+ *
661
+ * `tests/foundation.spec.ts` holds all three to their halves.
662
+ *
663
+ * `dark` is first because it is the one that proves the split.
664
+ */
665
+ [data-theme="dark"] {
666
+ /*
667
+ * `color-scheme` is how the parts the browser draws itself find out which way this theme
668
+ * goes: the caret, the autofill background, the native date picker, Safari's scrollbar.
669
+ * None of them read a custom property, so without this they stay light on a near-black
670
+ * page. It sits on the theme and not on `:root`, which means loading the stylesheet changes
671
+ * nothing until an adopter writes the attribute, and a themed panel carries its own — the
672
+ * property inherits.
673
+ */
674
+ color-scheme: dark;
675
+
676
+ --surface-sunken: var(--gray-950);
677
+ --surface: var(--gray-900);
678
+ --surface-raised: var(--gray-800);
679
+ /* Rebind aliases here too: inherited custom properties were resolved in the parent. */
680
+ --material: var(--surface-raised);
681
+ --material-control: var(--surface);
682
+
683
+ --text: var(--gray-50);
684
+ --text-muted: var(--gray-300);
685
+ --text-subtle: var(--gray-400);
686
+ --text-on-fill: var(--gray-950);
687
+
688
+ --border: var(--gray-700);
689
+ --border-strong: var(--gray-600);
690
+
691
+ /*
692
+ * On a dark ground the fill and the ink converge: a colour light enough to read against
693
+ * near-black is already light enough to be a fill on it. They stay two tokens so a theme
694
+ * can separate them again without every component learning a new name.
695
+ */
696
+ --accent-base: #6fa0ff;
697
+ --accent: var(--accent-base);
698
+ --accent-hover: #8fb6ff;
699
+ --accent-ink: #6fa0ff;
700
+ --accent-subtle: #16233d;
701
+ /* 어두운 바탕에서는 두 끝이 다 밝아야 그러데이션이 보입니다. */
702
+ --accent-far: #66d9e8;
703
+ --on-accent: var(--gray-950);
704
+
705
+ --success: #4ec99a;
706
+ --code-comment: #8b93a5;
707
+ --code-string: #7ee2b8;
708
+ --code-keyword: #d0a8ff;
709
+ --code-tag: #8ab4ff;
710
+ --code-attr: #6fd8e8;
711
+ --code-prop: #ffb38a;
712
+ --code-number: #ffb38a;
713
+
714
+ --success-ink: #4ec99a;
715
+ --success-subtle: #10281f;
716
+ --on-success: var(--gray-950);
717
+ --warning: #e0a13a;
718
+ --warning-ink: #e0a13a;
719
+ --warning-subtle: #2b2110;
720
+ --on-warning: var(--gray-950);
721
+ --danger: #f0736a;
722
+ --danger-ink: #f0736a;
723
+ --danger-subtle: #2e1615;
724
+ --on-danger: var(--gray-950);
725
+
726
+ /* Okabe-Ito as published; see the note in `:root`. */
727
+ --category-1: #0072b2; --on-category-1: var(--gray-0);
728
+ --category-2: #d55e00; --on-category-2: var(--gray-950);
729
+ --category-3: #56b4e9; --on-category-3: var(--gray-950);
730
+ --category-4: #e69f00; --on-category-4: var(--gray-950);
731
+ --category-5: #009e73; --on-category-5: var(--gray-950);
732
+ --category-6: #cc79a7; --on-category-6: var(--gray-950);
733
+ --category-7: #f0e442; --on-category-7: var(--gray-950);
734
+
735
+
736
+ /* A shadow on a dark ground has to be darker and larger, not fainter, or it vanishes. */
737
+ --shadow-color: 220 40% 2%;
738
+ --elevation-1:
739
+ 0 1px 1px hsl(var(--shadow-color) / 0.30),
740
+ 0 1px 2px hsl(var(--shadow-color) / 0.40);
741
+ --elevation-2:
742
+ 0 1px 2px hsl(var(--shadow-color) / 0.30),
743
+ 0 2px 8px hsl(var(--shadow-color) / 0.48);
744
+ --elevation-3:
745
+ 0 2px 5px hsl(var(--shadow-color) / 0.32),
746
+ 0 8px 20px hsl(var(--shadow-color) / 0.56);
747
+ --elevation-4:
748
+ 0 4px 10px hsl(var(--shadow-color) / 0.34),
749
+ 0 16px 40px hsl(var(--shadow-color) / 0.64);
750
+
751
+ /* The press veil inverts rather than deepening. `--shadow-color` here is near-black, and a
752
+ * near-black veil over a dark control is a press nobody can see. Pressing makes it lighter,
753
+ * which is the same statement in the other direction. */
754
+ --press-veil: hsl(0 0% 100% / 0.10);
755
+ }
756
+
757
+ /*
758
+ * The light theme, written out.
759
+ *
760
+ * `:root` already carries these values and until now that was the whole light theme. It works
761
+ * for a light page and fails the moment a light panel sits inside a dark one: a custom
762
+ * property inherits, so `[data-theme="light"]` with nothing of its own inherits the dark
763
+ * values, and there is no value that means "go back to what `:root` said". The brand maker
764
+ * renders its two previews side by side and on a dark page the light half was dark, with
765
+ * white text on a white `--accent-subtle`.
766
+ *
767
+ * So the roles are stated twice: once as the page default on `:root`, once as a theme that
768
+ * can be turned on anywhere. `tests/foundation.spec.ts` holds the two copies to one value.
769
+ *
770
+ * Roles only. The primitive scale stays on `:root` and a theme never repeats it — rule 9.
771
+ */
772
+ [data-theme="light"] {
773
+ color-scheme: light;
774
+
775
+ --surface-sunken: var(--gray-50);
776
+ --surface: var(--gray-0);
777
+ --surface-raised: var(--gray-0);
778
+ --material: var(--surface-raised);
779
+ --material-control: var(--surface);
780
+ --text: var(--gray-900);
781
+ --text-muted: var(--gray-600);
782
+ --text-subtle: var(--gray-500);
783
+ --text-on-fill: var(--gray-0);
784
+ --border: var(--gray-200);
785
+ --border-strong: var(--gray-300);
786
+ --accent-base: var(--blue-500);
787
+ --accent: var(--accent-base);
788
+ --accent-hover: var(--blue-600);
789
+ --accent-ink: var(--blue-600);
790
+ --accent-subtle: #e8f0fe;
791
+ --accent-far: #0b7285;
792
+ --on-accent: var(--gray-0);
793
+ --success: var(--green-500);
794
+ --code-comment: #5c6370;
795
+ --code-string: #1a7548;
796
+ --code-keyword: #7128d4;
797
+ --code-tag: #1d4ed8;
798
+ --code-attr: #0e7490;
799
+ --code-prop: #9a3412;
800
+ --code-number: #9a3412;
801
+ --success-ink: var(--green-600);
802
+ --success-subtle: #e3f5ed;
803
+ --on-success: var(--gray-0);
804
+ --warning: var(--amber-600);
805
+ --warning-ink: var(--amber-600);
806
+ --warning-subtle: #fdf1dc;
807
+ --on-warning: var(--gray-0);
808
+ --danger: var(--red-500);
809
+ --danger-ink: var(--red-600);
810
+ --danger-subtle: #fdeceb;
811
+ --on-danger: var(--gray-0);
812
+ --category-1: #0072b2;
813
+ --on-category-1: var(--gray-0);
814
+ --category-2: #d55e00;
815
+ --on-category-2: var(--gray-950);
816
+ --category-3: #3d9dd1;
817
+ --on-category-3: var(--gray-950);
818
+ --category-4: #c68800;
819
+ --on-category-4: var(--gray-950);
820
+ --category-5: #009e73;
821
+ --on-category-5: var(--gray-950);
822
+ --category-6: #cc79a7;
823
+ --on-category-6: var(--gray-950);
824
+ --category-7: #a19700;
825
+ --on-category-7: var(--gray-950);
826
+ --shadow-color: 220 12% 8%;
827
+ --elevation-1: 0 1px 1px hsl(var(--shadow-color) / 0.06),
828
+ 0 1px 2px hsl(var(--shadow-color) / 0.08);
829
+ --elevation-2: 0 1px 2px hsl(var(--shadow-color) / 0.06),
830
+ 0 2px 8px hsl(var(--shadow-color) / 0.10);
831
+ --elevation-3: 0 2px 5px hsl(var(--shadow-color) / 0.06),
832
+ 0 8px 20px hsl(var(--shadow-color) / 0.12);
833
+ --elevation-4: 0 4px 10px hsl(var(--shadow-color) / 0.07),
834
+ 0 16px 40px hsl(var(--shadow-color) / 0.16);
835
+ --press-veil: hsl(var(--shadow-color) / 0.14);
836
+ }
837
+
838
+
839
+ /*
840
+ * RADIUS — the four corner steps, and nothing else.
841
+ *
842
+ * Derived, like density: sharp halves the default and round doubles it. Four numbers each,
843
+ * no rounding rule needed, and a fifth radius would be a rule rather than a taste.
844
+ *
845
+ * WHAT IT DOES NOT TOUCH, and this is the whole reason the axis is safe:
846
+ *
847
+ * --radius-none zero is zero at every setting.
848
+ * --radius-full a pill. Not a size — a statement that the radius has passed half the
849
+ * box. Halving it would make a switch's track a rounded rectangle and
850
+ * doubling it would change nothing, because it is already past the limit.
851
+ * --radius-circle a shape. An avatar at `sharp` is still round or it is not an avatar.
852
+ *
853
+ * The reference implementation this idea came from (Mantine) has `theme.defaultRadius`, which
854
+ * changes what a component picks when nobody said — one value, and only for components that
855
+ * left the choice open. This is the scale itself moving, so a card that asked for `lg` and a
856
+ * chip that asked for `sm` both follow and keep their relationship to each other.
857
+ */
858
+ [data-radius="sharp"] {
859
+ --radius-sm: 2px;
860
+ --radius-md: 4px;
861
+ --radius-lg: 6px;
862
+ --radius-xl: 8px;
863
+ }
864
+
865
+ [data-radius="round"] {
866
+ --radius-sm: 8px;
867
+ --radius-md: 16px;
868
+ --radius-lg: 24px;
869
+ --radius-xl: 32px;
870
+ }
871
+
872
+ /*
873
+ * DENSITY — the space scale, and nothing else.
874
+ *
875
+ * Derived rather than designed, so a fourth density is a rule and not a taste: compact is
876
+ * ×0.75 rounded down to the nearest 2px, spacious is ×1.25 rounded up to it. 4px is the
877
+ * floor — ×0.75 of the first step is 3px, and a 3px gap is not a smaller version of a 4px
878
+ * gap, it is a mistake that renders.
879
+ *
880
+ * 2px, not 4px, off the default. The default ramp holds `--space-N === N × 4px` exactly and
881
+ * a variation cannot: twelve strictly ascending multiples of four starting at four *are* the
882
+ * default ramp, so a compact scale on the 4px base is arithmetically the scale it is meant
883
+ * to compress. The half-step the base comment reserves for a dense control row is what
884
+ * compact spends.
885
+ *
886
+ * `--space-0` and `--space-px` are absent on purpose. Zero is zero at every density, and
887
+ * `--space-px` is the floor beneath the scale rather than a step on it — the 1x1 box that
888
+ * keeps visually-hidden text in the accessibility tree is not a spacing decision and does
889
+ * not get denser.
890
+ *
891
+ * Type does not move. Density is how much room a thing is given, not how large it is; a
892
+ * compact table has the same words in it.
893
+ */
894
+ [data-density="compact"] {
895
+ --space-1: 4px;
896
+ --space-2: 6px;
897
+ --space-3: 8px;
898
+ --space-4: 12px;
899
+ --space-5: 14px;
900
+ --space-6: 18px;
901
+ --space-8: 24px;
902
+ --space-10: 30px;
903
+ --space-12: 36px;
904
+ --space-16: 48px;
905
+ --space-20: 60px;
906
+ --space-24: 72px;
907
+ }
908
+
909
+ [data-density="spacious"] {
910
+ --space-1: 6px;
911
+ --space-2: 10px;
912
+ --space-3: 16px;
913
+ --space-4: 20px;
914
+ --space-5: 26px;
915
+ --space-6: 30px;
916
+ --space-8: 40px;
917
+ --space-10: 50px;
918
+ --space-12: 60px;
919
+ --space-16: 80px;
920
+ --space-20: 100px;
921
+ --space-24: 120px;
922
+ }
923
+
924
+ /*
925
+ * BRAND — the accent roles, and nothing else.
926
+ *
927
+ * Five tokens, and the fifth is the one that makes this a variation rather than a hue swap:
928
+ * `--on-accent` belongs to the fill, not to the theme. `lime` is here to prove it — white on
929
+ * that fill measures 3.01:1 and no lime that is still lime will carry white, so it names
930
+ * near-black as its partner while `violet` names white. A brand that could only be defined
931
+ * by changing `--accent` would be a brand that silently breaks the ink on top of it.
932
+ *
933
+ * The light lime was `#9aab00` until the generator in `brand.ts` measured it against the
934
+ * page rather than against its own label. It carried near-black at 7.38 and stood at 2.56
935
+ * on white — under the 3:1 that WCAG 1.4.11 asks of a control's own edge, which is to say a
936
+ * button nobody could find the boundary of. Reading the ink and not the ground is exactly
937
+ * the gap that generator was written to close, and it found it here first. `#8e9d00` is the
938
+ * lightest lime that clears both: 6.28 on its ink, 3.01 on the page.
939
+ *
940
+ * Each brand is written twice because a theme has already spoken. `[data-theme="dark"]` and
941
+ * `[data-brand="violet"]` are both (0,1,0) and the later one in this file would simply win,
942
+ * so the dark half is `[data-theme="dark"][data-brand="violet"]` at (0,2,0) — the pair, not
943
+ * the brand, is what is being described.
944
+ *
945
+ * `--focus-ring` follows without being mentioned: it is built on `--accent`, which is the
946
+ * whole reason it is one token.
947
+ */
948
+ [data-brand="violet"] {
949
+ --accent: #6533cc;
950
+ --accent-far: #d6336c;
951
+ --accent-hover: #5326ad;
952
+ --accent-ink: #5326ad;
953
+ --accent-subtle: #f0eafc;
954
+ --on-accent: var(--gray-0);
955
+ }
956
+
957
+ [data-brand="lime"] {
958
+ --accent: #8e9d00;
959
+ --accent-far: #2f9e44;
960
+ --accent-hover: #829100;
961
+ --accent-ink: #525a00;
962
+ --accent-subtle: #f2f5d9;
963
+ --on-accent: var(--gray-950);
964
+ }
965
+
966
+ [data-theme="dark"][data-brand="violet"] {
967
+ --accent: #b39cff;
968
+ --accent-far: #faa2c1;
969
+ --accent-hover: #c0aeff;
970
+ --accent-ink: #b39cff;
971
+ --accent-subtle: #1e1836;
972
+ --on-accent: var(--gray-950);
973
+ }
974
+
975
+ [data-theme="dark"][data-brand="lime"] {
976
+ --accent: #c3d43a;
977
+ --accent-far: #69db7c;
978
+ --accent-hover: #cbdc4a;
979
+ --accent-ink: #c3d43a;
980
+ --accent-subtle: #232a0d;
981
+ --on-accent: var(--gray-950);
982
+ }
983
+
984
+ /*
985
+ * The look — how a surface says it is above the page.
986
+ *
987
+ * The default is flat, and flat is the absence of the attribute: a dark drop that darkens what
988
+ * is under the edge. `glow` keeps that drop and adds an emissive halo in the brand's own hue,
989
+ * which is why the halo is written as a `color-mix` on `--accent` rather than as a colour of
990
+ * its own — a glow that did not follow the brand would be a second accent, and the system has
991
+ * one on purpose.
992
+ *
993
+ * It varies the elevation scale and nothing else. No role moves, no size moves, and no
994
+ * component is touched: `box-shadow` already takes a list, so the halo is a second shadow in
995
+ * a token every raised surface was already reading.
996
+ *
997
+ * Written twice for the same reason the brands are. `[data-theme="dark"]` also defines
998
+ * `--elevation-*`, both selectors are (0,1,0), and this block is later in the file — so a
999
+ * single `[data-look="glow"]` would put the light theme's alphas on a near-black ground,
1000
+ * where a 0.08 drop of near-black is nothing at all. The dark half is the pair at (0,2,0).
1001
+ *
1002
+ * The alphas differ by more than the theme's do. A halo on white is a stain and has to be
1003
+ * kept faint; the same halo on near-black is the only thing carrying the edge, so it is
1004
+ * allowed to be seen.
1005
+ */
1006
+ [data-look="glow"] {
1007
+ --elevation-1:
1008
+ 0 1px 1px hsl(var(--shadow-color) / 0.06),
1009
+ 0 1px 2px hsl(var(--shadow-color) / 0.08),
1010
+ 0 0 6px color-mix(in srgb, var(--accent) 16%, transparent);
1011
+ --elevation-2:
1012
+ 0 1px 2px hsl(var(--shadow-color) / 0.06),
1013
+ 0 2px 8px hsl(var(--shadow-color) / 0.10),
1014
+ 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent);
1015
+ --elevation-3:
1016
+ 0 2px 5px hsl(var(--shadow-color) / 0.06),
1017
+ 0 8px 20px hsl(var(--shadow-color) / 0.12),
1018
+ 0 0 28px color-mix(in srgb, var(--accent) 28%, transparent);
1019
+ --elevation-4:
1020
+ 0 4px 10px hsl(var(--shadow-color) / 0.07),
1021
+ 0 16px 40px hsl(var(--shadow-color) / 0.16),
1022
+ 0 0 52px color-mix(in srgb, var(--accent) 34%, transparent);
1023
+ }
1024
+
1025
+ [data-theme="dark"][data-look="glow"] {
1026
+ --elevation-1:
1027
+ 0 1px 1px hsl(var(--shadow-color) / 0.30),
1028
+ 0 1px 2px hsl(var(--shadow-color) / 0.40),
1029
+ 0 0 8px color-mix(in srgb, var(--accent) 26%, transparent);
1030
+ --elevation-2:
1031
+ 0 1px 2px hsl(var(--shadow-color) / 0.30),
1032
+ 0 2px 8px hsl(var(--shadow-color) / 0.48),
1033
+ 0 0 18px color-mix(in srgb, var(--accent) 34%, transparent);
1034
+ --elevation-3:
1035
+ 0 2px 5px hsl(var(--shadow-color) / 0.32),
1036
+ 0 8px 20px hsl(var(--shadow-color) / 0.56),
1037
+ 0 0 34px color-mix(in srgb, var(--accent) 42%, transparent);
1038
+ --elevation-4:
1039
+ 0 4px 10px hsl(var(--shadow-color) / 0.34),
1040
+ 0 16px 40px hsl(var(--shadow-color) / 0.64),
1041
+ 0 0 60px color-mix(in srgb, var(--accent) 50%, transparent);
1042
+ }
1043
+
1044
+ /*
1045
+ * Glass — the other half of the look, and the half that only exists in one theme.
1046
+ *
1047
+ * There is no light block, and that absence is the decision rather than an omission.
1048
+ *
1049
+ * Two reasons, and the first was measured before it was noticed. A translucent surface has no
1050
+ * contrast of its own — the ink stands on the composite of the surface over what is behind it
1051
+ * — so the alpha is bounded rather than chosen. Measured with `src/foundation/brand.ts`'s
1052
+ * `contrast()`:
1053
+ *
1054
+ * on the dark page #0e1116 on the light page #f7f8fa
1055
+ * alpha composite text muted alpha composite text muted
1056
+ * 0.08 #212429 14.65 9.27 0.00 #f7f8fa 16.40 5.97
1057
+ * 0.28 #515457 7.17 4.54 0.50 #fbfcfd 16.97 6.18
1058
+ * 0.40 #6e7073 4.67 2.96
1059
+ *
1060
+ * The dark column has a ceiling and a cliff: secondary copy is gone past 0.28 and body copy
1061
+ * past 0.40. The light column has neither, because white glass on a near-white page barely
1062
+ * moves the composite at all — 16.40 to 16.97 across the whole range. A variation that cannot
1063
+ * change what it is looking at is not a variation, it is a switch that does nothing.
1064
+ *
1065
+ * The second reason is the one a reader would give: glass needs something behind it. A frosted
1066
+ * plate over a flat pale page is a pale plate, and next to the rest of a light interface it
1067
+ * reads as a mistake rather than as a material. On a dark ground the same plate is the only
1068
+ * thing carrying the edge, which is why every frosted panel this look is borrowed from is
1069
+ * dark — and why 4–10% white is the idiom, not 40%.
1070
+ *
1071
+ * So `glass` is offered only in the dark theme. Choosing it takes the page to that theme rather
1072
+ * than leaving a button that appears to do nothing. What ships is 8%, inside the 28% ceiling
1073
+ * with room for the backdrop correction.
1074
+ */
1075
+ [data-theme="dark"][data-look="liquid-glass"] {
1076
+ --material: color-mix(in srgb, var(--gray-0) var(--glass-material-opacity), transparent);
1077
+ --material-control: color-mix(in srgb, var(--gray-0) var(--glass-control-opacity), transparent);
1078
+ --border: color-mix(in srgb, var(--gray-0) var(--glass-border-opacity), transparent);
1079
+ --surface-backdrop:
1080
+ blur(var(--glass-backdrop-blur))
1081
+ saturate(var(--glass-saturation))
1082
+ brightness(var(--glass-brightness));
1083
+ --surface-lens:
1084
+ blur(var(--glass-lens-blur))
1085
+ saturate(var(--glass-saturation))
1086
+ brightness(var(--glass-brightness));
1087
+ --surface-bevel:
1088
+ inset 0 var(--border-thin) 0
1089
+ color-mix(in srgb, var(--gray-0) var(--glass-highlight-opacity), transparent),
1090
+ inset 0 calc(-1 * var(--border-thin)) 0
1091
+ color-mix(in srgb, var(--gray-950) var(--glass-shadow-opacity), transparent),
1092
+ inset 0 var(--space-2) var(--space-4) calc(-1 * var(--space-3))
1093
+ color-mix(in srgb, var(--gray-950) var(--glass-depth-opacity), transparent);
1094
+ }
1095
+
1096
+ /*
1097
+ * Reduced motion is a preference, not a variation, so it collapses the duration scale
1098
+ * rather than being one more theme. Every component reads the same tokens either way and
1099
+ * none of them needs to know.
1100
+ *
1101
+ * Not `0` — `0.01ms` — because a zero-length transition never fires `transitionend`, and a
1102
+ * component that waits for it waits forever.
1103
+ */
1104
+ @media (prefers-reduced-motion: reduce) {
1105
+ :root {
1106
+ --duration-fast: 0.01ms;
1107
+ --duration-base: 0.01ms;
1108
+ --duration-slow: 0.01ms;
1109
+ --duration-slower: 0.01ms;
1110
+ --duration-ambient: 0.01ms;
1111
+ /* A settle is a transition that runs once, so it collapses with the rest. `--drag-resist`
1112
+ * does not appear here: it scales a distance the finger is choosing in real time, and a
1113
+ * gesture that stops tracking the finger is a broken control rather than a calm one. */
1114
+ --duration-settle: 0.01ms;
1115
+ /* `--duration-loop` is deliberately absent. Components switch infinite animations off
1116
+ * in their own reduced-motion rule; collapsing a loop here would make it strobe. */
1117
+ }
1118
+ }