Skip to content

fix(theme): [ENG-48341] add gray.275/gray.650 and re-step the light canvas, border and muted text - #1051

Merged
isaque-bock-azion merged 5 commits into
mainfrom
fix/ENG-48341-light-text-muted-contrast
Oct 2, 2026
Merged

isaque-bock-azion merged 5 commits into
mainfrom
fix/ENG-48341-light-text-muted-contrast

Conversation

@gabriel-lisboa-azion

Copy link
Copy Markdown
Contributor

Summary

  • Light --text-muted was #808080, 3.95:1 on --bg-surface — under the AA 4.5:1 floor, so every axe run over muted copy flagged it. It moves to a new global step, gray.650 (#535353): 7.06:1 on the canvas, 7.69:1 on surface.
  • The light canvas moves one step darker (surface-50 → surface-100, #F5F5F5), and --border-default moves to a new gray.275 (#D1D1D1) so rules still clear it. Both new steps ship as --color-gray-* and --surface-275 / --surface-650 with their utilities.
  • Dark mode is unchanged.

How to test

  1. pnpm --filter @aziontech/theme build:tokens → dist/v4/globals.css changes only the three light values above plus the new gray-275 / gray-650 / surface-275 / surface-650 declarations and utilities.
  2. pnpm --filter @aziontech/theme test → 17 pass.
  3. pnpm storybook:dev in light mode → muted copy (helper text, table secondary columns, descriptions) reads darker; the page background is one step darker and borders still show against it.

Notes

…anvas, border and muted text

- New global steps: gray.275 (#D1D1D1) and gray.650 (#535353), surfaced as surface-275 and
  surface-650 (with their bg/text/border utilities).
- Light --bg-canvas moves from surface-50 (#FAFAFA) to surface-100 (#F5F5F5).
- Light --text-muted moves from gray.500 (#808080, 3.95:1 on surface, under AA) to
  gray.650: 7.06:1 on canvas, 7.69:1 on surface.
- Light --border-default moves to gray.275 so the rule still clears the darker canvas.
  Dark mode is unchanged.
@isaque-bock-azion
isaque-bock-azion merged commit e24b303 into main Oct 2, 2026
@isaque-bock-azion
isaque-bock-azion deleted the fix/ENG-48341-light-text-muted-contrast branch October 2, 2026 16:50
@github-actions github-actions Bot mentioned this pull request Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants