@antadesign/anta 0.3.18 → 0.3.20

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 (92) hide show
  1. package/README.md +38 -242
  2. package/dist/anta_helpers.d.ts +2 -2
  3. package/dist/components/Banner.d.ts +3 -3
  4. package/dist/components/Button.d.ts +1 -1
  5. package/dist/components/Calendar.d.ts +11 -12
  6. package/dist/components/Card.d.ts +1 -1
  7. package/dist/components/Card.js +1 -1
  8. package/dist/components/Checkbox.d.ts +8 -9
  9. package/dist/components/Dialog.d.ts +1 -1
  10. package/dist/components/Expander.d.ts +5 -6
  11. package/dist/components/Input.d.ts +6 -3
  12. package/dist/components/Input.js +3 -1
  13. package/dist/components/InputAutocomplete.d.ts +8 -8
  14. package/dist/components/InputDate.css +1 -0
  15. package/dist/components/InputDate.d.ts +1 -0
  16. package/dist/components/InputDate.js +5 -5
  17. package/dist/components/InputTime.d.ts +3 -3
  18. package/dist/components/InputTime.js +1 -1
  19. package/dist/components/Menu.d.ts +7 -3
  20. package/dist/components/Menu.js +3 -2
  21. package/dist/components/MenuItem.d.ts +1 -1
  22. package/dist/components/MenuItem.js +1 -1
  23. package/dist/components/Progress.d.ts +1 -1
  24. package/dist/components/RadioGroup.d.ts +12 -13
  25. package/dist/components/Select.d.ts +32 -38
  26. package/dist/components/Select.js +9 -13
  27. package/dist/components/SelectFaceted.d.ts +28 -33
  28. package/dist/components/SelectFaceted.js +29 -23
  29. package/dist/components/Slider.d.ts +5 -5
  30. package/dist/components/Switch.d.ts +4 -4
  31. package/dist/components/Tabs.d.ts +7 -7
  32. package/dist/components/Title.d.ts +1 -1
  33. package/dist/components/Toaster.d.ts +1 -1
  34. package/dist/components/Tooltip.d.ts +1 -1
  35. package/dist/components/select-parts.css +1 -0
  36. package/dist/elements/a-card.css +1 -1
  37. package/dist/elements/a-dialog.css +1 -1
  38. package/dist/elements/a-expander.css +1 -1
  39. package/dist/elements/a-expander.d.ts +1 -0
  40. package/dist/elements/a-expander.js +12 -2
  41. package/dist/elements/a-input.css +1 -1
  42. package/dist/elements/a-menu.js +12 -0
  43. package/dist/elements/a-progress.css +1 -1
  44. package/dist/elements/a-slider.css +1 -1
  45. package/dist/elements/a-tabs.css +1 -1
  46. package/dist/elements/a-tabs.d.ts +3 -0
  47. package/dist/elements/a-tabs.js +40 -1
  48. package/dist/elements/a-tooltip.css +1 -1
  49. package/dist/elements/a-tooltip.d.ts +1 -1
  50. package/dist/elements/a-tooltip.js +1 -1
  51. package/dist/elements/index.d.ts +1 -1
  52. package/dist/general_types.d.ts +24 -22
  53. package/dist/index.d.ts +3 -3
  54. package/dist/jsx-runtime.d.ts +9 -0
  55. package/docs/accessibility.md +34 -0
  56. package/docs/changelog.md +561 -0
  57. package/docs/colors.md +42 -0
  58. package/docs/comparison.md +28 -0
  59. package/docs/components/banner.md +267 -0
  60. package/docs/components/button.md +603 -0
  61. package/docs/components/card.md +321 -0
  62. package/docs/components/checkbox.md +296 -0
  63. package/docs/components/dialog.md +314 -0
  64. package/docs/components/expander.md +526 -0
  65. package/docs/components/icon.md +155 -0
  66. package/docs/components/input-autocomplete.md +100 -0
  67. package/docs/components/input-date.md +401 -0
  68. package/docs/components/input-time.md +174 -0
  69. package/docs/components/input.md +610 -0
  70. package/docs/components/loader.md +139 -0
  71. package/docs/components/menu.md +511 -0
  72. package/docs/components/progress.md +182 -0
  73. package/docs/components/radio.md +368 -0
  74. package/docs/components/select-faceted.md +451 -0
  75. package/docs/components/select.md +926 -0
  76. package/docs/components/slider.md +147 -0
  77. package/docs/components/switch.md +198 -0
  78. package/docs/components/tabs.md +471 -0
  79. package/docs/components/tag.md +185 -0
  80. package/docs/components/text.md +148 -0
  81. package/docs/components/title.md +146 -0
  82. package/docs/components/toaster.md +313 -0
  83. package/docs/components/tooltip.md +177 -0
  84. package/docs/credits.md +18 -0
  85. package/docs/index.md +52 -0
  86. package/docs/install-config.md +240 -0
  87. package/docs/normalization.md +102 -0
  88. package/docs/overview.md +10 -0
  89. package/docs/packages/stickers.md +187 -0
  90. package/docs/packages/table.md +153 -0
  91. package/docs/theming.md +13 -0
  92. package/package.json +10 -6
@@ -0,0 +1,561 @@
1
+ # Changelog
2
+
3
+ This page tracks changes that ship in `@antadesign/anta`. Documentation-only
4
+ changes are not listed.
5
+
6
+ ## 0.3.20 — August 4, 2026
7
+
8
+ ### Changed
9
+
10
+ - Package documentation and source comments use clearer, more concise language.
11
+
12
+ ### Fixed
13
+
14
+ - Expander titles can be selected without toggling the disclosure.
15
+
16
+ ## 0.3.19 — August 3, 2026
17
+
18
+ ### Added
19
+
20
+ - The package now ships version-specific Markdown documentation under `docs/`.
21
+ Its README directs coding agents to the installed documentation index.
22
+
23
+ ### Changed
24
+
25
+ - Native `data-anta` select popups now follow Menu styling for their surface,
26
+ option sizing, colors, and 1px item spacing when customizable selects are
27
+ supported.
28
+
29
+ ### Fixed
30
+
31
+ - Sliding Tab indicators no longer animate through stale geometry while their
32
+ strip is resized.
33
+ - Slider focus rings now surround only the range control, rather than the
34
+ complete Slider host.
35
+
36
+ ## 0.3.18 — August 1, 2026
37
+
38
+ ### Changed
39
+
40
+ - The Anta theme's `--focus-ring` now follows its brand text color.
41
+ - `reset.css` gives plain keyboard-focused HTML the 1px Anta focus ring.
42
+
43
+ ### Added
44
+
45
+ - `Loader` provides animated icon-sized feedback, determinate circular progress,
46
+ a `speed` prop, and the `loader` icon-shape alias for string-only icon props.
47
+ - `Progress` shows an indeterminate loading animation when `value` is omitted
48
+ or set to `false`.
49
+ - `Progress` supports `small`, `medium`, and `large` sizes.
50
+ - Native HTML `<progress>` elements opt into the Progress appearance with
51
+ `data-anta`.
52
+
53
+ ### Fixed
54
+
55
+ - Custom `Progress` tones now use the same track, fill, and edge progression as
56
+ named tones in light and dark themes.
57
+
58
+ ## 0.3.17 — July 31, 2026
59
+
60
+ ### Added
61
+
62
+ - `Slider`, a single-value form control with relative rail dragging, configurable
63
+ value placement, text markers, sizes, tones, shared corner radii, CSS parts for
64
+ thumb and track styling, and an opt-in `data-anta` treatment for native ranges.
65
+
66
+ ### Breaking
67
+
68
+ - Anta now requires Chrome or Edge 125, Safari 17.4, or Firefox 126 for
69
+ custom-element states and the `:state()` selector.
70
+
71
+ ### Changed
72
+
73
+ - `InputTime` segments now use native text inputs. They retain native caret,
74
+ selection, paste, and IME behavior while keeping Anta's locale-aware layout
75
+ and cross-segment navigation.
76
+ - No-icon `ButtonCopy` leaves its button unchanged and shows a cursor-near
77
+ success label. Set `copiedLabel` to change the label text.
78
+
79
+ ## 0.3.16 — July 29, 2026
80
+
81
+ ### Added
82
+
83
+ - `Switch`, a binary control with `tone`, `toneSelected`, `hint`, and `round`.
84
+ - The `dollar-sign` icon.
85
+ - Native HTML form controls opt into Anta chrome with `data-anta`, including
86
+ text-like and date/time inputs, file pickers, submit/reset buttons, checkboxes,
87
+ radios, details disclosures, and customizable selects.
88
+ - Native `data-anta` controls accept matching visual variants, including choice
89
+ control sizes and tones, field sizing and rounding, and Expander surfaces and
90
+ levels.
91
+
92
+ ### Changed
93
+
94
+ - In forced-colors mode, Anta controls and surfaces use system colors and
95
+ visible borders for their interactive, selected, and disabled states,
96
+ including icons, inputs, buttons, tags, choice controls, tabs, Expanders,
97
+ Cards, Dialogs, Banners, Progress, and Tooltips.
98
+ - Switch tracks use a real 1.5px border instead of an inset shadow.
99
+
100
+ ### Fixed
101
+
102
+ - No-icon `ButtonCopy` feedback now keeps a wrapping label's width and line breaks.
103
+ - Native HTML radio labels use Anta's 8px control gap and vertically centered
104
+ alignment.
105
+ - `InputAutocomplete` now commits the highlighted suggestion when users press
106
+ Arrow keys then Enter.
107
+ - `a-input` forwards its native `input` event across the shadow boundary in
108
+ browsers that do not compose it automatically.
109
+ - Direct controls in an Expander's `actions` slot retain their Anta styling.
110
+ - A Banner's built-in dismiss button now follows the Banner's `round` setting.
111
+
112
+ ## 0.3.15 — July 28, 2026
113
+
114
+ ### Added
115
+
116
+ - `Toaster` and `Toast` for managed notifications. Add a `Toaster`, then use its
117
+ manager to add, update, dismiss, or clear toast content.
118
+
119
+ ### Changed
120
+
121
+ - Static trailing input adornments are inset. Trailing buttons remain flush with
122
+ the field edge.
123
+
124
+ ## 0.3.14 — July 28, 2026
125
+
126
+ ### Added
127
+
128
+ - `Select` supports verbose multi-value summaries and `renderSummary`.
129
+ - `Banner`, a dismissible status strip with optional actions and tones.
130
+ - `StateChangeEvent` from `@antadesign/anta/anta_helpers`.
131
+
132
+ ### Changed
133
+
134
+ - `Select` shows `All` when every enabled option is selected. `SelectFaceted`
135
+ summaries now truncate instead of widening their trigger.
136
+
137
+ ### Fixed
138
+
139
+ - Text inputs inside menu items accept spaces. Text facets preserve typed spaces.
140
+
141
+ ## 0.3.13 — July 25, 2026
142
+
143
+ ### Added
144
+
145
+ - Seed tokens for the neutral, brand, info, success, warning, and critical
146
+ color scales.
147
+ - `theme-anta.css`, an opt-in stylesheet that restores the former palette.
148
+ - Default styling for raw `dfn` elements.
149
+
150
+ ### Changed
151
+
152
+ - The default palette now derives from the six seed tokens. Import
153
+ `theme-anta.css` to keep the former palette.
154
+ - Tooltips wait 300ms by default and option tooltips follow the pointer.
155
+ - Expanders scroll wide body content instead of overflowing their container.
156
+
157
+ ### Breaking
158
+
159
+ - `Text` and `Title` no longer support `priority="quinary"`. Use
160
+ `quaternary` or style the raw element with `--text-5`.
161
+
162
+ ### Fixed
163
+
164
+ - Validation status takes precedence over an input's custom `tone`.
165
+ - Tabs no longer move the page when their selection changes.
166
+ - Tabs and radio groups initialise correctly after a client-side HTML swap.
167
+ - `Button` accepts `href={undefined}` without a type error.
168
+
169
+ ## 0.3.12 — July 23, 2026
170
+
171
+ ### Breaking
172
+
173
+ - Copy behavior moved from `Button` and `MenuItem` to `a-copy`. Replace
174
+ `<Button copy={value}>` with `<ButtonCopy copy={value}>`, or compose
175
+ `<a-copy>` inside a control.
176
+
177
+ ### Added
178
+
179
+ - `Select` and `SelectFaceted` accept string, number, and boolean option values.
180
+ - Menu placement and offset controls for `Menu`, `Select`, `SelectFaceted`, and
181
+ `InputDate`.
182
+ - The standalone `a-copy` element and `ButtonCopy.iconPlacement`.
183
+
184
+ ### Fixed
185
+
186
+ - Nested popups work inside menu flyouts. Tooltips outside an open menu stay
187
+ hidden.
188
+ - Expander titles preserve the typography of custom title nodes.
189
+
190
+ ## 0.3.11 — July 21, 2026
191
+
192
+ ### Breaking
193
+
194
+ - `copyLazy` is removed. Keep `copy` reactive and update it from
195
+ `onCopyRequest` before activation.
196
+ - Link-mode `Button` and `MenuItem` types reject copy props.
197
+
198
+ ### Added
199
+
200
+ - `copyUrl` and `copyWithUrl` for copy controls.
201
+ - `placement` and `offset` for `Select` and `SelectFaceted`.
202
+
203
+ ### Changed
204
+
205
+ - Keyboard activation occurs on key release, matching native buttons.
206
+
207
+ ### Fixed
208
+
209
+ - Context menus do not open through a modal or popover.
210
+ - Interactive controls inside an Expander title no longer toggle the Expander.
211
+
212
+ ## 0.3.10 — July 20, 2026
213
+
214
+ ### Added
215
+
216
+ - `ButtonCopy` and `MenuItemCopy` for copying strings or DOM content.
217
+
218
+ ### Changed
219
+
220
+ - `Title` no longer adds margins. Add spacing on its container or use a raw
221
+ heading for document prose.
222
+ - `Text` and `Title` use `--sans-serif` directly.
223
+
224
+ ## 0.3.9 — July 17, 2026
225
+
226
+ ### Added
227
+
228
+ - The `settings` icon.
229
+ - Link-mode `MenuItem` through `href`.
230
+ - Anta styling for native `<button data-anta>` elements.
231
+
232
+ ### Fixed
233
+
234
+ - Buttons keep their height in constrained flex layouts.
235
+
236
+ ## 0.3.8 — July 16, 2026
237
+
238
+ ### Added
239
+
240
+ - `Card`, a toned content surface with media, header, body, footer, and link
241
+ support.
242
+
243
+ ### Changed
244
+
245
+ - `Text` and `Title` accept custom CSS colors as `tone` values.
246
+
247
+ ### Fixed
248
+
249
+ - Stateful controls no longer close a controlled Dialog.
250
+ - `round={0}` applies square corners across components.
251
+ - Empty `tone` values on Text, Title, and Tag resolve to neutral styling.
252
+
253
+ ## 0.3.7 — July 15, 2026
254
+
255
+ ### Changed
256
+
257
+ - Read-only inputs show their focus ring only after keyboard focus.
258
+
259
+ ### Fixed
260
+
261
+ - Menus open from keyboard interactions without synthesizing a click.
262
+
263
+ ## 0.3.6 — July 13, 2026
264
+
265
+ ### Added
266
+
267
+ - `Dialog`, including modal, drawer, and fullscreen positions.
268
+ - `InputAutocomplete`, a free-text ARIA combobox with suggestions.
269
+ - Optional `role` overrides for Menu, MenuItem, and Input.
270
+
271
+ ### Changed
272
+
273
+ - Multiple Select and SelectFaceted controls show Select all by default. Pass
274
+ `selectAll={false}` to remove it.
275
+ - `SelectFaceted` supports `toneSelected` and Alt/Option-click to isolate a
276
+ multiple-choice facet.
277
+
278
+ ### Fixed
279
+
280
+ - Tooltips close when their content is removed.
281
+
282
+ ## 0.3.5 — July 13, 2026
283
+
284
+ ### Added
285
+
286
+ - `SelectFaceted`, a controlled or uncontrolled faceted filter.
287
+ - `InputTime`, a form-associated segmented time input.
288
+ - `Menu.autoWidth` and `TabOption.tooltip`.
289
+
290
+ ### Changed
291
+
292
+ - `InputDate` uses `InputTime` for time editing and follows controlled values in
293
+ its calendar view.
294
+ - Tabs share Button's size scale and use a lighter track treatment.
295
+
296
+ ### Fixed
297
+
298
+ - Closing a menu closes nested controlled menus.
299
+ - Typing a date previews its calendar date; Enter commits and closes it.
300
+
301
+ ## 0.3.4 — July 10, 2026
302
+
303
+ ### Added
304
+
305
+ - `optionsWithSelection` for projecting Select options onto a value set.
306
+ - `SelectOption.tooltip`, `TabOption.children`, and `Calendar.focusSignal`.
307
+
308
+ ### Breaking
309
+
310
+ - Tabs are options-only. Replace `<Tab>` children with `options` entries.
311
+ `TabPanel` children remain supported.
312
+
313
+ ### Changed
314
+
315
+ - Multiple Select supports Alt/Option-click to select only one option.
316
+ - InputDate opens from the field instead of a trailing button.
317
+
318
+ ### Fixed
319
+
320
+ - Input content and layout render before the custom element upgrades.
321
+ - Keyboard focus remains inside an open submenu.
322
+
323
+ ## 0.3.3 — July 8, 2026
324
+
325
+ ### Added
326
+
327
+ - `InputDate`, `Calendar`, and `Select`.
328
+ - Searchable Menu combobox behavior, selectable MenuItem rows, and Menu header
329
+ and footer slots.
330
+ - `round` across core components, `Tabs.options`, `toneSelected` for selection
331
+ controls, `Input type="search"`, and more icon shapes.
332
+
333
+ ### Breaking
334
+
335
+ - Tag text keeps its original case. Replace `nocaps` with `allcaps` where
336
+ uppercase styling is required.
337
+ - `toneText` is removed from Checkbox and RadioGroup. Style label text with CSS.
338
+ - Hand-authored anchor buttons need `data-anta` to receive Anta styling.
339
+
340
+ ### Changed
341
+
342
+ - Read-only inputs truncate long values and use a pointer cursor.
343
+ - Root menus are at least as wide as their trigger.
344
+
345
+ ### Fixed
346
+
347
+ - Menus, Select, and Inputs retain keyboard and focus behavior in iframes,
348
+ flyouts, and grouped rows.
349
+ - Empty tooltips do not open. Buttons keep their configured size with non-text
350
+ content.
351
+
352
+ ## 0.3.2 — July 2, 2026
353
+
354
+ ### Added
355
+
356
+ - `Tabs` and `Tooltip.truncatedOnly`.
357
+
358
+ ### Breaking
359
+
360
+ - Checkbox and RadioGroup no longer support `priority`.
361
+ - `onAnyChange` is renamed to `onValueChange` on Input, Checkbox, and
362
+ RadioGroup.
363
+
364
+ ### Changed
365
+
366
+ - Checkbox and RadioGroup `tone` styles their mark. `toneText` controls label
367
+ color.
368
+ - Components use tabular figures by default. Button exposes `role="button"`.
369
+
370
+ ### Fixed
371
+
372
+ - Empty tooltips do not show. Expander headers use the Anta focus ring.
373
+
374
+ ## 0.3.1 — June 26, 2026
375
+
376
+ ### Added
377
+
378
+ - `MenuItem.value` and the `share` icon.
379
+
380
+ ### Breaking
381
+
382
+ - Hover-opened submenus are now the default. Replace `hover` with `nohover` for
383
+ click-only submenus.
384
+
385
+ ### Fixed
386
+
387
+ - Menus stay open on activation and close only after their anchor leaves view.
388
+ - Touch interactions do not immediately close hover-enabled submenus.
389
+
390
+ ## 0.3.0 — June 25, 2026
391
+
392
+ ### Added
393
+
394
+ - `Checkbox` and `RadioGroup`, including form participation, controlled state,
395
+ labels, hints, tones, and sizes.
396
+ - `Text.collapsible`, named Progress tones, custom input tones, and new icons.
397
+
398
+ ### Changed
399
+
400
+ - Focus rings use the global `--focus-ring` token.
401
+ - Menu exposes `::part(menu)`. Progress exposes `::part(indicator)`.
402
+
403
+ ### Fixed
404
+
405
+ - Expanders render closed before upgrade. Loading buttons cannot activate.
406
+ - Form controls, menus, tooltips, and text handle their controlled and keyboard
407
+ edge cases consistently.
408
+
409
+ ## 0.2.3 — June 18, 2026
410
+
411
+ ### Added
412
+
413
+ - `Expander`, `Input`, and `Menu` with their associated item and grouping
414
+ primitives.
415
+ - Tag priorities, a shared `--focus-ring` token, and input status support.
416
+
417
+ ### Changed
418
+
419
+ - Button typography scales with `size`. Tag tones use translucent fills.
420
+
421
+ ## 0.2.2 — June 13, 2026
422
+
423
+ ### Breaking
424
+
425
+ - Rename `list-detail-view` to `list-collapse`.
426
+ - Tooltips are pinned by default. Remove `static`; pass `follow` to position a
427
+ tooltip next to the pointer.
428
+
429
+ ### Added
430
+
431
+ - `--tooltip-padding` and `Tooltip::part(bubble)`.
432
+
433
+ ### Changed
434
+
435
+ - Buttons, Text, and Title pin Anta's font features.
436
+
437
+ ## 0.2.1 — June 10, 2026
438
+
439
+ ### Changed
440
+
441
+ - Table borders use `--border-4`. Monospace text no longer inherits letter
442
+ spacing.
443
+
444
+ ### Packaging
445
+
446
+ - Published CSS is minified.
447
+
448
+ ## 0.2.0 — June 9, 2026
449
+
450
+ ### Added
451
+
452
+ - `Tag` and the `tag` icon.
453
+
454
+ ### Breaking
455
+
456
+ - Stickers moved to `@antadesign/stickers`. Install that package and update
457
+ imports from `@antadesign/anta/stickers`.
458
+ - Text defaults to `priority="secondary"`. Pass `priority="primary"` to keep
459
+ the former default.
460
+
461
+ ### Fixed
462
+
463
+ - Empty Button tone values render as neutral.
464
+
465
+ ## 0.1.1-dev.8 — June 5, 2026
466
+
467
+ ### Added
468
+
469
+ - `Tooltip` and granular per-element registration.
470
+
471
+ ### Fixed
472
+
473
+ - Anchor buttons keep button styling instead of inheriting link styling.
474
+ - Hover styling no longer persists after a touch interaction.
475
+
476
+ ## 0.1.1-dev.7 — June 3, 2026
477
+
478
+ ### Added
479
+
480
+ - `Button` and the `rotate-ccw` icon.
481
+
482
+ ### Breaking
483
+
484
+ - Background tokens use the numeric `--bg-1` through `--bg-5` scale. Rename
485
+ former background token references.
486
+ - `iconButton` is removed and `leadingIcon` is renamed to `icon`.
487
+
488
+ ### Changed
489
+
490
+ - Button sizes are 24px, 28px, and 32px. The dark palette was retuned.
491
+
492
+ ## 0.1.1-dev.6 — May 28, 2026
493
+
494
+ ### Added
495
+
496
+ - `Title`, a CSS-only heading component with levels, priorities, and tones.
497
+
498
+ ### Changed
499
+
500
+ - Raw `h1` through `h6` use the same type scale as Title.
501
+
502
+ ## 0.1.1-dev.5 — May 25, 2026
503
+
504
+ ### Breaking
505
+
506
+ - Button defaults to `tone="neutral"`. Pass `tone="brand"` to preserve the
507
+ former default.
508
+ - `tone="custom"` is removed. Pass a CSS color directly to `tone`.
509
+
510
+ ### Changed
511
+
512
+ - Button accepts custom CSS color tones and holds its width in flex layouts.
513
+
514
+ ## 0.1.1-dev.4 — May 6, 2026
515
+
516
+ ### Breaking
517
+
518
+ - `anta_global_tokens.css` is renamed to `tokens.css`.
519
+ - Import `reset.css` for Anta's reset and typography defaults.
520
+ - Anta's CSS now lives in `@layer anta`.
521
+
522
+ ### Added
523
+
524
+ - `table-2`, `sun`, `moon`, and `refresh-ccw-dot` icons.
525
+
526
+ ## 0.1.1-dev.3 — May 5, 2026
527
+
528
+ ### Breaking
529
+
530
+ - `--text-white` is removed. Use `white` or define a local token.
531
+
532
+ ### Changed
533
+
534
+ - Dark-mode success, warning, and critical text tokens were retuned.
535
+
536
+ ## 0.1.1-dev.2 — May 3, 2026
537
+
538
+ ### Added
539
+
540
+ - New icons, accessible Icon labels, and improved Progress announcements.
541
+
542
+ ## 0.1.1-dev.1 — May 3, 2026
543
+
544
+ ### Added
545
+
546
+ - Apply `.light` to a subtree to restore light tokens below a dark ancestor.
547
+
548
+ ## 0.1.0-dev.1 — May 2, 2026
549
+
550
+ ### Added
551
+
552
+ - `Text` and `Icon`, global link and list styles, and the initial icon set.
553
+
554
+ ### Notes for upgraders
555
+
556
+ - Anta now supplies default link, list, and menu styles. Override them with your
557
+ own CSS where needed.
558
+
559
+ ## 0.0.x — through April 2026
560
+
561
+ Initial package scaffolding, Progress, and the light/dark token system.
package/docs/colors.md ADDED
@@ -0,0 +1,42 @@
1
+ # Colors
2
+
3
+ Anta doesn't offer a global color palette — there are no raw scales like `blue-500` or `gray-900` to pick from. Color ships only as a small set of **role tokens**, grouped by where they apply — background, text, and border — each with a neutral set plus five tones (brand, info, success, critical, warning) that already pair light and dark. You compose from these roles instead of arbitrary swatches; anything app-specific lives in component tokens or your own [semantic aliases](#custom-semantic-tokens).
4
+
5
+ ## Custom semantic tokens
6
+
7
+ Because the numeric tokens are role-free, the convenient pattern is to alias them to **semantic tokens** that describe how *your* app uses each surface. Define the names once, then reference those instead of the raw numbers. For example:
8
+
9
+ ```css
10
+ :root {
11
+ --bg-canvas: var(--bg-1);
12
+ --bg-base: var(--bg-2);
13
+ --bg-pane: var(--bg-3);
14
+ --bg-block: var(--bg-4);
15
+ --bg-spot: var(--bg-5);
16
+
17
+ /* tinted variants work the same way */
18
+ --bg-spot-info: var(--bg-5-info);
19
+ }
20
+ ```
21
+
22
+ This keeps your components readable (`var(--bg-pane)` says more than `var(--bg-3)`) and lets you re-map a role to a different step later in one place.
23
+
24
+ A semantic token doesn’t have to point at the same numeric step in both themes. A card sitting on `bg-2` can use the recessed `bg-1` in light, but in dark it often reads better a little *lighter* than the page — so the same `--bg-my-card` maps to `bg-4` instead. The border follows suit: `border-5` in light, `border-4` in dark.
25
+
26
+ ```css
27
+ :root {
28
+ background: var(--bg-2); /* Anta's token */
29
+
30
+ --bg-my-card: var(--bg-1); /* Custom token */
31
+ --bg-my-card-border: var(--border-5); /* Custom token */
32
+ }
33
+ .dark {
34
+ --bg-my-card: var(--bg-4);
35
+ --bg-my-card-border: var(--border-4);
36
+ }
37
+
38
+ .card {
39
+ background: var(--bg-my-card);
40
+ border: 1px solid var(--bg-my-card-border);
41
+ }
42
+ ```
@@ -0,0 +1,28 @@
1
+ # Comparison
2
+
3
+ Compare four delivery models: styled React libraries, headless primitives,
4
+ copy-paste source, and framework-agnostic web components. Versions are a
5
+ snapshot from ; use each system's link for the current release.
6
+
7
+ Most systems are React-only and use CSS-in-JS, Sass, StyleX, or Tailwind.
8
+ Anta ships web components with plain CSS in one `@layer`, without a style
9
+ runtime. Consumer CSS overrides its defaults normally.
10
+
11
+ Fixed-package sizes are measured from the version named on each card. Each npm
12
+ artifact was downloaded, bundled as a full ESM import with esbuild, minified,
13
+ and gzipped. React and React DOM are external. When a library ships base CSS,
14
+ the total adds its separately gzipped CSS bundle. The line below each figure
15
+ states what it counts.
16
+
17
+ Tree-shaking, peer dependencies, icons, styles, and copied source still make
18
+ the numbers different shapes. Polaris is a dated CDN snapshot, not a
19
+ release-based package figure. Independently versioned packages and copied-source
20
+ systems need an explicit component boundary; each card names it. Every browser
21
+ version includes its release year. Rolling policies are pinned to the current
22
+ stable releases in this snapshot.
23
+
24
+ ## Component coverage
25
+
26
+ Rows group components by job, so Dialog, Modal, and Drawer share one mark.
27
+ Anta covers the common controls but remains narrower than full suites. Base UI
28
+ intentionally focuses on behavior rather than styled components.