mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
BREAKING CHANGE:
Can now pass contrast to the colors map:
```
$colors-wp: (
primary: (
base: #327eff,
contrast: yellow
),
secondary: (
base: #32db64,
contrast: hotpink
),
danger: #d91e18,
light: #f4f4f4,
dark: #222
) !default;
```
references #5445
20 lines
379 B
SCSS
20 lines
379 B
SCSS
@import "./chip";
|
|
|
|
// Windows Chip
|
|
// --------------------------------------------------
|
|
|
|
|
|
// Generate Windows Chip Colors
|
|
// --------------------------------------------------
|
|
|
|
@each $color-name, $color-base, $color-contrast in get-colors($colors-wp) {
|
|
|
|
ion-chip {
|
|
ion-icon[#{$color-name}] {
|
|
color: $color-contrast;
|
|
background-color: $color-base;
|
|
}
|
|
}
|
|
|
|
}
|