Repository navigation
Commit 37eb4c1
feat(core): default palette reads the neutral scales, and add a --backdrop token (#593)
* feat(core): alias --destructive to the danger solid role
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* feat(core): Button destructive uses the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): text-destructive utilities use text-danger-text
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): invalid borders and focus rings use the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): destructive tints use bg-danger-surface
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): themes inherit --destructive from the danger roles
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* test(core): cover destructive aliases and Button danger utilities, update snapshots
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* docs: document --destructive as the danger solid alias
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* chore: add changeset for the destructive danger alias
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(core): default palette surfaces read the gray, white and alpha scales
* feat(core): add a --backdrop role for modal backdrops
* docs: document --backdrop and the default palette reading the neutral scales
* test(core): pin the default neutral token values and the --backdrop bridge
* docs: correct the token step list and computed-value notes for the neutral scales
* test(core): pin --foreground and --muted-foreground with the other neutral tokens
* docs(decisions): keep the update to what this change does
* docs(core): mark destructive tokens and utilities as deprecated
--destructive, --destructive-foreground and their utilities will be
removed in the next major (tailor-inc/platform-planning#2084), the same
as --status-* and --alert-*. Button variant="destructive" stays
undeprecated until a danger variant exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(core): list the destructive migration under 1.17.0 and fix the border replacement
The destructive change ships in the same release as the colour roles, so
the migration entry is 1.17.0. In the changeset, border-destructive maps
to border-danger-solid for invalid states; border-danger-border is 1.67:1
on the card and is for decorative borders only.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(core): move the destructive migration to 1.18.0 and use the danger role in the selection bar
1.17.0 shipped without this change, so the migration entry now lists it under 1.18.0.
The DataTable selection bar (added in 1.17.0) used `text-destructive` for destructive overflow actions. It now uses `text-danger-text`, the same as ActionPanel.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(core): list the tokens whose computed string changes, and name the version in the migration note
- The changeset said the border colours "now read" the gray scale. `--foreground`, `--muted-foreground`, `--border` and `--input` already did in 1.17.0, and the dark-mode lines keep the same `rgba(...)` string. It now lists the tokens whose `getPropertyValue()` string changes.
- The migration note now says "1.17.0 and earlier" instead of "releases before the default palette moved onto its colour scales".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Hiroki Uemura <hiroki_uemurapartners.tailor.tech@Hirokis-MacBook-Pro.local>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Seiya IZUMI <IzumiSy@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: IzumiSy <982850+IzumiSy@users.noreply.github.com>1 parent 06ee7c2 commit 37eb4c1
18 files changed
Lines changed: 176 additions & 52 deletions
File tree
- .changeset
- decisions
- docs-src
- concepts
- guides
- docs
- concepts
- packages/core
- __snapshots__
- src
- assets
- themes
- components
- csv-importer
- dialog
- sheet
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
1067 | 1067 | | |
1068 | 1068 | | |
1069 | 1069 | | |
1070 | | - | |
| 1070 | + | |
1071 | 1071 | | |
1072 | | - | |
| 1072 | + | |
1073 | 1073 | | |
1074 | 1074 | | |
1075 | 1075 | | |
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
1207 | | - | |
| 1207 | + | |
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
1325 | | - | |
| 1325 | + | |
1326 | 1326 | | |
1327 | | - | |
| 1327 | + | |
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
| 1697 | + | |
1698 | 1698 | | |
1699 | 1699 | | |
1700 | 1700 | | |
| |||
1775 | 1775 | | |
1776 | 1776 | | |
1777 | 1777 | | |
1778 | | - | |
| 1778 | + | |
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
148 | 153 | | |
149 | 154 | | |
150 | 155 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments