Found no color leading for #5e81ac and #bf616a
See original GitHub issue- Operating system and version: macOS
- Compilation issue
- Bootstrap v5-alpha2
For 2 colors I get below warnings in node_modules/bootstrap/scss/_functions.scss 117:3 color-contrast()
WARNING: Found no color leading to 4.5:1 contrast ratio against #5e81ac… WARNING: Found no color leading to 4.5:1 contrast ratio against #bf616a…
The text color for this background color sometime is dark sometime is light. For example for buttons and bg-* classes are dark, while for badges are light.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (12 by maintainers)
Top Results From Across the Web
SASS/SCSS: Bootstrap 5 Color functions not working well?
You will need to change the value of the $min-contrast-ratio variable to a lower value. By default, Bootstrap v5 sets 4.5 as the...
Read more >Variables for {bs4dash}
Main colors of {bs4Dash} are defined in 6 status, you can use those ... The text is not readable on a black background...
Read more >nakedWiki | i3wm - nakeDeb
everything is logged in the main i3 configuration file ... #8fbcbb – bright cyan #88c0d0 – cyan #81a1c1 – blue #5e81ac - bright...
Read more >Theming Bootstrap in your Spring Boot application - Robin Tegg
The Bootstrap theming feature requires Sass which is not native to Java. We are going to use node-sass to customise Bootstrap and the...
Read more >Yomichan Custom CSS - TheMoeWay
If you want to setup Yomichan, you can find that here ... If no color is specified for the ruby selector, it will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
in bootstrap 5 i solved this warnings by changing $min-contrast-ratio from 4.5 that is default to 2.5 use bellow line in settings.scss and import settings before bootstrap $min-contrast-ratio: 2.5;
I only change variables, the functions are default from bootstrap.
I can’t find on codepen.io bootstrap v5 alpha, so not sure where to add live example, but I can show you live compiled example and below are how to reproduce this.
Main app.scss file that first include variables overrides and then main bootstrap.scss directly from node_modules.
https://gist.github.com/thewebartisan7/f14097a263b1a3db0e0692139d6cc14d
Compiled app.css:
https://gist.github.com/thewebartisan7/bfc4cfa1b04182d02a26604c3ba50086
Demo of result: http://laravel-ui.laraloop.com/docs/theme
Compare secondary and success button vs badges secondary and success. Text are dark for buttons and light for badges.
Full error log: