Repository navigation
Adopt reviewed Y2K color palette - #7675
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 |
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer provides or identifies the governing spec for Y2K's exact palette and role mapping, for example a current theme:y2k record approved at this head, as theme:neutral did for Neutral. Whatever that decision is, two fixes are needed:
- The receipt test in
scripts/generate-y2k-palette-refs.test.mjscompares floating-point diagnostics exactly, and they differ in their last digits on x86-64 Linux even though the palette itself reproduces byte for byte, so compare them with a tolerance or leave them out of the exact match. - The Changeset should name the old and new appearance and how to keep the old look (for example, token overrides on a theme that extends
y2kTheme), as AST-017 FR3 asks for a visual-direction change.
[Automated review]
| expect( | ||
| JSON.parse( | ||
| fs.readFileSync( | ||
| path.join(temp, 'y2kPalettes.generated.receipt.json'), | ||
| 'utf8', | ||
| ), | ||
| ), | ||
| ).toEqual( | ||
| JSON.parse( | ||
| fs.readFileSync( | ||
| path.join( | ||
| root, | ||
| 'packages/themes/y2k/src/y2kPalettes.generated.receipt.json', | ||
| ), | ||
| 'utf8', | ||
| ), | ||
| ), | ||
| ); |
There was a problem hiding this comment.
This deep-compares the whole receipt, including the floating-point diagnostics. When the test runs on x86-64 Linux, seven of those values differ in their last digits (for example, blue maximumHueDrift is 6.358281000663851 against the committed 6.358281000663965), while the candidate, candidateSha256 and preview match exactly, so the test fails there. Could this assert exact equality for request, candidateSha256 and preview, and compare diagnostics with a numeric tolerance?
| '@astryxdesign/cli': patch | ||
| --- | ||
|
|
||
| [feat] Adopt the reviewed Y2K light-and-dark palette and map Y2K-owned color roles to named palette stops while preserving the existing public palette API shape. |
There was a problem hiding this comment.
AST-017 FR3 asks a visual-direction [feat] Changeset to name the old and new appearance and how to keep the old look. Could this say what visibly changes (for example, more saturated syntax colors, a navy dark code background and a lavender dark Gray) and that apps can keep the previous colors by extending y2kTheme with token overrides or by staying on the previous release?
ad9ecf3 to
8635893
Compare
45a7e3d to
1daaefa
Compare
8635893 to
6e809c3
Compare
1daaefa to
7a09454
Compare
6e809c3 to
027a8d2
Compare
7a09454 to
af9b81e
Compare
027a8d2 to
78544e0
Compare
af9b81e to
068b08f
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record at this head: it is the governing spec for Y2K's exact palette, its role mapping (71 resolved color values change across light and dark) and the recorded 4.25:1 secondary-text exception, and its own approved_by metadata does not count as that approval. The two fixes from the earlier review are in, and the palette, receipt, selected stops and CLI template all reproduce on this head with no contrast regression. Two small record touch-ups would help whoever approves it:
- Add
packages/themes/y2k/src/y2kPalettes.test.tstoverified_by, since the legacy-object and ramp checks live there. - Name the inherited dark-mode border gaps (default 1.31:1 and emphasized 1.76:1 against the surface) as known gaps, or say why they are out of scope.
[Automated review]
| verified_by: | ||
| [ | ||
| packages/themes/y2k/src/y2kTheme.test.ts, | ||
| packages/themes/y2k/src/y2kColorMapping.test.ts, | ||
| scripts/generate-y2k-palette-refs.test.mjs, | ||
| ] |
There was a problem hiding this comment.
verified_by lists the theme, mapping and refs-generator tests, but the legacy-object snapshot and ramp checks that the verification map's “Public compatibility” and “Palette identity” rows rely on live in packages/themes/y2k/src/y2kPalettes.test.ts. Could that file be listed here too?
| The known light-mode exception is secondary text | ||
| (`--color-text-secondary`) on the Periwinkle body | ||
| (`--color-background-body`), which measures 4.25:1. |
There was a problem hiding this comment.
This names one light-mode exception. In dark mode, --color-border (1.31:1) and --color-border-emphasized (1.76:1, used by Selector, input-group text and the checkbox and radio indicators) are also below the 3:1 non-text threshold against --color-background-surface. Both are inherited rather than caused by this palette, but since this record owns Y2K's known gaps, could it name them or say why they are out of scope?
78544e0 to
b2b9570
Compare
068b08f to
15c915b
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record at this exact revision, since it is the governing spec for Y2K's exact palette, its role mapping (71 color and shadow values change across light and dark) and the recorded 4.25:1 secondary-text exception, and its own approved_by metadata does not count as that approval. The palette, receipt, selected stops, eject template and package build all reproduce, and no contrast pairing falls below its threshold. Three small record touch-ups would help whoever approves it:
- Add
packages/themes/y2k/src/y2kPalettes.test.tstoverified_by, and pin DEC-3's Blue border#70C1FFand foreground#003454there beside the other signature values. - Name the inherited dark-mode border gaps (default 1.31:1 and emphasized 1.76:1 against the surface) as known gaps, or say why they are out of scope.
- Say that the dark neutral ramp follows the navy dark surfaces instead of describing both neutral ramps as warm.
[Automated review]
b2b9570 to
ffdebc6
Compare
15c915b to
387a448
Compare
ffdebc6 to
5527a2b
Compare
927b99a to
e82e939
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record at this exact revision: it is the governing spec for Y2K's exact palette, its role mapping (71 color and shadow values change across light and dark) and its contrast audit, and record metadata naming the author does not count as that approval. The palette, receipt, selected stops, eject template, snapshot and package build all reproduce. Two record fixes are needed whatever that decision is:
y2k.spec.mdcitesspec:AST-020/FR16as the owner of its border audit and says there are no open questions, but FR16 exists only in open #7766; please keep that dependency as an open question, or land #7766 first and rebase.- The outline row says
#636889replaces the released#3A3F5E; please state only the current mapping and its 3.23:1 contrast, since the Changeset already records the old value.
[Automated review]
| (`--color-text-secondary`) on the Periwinkle body | ||
| (`--color-background-body`), which measures 4.25:1. | ||
|
|
||
| The dark neutral border audit follows `spec:AST-020/FR16` by suppressing each |
There was a problem hiding this comment.
spec:AST-020 defines FR1–FR15 on main and on this branch; FR16 exists only in open #7766. As a current record, this audit (and the “None” under Open questions, line 206) would rest on a rule nobody has approved yet. Could the record keep this as an open question naming the pending rule, or wait for #7766 to land and rebase?
|
|
||
| | Component or state | Border role and removal result | Requirement and result | | ||
| | ---------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| | Resting Selector, text input, and InputGroup members | Without the emphasized border, the input surface is only 1.09:1 against the body and the editable or selectable boundary becomes materially less identifiable. | The boundary is necessary. Neutral Dark 45 `#636889` replaces the released `#3A3F5E` and raises contrast from 1.71:1 to 3.23:1 on the `#16182B` input surface. | |
There was a problem hiding this comment.
“replaces the released #3A3F5E and raises contrast from 1.71:1” describes the change rather than the system (knowledge-contracts INV10, spec-writing R1). The Changeset already records the old value; could this cell state only “Neutral Dark 45 #636889 measures 3.23:1 on the #16182B input surface”?
71785a1 to
ad91845
Compare
e82e939 to
54be945
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record exactly as written at this revision, because no current theme record yet covers Y2K's exact palette and role mapping. A maintainer needs to settle the palette in packages/themes/y2k/palette.config.json, the mapping that changes 71 color and shadow values in the built theme.css, and the record's 4.25:1 light secondary-text exception and dark border audit. No code changes are requested: the build, tests, reproduction checks and contrast measurements all hold at this revision.
[Automated review]
ad91845 to
2f0bfcb
Compare
54be945 to
2a75d23
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record exactly as written at this revision, because no current theme record yet governs Y2K's exact palette and role mapping. A maintainer needs to settle the palette in packages/themes/y2k/palette.config.json, the mapping that changes 71 color and shadow values in the built theme.css, the record's 4.25:1 light secondary-text exception, and its dark border audit, including the control outline's 2.88:1 beside popover and muted surfaces. No code changes are requested: the build, tests, reproduction checks and contrast measurements all hold at this revision.
[Automated review]
2a75d23 to
7b30425
Compare
2f0bfcb to
333290a
Compare
7b30425 to
baf2aa2
Compare
333290a to
e5ecd61
Compare
There was a problem hiding this comment.
This Y2K palette change is on hold until a maintainer approves the new theme:y2k record exactly as written at this revision, because no current theme record yet governs Y2K's exact palette and role mapping. A maintainer needs to settle the palette in packages/themes/y2k/palette.config.json, the mapping that changes 71 color and shadow values in the built theme.css, the record's 4.25:1 light secondary-text exception, and its dark border audit, including the control outline's 2.88:1 beside popover and muted surfaces. No code change is required; one optional cleanup is to give the sandbox Palette Generator Lab's Y2K entry the seeds and vibrancy from palette.config.json (see the inline note).
[Automated review]
| storedFamily( | ||
| 'blue', | ||
| 'Blue', | ||
| '#8ecfff', |
There was a problem hiding this comment.
This entry now stores the reviewed ramps, but the seed here (#8ecfff, and likewise for the other families except Green) and the suggested vibrancy {oklch: 45, hct: 34, compare: 39} on line 470 are still the legacy ones, while palette.config.json generates these ramps from #00a8ff and the other new seeds at vibrancy 72. The lab labels each family "source" with this seed and measures candidates generated from it against the stored ramp, so its comparison describes the old request. Could the Y2K entry take its seeds and vibrancy from palette.config.json, and add the Periwinkle accent family? The sandbox Y2K palette page in this pull request already uses the new seeds.
baf2aa2 to
568c6d7
Compare
There was a problem hiding this comment.
This Y2K palette change is still on hold because no maintainer has approved the new theme:y2k record at this exact revision, and that record is the only governing spec for Y2K's exact palette, its role mapping (71 of the 190 root values in the built theme.css change) and its recorded contrast exceptions. Approval needs an ENGOWNERS or DESIGNOWNERS handle to approve the record at this head through the spec-owner gate, for example with an /approve-spec comment naming the full head commit, because the record's own approved_by metadata does not count. No code change is required: the build, tests, reproduction checks and contrast measurements hold at this revision, and the approver may want the record to also state the outline's 2.88:1 pairing beside popover and muted surfaces.
[Automated review]
|
/approve-spec 568c6d7 |
e5ecd61 to
de79839
Compare
Summary: Add a reproducible light-and-dark Y2K palette, map Y2K-owned color roles to selected stops, preserve the legacy public palette object unchanged, and synchronize the package and CLI template. Signature periwinkle and neon green remain exact; Blue stays airy while using a more electric ramp. Test Plan: 42 focused palette, mapping, contrast, spacing, and compatibility tests; config-to-candidate and receipt reproduction; selected-reference drift check; Y2K package build; all first-party theme builds; build and lab package builds; full sandbox build; changed-file ESLint and Prettier; changeset validation; package/template byte parity; independent review; browser-rendered raw palette, token mapping, and real-component comparison. Reviewers: Subscribers: Tasks: Tags:
568c6d7 to
3a2c154
Compare
|
/approve-spec 3a2c154 |
User impact
Y2K now uses one reviewed, reproducible Light/Dark palette across its existing semantic, categorical, syntax, effect, shadow, and component colors. Signature Periwinkle
#CCCFFAand Neon Green#C5E17Aremain exact. Blue keeps its airy surface character while moving to a more electric ramp.The released public
y2kPalettesobject remains byte-identical. The complete generated palette is private Y2K authoring data, and the maintained theme imports only selected Y2K stops.This pull request is stacked on Butter #7672. Shared generation tooling comes from color-neutral maintenance PR #7678; Y2K does not import another theme's palette values.
The proposed global WCAG 2.2 non-text contrast applicability rule is split into #7766. This PR keeps only Y2K's component/state audit and theme-specific evidence while the global owner remains an open question.
Visual authority
theme:y2krecords 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 in Light and Dark modes with inputs, banners, semantic and categorical badges, buttons, highlighted code, and progress bars.
State matrix
Scope
Consumers that need the former appearance can extend
y2kThemeand override the affected color, syntax, shadow, and component values with their previous values.Testing
pnpm vitest run packages/themes/y2k/src/y2kPalettes.test.ts packages/themes/y2k/src/y2kTheme.test.ts packages/themes/y2k/src/y2kColorMapping.test.ts scripts/generate-y2k-palette-refs.test.mjs scripts/palette-receipt-test-utils.test.mjs— 16 tests passedConfig-to-full-palette and cross-platform receipt reproduction
Y2K selected-reference drift check
pnpm -F @astryxdesign/theme-y2k buildpnpm check:knowledgepnpm check:changesetsComplete released
y2kPalettesobject is locked by snapshot equality and verified byte-identical to the parent revisionPackage and CLI-template theme, config, generated palette, receipt, and selected references verified byte-identical
Browser-rendered exact-head palette, token, and real-component evidence in Chromium
Final five-theme review remediation run: 21 files and 64 tests passed
Writing rubric results