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

Added theme a11yOneLight #534

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bilalbhojani24
Copy link

@bilalbhojani24 bilalbhojani24 commented Aug 25, 2023

Problem:-
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 etch

Solution:-
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

@codecov
Copy link

codecov bot commented Aug 25, 2023

Codecov Report

Merging #534 (e9be178) into master (6990564) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #534   +/-   ##
=======================================
  Coverage   95.97%   95.97%           
=======================================
  Files          11       11           
  Lines         323      323           
  Branches      123      123           
=======================================
  Hits          310      310           
  Misses         12       12           
  Partials        1        1           

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.

None yet

1 participant