Repository navigation
feat(cli): experimental theme editor - a badges setting styles the status and category badges in the theme's colors - #13040
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
There was a problem hiding this comment.
Needs an engineering owner's decision, then fixes. This pull request adds a new decision (DEC-17) to the app-themes spec and builds the badges setting on it, so approval waits on an engineering owner approving, amending or rejecting DEC-17 by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. What must be settled: the three badge looks and whether the corners dial reaches badges below pill.
Fixes needed:
- Outlined badges inside a primary Button become unreadable, because the outline rule replaces the Button's own badge colors: the count badge reads 1.85:1 on the neutral theme's fill in light mode and 2.37:1 in dark (
packages/cli/api/theme-edit/_settings.mjs:4565-4578). badges solidleaves the info, success, warning and error badges as tints on the gothic, stone and y2k bases, although the help text and DEC-17 say solid keeps them filled (_settings.mjs:4553-4558).hownow drops the color or corners a badge question names: "blue filled badges" and "make the badges solid green" lose their color, and "soft corners on badges" writes nothing (_how-question.mjs:15593-15600).showlists badges as missed after a theme changes only--radius-chator--radius-container, and suggests a badge radius change nobody asked for (_missed.mjs:814-819).- The description's user impact says a theme with square corners still draws pill badges, but
corners squarealready squares badges on the base, so it should say a theme with corners between square and pill (corners 4px). - The
setcommand help and its API doc list every dial exceptbadges(clients/cli/commands/experimental-theme-editor-set.doc.mjs:15,api/theme-edit/themeEditSet.doc.mjs:16).
Each fix deserves a test: a badge in a primary Button, solid on another base, and the how and show cases above.
Claims and files checked
Review mode: full; reason: no-earlier-review
Claims:
- Changeset, a badges setting styles every badge together in the theme's status and category colors: holds for outline; false for solid on the gothic, stone and y2k bases (status badges stay tints).
- Changeset, how answers a badge style with the setting: verified (new test; outlined tags, soft badges).
- Changeset, the corners dial reaches badges at any corners but pill, as it reaches buttons: verified (new test; built theme CSS at 4px and pill).
- Description, badges keep the base look unless all 14 variants are written by hand: verified (no badge setting on the base; Core has 14 variants).
- Description, a theme with square corners still draws pill badges: false (the base squares badges at corners square).
- Description, the corners dial reaches pills only at square: verified (base code).
- Description, solid fills category badges with their hue and tint as text, soft tints status badges, outline draws every badge as a line in its text color: verified on the neutral base; solid fails on three bases (above).
- Description, how answers soft badges, outlined tags and badges filled with their color with the setting: verified.
- Description, a badge with its own corners keeps them and switch and progress tracks are unchanged: verified in code.
- Description, contrast figures on two published third-party themes: not verifiable here (those themes are not in the repository).
- Description, outline on the neutral theme reads at 4.5 to 10.7:1 in both modes: verified on page surfaces (4.53 to 10.72:1); false inside primary Buttons (1.85:1).
- Description, a theme without the setting draws Core's badges as before: verified for drawing; show output changes (above).
- Description, a regression test with six tests: verified (six pass).
- Description, prettier, eslint and the knowledge check on the changed files: prettier and the knowledge check pass; eslint reports one error on a line this change does not touch.
Files:
.changeset/editor-badges-dial.md: its every-badge claim fails for solid on three bases.docs/specs/AST-050-app-themes/spec.md: DEC-17 waits on an engineering owner.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: drops asked colors and corners.packages/cli/api/theme-edit/_missed.mjs: false badge steps.packages/cli/api/theme-edit/_settings.mjs: outline inside primary Buttons; solid skips status badges.packages/cli/api/theme-edit/_tables.mjs: help text says solid keeps status badges filled, which fails on three bases.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear; it covers only the neutral base.
8098c48 to
8d694e4
Compare
22b2c2d to
e1aeee3
Compare
There was a problem hiding this comment.
Needs an engineering owner's decision on DEC-17, then fixes. Approval waits on an engineering owner approving, amending or rejecting the new DEC-17 in the app-themes spec (the three badge looks, which token solid status text uses, and badge corners below pill) by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Fixes needed:
badges solidmakes the nine category badges unreadable on the gothic base and on butter and y2k in dark mode (1.2–1.99:1), because those bases' hue text colors are dark tag colors that the page color on top does not contrast with (packages/cli/api/theme-edit/_settings.mjs:4561-4565).- Miss:
badges outlinedraws the same hue text on the page on those three bases at 1.2–1.99:1, and neithersetnorshowreports a contrast problem for either style (_settings.mjs:4584). - Under
badges outline, status and category badges inside primary and destructive Buttons lose their contrast: the info badge in a primary Button falls from 4.57:1 to 3.14:1 and the error badge in a destructive Button to 1.17:1 in dark mode (_settings.mjs:4575-4584). - Miss: once
badgesis set, a fill set with--on badgereaches only the neutral and gray badges while the result says it covers the other variants, unlike the surfaces dial, which keeps a part's own fill (_settings.mjs:7568-7575).
Each fix deserves a test on another base, with a badge in a filled Button, and with a part fill beside the dial; separately, the set help's Dials: list still omits badges solid|soft|outline.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Release note, the setting styles the status and category badges together in the theme's own colors: verified for the variants it writes; their text fails to read on three bases (above).
- Release note,
howanswers a badge style with the setting: verified (seven style-only asks). - Release note, the corners dial gives badges the element corners at any corners but pill, as it gives buttons: verified (small, 4px, large, round and more write it; pill does not).
- Description, badges keep the base look unless each variant is written by hand: verified (no badge setting on the base).
- Description, a theme at 4px corners still draws pill badges, and the corners dial reaches pills only when square: verified (base writes the badge radius only at square).
- Description, solid fills status badges with their status color and on-color text and category badges with their hue's text color and page-color text: verified in the built CSS.
- Description, soft draws status badges as their muted tint with its text, and outline draws each badge as a line in its text color: verified.
- Description, the pairs read on every base: false (gothic, butter dark and y2k dark at 1.2–1.99:1).
- Description, the neutral badge keeps Core's look, which takes a button's colors inside a button: verified (unchanged CSS; 13.3:1 in a primary Button).
- Description,
howanswers a style said alone with the setting and a longer ask for what it says: verified (same answers as the base for color, corner and shadow asks). - Description,
set … badges tintedpoints tosoft: verified in the value check. - Description, a badge with corners of its own keeps them and switch and progress tracks are unchanged: verified in code.
- Description,
showlists a pill badge when the element corners change through a token and not for a container radius alone: verified. - Description,
badgesis listed among the dials in thesethelp and API doc: verified for the dial list; its values are missing from theDials:list. - Description, the owning lead approved the DEC-17 text: not shown on this pull request (no approval at this head).
- Description, measured contrast on themes made like chocolate and neutral: verified on page and surface (chocolate solid 4.61–13.81:1, soft 5.46–10.67:1, outline 5.65–13.81:1; neutral outline from 4.53:1); outline falls to 1.5:1 inside filled Buttons.
- Description, a theme with neither the setting nor the corners dial draws Core's badges as before: verified (byte-identical CSS on all seven bases).
- Description, a regression test with 8 tests: verified (8 pass).
- Description, prettier, eslint, the knowledge check and the editor suites: prettier and the knowledge check pass; eslint reports one error on a line this change does not touch; a 253-file subset of the editor tests that touch badges, pills or corners passes 4,415 of 4,416 tests, and its one failure (
theme-how-non-asks.test.mjs, "make the buttons blue, just do it") fails the same way on the base. - Description, no internal context in public text: verified.
Files:
.changeset/editor-badges-dial.md: clear.docs/specs/AST-050-app-themes/spec.md: DEC-17 waits on an engineering owner; its "text still reads" fails on three bases.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_settings.mjs: the solid and outline contrast findings and the covered part fill.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: passes; covers only the neutral and chocolate bases, with no Button or part-fill case.packages/cli/api/theme-edit/themeEditSet.doc.mjs: theDials:value list omitsbadges(non-blocking).packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: theDials:value list omitsbadges(non-blocking).
e1aeee3 to
dc2e0cd
Compare
8d694e4 to
517c2c6
Compare
dc2e0cd to
e25c879
Compare
3ae9844 to
7942b54
Compare
7942b54 to
190927a
Compare
There was a problem hiding this comment.
Needs an engineering owner's decision on DEC-17, then fixes. Approval waits on an engineering owner approving, amending or rejecting the new DEC-17 in the app-themes spec (the three badge looks, how each badge's colors are picked, the colors inside filled Buttons, the how reading, and badge corners below pill) by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner.
Fixes needed:
- Soft and outline badges are written as
var(--_button-on-fill, …)andvar(--_button-fill, …), Button's private variables, which the theme-compilation architecture keeps out of theme output, so these themes break silently if Core changes Button's internals (packages/cli/api/theme-edit/_settings.mjs:4616,:4619). - The badge contrast check picks each badge's colors again from the theme's own colors while the build picked them from the base's, so after
set <theme> --color-text-teal '#7fdde0'the solid teal badge reads at 1.4:1 and nothing reports it (_settings.mjs:7371and:13353). - A text color or border the theme sets on the badge itself still reaches only the neutral and gray badges once
badgesis set, whilesetreports it as styled; the fill is now kept, butcolorand the outline's border are not (_settings.mjs:7373-7377).
Each fix deserves a test: a theme that sets a hue token, and a theme that sets a badge color and border beside the setting. Separately, how reads "status" and "category" as filler, so "solid status badges" also restyles category badges (non-blocking).
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Release note, the setting styles the status and category badges together in the theme's own colors: verified in the built CSS on all seven bases.
- Release note,
howanswers a badge style with the setting: verified (soft badges, outlined tags and status badges, filled chips). - Release note, the corners dial gives badges the element corners at any corners but pill, as it gives buttons: verified (4px and large write it; pill does not).
- Description, badges keep the base look unless each variant is written by hand: verified (no badge setting on the base).
- Description, a theme at 4px corners still draws pill badges, and the corners dial reaches pills only when square: verified (base build of corners 4px; base code).
- Description, a whole-theme dial like
buttons: verified (--onis refused). - Description, solid fills status badges with their status color and on-color text and category badges with a strong hue color and page or primary text: verified in the built CSS.
- Description, soft draws status badges as their muted tint with its on-color text, and outline draws each badge as a line in its text color: verified.
- Description, each variant takes the first pair that reads at 4.5:1 in both modes on the base, so gothic gets readable badges: verified on the seven bases (4.53:1 or more on the page).
- Description,
setandshowname any badge variant that still does not read: false once the theme sets its own hue token (teal at 1.4:1, unreported). - Description, a badge without a solid fill takes a filled button's colors inside it: verified (5.29:1 or more), through Button's private variables (above).
- Description, the neutral badge keeps Core's look and a fill the theme sets on the badge stays: verified.
- Description, a style said alone gets the setting and a longer ask is answered for what it says: verified (color and corner asks keep their old answers).
- Description,
set … badges tintedpoints tosoft: verified in the value-word table. - Description, a badge with corners of its own keeps them, and switch and progress tracks are unchanged: verified in code.
- Description,
showlists a pill badge when the element corners change through a token, not for a container radius alone: verified. - Description,
badgesand its values are listed among the dials in thesethelp and API doc: verified. - Description, the owning lead approved DEC-17's text: not shown on this pull request (no approval at this head).
- Description, every badge reads at 4.5:1 or more on the page and inside primary and destructive buttons on themes made like each bundled base: verified for the page and for status badges in buttons; category badges in buttons keep Core's 1.06–1.68:1 under soft, as the stated known limit says.
- Description, a theme with neither setting draws Core's badges as before: verified (byte-identical CSS for two bases).
- Description, a regression test with 10 tests: verified (10 pass).
- Description, the knowledge check, eslint and prettier on the changed files: the knowledge check and eslint pass; prettier flags one line in
_how-question.mjsthat the base already has; the full editor and client suites were not rerun here. - Description, no internal context in public text: verified.
Files:
.changeset/editor-badges-dial.md: clear.docs/specs/AST-050-app-themes/spec.md: DEC-17 waits on an engineering owner.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: non-blocking note on "status" and "category".packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_settings.mjs: the three findings above.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: passes; no case for a theme hue token or a theme badge color or border.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
ed915a5 to
1744879
Compare
e25c879 to
6dff6b2
Compare
1744879 to
2f6d2c0
Compare
There was a problem hiding this comment.
Needs an engineering owner's decision on DEC-17, then fixes.
Approval waits on an engineering owner approving, amending or rejecting the new DEC-17 in the app-themes spec (the three badge looks, how each badge's colors are picked, the colors inside filled Buttons, the how reading and badge corners below pill) by commenting /approve-spec <full head SHA> on this pull request; the author may do so as an engineering owner. Independent of that decision, these need fixes:
- Soft and outline badges read Button's private
--_button-filland--_button-on-fill(packages/cli/api/theme-edit/_settings.mjs:4625,:4628), which the component theming surface says consumers must not rely on, so a Core change to Button would silently change these themes. - A text color or border the theme sets on the badge reaches only the neutral and gray badges once
badgesis set (_settings.mjs:7383-7386), andsetthen lists 13 contrast problems with fix lines for badges that already read, because the check measures that color as drawn (_settings.mjs:13404). - Miss: a badge fill set for one mode removes the setting's fill in both modes (
_settings.mjs:7370-7378), so in light mode the nine category badges draw page-colored text on their pale tints at 1.14–1.35:1 andsetreports nothing for light mode. - Miss: on themes made like butter or y2k,
badges solidfalls back to Core's own tint for the nine category badges (_settings.mjs:4559), so they do not change, while the changeset, thesethelp and DEC-17 say solid fills each with a strong color of its hue.
Non-blocking: how answers "solid status badges" with the whole setting (category badges change too) and "soft category badges" with badges soft (only status badges change).
Claims and files checked
Review mode: full; reason: rebase
- Claim:
badgesis a whole-theme dial with three values and refuses--on: verified (_check.mjs:6168-6178, test). - Claim: solid fills status badges with their status color and category badges with a strong hue color: false for category badges on butter and y2k, which keep Core's tint (
_settings.mjs:4559). - Claim: soft draws status badges as their muted tint with its on-color text: verified (built CSS).
- Claim: outline draws each badge as a line in its text color: false for category badges on butter, gothic and y2k, which get primary text and a hue border (
_settings.mjs:4565,:4635). - Claim: each variant takes the first pair that reads at 4.5:1 in both modes on the base, on the page and a surface: verified (
_settings.mjs:4596-4614). - Claim: a base with dark hue text (gothic) gets readable badges: verified with the editor's own check (test, all seven bases).
- Claim:
setandshowmeasure the drawn pair under any fill or color the theme sets on the badge: false for a badge text color and for a one-mode fill (scratch runs, browser probe). - Claim: a badge without a solid fill takes a filled Button's colors inside it, as Core's neutral badge does: verified; it relies on private Button variables.
- Claim: the neutral badge keeps Core's look and a fill set on the badge stays: verified (tests).
- Claim:
howanswers a style said alone with the dial, asks that say more keep their answers, andbadges tintedpoints to soft: verified (scratch run). - Claim: corners give badges the element corners at any value but pill, own badge corners stay, other pills are unchanged, and
showlists a pill badge on a token change but not a container radius: verified (tests, base and head CSS). - Claim:
badgesis listed in thesethelp and API doc: verified. - Claim: a theme without these settings draws Core's badges as before: verified (byte-identical CSS on neutral and gothic themes).
- Claim: 11 regression tests: verified (they pass).
- Claim: badge contrast measured in a browser on all seven bases: partly checked (the editor's check on all seven, a browser on neutral).
- Claim: the owning lead approved DEC-17's text: not shown on this pull request.
- Changeset: the setting styles the status and category badges together: false for soft (status badges only) and for solid category badges on butter and y2k.
- File
.changeset/editor-badges-dial.md: overclaims (solid fallback, soft scope). - File
docs/specs/AST-050-app-themes/spec.md: DEC-17 awaits an owner decision. - File
packages/cli/api/theme-edit/_check.mjs: clear. - File
packages/cli/api/theme-edit/_how-question.mjs: non-blocking scope note. - File
packages/cli/api/theme-edit/_missed.mjs: clear. - File
packages/cli/api/theme-edit/_settings.mjs: the four findings above. - File
packages/cli/api/theme-edit/_tables.mjs: help overclaims solid (solid fallback). - File
packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear; no test covers a badge text color, a one-mode fill, or the butter and y2k bases. - File
packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear. - File
packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
9e4c895 to
8275e4a
Compare
|
/approve-spec 1cb66e8 |
There was a problem hiding this comment.
Changes requested: one contrast fix left for badges inside secondary Buttons.
The badges setting and the badge corners are covered by an engineering owner's approval of spec:AST-050 DEC-17 at this head, and the badge tests, the related theme-editor tests, lint and the knowledge check pass. One defect remains:
- Miss: a status badge without a solid fill inside a secondary Button (Button's default variant) reads below 4.5:1 on a theme made like neutral, at 3.97:1 to 4.25:1 under
badges outlinein light and 4.07:1 for success underbadges softin dark, and neithersetnorshownames it, because the pick and the check measure only the page and the surface (_settings.mjslines 4692 and 13604-13607); counting the secondary Button's fill among those grounds, or giving these badges a pair inside a secondary Button asBADGE_IN_BUTTONdoes for primary and destructive, with a test for outline and soft status badges in a secondary Button'sendContent, fixes it.
Claims and files checked
Review mode: full; reason: merge-touches-pr-files
Claims:
- Verified:
solidandoutlinerestyle the status and category badges, andsoftonly the status badges (the candidate tables; tests). - Verified: a variant whose own colors miss 4.5:1 on the base falls back to a readable pair, and the
setresult names it (the fallback note; test on a gothic-made theme). - Verified: properties the theme sets on the badge itself stay, per mode (tests for a fill, text, border and one-mode settings).
- Verified:
howanswers a style-only badge ask with the setting and leaves longer asks to the other readers (tests). - Verified: the corners dial gives badges the element corners below
pill, and a base that rounds its own badges keeps them except atsquare(compile branch; tests; browser 9999px to 4px atcorners 4px). - Verified: soft status badges and every outline badge take a primary or destructive Button's public colors inside it, never Button's own variables (test; browser 5.29:1 or more).
- Verified: before this change a
corners 4pxtheme drew pill badges (base compile and base frame). - Verified: each variant takes the first pair that reads at 4.5:1 on the base's page and surface.
- False:
setandshowname any badge variant that still does not read; badges inside a secondary Button at 3.97:1 to 4.25:1 (outline) and 4.07:1 (soft) go unnamed. - Verified:
badges tintedis refused withsoftsuggested. - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesis listed among the dials in thesethelp and the API doc. - Verified: a theme with neither setting draws Core's badges as before (identical base and head frames).
- Verified: the 27 regression tests pass.
- Not checked here: the measurements on the other six bases and the known limit on chocolate and matcha (only a neutral-made theme was measured).
Files:
packages/cli/api/theme-edit/_settings.mjs: the blocking finding above.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear (the secondary-Button case belongs here with the fix).docs/specs/AST-050-app-themes/spec.md: clear..changeset/editor-badges-dial.md: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
|
Covers |
|
/approve-spec aac50d3 |
There was a problem hiding this comment.
Changes requested: one contrast fix left for badges inside secondary Buttons.
The badges setting and the badge corners are covered by an engineering owner's approval of spec:AST-050 DEC-17 at this head, and the badge tests, the related theme-editor tests, lint and the knowledge check pass. One defect remains:
- Miss: a status badge without a solid fill inside a secondary Button (Button's default variant) reads below 4.5:1 on a theme made like neutral, at 3.97:1 to 4.25:1 under
badges outlinein light and 4.07:1 for success underbadges softin dark, and neithersetnorshownames it, because the pick and the check measure only the page and the surface (_settings.mjslines 4779 and 14299-14302); counting the secondary Button's fill among those grounds, or giving these badges a pair inside a secondary Button asBADGE_IN_BUTTONdoes for primary and destructive, with a test for outline and soft status badges in a secondary Button'sendContent, fixes it.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (dial table, value checks; test). - Verified:
solidfills status badges with their status color and on-color text and category badges with a strong color of their hue (candidate table; test). - Verified:
softtints only the status badges and leaves category badges as Core draws them (candidate table; browser frames). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page and surface, and a base with dark hue text (gothic) gets readable badges (pick; test).
- False:
setandshowname any badge variant that still does not read; badges inside a secondary Button at 3.97:1 to 4.25:1 (outline) and 4.07:1 (soft) go unnamed. - Verified: a variant with no readable pair takes its fallback and the
setresult names it (fallback note; test). - Verified: soft status badges and every outline badge take a primary or destructive Button's public colors inside it, never Button's own variables (test; browser 5.29:1 or more).
- Verified: the neutral badge keeps Core's look (test; identical in every style in the browser).
- Verified: properties the theme sets on the badge itself stay, per property and per mode (tests).
- Verified:
howanswers a style-only badge ask with the setting and leaves longer asks to the other readers, andbadges tintedpoints tosoft(tests; value refusal). - Verified: the corners dial gives badges the element corners below
pill, a base that rounds its own badges keeps them except atsquare, and other pills are unchanged (compile; tests; browser 9999px to 4px atcorners 4px). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed among the dials in thesethelp and the API doc. - Verified: before this change a
corners 4pxtheme drew pill badges (base editor frame). - Verified: a theme with neither setting draws Core's badges as before (identical base and head frames).
- Verified: the 27 regression tests pass.
- Not checked here: the measurements on the other six bases and the known limit on chocolate and matcha (only a neutral-made theme was measured).
Files:
packages/cli/api/theme-edit/_settings.mjs: the blocking finding above.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear (the secondary-Button case belongs here with the fix).docs/specs/AST-050-app-themes/spec.md: clear..changeset/editor-badges-dial.md: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.
|
Covers Also covers the DEC-17 sentence added for the review finding (the owner's ruling): inside a secondary button, such a badge draws on the page color, its tint over it, where its pair reads. |
|
/approve-spec d4ad7d7 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The badges setting and the badge corners follow spec:AST-050 DEC-17, which an engineering owner approved at this head. The earlier finding is fixed: soft and outline badges inside a secondary Button now draw on the page color and read at 4.53:1 or more (outline, light) and 5.33:1 or more (soft, dark), where they measured 3.97:1 and 4.07:1 before, and the badge tests, lint, formatting and the knowledge check pass.
Optional follow-ups:
- Outline badges inside a hovered ghost Button sit on its hover overlay and read about 4.1:1 for success in light; adding ghost Buttons to the page-color rule would cover that state.
- The doc comment written for
BADGE_IN_BUTTONnow sits aboveBADGE_IN_SECONDARY_BUTTON; declaring the new constant afterBADGE_IN_BUTTONreattaches it.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (value checks; test). - Verified:
solidfills status badges with their status color and on-color text, and category badges with a strong color of their hue (candidate pairs; test; browser). - Verified:
softtints only the status badges, with on-color text, and leaves category badges as Core draws them (candidate pairs; browser). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test; browser). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page, and on a surface for a badge without a solid fill; a base with dark hue text gets readable badges (pair pick; test).
- Verified:
setandshowmeasure the pair the build wrote, under what the theme sets on the badge, and name a variant that still does not read with its fix line (check; tests; no new problems for any style on a neutral-made theme). - Verified: a variant with no readable pair takes its fallback and the
setresult names it (compile note; test). - Verified: soft status badges and every outline badge take a primary or destructive Button's public colors inside it, never Button's own variables (built CSS; test; browser 5.29:1 or more).
- Verified: inside a secondary Button such a badge draws on the page color with its tint over it (built CSS; test; browser: outline 4.53:1 or more in light, soft 5.33:1 or more in dark).
- Verified: the neutral badge keeps Core's look (browser: unchanged under every style).
- Verified: properties the theme sets on the badge itself stay, per property and per mode (tests).
- Verified:
howanswers a style said alone with the setting and answers longer asks as before, andbadges tintedpoints tosoft(head and base answers compared; refusal message). - Verified: the corners dial gives badges the element corners below
pill, a base that rounds its own badges keeps them except atsquare, and other pills are unchanged (compile; tests). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed in thesethelp and the API doc. - Verified: before this change a
corners 4pxtheme kept pill badges (base compile squares badges only atsquare). - Verified: a theme with neither setting draws Core's badges as before (badge rules are written only under the two settings; head frame matches Core's colors).
- Verified: the regression test file passes, 28 tests.
- Not checked here: the measurements on the six other bases and the known chocolate and matcha limit (one neutral-made theme was measured).
Files:
packages/cli/api/theme-edit/_settings.mjs: two non-blocking notes (hovered ghost Button, detached doc comment).packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.docs/specs/AST-050-app-themes/spec.md: clear..changeset/editor-badges-dial.md: clear.
| }); | ||
| for (const [inside, colors] of [ | ||
| ...Object.entries(BADGE_IN_BUTTON), | ||
| [BADGE_IN_SECONDARY_BUTTON, onPage], |
There was a problem hiding this comment.
Non-blocking: ghost Buttons are left out of this rule, so while the pointer is over a ghost Button its hover overlay (--color-overlay-hover, black at 5% in light) sits under a transparent outline badge. On a theme made like neutral the success badge then reads 4.06:1 in a browser (warning and info about 4.3:1, lower while pressed). Adding .astryx-button[data-variant="ghost"] to the page-color rule keeps the badge on the page color in that state.
| * selects the badge inside that button. | ||
| */ | ||
| /** Where a badge sits inside a secondary button (Button's default). */ | ||
| export const BADGE_IN_SECONDARY_BUTTON = |
There was a problem hiding this comment.
Non-blocking: this constant now sits between the doc comment written for BADGE_IN_BUTTON (lines 4654-4659) and BADGE_IN_BUTTON itself, so that comment documents neither export. Declaring BADGE_IN_SECONDARY_BUTTON after BADGE_IN_BUTTON reattaches it.
|
Covers Also covers the DEC-17 sentence added for the review finding (the owner's ruling): inside a secondary button, such a badge draws on the page color, its tint over it, where its pair reads. |
|
/approve-spec 2f1114e |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The badges setting and the badge corners follow spec:AST-050 DEC-17, which an engineering owner approved at this head. The one commit since the last review types the in-button badge list so the CLI's declaration build (sync:api-types) passes again; at the previous commit it failed with TS2538 on that loop. That commit's message carries [skip ci], so the required checks still need to run and pass on this head before merge.
Optional follow-ups, unchanged from the last review:
- Outline badges inside a hovered ghost Button sit on its hover overlay and read 4.06:1 for success in light; adding ghost Buttons to the page-color rule would cover that state.
- The doc comment written for
BADGE_IN_BUTTONsits aboveBADGE_IN_SECONDARY_BUTTON; declaring the new constant afterBADGE_IN_BUTTONreattaches it.
Claims and files checked
Review mode: incremental; reason: none
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (value checks; test). - Verified:
solidfills status badges with their status color and on-color text, and category badges with a strong color of their hue in the page or primary text color (candidate pairs; test; browser). - Verified:
softtints only the status badges, with on-color text, and leaves category badges as Core draws them (candidate pairs; browser). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test; browser). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page, and on a surface for a badge without a solid fill; a base with dark hue text gets readable badges (pair pick; test).
- Verified:
setandshowmeasure the pair the build wrote, under what the theme sets on the badge, and name a variant that still does not read with its fix line (check; tests; no new problems for any style on a neutral-made theme). - Verified: a variant with no readable pair takes its fallback (solid keeps its tint, outline draws primary text in a line of its hue) and the
setresult names it (compile note; test). - Verified: soft status badges and every outline badge take a primary or destructive Button's public colors inside it, never Button's own variables (built CSS; test; browser 5.29:1 or more).
- Verified: inside a secondary Button such a badge draws on the page color with its tint over it (built CSS; test; browser: outline 4.53:1 or more in light, soft 5.33:1 or more in dark).
- Verified: the neutral badge keeps Core's look (test; browser, unchanged under every style).
- Verified: properties the theme sets on the badge itself stay, per property and per mode, and a one-mode fill keeps the style's fill in the other mode (tests).
- Verified:
howanswers a badge style said alone with the setting and answers longer asks for what they say, andbadges tintedpoints tosoft(tests; value-word table; unchanged since its head-against-base check). - Verified: the corners dial gives badges the element corners at every value but
pill, a base that rounds its own badges keeps that shape except atsquare, a badge with its own corners keeps them, and other pills are unchanged (compile; tests; browser: 4px badges beside 4px Buttons). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed in thesethelp and the API doc. - Verified: before this change a
corners 4pxtheme kept pill badges (base editor build in the browser: full-pill badges beside 4px Buttons). - Verified: a theme with neither setting draws Core's badges as before (badge rules are written only under the two settings; browser).
- Verified: the regression test file passes, 28 tests; eslint, prettier and the knowledge check pass.
- Not checked here: the measurements on the six other bases, the known chocolate and matcha limit, and the full editor and CLI client suites (one neutral-made theme was measured at this head).
Files:
packages/cli/api/theme-edit/_settings.mjs: two non-blocking notes (hovered ghost Button, detached doc comment); the new commit's typed list is clear.packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.docs/specs/AST-050-app-themes/spec.md: clear..changeset/editor-badges-dial.md: clear.
|
Covers Also covers the DEC-17 sentence added for the review finding (the owner's ruling): inside a secondary button, such a badge draws on the page color, its tint over it, where its pair reads. |
|
/approve-spec 75e4be4 |
There was a problem hiding this comment.
Approval waits on an engineering owner's decision on spec:AST-050 DEC-17 at this head.
DEC-17, added here, decides the badges solid|soft|outline setting, the colors soft and outline badges take inside primary, destructive and secondary buttons, and the badge corners; the current spec:AST-050 states none of this. The patch is the one an engineering owner approved at an earlier head, rebased onto the moved base branch, and an approval counts only at the exact head: an engineering owner records it by commenting /approve-spec followed by this head's full commit SHA (the author may do so as an engineering owner). The badge tests and the wider theme-editor suites pass on this head, and nothing else blocks.
Optional follow-ups, unchanged from the last review:
- Outline badges inside a hovered ghost button sit on its hover overlay and read 4.05:1 for success in light; adding ghost buttons to the page-color rule would cover that state.
- The doc comment written for
BADGE_IN_BUTTONsits aboveBADGE_IN_SECONDARY_BUTTON; declaring the new constant afterBADGE_IN_BUTTONreattaches it.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (value checks; test). - Verified:
solidfills status badges with their status color and on-color text, and category badges with a strong color of their hue in the page or primary text color (candidate pairs; test; browser). - Verified:
softtints only the status badges, with on-color text, and leaves category badges as Core draws them (candidate pairs; test; browser). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test; browser). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page, and on a surface for a badge without a solid fill; a base with dark hue text gets readable badges (pair pick; test).
- Verified:
setandshowmeasure the pair the build wrote, under what the theme sets on the badge, and name a variant that still does not read with its fix line (check; tests). - Verified: a variant with no readable pair takes its fallback (solid keeps its tint, outline draws primary text in a line of its hue) and the
setresult names it (compile note; test). - Verified: soft status badges and every outline badge take a primary or destructive Button's public colors inside it, never Button's own variables (built CSS; test; browser 5.29:1 or more).
- Verified: inside a secondary Button such a badge draws on the page color with its tint over it (built CSS; test; browser).
- Verified: the neutral badge keeps Core's look (test; browser, unchanged under every style).
- Verified: properties the theme sets on the badge itself stay, per property and per mode, and a one-mode fill keeps the style's fill in the other mode (tests).
- Verified:
howanswers a badge style said alone with the setting and answers longer asks for what they say, andbadges tintedpoints tosoft(tests; probe against the base). - Verified: the corners dial gives badges the element corners at every value but
pill, a base that rounds its own badges keeps that shape except atsquare, a badge with its own corners keeps them, and other pills are unchanged (compile; tests; browser). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed in thesethelp and the API doc. - Verified: before this change no badge setting existed and a
corners 4pxtheme kept pill badges (base editor refusesbadges; base build in the browser). - Verified: a theme with neither setting draws Core's badges as before (identical CSS and pixel-identical frame against the base editor).
- Verified: the regression test file passes, 28 tests; prettier, eslint and the knowledge check pass.
- Not checked here: the measurements on the six other bases, the known chocolate and matcha limit, the 56-page check (stated for an earlier commit) and the CLI client suites.
Files:
packages/cli/api/theme-edit/_settings.mjs: two non-blocking notes (hovered ghost Button, detached doc comment).packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.docs/specs/AST-050-app-themes/spec.md: clear as text; DEC-17 awaits an engineering owner's decision at this head..changeset/editor-badges-dial.md: clear.
|
Covers Also covers the DEC-17 sentence added for the review finding (the owner's ruling): inside a secondary button, such a badge draws on the page color, its tint over it, where its pair reads. |
|
/approve-spec 976b066 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The badges setting and the badge corners change follow spec:AST-050 DEC-17, which an engineering owner approved at this head, and nothing blocks. The patch is unchanged from the last reviewed head; on the moved base branch the badge tests and the wider theme-editor suites pass, and on themes made like each bundled base the badges read at 4.5:1 or more at rest in the browser.
Optional follow-ups, unchanged from the last review:
- Outline badges inside a hovered ghost button sit on its hover overlay and read 4.05:1 for success in light; adding ghost buttons to the page-color rule would cover that state.
- The doc comment written for
BADGE_IN_BUTTONsits aboveBADGE_IN_SECONDARY_BUTTON; declaring the new constant afterBADGE_IN_BUTTONreattaches it.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (value checks; test). - Verified:
solidfills status badges with their status color and on-color text, and category badges with a strong color of their hue in the page or primary text color (candidate pairs; test; browser). - Verified:
softtints only the status badges, with on-color text, and leaves category badges as Core draws them (candidate pairs; test; browser). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test; browser). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page, and on a surface for a badge without a solid fill; a base with dark hue text gets readable badges (pair pick; test).
- Verified:
setandshowmeasure the pair the build wrote, under what the theme sets on the badge, and name a variant that still does not read with its fix line (check; tests). - Verified: a variant with no readable pair takes its fallback (solid keeps its tint, outline draws primary text in a line of its hue) and the
setresult names it (compile note; test; the editor's check on every bundled base). - Verified: soft status badges and every outline badge take a primary or destructive button's public colors inside it, never the button's own variables (built CSS; test; browser 5.29:1 or more).
- Verified: inside a secondary button such a badge draws on the page color with its tint over it (built CSS; test; browser).
- Verified: the neutral badge keeps Core's look (test; browser, unchanged under every style).
- Verified: properties the theme sets on the badge itself stay, per property and per mode, and a one-mode fill keeps the style's fill in the other mode (tests).
- Verified:
howanswers a badge style said alone with the setting and answers longer asks for what they say, andbadges tintedpoints tosoft(tests; probe against the base). - Verified: the corners dial gives badges the element corners at every value but
pill, a base that rounds its own badges keeps that shape except atsquare, a badge with its own corners keeps them, and other pills are unchanged (compile; tests; browser). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed in thesethelp and the API doc. - Verified: before this change no badge setting existed and a
corners 4pxtheme kept pill badges (base editor refusesbadges; base build in the browser). - Verified: a theme with neither setting draws Core's badges as before (identical CSS and pixel-identical frame against the base editor).
- Verified: on themes made like each of the seven bundled bases, light and dark, every badge the style draws reads at 4.5:1 or more at rest on the page and inside primary and destructive buttons, except category badges under
soft, which keep Core's tint (browser). - Verified: the known limit is Core's and unchanged: category badges in Core's tint inside filled buttons read about 1.0 to 1.6:1 in primary and up to 2.1:1 in destructive buttons on chocolate and matcha, with or without the setting (browser).
- Verified: the patch differs from the head named for the rendered-page check only by a JSDoc type on the in-button list, and it touches no Core or theme package.
- Verified: the regression test file passes, 28 tests; the theme editor suites and the CLI client tests that cover the editor pass; prettier, eslint and the knowledge check pass.
- Not checked here: the 56-page rendered check itself.
Files:
packages/cli/api/theme-edit/_settings.mjs: two non-blocking notes (hovered ghost button, detached doc comment).packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.docs/specs/AST-050-app-themes/spec.md: clear; DEC-17 is approved by an engineering owner at this head..changeset/editor-badges-dial.md: clear.
…ch size Inputs, selects, input groups and buttons take one height at each size from the control size tokens on a new controls group. A height set on a control is written as that size's token and replaces the other control heights there; --only keeps a height on one control. show lists a saved height that keeps controls apart, with the line that joins them. AST-050 DEC-16 records the rule.
…n-like parts is a control height show lists A size token on a group that holds controls among other parts (the button-like parts an earlier picture answer wrote it on) counts as a control height, so show lists the buttons it keeps apart from the fields, with the line that joins them.
… part, as before, and one control-height constant partsOf reaches the other members only for a comma list of conditions, as on main; a condition joined with + keeps to its own part. onlyHeightShape reads CONTROL_HEIGHT_PROPS, and groupsOf's doc names controls.
…ck padding line A control that grows with its content keeps Core's block padding, so the tighter answer for it gives the spacing step alone and no longer promises a padding line that sets its height.
…ndition still reaches its drop zone A padding set on the file input with a --when on another axis (status:error) gives the drop zone its top and bottom sides under that condition too, joined to the drop zone's mode. The refusal and the set note read the same joined conditions.
…atus and category badges in the theme's colors A whole-theme badges dial (solid, soft, outline) styles the status and category badges in pairs that read at 4.5:1 on the theme's base, names any fallback, keeps what the theme sets on the badge, and gives badges inside a primary or destructive button that button's public colors. The corners dial gives badges the element corners below pill. AST-050 DEC-17 records the rule.
…condary button draws on the page color Inside a secondary button (Button's default), an outline or soft badge would show the button's fill, where its pair was never measured. It draws on the page color, its tint over it, so it reads as it does on the page. A fill the theme sets on the badge stays.
…typed by their selector The list of in-button blocks is typed as [selector, colors] pairs, so the API types build reads the selector as a string key. [skip ci]
|
/approve-spec 7832d19 |
There was a problem hiding this comment.
Approved pending CI: CI has not run on this head yet.
The badges setting and the badge corners change follow spec:AST-050 DEC-17, which an engineering owner approved at this head, and nothing blocks. On the moved base branch the badge tests and the whole theme-editor suite pass, every bundled base builds each style with no badge contrast problem, and in the browser the styled badges read at 4.5:1 or more at rest.
Optional follow-ups, unchanged from the last review:
- Outline badges inside a hovered ghost button sit on its hover overlay and read about 4.06:1 for success in light; adding ghost buttons to the page-color rule would cover that state.
- The doc comment written for
BADGE_IN_BUTTONsits aboveBADGE_IN_SECONDARY_BUTTON; declaring the new constant afterBADGE_IN_BUTTONreattaches it.
Claims and files checked
Review mode: full; reason: rebase
Claims:
- Verified:
badgesis one whole-theme setting takingsolid,softoroutline, and--onis refused (value checks; test). - Verified:
solidfills status badges with their status color and on-color text, and category badges with a strong color of their hue in the page or primary text color (candidate pairs; tests; built CSS). - Verified:
softdraws the status badges as their muted tint with its on-color text and leaves category badges as Core draws them (candidate pairs; tests; built CSS). - Verified:
outlinedraws each status and category badge as a line in its text color (compile; test; built CSS). - Verified: each variant takes the first pair that reads at 4.5:1 in both modes on the base's page, and on a surface for a badge without a solid fill; a base with dark hue text gets readable badges (pair pick; test; the editor's check on every bundled base).
- Verified:
setandshowmeasure the pair the build wrote, under what the theme sets on the badge, and name a variant that still does not read with its fix line (check; tests). - Verified: a variant with no readable pair of its own takes its fallback (solid keeps its tint, outline draws the primary text inside a line of its hue), and the
setresult names those variants (compile note; test; named on three bundled bases). - Verified: soft status badges and every outline badge take a primary or destructive button's public colors inside it, never the button's own variables (built CSS; test; browser).
- Verified: inside a secondary button such a badge draws on the page color, its tint over it (built CSS; test; browser).
- Verified: the neutral badge keeps Core's look (test; frames under every style).
- Verified: properties the theme sets on the badge itself stay, per property and per mode, and a one-mode fill keeps the style's fill in the other mode (tests).
- Verified:
howanswers a badge style said alone with the setting and longer asks for what they say, andset … badges tintedpoints tosoft(tests; asks compared with the base; refusal checked). - Verified: the corners dial gives badges the element corners at every value but
pill, a base that rounds its own badges keeps that shape except atsquare, a badge with corners of its own keeps them, and other pills are unchanged (compile; tests; built CSS; browser). - Verified:
showlists a pill badge when the element corners change through a token, and not for a container radius alone (tests). - Verified:
badgesand its values are listed in thesethelp and the API doc (doc strings). - Verified: before this change no badge setting existed and a
corners 4pxtheme kept pill badges (base editor; base frame). - Verified: a theme with neither setting draws Core's badges as before (identical CSS and pixel-identical frames against the base editor).
- Verified: every badge a style draws reads at 4.5:1 or more on the page and inside filled buttons, except category badges under
soft, which keep Core's tint (the editor's check on all seven bundled bases; browser on a theme made like neutral, light and dark). The other six bases were not re-measured in a browser here. - Verified as unchanged: the known limit of Core's category tint inside filled buttons on chocolate and matcha (
softwrites no category rule, and no Core or theme file changes); its ratio was not re-measured here. - Verified: the regression test file passes (28 tests), the theme editor suite passes, and prettier, eslint and the knowledge check pass.
- Verified: the patch differs from the head named for the rendered-page check only by a JSDoc type on the in-button list, and it touches no Core or theme package.
- Not checked here: the 56-page rendered check itself, and the CLI client suites.
Files:
packages/cli/api/theme-edit/_settings.mjs: two non-blocking notes (hovered ghost button, detached doc comment).packages/cli/api/theme-edit/_check.mjs: clear.packages/cli/api/theme-edit/_how-question.mjs: clear.packages/cli/api/theme-edit/_missed.mjs: clear.packages/cli/api/theme-edit/_tables.mjs: clear.packages/cli/api/theme-edit/theme-badges-dial.test.mjs: clear.packages/cli/api/theme-edit/themeEditSet.doc.mjs: clear.packages/cli/clients/cli/commands/experimental-theme-editor-set.doc.mjs: clear.docs/specs/AST-050-app-themes/spec.md: clear; DEC-17 is approved by an engineering owner at this head..changeset/editor-badges-dial.md: clear.
|
Landed on main in #13315. |
User impact
Badges are hard to theme with the experimental theme editor. A theme's badges keep the base theme's look unless someone writes colors for each of the 13 status and category variants by hand, and a theme with rounded corners (4px) still draws pill badges beside its 4px buttons.
Problem and solution fit
spec:AST-050/DEC-17, added here).Expected behavior and authority
spec:AST-050/DEC-17(added here; the owning lead approved its text).Smallest restoration
set <theme> badges solid|soft|outline, a whole-theme dial likebuttons. It writes each status and category Badge variant in the theme's own tokens.solidfills status badges with their status color (text in its on-color) and category badges with a strong color of their hue (text in the page color or the primary text color);softdraws the status badges as their muted tint with its on-color text and leaves category badges as Core draws them;outlinedraws each badge as a line in its text color.setandshowmeasure the pair the build wrote, under any fill or color the theme sets on the badge, and name any badge variant that still does not read, with the line that fixes it.solidit keeps Core's tint, underoutlineit draws the primary text inside a line of its hue; thesetresult names those variants.softandoutlinedraw (status badges undersoft, every badge underoutline) take a primary or destructive button's colors inside that button, as Core's neutral badge does, through a rule on the badge inside that button with the public--color-on-accent/--color-accentand--color-on-error/--color-error(never Button's own variables). The neutral badge keeps Core's look. Every property the theme sets on the badge itself (for all badges or one variant, with no state) stays, per property and per mode: a one-mode fill keeps the style's fill in the other mode.howanswers a badge style said alone ("soft badges", "outlined tags", "badges filled with their color") with the dial; an ask that says more ("soft shadows on badges", "filled pill badges", "soft pink badges") is answered for what it says.set … badges tintedpoints tosoft.showlists a pill badge when the element corners change through a token, and not for a container radius alone.badgesand its values are listed among the dials in thesethelp and API doc.Evidence
corners 4pxdraws pill badges.soft, which keep Core's tint (see the known limit).softleaves category badges as Core draws them).packages/cli/api/theme-edit/theme-badges-dial.test.mjs.Scope
Components: CLI experimental theme editor (
api/theme-edit/_settings.mjs,_tables.mjs,_check.mjs,_how-question.mjs,_missed.mjs, thesetdocs),docs/specs/AST-050-app-themes/spec.md(DEC-17)Writing rubric results
R1 narration: none.
R2 research: none in the record.
R3 evidence: none cited in the record.
R4 rejected alternatives: two, each one line inside DEC-17.
R5 change references: none.
R6 open questions: none added.
R7 project status: none.
Testing
CI=1 vitest run packages/cli/api/theme-edit/theme-badges-dial.test.mjs --project node(28 tests)CI=1;pnpm check:knowledge; eslint and prettier on the changed filesreplay: worse 0 at 7832d19
preflight: pass 7832d19