Skip to content

Adopt reviewed Gothic color palette - #7670

Merged
rubyycheung merged 1 commit into
mainfrom
ruby/gothic-reviewed-palette
Oct 22, 2026
Merged

rubyycheung merged 1 commit into
mainfrom
ruby/gothic-reviewed-palette

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

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, and chroma API 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 uses pink.dark[15] (#5C182F) at 5.33:1 on their stop-75 surfaces. Syntax comments use neutral.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

  • The Gothic palette direction was owner-reviewed in its only supported mode.
  • theme:gothic records the approved palette, mappings, compatibility, and evidence at this exact head.

Before and after

Raw palette

Reviewed Gothic dark-only palette

Existing roles mapped to named palette stops

Current and mapped Gothic token colors

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.

Gothic real-component before and after

State matrix

  • Gothic dark mode, its only supported mode
  • Semantic surfaces, text, icons, borders, and status colors
  • All nine categorical families
  • Syntax foregrounds, background, and diff markers
  • Representative real components and unchanged layout/interaction states
  • Data-visualization tokens remain untouched

Scope

  • Appearance is the primary intent.
  • Gothic owns its own config, complete generated palette, receipt, selected references, and mappings.
  • The released flat palette API remains unchanged; no consumer migration is required.
  • The unsupported darkChromaTaper request was removed without changing generated colors.
  • Behavior, API, interaction, typography, spacing, radius, and unrelated layout remain unchanged.
  • Public text and artifacts contain no internal Meta context.

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 passed

  • Config-to-full-palette and cross-platform receipt reproduction

  • Gothic selected-reference drift check

  • pnpm -F @astryxdesign/theme-gothic build

  • pnpm check:knowledge

  • pnpm check:changesets

  • All 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 text

  • Public gothicPalettes literal verified byte-identical to the parent revision

  • Package 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

  • R1 narration: change/history/scope narration was found and rewritten or removed; the record now states durable behavior in present tense.
  • R2 research: none; visual comparisons remain PR evidence rather than standing record content.
  • R3 evidence: verification names tests, artifacts, and observable facts rather than changes.
  • R4 rejected alternatives: each is one line inside its owning decision.
  • R5 change references: none in the record.
  • R6 open questions: OQ1 records the unresolved dependency on a current cross-theme contrast-methodology owner.

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 22, 2026 9:09pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 17, 2026
@astracat-bot

astracat-bot Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🔄 In progress (for maintainers only) Oct 22, 2026, 9:16 PM UTC

@github-actions

github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR

🧪 Sandbox Preview

View Sandbox for this PR

No new or modified components detected.

Bundle Size Summary

No component packages changed.

Accessibility Audit

Status: No accessibility violations detected.

Visual Regression

46 of 494 shot(s) changed.

A change here is a question, not a failure: check whether the after is the
picture you intended. Record that review on the PR. Baseline maintenance is an
explicit dispatch of CI; this report never rewrites the baseline or adds a release gate.

component story theme mode pixels
Selector Indicator Space Bottom Sheet Narrow End RTL neutral light 753,933
Selector Indicator Space Bottom Sheet Wide Start neutral light 740,072
Chat Full AI Chat probe light 230,823
Chat Full AI Chat probe dark 229,805
RichTextEditor Markdown parity: side by side probe dark 94,866
RichTextEditor Markdown parity: side by side probe light 89,762
Collapsible Dividers probe dark 66,445
Collapsible Dividers probe light 66,445
Chat Default neutral dark 36,304
Chat Default neutral light 35,767
Chat Empty State probe light 23,531
Chat Empty State probe dark 22,622
ChatAutoScroll Scroll Behavior Comparison neutral dark 15,378
ChatAutoScroll Scroll Behavior Comparison neutral light 14,107
Chat With Attachments probe light 13,406
Chat With Attachments probe dark 11,232
ProgressBar With Target Mark probe dark 7,895
ProgressBar With Target Mark probe light 7,895
Markdown Default neutral dark 7,573
Markdown Default neutral light 7,566

and 26 more.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

@rubyycheung
rubyycheung force-pushed the ruby/gothic-reviewed-palette branch from 69c6589 to bf33e93 Compare October 17, 2026 22:17
@rubyycheung rubyycheung mentioned this pull request Oct 17, 2026
7 tasks done

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json declares a darkChromaTaper that 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 gothicPalettes stop 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(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +6 to +10
"darkChromaTaper": {
"edgeMultiplier": 0.7,
"throughStop": 25,
"recoverAtStop": 60
},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .changeset/gothic-reviewed-palette.md Outdated
'@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-pink on --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-yellow that is not a palette stop; please note the overlap in the description and say which yellow text value theme:gothic keeps.
  • The README's "Approved palette" section uses gothicPalettes as 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]

Comment thread packages/themes/gothic/gothic.spec.md Outdated
Comment on lines +90 to +95
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-pink on --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 value theme:gothic keeps.
  • 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]

Comment thread packages/themes/gothic/gothic.spec.md Outdated
Comment on lines +90 to +95
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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];

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .changeset/gothic-reviewed-palette.md Outdated
'@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-pink on --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-yellow to the off-palette #674c0e, so please record that overlap and your open-work search in the description and say which yellow text value theme:gothic keeps.
  • 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]

@rubyycheung
rubyycheung force-pushed the ruby/gothic-reviewed-palette branch from 3c61d4f to 8ae5d61 Compare October 20, 2026 16:26

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.mjs now fails "keeps the known-gap list exact" because the Gothic warning badge passes AA, so remove the two Gothic warning entries from KNOWN_GAPS.
  • The changeset names the old value of every changed token except yellow and pink text, so please add #6C5010 and #71223C.
  • The gothicPalettes doc 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],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .changeset/gothic-reviewed-palette.md Outdated
'@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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rubyycheung
rubyycheung force-pushed the ruby/stone-reviewed-palette branch from e3ee445 to 48299f0 Compare October 20, 2026 19:16
@rubyycheung
rubyycheung force-pushed the ruby/gothic-reviewed-palette branch from b407c31 to 465b9be Compare October 20, 2026 19:17
@rubyycheung
rubyycheung force-pushed the ruby/stone-reviewed-palette branch 2 times, most recently from e3ee445 to 48299f0 Compare October 20, 2026 19:21

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.ts checks 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. |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.ts checks 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]

@rubyycheung

Copy link
Copy Markdown
Contributor Author

/approve-spec f24c611

@rubyycheung
rubyycheung changed the base branch from ruby/stone-reviewed-palette to main October 22, 2026 21:00
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:
@rubyycheung
rubyycheung force-pushed the ruby/gothic-reviewed-palette branch from f24c611 to 330fd36 Compare October 22, 2026 21:01
@rubyycheung

Copy link
Copy Markdown
Contributor Author

/approve-spec 330fd36

@rubyycheung
rubyycheung merged commit 3f6ea7d into main Oct 22, 2026
65 checks passed
@github-actions
github-actions Bot deleted the ruby/gothic-reviewed-palette branch October 23, 2026 06:23

This branch was successfully deployed

1 active deployment
Preview — 330fd361 Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant