Skip to content

fix: port WCAG AA color contrast fixes from crit CLI #90

@tomasz-tomczyk

Description

@tomasz-tomczyk

Port the theme changes from tomasz-tomczyk/crit#274 to crit-web for parity.

Changes to port

  • --fg-muted: dark #565f89#868fba, light #8b949e#656d76
  • --fg-dimmed: dark #8b93b4#9ea6c8
  • --diff-word-add-bg/--diff-word-del-bg: reduced opacities (dark 0.4→0.18, light 0.25→0.15)
  • --fg-on-accent: dark #fff#1a1b26
  • Light theme: --accent #0969da#0860c7, --green #1a7f37#176d2e, --red #cf222e#b91c28, --yellow #9a6700#7a5800
  • Dark hljs: replaced GitHub Dark Dimmed with Tokyo Night Dark syntax colors
  • Light hljs: added missing selectors (.hljs-params, .hljs-link, .hljs-property, .hljs-tag, .hljs-char.escape_, .hljs-punctuation), darkened built_in from #e36209#b94600
  • Badge opacities: reduced --badge-deleted-bg (dark 0.12→0.10, light 0.08→0.05)

Context

All changes target WCAG AA compliance (4.5:1 for normal text, 3:1 for large text/UI components). See the CLI PR for the full diff.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions