Skip to content

Instantly share code, notes, and snippets.

@adryd325
Last active July 29, 2023 01:04
Show Gist options
  • Save adryd325/3906e46e0f33bb255824a57969f9d845 to your computer and use it in GitHub Desktop.
Save adryd325/3906e46e0f33bb255824a57969f9d845 to your computer and use it in GitHub Desktop.
/* Role color adjustmets for visibility
* In theory this should make all role colors visible on both light and dark mode
* Feel free to adjust the values until you get something you like
* - adryd */
.theme-dark {
--brightness: 1.35;
--contrast: 0.5;
--saturation: 1;
}
.theme-light {
--brightness: 0.8;
--contrast: 0.8;
--saturation: 1;
}
[class*="desaturateUserColors-"] {
filter: saturate(var(--saturation)) contrast(var(--contrast)) brightness(var(--brightness)) !important;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment