Skip to content

Is there a way to override colorContrast for a custom theme? #4081

Closed Answered by snide
acidjunk asked this question in Q&A
Discussion options

You must be logged in to vote

In general we don't provide a way to overwrite the color contrast mixins. The reasoning being that accessibility is one of the goals of the library and we want things to just work automatically for people. You are correct though that should you want, you can certainly overwrite the selector itself, or the sass mixins. If you poke around in the Amsterdam theme, you'll see how we do this for similar functions in the codebase.

We don't plan to add an escape hatch to the functions themselves, but overwriting the mixins in your import pipeline will definitely get you what you want.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by elizabetdev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4081 on November 11, 2020 17:40.