We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
for instance: http://compass-style.org/reference/compass/utilities/color/contrast/#function-contrast-color
Useful in among others mixins/background-variants.scss:
mixins/background-variants.scss
// Contextual backgrounds // [converter] $parent hack @mixin bg-variant($parent, $color) { #{$parent} { color: contrast-color($color,$gray-dark,$gray-lightest); background-color: $color; } a#{$parent} { @include hover-focus { background-color: darken($color, 10%); } } }
See also: #18118
The text was updated successfully, but these errors were encountered:
X-Ref: #3224
Sorry, something went wrong.
Yeah, could be nice to do something here as a utility function across the project.
I'd like to suggest an actual dark/light distinction with a single body.inverse class. I'd go further and say an automatically generated color-palette would be impressive as well. Perhaps copy https://github.com/simurai/duotone-light-syntax And https://github.com/simurai/duotone-dark-syntax
body.inverse
I'd be happy to give it a shot if interested @mdo
No branches or pull requests
for instance: http://compass-style.org/reference/compass/utilities/color/contrast/#function-contrast-color
Useful in among others
mixins/background-variants.scss
:See also: #18118
The text was updated successfully, but these errors were encountered: