Repository navigation
Adopt reviewed Gothic color palette - #7670
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
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 |
69c6589 to
bf33e93
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision. Gothic has no theme record that owns its accepted palette values and role mappings, so approval needs a maintainer to identify or provide that governing spec: either confirm that approving this pull request is enough to accept Gothic's exact palette and its 10 shifted token values, or record them in a theme:gothic record first. Whatever that decision, please also address these items:
- The new receipt-reproducibility test fails on Linux x64 because full-precision diagnostics differ in their last digits across platforms, so compare the palette, digests and request exactly and the numeric diagnostics within a tolerance.
palette.config.jsondeclares adarkChromaTaperthat the generator ignores (the output is identical without it), so remove it or add real support in a separate change.- The changeset should name the old and new appearance (most raw
gothicPalettesstop values change, and the card, gray-category, syntax and status-ring colors shift slightly) and how to keep the old look.
[Automated review]
| 'utf8', | ||
| ), | ||
| ), | ||
| ).toEqual( |
There was a problem hiding this comment.
This deep equality covers full-precision float diagnostics that differ across platforms. On Linux x64 with Node 24, five values differ by about 1e-12 (for example neutral.dark.maximumHueDrift), so the test fails there even though the palette, candidate digest, preview digest and request all match. Comparing those exactly and the numeric diagnostics within a tolerance would keep the reproducibility check portable.
| "darkChromaTaper": { | ||
| "edgeMultiplier": 0.7, | ||
| "throughStop": 25, | ||
| "recoverAtStop": 60 | ||
| }, |
There was a problem hiding this comment.
normalizeGenerationRequest drops this field, so it has no effect: generating with and without it gives an identical palette and receipt, and the receipt's request omits it. Please remove it (no output change), or add generator support and regenerate in a separate change if a dark-edge taper is intended.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Adopt a reviewed, reproducible Gothic palette and map Gothic's existing color roles to selected dark-mode palette stops. Ship the same palette request, generated candidate, receipt, and runtime-sized references in the Gothic CLI template. |
There was a problem hiding this comment.
A [feat] visual changeset should name the old and new appearance and how to keep the old look. For example: most raw gothicPalettes stop values change, and the card, gray-category, syntax comment, punctuation and diff-row, and status inset-ring colors shift slightly; an extending theme can override those tokens.
dca6cf5 to
ba30320
Compare
bf33e93 to
4c6d4ff
Compare
ba30320 to
8ac3428
Compare
4c6d4ff to
9a81155
Compare
8ac3428 to
acad9bd
Compare
9a81155 to
6e64ba5
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as new spec authority, so approval needs a maintainer to accept that record as Gothic's governing spec at this head (its palette, role mappings, unchanged public gothicPalettes export and two contrast exceptions) or to say which decision or exception should change. Whatever that decision, please also address these items:
- The record's list of known contrast exceptions omits pink category text (
--color-text-pinkon--color-background-pink, 4.34:1), which the pink Badge, Token and Card paint; please add it and name each exception's text size and non-colour cue. - Open #7657 rewrites the same Gothic token block with literal colours and a different
--color-text-yellowthat is not a palette stop; please note the overlap in the description and say which yellow text valuetheme:gothickeeps. - The README's "Approved palette" section uses
gothicPalettesas its example, but those released values differ from the colours the theme renders at 169 of 210 stops, so please say so or move the example.
[Automated review]
| Known exceptions in the maintained dark-only mapping are: | ||
|
|
||
| - warning Badge text (`--color-text-yellow` on | ||
| `--color-background-yellow`) measures 4.32:1; and | ||
| - syntax comments (`--color-syntax-comment` on | ||
| `--color-syntax-background`) measure 3.80:1. |
There was a problem hiding this comment.
This list misses one pair: pink category text (--color-text-pink #71223c on --color-background-pink #c89aab) measures 4.34:1, and the pink Badge, Token and Card variants paint it. Please add it, and name the text size and non-colour cue for each exception, which AST-008 FR12 asks theme evidence to state.
| '--color-background-yellow': yellow.dark[75], | ||
| '--color-border-yellow': yellow.dark[60], | ||
| '--color-icon-yellow': yellow.dark[30], | ||
| '--color-text-yellow': yellow.dark[20], |
There was a problem hiding this comment.
Open #7657 changes this token to #674c0e (4.61:1 on the yellow background), which is not a stop in this palette, and adds other literal colours to this block that gothicColorMapping.test.ts would reject. Please note the overlap in the description and say which yellow text value theme:gothic keeps; its exception list records this pair at 4.32:1.
|
|
||
| // or use the metadata for derived tools | ||
| const {hue, chroma} = gothicPalettes.neutral; // {hue: 210, chroma: 4} | ||
| const purple = gothicPalettes.purple[80]; |
There was a problem hiding this comment.
gothicPalettes.purple[80] is #d2a3df, but the reviewed palette's purple 80 (Gothic's keyword colour) is #c39adb, and 169 of 210 released stops differ from the colours the theme renders. Under an "Approved palette" heading this example reads as the approved values; please say that gothicPalettes is the released ramp kept for compatibility, or move the example out of this section.
acad9bd to
93eae24
Compare
6e64ba5 to
661cc80
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as new spec authority, so approval needs a maintainer to accept that record at this head (its palette, role mappings, unchanged public gothicPalettes export and two contrast exceptions) or to say which decision or exception should change. Whatever that decision, please also address these items:
- The record's known contrast exceptions omit pink category text (
--color-text-pinkon--color-background-pink, 4.34:1), and no exception names the components that paint it, its text size or its non-colour cue. - Open #7657 rewrites the same Gothic token block with literal colours and an off-palette
--color-text-yellow, so please note the overlap in the description and say which yellow text valuetheme:gothickeeps. - The README's "Approved palette" example uses
gothicPalettes, whose values differ from the rendered palette at 169 of 210 stops, so please say it is the released compatibility ramp or move the example. - The changeset names old and new colours only for the card; please name them for the other changed tokens too, especially the error hover ring's shift from crimson to dusty rose.
[Automated review]
| Known exceptions in the maintained dark-only mapping are: | ||
|
|
||
| - warning Badge text (`--color-text-yellow` on | ||
| `--color-background-yellow`) measures 4.32:1; and | ||
| - syntax comments (`--color-syntax-comment` on | ||
| `--color-syntax-background`) measure 3.80:1. |
There was a problem hiding this comment.
This list misses one pair: pink category text (--color-text-pink #71223c on --color-background-pink #c89aab) measures 4.34:1, and core's pink Badge and Token and Gothic's pink Card paint it. The yellow pair also paints the warning Banner, the yellow Card and core's yellow Badge and Token, not only the warning Badge. Please add the pink pair, name the components for each entry, and give each exception's text size and non-colour cue, which AST-008 FR12 asks theme evidence to state.
| '--color-background-yellow': yellow.dark[75], | ||
| '--color-border-yellow': yellow.dark[60], | ||
| '--color-icon-yellow': yellow.dark[30], | ||
| '--color-text-yellow': yellow.dark[20], |
There was a problem hiding this comment.
Open #7657 changes this token to #674c0e (4.61:1 on the yellow background), which is not a stop in this palette, and adds other literal colours to this block that gothicColorMapping.test.ts rejects. Please note the overlap in the description and say which yellow text value theme:gothic keeps; its exception list records this pair at 4.32:1.
|
|
||
| // or use the metadata for derived tools | ||
| const {hue, chroma} = gothicPalettes.neutral; // {hue: 210, chroma: 4} | ||
| const purple = gothicPalettes.purple[80]; |
There was a problem hiding this comment.
gothicPalettes.purple[80] is #d2a3df, but the reviewed palette's purple 80 (Gothic's keyword colour) is #c39adb, and 169 of 210 released stops differ from the colours the theme renders. Under an "Approved palette" heading this example reads as the approved values; please say that gothicPalettes is the released ramp kept for compatibility, or move the example out of this section.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Keep Gothic's released flat `gothicPalettes` export unchanged while moving the maintained dark theme to a reproducible generated palette and named stop mappings. The card shifts from `#1A1D20` to `#191D20`; Gray, syntax comment and punctuation colors, diff backgrounds, and status inset rings move to their reviewed palette stops. Consumers that need the former appearance can extend `gothicTheme` and override the affected color, syntax, shadow, and component tokens with their previous values. The CLI template ships the same request, receipt, and runtime-sized references. |
There was a problem hiding this comment.
Only the card's old and new colours are named. Please list the old and new values for the gray background and border, syntax comment and punctuation, diff rows and the three hover rings too, or at least say that the error hover ring changes from crimson (#d44851) to dusty rose (#c6a6a2), so the "previous values" consumers can restore are explicit.
93eae24 to
e3ee445
Compare
661cc80 to
3c61d4f
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing spec, approved only by its own metadata, so a maintainer needs to accept the record as written (the private palette, the role mappings that shift ten rendered colours, the unchanged public gothicPalettes export and the two contrast exceptions) or say which decision should change. Whatever that decision, please also fix these:
- The contrast exceptions omit pink category text (
--color-text-pinkon--color-background-pink, 4.34:1, painted by the pink Badge, Token and Card), and no entry names its components, text size or non-colour cue. - Open #7657 sets Gothic's
--color-text-yellowto the off-palette#674c0e, so please record that overlap and your open-work search in the description and say which yellow text valuetheme:gothickeeps. - The README's "Approved palette" example reads
gothicPalettes, whose values differ from the rendered palette at 169 of 210 stops, so please call it the released compatibility ramp or move the example. - The changeset names old and new colours only for the card; please name them for the other changed tokens, especially the error hover ring's shift from crimson to dusty rose.
[Automated review]
3c61d4f to
8ae5d61
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing record, approved only by its own metadata, so a maintainer needs to approve the record as written at this head (the private palette, the role mappings that change 12 rendered colours, the unchanged public gothicPalettes export and the selected-reference tooling) or say which decision should change. Whatever that decision, please also fix these:
scripts/check-badge-contrast.test.mjsnow fails "keeps the known-gap list exact" because the Gothic warning badge passes AA, so remove the two Gothic warning entries fromKNOWN_GAPS.- The changeset names the old value of every changed token except yellow and pink text, so please add
#6C5010and#71223C. - The
gothicPalettesdoc comment still recommends the ramp for custom components and data visualization, which the rewritten README rules out, so please align it.
[Automated review]
| '--color-background-yellow': yellow.dark[75], | ||
| '--color-border-yellow': yellow.dark[60], | ||
| '--color-icon-yellow': yellow.dark[30], | ||
| '--color-text-yellow': yellow.dark[15], |
There was a problem hiding this comment.
This lifts the warning badge from 4.32:1 to 5.69:1, so scripts/check-badge-contrast.test.mjs now fails "keeps the known-gap list exact, so a fixed pair cannot linger": its KNOWN_GAPS still lists gothic/dark variant:warning and gothic/light variant:warning. Please delete those two entries and update the comment above the list, which says both themes pin these fills.
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Keep Gothic's released flat `gothicPalettes` compatibility export unchanged while moving the maintained dark theme to a reproducible generated palette and named stop mappings. The card changes from `#1A1D20` to `#191D20`; Gray background and border from `#3D4248` / `#5D646B` to `#3E454B` / `#5E676E`; syntax comment and punctuation from `#6B7079` / `#7A8290` to `#7E8791` / `#7E8791`; and diff backgrounds from `#081408` / `#1E0A0A` to `#071607` / `#220806`. Success, warning, and error inset rings move from `#87B06A50` / `#D6B56A50` / `#D4485150` to `#869B7250` / `#D3C49050` / `#C6A6A250`. Yellow and Pink text use the darker named stops `#573F0B` and `#5C182F`, clearing 4.5:1 on their categorical surfaces. Consumers that need the former appearance can extend `gothicTheme` and override these color, syntax, shadow, and component tokens with their previous values. The CLI template ships the same request, receipt, and runtime-sized references. |
There was a problem hiding this comment.
Every other changed token gets its old and new value here, but yellow and pink text only get the new ones. Please add the previous #6C5010 and #71223C, since the next sentence tells consumers to override with their previous values.
|
|
||
| Available palettes: `neutral`, `blue`, `cyan`, `green`, `orange`, `pink`, | ||
| `purple`, `red`, `teal`, `yellow`. | ||
| The palette is an authoring and audit reference, not a component styling API, |
There was a problem hiding this comment.
This contradicts the export's own doc comment in src/gothicTheme.ts (lines 396–402), which still says to use gothicPalettes "for custom components or data visualization". Please align that comment with this paragraph; the literal and its metadata can stay byte-identical.
e3ee445 to
48299f0
Compare
b407c31 to
465b9be
Compare
e3ee445 to
48299f0
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing record, approved only by its own metadata, so a maintainer needs to approve the record as written at this head (the private dark-only palette, the role mappings behind 12 rendered colour changes, the unchanged public gothicPalettes export and the selected-reference tooling) or say which decision should change. The three fixes requested on the previous revision are in. Whatever that decision, please also update the sandbox's Gothic palette page (apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx), which still previews the frozen gothicPalettes ramp and the old card colour #1a1d20; the Stone adoption this branch builds on moved its page to the generated palette.
[Automated review]
|
|
||
| ```tsx | ||
| import {gothicPalettes} from '@astryxdesign/theme-gothic'; | ||
| The public `gothicPalettes.family[stop]` export shown below is a frozen released |
There was a problem hiding this comment.
This ramp is no longer what Gothic renders, but the sandbox's Gothic palette page (apps/sandbox/src/app/(fullscreen)/pages/gothic-palette/page.tsx, lines 15–30) still builds its tonal rows from gothicPalettes and lists the card as #1a1d20. Could it read the generated palette (palette.<family>.dark) the way the Stone page now does, and use #191d20 for the card?
48299f0 to
d31d5a9
Compare
465b9be to
bf22a51
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing record, approved only by its own metadata, so a maintainer needs to approve the record as written at this head (the private dark-only palette, the role mappings behind 12 rendered colour changes, the unchanged public gothicPalettes export and the selected-reference tooling) or say which decision should change. The sandbox palette page fix asked on the previous revision is in. Whatever that decision, please also point the palette-generator lab's Gothic reference (apps/sandbox/src/app/(sandbox)/pages/palette-generator/themeCorpus.ts, lines 233–250) at the generated dark ramps, as its Stone entry does: it still reads the frozen gothicPalettes ramp, while the lab's README says it uses the palette objects the sandbox palette pages consume.
[Automated review]
| import {gothicTheme} from '@astryxdesign/theme-gothic/built'; | ||
| // `gothicPalettes` is only exported from the source entry, not /built. | ||
| import {gothicPalettes} from '@astryxdesign/theme-gothic'; | ||
| import {palette as gothicModePalettes} from '../../../../../../../packages/themes/gothic/src/gothicPalettes.generated'; |
There was a problem hiding this comment.
This page now reads the generated dark ramps, but the palette-generator lab's Gothic reference (apps/sandbox/src/app/(sandbox)/pages/palette-generator/themeCorpus.ts lines 233–250) still builds from the frozen gothicPalettes, although the lab's README (lines 15–17) says its theme references use the palette objects their sandbox palette pages consume. Could gothicFamilies read palette.<family>.dark from this same module, as the Stone entry does?
d31d5a9 to
514de79
Compare
bf22a51 to
3ce2b8f
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing record, approved only by its own metadata, so an owner from ENGOWNERS or DESIGNOWNERS needs to approve that record at this exact head or say which of DEC-1 to DEC-4 should change (the reviewed palette, the role mapping that changes 12 rendered colours, the frozen gothicPalettes export, and the selected-reference tooling). No other change is required: the tests, the reference check, the package build and a before/after rendering of the affected components all match the changeset. One optional improvement for the record:
src/gothicPalettes.test.tschecks only shape, endpoints and five anchors, so it would not catch a changed frozen value, although the record's verification map says it does; pinning the frozen literal would make DEC-3 checkable.
[Automated review]
| | ----------------------- | ---------------------------------------------------- | -------------------------------------- | ---------------------------------------------------------- | | ||
| | Dark palette identity | Config, generated module, receipt, reproduction test | every family and stop | Regeneration changes accepted values or stable provenance. | | ||
| | Role mapping | Gothic mapping and theme tests | semantic, categorical, syntax, effects | A maintained role bypasses selected Gothic references. | | ||
| | Public compatibility | Flat-ramp compatibility test and package build | numeric stops; `hue`; `chroma` | A released member or shape changes. | |
There was a problem hiding this comment.
This row names the flat-ramp test as the evidence that catches "a released member or shape" change, but src/gothicPalettes.test.ts checks only keys, hex format, the 0 and 100 endpoints and five neutral anchors, so changing a frozen value such as gothicPalettes.purple[80] would still pass. The values are byte-identical today; pinning the frozen literal (for example a snapshot of gothicPalettes) would make DEC-3 checkable.
514de79 to
4cfab7c
Compare
3ce2b8f to
f24c611
Compare
There was a problem hiding this comment.
This pull request is on hold for a maintainer decision: it adds theme:gothic as Gothic's governing record, approved only by its own metadata, so an owner from ENGOWNERS or DESIGNOWNERS needs to approve that record at this exact head or say which of DEC-1 to DEC-4 should change (the reviewed dark-only palette, the role mapping behind 12 rendered colour changes, the frozen gothicPalettes export, and the selected-reference tooling). No other change is required: the tests, the reference check, the package build and a before/after rendering of the affected components all match the changeset. One optional improvement for the record:
src/gothicPalettes.test.tschecks shape, endpoints and five anchors only, so it would not catch a changed frozen value, although the record's verification map says it does; pinning the frozen literal would make DEC-3 checkable.
[Automated review]
|
/approve-spec f24c611 |
Summary: Add a reproducible dark-only Gothic palette, map Gothic-owned color and syntax roles to named palette stops, preserve the public palette API, and keep the package and CLI template in sync. Test Plan: pnpm check:repo; pnpm exec vitest run packages/themes/gothic/src/gothicPalettes.test.ts packages/themes/gothic/src/gothicTheme.test.ts packages/themes/gothic/src/gothicColorMapping.test.ts scripts/generate-gothic-palette-refs.test.mjs scripts/check-badge-contrast.test.mjs scripts/check-syntax-punctuation-contrast.test.mjs scripts/check-secondary-selector-parity.test.mjs; pnpm -F @astryxdesign/theme-gothic build; pnpm --filter ./packages/themes/** -r build; pnpm -F @astryxdesign/sandbox build; pnpm exec eslint on changed source files; pnpm exec prettier --check on changed authored files; real-browser palette, token, and component comparisons. Reviewers: Subscribers: Tasks: Tags:
f24c611 to
330fd36
Compare
|
/approve-spec 330fd36 |
User impact
Gothic now uses one reviewed, reproducible dark-only palette across its existing semantic, categorical, syntax, shadow, and component color roles. The update keeps Gothic's pastel categorical surfaces while restoring more vivid jewel tones for syntax highlighting.
The released
gothicPalettes.family[stop],hue, andchromaAPI remains byte-identical as a frozen compatibility ramp. It is distinct from the private generated palette that the maintained theme renders; runtime code imports only selected Gothic stops.Gothic categorical and syntax text remains palette-first. Yellow uses
yellow.dark[15](#573F0B) at 5.69:1 and Pink usespink.dark[15](#5C182F) at 5.33:1 on their stop-75 surfaces. Syntax comments useneutral.dark[65](#7E8791) at 5.12:1 on the code background. This resolves the overlap with #7657: when the stacks converge, Gothic keeps the named Yellow stop rather than #7657's off-palette#674C0E. The exact-head review covered warning and categorical Badge, Banner, Card, Token, and CodeBlock contexts.This pull request is stacked on Stone #7669, which is stacked on color-neutral maintenance PR #7678. No theme imports another theme's palette values.
Visual authority
theme:gothicrecords the approved palette, mappings, compatibility, and evidence at this exact head.Before and after
Raw palette
Existing roles mapped to named palette stops
Real Astryx components
The same component tree is rendered before and after with inputs, banners, badges, category colors, status dots, buttons, a highlighted
CodeBlock, and progress bars.State matrix
Scope
darkChromaTaperrequest was removed without changing generated colors.Testing
pnpm vitest run packages/themes/gothic/src/gothicPalettes.test.ts packages/themes/gothic/src/gothicTheme.test.ts packages/themes/gothic/src/gothicColorMapping.test.ts scripts/generate-gothic-palette-refs.test.mjs scripts/palette-receipt-test-utils.test.mjs— 13 tests passedConfig-to-full-palette and cross-platform receipt reproduction
Gothic selected-reference drift check
pnpm -F @astryxdesign/theme-gothic buildpnpm check:knowledgepnpm check:changesetsAll nine categorical text/background pairings are regression-tested at 4.5:1 or higher; the lowest is Orange at 4.96:1
All categorical icon/background pairings clear 3:1; Yellow is the lowest at 3.09:1
Syntax comments use
neutral.dark[65]at 5.12:1 in 14 px CodeBlock textPublic
gothicPalettesliteral verified byte-identical to the parent revisionPackage and CLI-template theme, config, generated palette, receipt, and selected references verified byte-identical
Browser-rendered before/after review in Chromium
Final five-theme review remediation run: 21 files and 64 tests passed
Writing rubric results