Repository navigation
Adopt reviewed Stone palette - #7669
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
557ef2f to
dca6cf5
Compare
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size SummaryNo component packages changed. Accessibility AuditStatus: No accessibility violations detected. Visual Regression46 of 494 shot(s) changed. A change here is a question, not a failure: check whether the after is the
and 26 more. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette. Approval is waiting on a maintainer decision: Stone has no current theme record to own the accepted palette values, the role mapping (including the re-seeded green, yellow, teal and cyan families and the lighter dark popover) and the public stonePalettes light/dark shape, so a maintainer needs to add or identify that governing theme:stone spec. Independently of that decision, please address the following:
- Keep the released
stonePalettes.<family>.hueand.chromamembers as deprecated, or ship their removal as a[breaking]change in a planned minor, because removing them in a patch breaks existing callers. - Remove the
darkChromaTaperblock frompalette.config.json(or make it take effect), since the generator ignores it and the request does not describe the committed palette. - Update the sandbox palette consumers to read
.lightand.dark, correct the README and changeset statements about preserved anchors and lookups, and restore the removed rationale comments instoneTheme.ts. - Split the shared palette-ref generator extraction into its own maintenance PR so this change stays within the authored-line scope limit.
[Automated review]
| "vibrancy": 16, | ||
| "neutralProfile": "neutral-v1", | ||
| "modeStrategy": "light-and-dark", | ||
| "darkChromaTaper": { |
There was a problem hiding this comment.
astryx theme palette generate ignores darkChromaTaper: this request, the same request without the block, and one with an edgeMultiplier of 0.1 all produce the committed candidate digest, and the receipt's request omits the key. Please delete the block (no output change) or generate with a taper the tooling actually applies.
| * Numbered properties preserve Stone's original shared-ramp API; use `light` | ||
| * and `dark` when authoring new mode-aware mappings. | ||
| */ | ||
| export const stonePalettes = { |
There was a problem hiding this comment.
The released 0.7.1 stonePalettes declares hue and chroma on every family; this object drops them, which breaks existing callers in a patch release. Please keep them as deprecated members (removing them in a planned minor with a [breaking] changeset), or keep the released shape and add the mode ramps under a new name.
| generation receipt beside it. `src/stonePalettes.ts` provides the stable | ||
| theme-local import. | ||
|
|
||
| The palette preserves Stone's exact midtone anchors and subtle violet neutral |
There was a problem hiding this comment.
The green (#667d65 → #528b49), yellow (#857650 → #927f25), teal (#6a7b71 → #588174) and cyan (#627c7a → #507b86) midtones change, so this overstates what is preserved; please name the anchors that are kept and the families that are re-seeded.
| tests, and visual review. Keep `stoneTheme.ts` and the CLI template copy | ||
| synchronized when changing a mapping. | ||
|
|
||
| The bare package export preserves the original `stonePalettes.family[stop]` |
There was a problem hiding this comment.
The [stop] lookup still works, but hue and chroma are removed and every value changes; please describe that here and in the changeset.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Adopt a reviewed, reproducible Stone palette and map Stone's color roles to selected named palette stops in light and dark mode. Ship the same palette request, generated candidate, receipt, and runtime-sized references in the Stone CLI template. |
There was a problem hiding this comment.
Please name the old and new appearance (re-seeded green, yellow, teal and cyan; dark popovers on neutral stop 20; light canvas #f3f3f5 → #f0f0f7), how to keep the old look, and the stonePalettes API change.
| '--color-icon-yellow': [yellow.light[30], yellow.dark[90]], | ||
| '--color-text-yellow': [yellow.light[30], yellow.dark[90]], | ||
|
|
||
| // Radius |
There was a problem hiding this comment.
This drops the note that --radius-none and --radius-full must never be scaled; the Banner override, ProgressBar and Switch track, and input-status rim rationale comments were removed the same way. Please restore the ones that still apply.
dca6cf5 to
ba30320
Compare
ba30320 to
8ac3428
Compare
8ac3428 to
acad9bd
Compare
acad9bd to
93eae24
Compare
There was a problem hiding this comment.
Thanks for making Stone's palette reproducible: the generated palette, selected references and CLI template all reproduce, and the released stonePalettes export is unchanged. Approval is waiting on a maintainer decision, because the new theme:stone record would be the governing spec for Stone's palette values and role mapping, so a maintainer needs to approve it as proposed here (including the re-seeded yellow, green, teal and cyan families and the lighter dark popover) or say what must change. Independently of that decision, please address:
- Map the light syntax
attributeto a darker yellow stop (stop 40 works), since stop 45 measures 4.22:1 on the code background and drops to about 4.1:1 on diff rows. - Keep the light success and warning input rims and icons at 3:1 or more against the input surface (stop 55 does), or record why they are not the required state cue.
- Correct the changeset, README and
stonePalettesJSDoc so they name the re-seeded families and visible role changes instead of saying the midtone and pastel anchors are preserved, and restore the note that--radius-noneand--radius-fullmust never be scaled.
[Automated review]
| operator: [neutral.light[40], neutral.dark[70]], | ||
| constant: [red.light[40], orange.dark[70]], | ||
| tag: [red.light[40], red.dark[70]], | ||
| attribute: [yellow.light[45], yellow.dark[70]], |
There was a problem hiding this comment.
Light yellow.light[45] (#83721a) measures 4.22:1 on Stone's code background and 4.11/4.07:1 on the added and removed rows, so it now drops below CodeBlock's diff-row floor (it was 4.85/4.67:1). yellow.light[40] (#736419) clears it at 5.19/5.05/5.00:1.
| const INPUT_STATUS_VARS = { | ||
| 'status:success': { | ||
| '--color-success': 'light-dark(#7f977e, #99b298)', // Green T60 / T70 | ||
| '--color-success': lightDark(green.light[60], green.dark[70]), |
There was a problem hiding this comment.
In light mode green.light[60] (#6ea366) measures 2.96:1 on the white input surface and yellow.light[60] (#ac9848, line 32) 2.86:1, below the 3:1 the previous rims met. Stop 55 gives 3.46:1 and 3.33:1.
| generation receipt beside it. `stonePaletteRefs.generated.ts` provides the | ||
| small runtime projection consumed by the maintained theme. | ||
|
|
||
| The palette preserves Stone's exact midtone and signature pastel anchors while |
There was a problem hiding this comment.
The yellow, green, teal and cyan midtones change (for example green #667d65 → #528b49), so this overstates what is preserved; please name the re-seeded families.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Replace Stone's internal shared-ramp mapping with reviewed light and dark ramps while preserving the public numbered palette lookups and `hue`/`chroma` metadata. The theme keeps its warm violet-neutral character and signature pastel anchors; categorical ramps become smoother and the dark popover moves from `#25252A` to the lighter `#302F36`. Existing apps can keep the former appearance by extending `stoneTheme` and overriding the affected color, syntax, shadow, and component tokens with their previous values. The CLI template ships the same reproducible request, receipt, and runtime-sized references. |
There was a problem hiding this comment.
Please name the visible changes beyond the popover (re-seeded yellow, green, teal and cyan; more saturated success and warning input rims; syntax colours; light canvas #f3f3f5 → #f0f0f7), since the light stop-90 surfaces of seven families also shift.
d879020 to
57e216e
Compare
93eae24 to
e3ee445
Compare
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette: the candidate, receipt, selected references and CLI template copies all reproduce, and the released stonePalettes export is unchanged. Approval waits on a maintainer, because no current spec owns Stone's palette values and role mapping yet. A maintainer needs to approve the proposed theme:stone record at this head, including the re-seeded green, yellow, teal and cyan families, the shifted light stop-90 surfaces and the dark popover move to neutral stop 20, or say what must change. Independently of that decision, please retarget the pull request (its base branch has been deleted) and address:
- Map the light syntax
attributeto a darker stop such asyellow.light[40]: stop 45 measures 4.22:1 on the code background and about 4.1:1 on diff rows, under the 4.5:1 floor. - Keep the light success and warning input rims and on-field icons at 3:1 or more on the white field: stop 60 gives 2.96:1 and 2.86:1, while stop 55 gives 3.46:1 and 3.33:1.
- Correct the changeset and README, which say the midtone and pastel anchors are kept, and the
stonePalettesJSDoc, which still says it derives all theme tokens.
[Automated review]
| operator: [neutral.light[40], neutral.dark[70]], | ||
| constant: [red.light[40], orange.dark[70]], | ||
| tag: [red.light[40], red.dark[70]], | ||
| attribute: [yellow.light[45], yellow.dark[70]], |
There was a problem hiding this comment.
In light mode yellow.light[45] (#83721a) measures 4.22:1 on Stone's code background and 4.11:1 / 4.07:1 on the added and removed rows, so it falls under the CodeBlock diff-row contrast floor (the previous value measured 4.85:1). yellow.light[40] (#736419) clears it at 5.19 / 5.05 / 5.01:1.
| '--color-success': lightDark(green.light[60], green.dark[70]), | ||
| }, | ||
| 'status:warning': { | ||
| '--color-warning': 'light-dark(#9f8f68, #bbaa81)', // Yellow T60 / T70 | ||
| '--color-warning': lightDark(yellow.light[60], yellow.dark[70]), |
There was a problem hiding this comment.
In light mode green.light[60] (#6ea366) measures 2.96:1 and yellow.light[60] (#ac9848) 2.86:1 on the white input surface, below the 3:1 non-text contrast the previous rims met (3.17 and 3.18:1). Stop 55 gives 3.46:1 and 3.33:1.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Replace Stone's internal shared-ramp mapping with reviewed light and dark ramps while preserving the public numbered palette lookups and `hue`/`chroma` metadata. The theme keeps its warm violet-neutral character and signature pastel anchors; categorical ramps become smoother and the dark popover moves from `#25252A` to the lighter `#302F36`. Existing apps can keep the former appearance by extending `stoneTheme` and overriding the affected color, syntax, shadow, and component tokens with their previous values. The CLI template ships the same reproducible request, receipt, and runtime-sized references. |
There was a problem hiding this comment.
The green, yellow, teal and cyan midtones are re-seeded and seven families' light stop-90 surfaces shift, so the pastel anchors are not all kept. Please name the re-seeded families and the larger visible changes (input rims, syntax colours, the light canvas #f3f3f5 → #f0f0f7) alongside the popover move.
| generation receipt beside it. `stonePaletteRefs.generated.ts` provides the | ||
| small runtime projection consumed by the maintained theme. | ||
|
|
||
| The palette preserves Stone's exact midtone and signature pastel anchors while |
There was a problem hiding this comment.
Green (#667d65 → #528b49), yellow, teal and cyan midtones change, so this overstates what is preserved; please name the anchors that are kept and the families that are re-seeded.
e3ee445 to
48299f0
Compare
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette: the candidate, receipt, selected references and CLI template copies reproduce, the released stonePalettes export is unchanged, and the input rims and syntax colours now clear their contrast floors. Approval waits on a maintainer, because no current spec owns Stone's palette values and role mapping yet: a maintainer needs to approve the proposed theme:stone record at this head, including the re-seeded green, yellow, teal and cyan families, the shifted light stop-90 surfaces and the dark popover move to neutral stop 20, or say what must change. Independently of that decision, please address:
- Update the
stonePalettesJSDoc instoneTheme.ts, which still says its stops derive all theme tokens and suit custom components, though 179 of its 210 stops no longer match the theme. - Drop "final" and "restoring required contrast" from the changeset, since the released rims and attribute colour already met their floors.
- Narrow two claims in
stone.spec.md: only Orange 90 and light Yellow 90 are exact pastel anchors, and the tests check which stop each categorical role uses, not its contrast.
[Automated review]
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Replace Stone's internal shared-ramp mapping with reviewed light and dark ramps while preserving the public numbered palette lookups and `hue`/`chroma` metadata. The light canvas moves from `#F3F3F5` to `#F0F0F7`, the dark popover from `#25252A` to `#302F36`, and Green, Yellow, Teal, and Cyan use re-seeded midtones (including Green `#667D65` to `#528B49`). Seven families' light stop-90 surfaces, syntax colors, and input status rims shift; the final success and warning rims use `#609757` and `#A08C36`, and syntax attribute uses `#736419`, restoring required contrast. Existing apps can keep the former appearance by extending `stoneTheme` and overriding the affected color, syntax, shadow, and component tokens with their previous values. The CLI template ships the same reproducible request, receipt, and runtime-sized references. |
There was a problem hiding this comment.
"final" and "restoring required contrast" describe this pull request's history: the released Stone already met those floors (success and warning rims 3.17:1 and 3.18:1 on the white field, attribute 4.85:1 on the code background). Something like "…rims use #609757 and #A08C36, keeping them above 3:1, and syntax attribute uses #736419" keeps the release note accurate.
48299f0 to
d31d5a9
Compare
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette: the candidate, receipt, selected references and CLI template copy reproduce, the released stonePalettes export is unchanged, and every measured contrast pair holds. Approval waits on a maintainer, because no current spec owns Stone's palette values and role mapping yet: a maintainer needs to approve the proposed theme:stone record at this head, including the re-seeded green, yellow, teal and cyan families, the shifted light stop-90 surfaces and the dark popover move to neutral stop 20, or say what must change. Independently of that decision, please fix the new mapping test:
stoneColorMapping.test.tsstill cutsstoneTheme.tsat "Raw tonal palettes", which the JSDoc rename removed, so it now scans the frozen palette's hex values and fails; cut atexport const stonePalettesand fail clearly if the marker is missing.
[Automated review]
|
|
||
| const maintainedThemeSource = source.slice( | ||
| 0, | ||
| source.indexOf('/**\n * Raw tonal palettes'), |
There was a problem hiding this comment.
This marker no longer exists: stoneTheme.ts now opens the palette JSDoc with "Frozen released compatibility palettes" (line 442), so indexOf returns −1, the slice keeps nearly the whole file, and "uses no one-off color literals in the maintained theme source" fails on the frozen stonePalettes hex values. Cutting at export const stonePalettes and throwing when the marker is missing keeps the check scoped and makes a future rename fail clearly.
| * the stone neutral palette doesn't carry a distinct green stop. | ||
| * Stone syntax uses mid-ramp colors in light mode and lighter stops in dark | ||
| * mode. String and property intentionally share Teal; Green remains reserved | ||
| * for added content and success semantics. |
There was a problem hiding this comment.
Dark string (line 48) maps to green.dark[70], so Green is not reserved in dark mode. Either say dark strings use Green 70, as the previous comment did, or map dark string to Teal.
d31d5a9 to
514de79
Compare
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette: the candidate, receipt, selected references and CLI template copy reproduce, the released stonePalettes export is unchanged, and the previous round's failing test and syntax comment are fixed. Approval now waits on a maintainer, because no current spec owns Stone's palette values and role mapping yet: a maintainer needs to approve the proposed theme:stone record at this head as that governing spec, including the re-seeded green, yellow, teal and cyan families, the seven shifted light stop-90 surfaces and the dark popover move to neutral stop 20, or say what must change. No other change is needed once that decision is made, and the pull request can land after its stacked base.
[Automated review]
There was a problem hiding this comment.
Thanks for moving Stone onto a reproducible palette: the candidate, receipt, selected references and CLI template copy reproduce from the committed request, the released stonePalettes export is unchanged, and no measured contrast pair loses a floor it met. Approval now waits on a maintainer, because no current spec owns Stone's palette values and role mapping yet: a maintainer needs to approve the proposed theme:stone record at this head as that governing spec, including the re-seeded green, yellow, teal and cyan families, the seven shifted light stop-90 surfaces and the dark popover move to neutral stop 20, or say what must change. No other change is needed once that decision is made.
[Automated review]
|
/approve-spec 4cfab7c |
User impact
Stone now uses a reviewed, reproducible Light/Dark palette instead of duplicated color literals. Existing Stone roles map to named palette stops, making future color changes consistent while components continue consuming semantic tokens.
The released
stonePalettes.family[stop]API, includinghueandchroma, remains byte-identical for existing consumers. The complete generated Light/Dark palette is private authoring data and drives the maintained theme through runtime-sized selected references.Dependency
This PR is stacked on #7678, which extracts the shared selected-reference generator and cross-platform receipt assertion without changing any theme colors.
Visual authority
theme:stonerecords the approved palette, mappings, compatibility, and evidence at this exact head.Before and after
The captures below render the same real Astryx component tree with current Stone CSS on the left and the mapped palette CSS on the right.
Light mode
Dark mode
State matrix
Scope
Testing
pnpm vitest run scripts/check-stone-secondary-text-contrast.test.mjs apps/sandbox/src/components/themePreview/modeAwarePalettes.test.ts packages/themes/stone/src/stoneColorMapping.test.ts packages/themes/stone/src/stonePalettes.test.ts packages/themes/stone/src/stoneTheme.test.ts scripts/generate-stone-palette-refs.test.mjs scripts/generate-neutral-palette-refs.test.mjs scripts/palette-receipt-test-utils.test.mjs— 26 tests passedpnpm -F @astryxdesign/theme-stone buildpnpm check:knowledgepnpm check:changesetsSandbox typecheck has no errors in changed Stone or palette-review files; one unrelated pre-existing
SectionRenderer.tsxerror remainsPublic
stonePalettesliteral verified byte-identical to the parent revisionPackage and CLI-template theme, config, generated palette, receipt, and selected references verified byte-identical
Independent review found and verified the final contrast-test import fix
Final five-theme review remediation run: 21 files and 64 tests passed
Writing rubric results