1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

v5: Update colors to add shades and tints (#29348)

* Add variables for shades and tints of each major color

* getting-started/theming.md: use a `range`.
This commit is contained in:
Mark Otto
2019-10-18 11:04:27 -07:00
committed by GitHub
parent 1fa337cc20
commit 943bef258d
4 changed files with 231 additions and 5 deletions

View File

@@ -100,3 +100,11 @@
@return mix($color-base, $color, $level * $theme-color-interval);
}
@function tint-color($color, $level) {
@return mix(white, $color, $level * $theme-color-interval);
}
@function shade-color($color, $level) {
@return mix(black, $color, $level * $theme-color-interval);
}