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