Skip to content

Commit f654832

Browse files
committed
docs(themes): update the examples of the ion-color function
1 parent 7ee659c commit f654832

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/themes/functions.color.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
// --------------------------------------------------------------------------------------------
2121
// Example usage:
2222
// ion-color(primary, base) => var(--ion-color-primary, var(--ion-color-primary-bold))
23-
// ion-color(secondary, contrast) => var(--ion-color-secondary-contrast)
24-
// ion-color(primary, base, 0.5) => rgba(var(--ion-color-primary-rgb), 0.5)
25-
// ion-color(primary, base, null, true) => var(--ion-color-primary-rgb)
23+
// ion-color(primary, contrast) => var(--ion-color-primary-contrast, var(--ion-color-primary-bold-contrast))
24+
// ion-color(primary, base, 0.5) => rgba(var(--ion-color-primary-rgb, var(--ion-color-primary-bold-rgb)), 0.5)
25+
// ion-color(primary, base, null, true) => var(--ion-color-primary-rgb, var(--ion-color-primary-bold-rgb))
2626
// ion-color(primary, base, null, null, true) => var(--ion-color-primary-subtle)
27+
// ion-color(primary, foreground, null, null, true) => var(--ion-color-primary-subtle-foreground)
2728
// --------------------------------------------------------------------------------------------
2829
@function ion-color($name, $variation, $alpha: null, $rgb: null, $subtle: false) {
2930
// Build base variable name

0 commit comments

Comments
 (0)