Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WCAG color contrast theme #533

Open
bilalbhojani24 opened this issue Aug 25, 2023 · 1 comment
Open

WCAG color contrast theme #533

bilalbhojani24 opened this issue Aug 25, 2023 · 1 comment

Comments

@bilalbhojani24
Copy link

bilalbhojani24 commented Aug 25, 2023

Is your feature request related to a problem? Please describe.
I was trying multiple theme's provided by library from HLJS or Prism, but no styles were following WCAG colour contrast. Apart from A11YLight and A11YDark, I couldn't find any which supports highlighting on functionsNames, variables, classNames of Java, CSharp etc.

Describe the solution you'd like
I have planned to create a new theme on the top of one-light theme which fixes WCAG colour contrast issue.

Sandbox link : https://codesandbox.io/p/sandbox/syntax-highlighter-theme-wcag-compatible-forked-f3j9kw?file=%2Fsrc%2Fcomponents%2FCodeblock%2FoneLightWCAG.ts%3A8%2C28

Describe alternatives you've considered
NA

Additional context
NA

@bilalbhojani24
Copy link
Author

I have created a PR to support the above feature i.e. support A11Y in one-light theme naming (a11yOneLight) which is WCAG colour contrast fit and supports keyword highlighting in all languages.

PR: #534

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

No branches or pull requests

1 participant