Skip to content

Adjust Okaidia Prism theme color for WCAG contrast compliance#4072

Open
Brennvo wants to merge 1 commit intoPrismJS:v2from
Brennvo:patch-1
Open

Adjust Okaidia Prism theme color for WCAG contrast compliance#4072
Brennvo wants to merge 1 commit intoPrismJS:v2from
Brennvo:patch-1

Conversation

@Brennvo
Copy link
Copy Markdown

@Brennvo Brennvo commented Apr 2, 2026

Summary

The Okaida theme consists of a font color that fails WCAG AA and AAA for normal text. This PR adjusts the font color to meet WCAG AA.

Note

I would recommend striving for AAA, but that would cause the theme to change more drastically. I can update this PR if that is not a problem.

Before

Fails WCAG AA and AAA:

  • Background: #272822
  • Foreground: #F92672
Screenshot 2026-04-01 at 7 22 27 PM

https://webaim.org/resources/contrastchecker/?fcolor=F92672&bcolor=272822

After

Passes WCAG AA:

  • Background: #272822
  • Foreground: #FF4F8F
Screenshot 2026-04-01 at 7 22 40 PM

https://webaim.org/resources/contrastchecker/?fcolor=FF4F8F&bcolor=272822

Before (fails WCAG AA and AAA):

* Background: `#272822`
* Foreground: `#F92672`

https://webaim.org/resources/contrastchecker/?fcolor=F92672&bcolor=272822

After (passes WCAG AA):

* Background: `#272822`
* Foreground: `#FF4F8F`

https://webaim.org/resources/contrastchecker/?fcolor=FF4F8F&bcolor=272822
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for dev-prismjs-com ready!

Name Link
🔨 Latest commit e9160c8
🔍 Latest deploy log https://app.netlify.com/projects/dev-prismjs-com/deploys/69cdb75d342f96000841767e
😎 Deploy Preview https://deploy-preview-4072--dev-prismjs-com.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 2, 2026

No JS Changes

Generated by 🚫 dangerJS against e9160c8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant