Skip to content

Adopt reviewed Y2K color palette - #7675

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

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

Conversation

@rubyycheung

@rubyycheung rubyycheung commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Y2K now uses one reviewed, reproducible Light/Dark palette across its existing semantic, categorical, syntax, effect, shadow, and component colors. Signature Periwinkle #CCCFFA and Neon Green #C5E17A remain exact. Blue keeps its airy surface character while moving to a more electric ramp.

The released public y2kPalettes object 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

  • The Y2K palette and mapping direction were owner-reviewed in Light and Dark modes.
  • theme:y2k records the approved palette, mappings, compatibility, and evidence at this exact head.

Before and after

Raw palette

Reviewed Y2K light and dark palette

Existing roles mapped to named palette stops

Current and mapped Y2K token colors

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.

Y2K real-component before and after

State matrix

  • Light and Dark modes
  • Signature Periwinkle page body and Neon Green
  • Airy Electric Blue surfaces, borders, text, and icons
  • Semantic surfaces, text, icons, borders, overlays, effects, and statuses
  • All nine categorical families and Gray
  • Syntax foregrounds, background, and diff tints
  • Representative real components
  • Data-visualization tokens remain untouched

Scope

  • Appearance is the primary intent.
  • Behavior, public API, interaction, typography, spacing, radii, motion, and shadow geometry are unchanged.
  • The unchanged public palette remains byte-identical; no consumer migration is required.
  • Components continue consuming semantic tokens rather than palette objects.
  • The evidence shows changed pixels rendered through real Astryx components.
  • Public text and artifacts contain no internal Meta context.

Consumers that need the former appearance can extend y2kTheme and 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 passed

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

  • Y2K selected-reference drift check

  • pnpm -F @astryxdesign/theme-y2k build

  • pnpm check:knowledge

  • pnpm check:changesets

  • Complete released y2kPalettes object is locked by snapshot equality and verified byte-identical to the parent revision

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

  • 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 remains open on the current design record that owns cross-theme non-text contrast applicability; Define contextual non-text contrast review #7766 carries that separate decision, and Y2K retains only its concrete audit.

@vercel

vercel Bot commented Oct 18, 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 10:12pm UTC

Request Review

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

astracat-bot Bot commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

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

@github-actions

github-actions Bot commented Oct 18, 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

@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 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.mjs compares 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]

Comment on lines +82 to +99
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',
),
),
);

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-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?

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

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.

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?

@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 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.ts to verified_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]

Comment on lines +11 to +16
verified_by:
[
packages/themes/y2k/src/y2kTheme.test.ts,
packages/themes/y2k/src/y2kColorMapping.test.ts,
scripts/generate-y2k-palette-refs.test.mjs,
]

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.

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?

Comment thread packages/themes/y2k/y2k.spec.md Outdated
Comment on lines +91 to +93
The known light-mode exception is secondary text
(`--color-text-secondary`) on the Periwinkle body
(`--color-background-body`), which measures 4.25: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 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?

@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 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.ts to verified_by, and pin DEC-3's Blue border #70C1FF and foreground #003454 there 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]

@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 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.md cites spec:AST-020/FR16 as 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 #636889 replaces 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]

Comment thread packages/themes/y2k/y2k.spec.md Outdated
(`--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

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.

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?

Comment thread packages/themes/y2k/y2k.spec.md Outdated

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

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.

“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”?

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

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

@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 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',

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

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

@rubyycheung

Copy link
Copy Markdown
Contributor Author

/approve-spec 568c6d7

@rubyycheung
rubyycheung force-pushed the ruby/butter-reviewed-palette branch from e5ecd61 to de79839 Compare October 22, 2026 21:43
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:
@rubyycheung
rubyycheung force-pushed the ruby/y2k-reviewed-palette branch from 568c6d7 to 3a2c154 Compare October 22, 2026 22:01
@rubyycheung
rubyycheung changed the base branch from ruby/butter-reviewed-palette to main October 22, 2026 22:01
@rubyycheung

Copy link
Copy Markdown
Contributor Author

/approve-spec 3a2c154

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

This branch was successfully deployed

1 active deployment
Preview — 3a2c1542 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