1- import { rgba , currentColor , mix , dynamicFont } from '../../utils/theme' ;
1+ import { rgba , currentColor , ionColor , mix , dynamicFont } from '../../utils/theme' ;
22import { defaultTheme as baseDefaultTheme } from '../base/default.tokens' ;
33import { colors as baseColors } from '../base/shared.tokens' ;
44import type { DefaultTheme } from '../themes.interfaces' ;
@@ -604,9 +604,7 @@ export const defaultTheme: DefaultTheme = {
604604 indeterminate : {
605605 progress : {
606606 default : {
607- // TODO: Replace with ionColor() once that utility is merged
608- // ion-color(primary, base) -> ionColor('primary', 'base')
609- background : 'var(--ion-color-primary-bold)' ,
607+ background : ionColor ( 'primary' , 'base' ) ,
610608 } ,
611609
612610 semantic : {
@@ -619,9 +617,7 @@ export const defaultTheme: DefaultTheme = {
619617 buffer : {
620618 bar : {
621619 default : {
622- // TODO: Replace rgba() with ionColor() once that utility is merged
623- // ion-color(primary, base, 0.3) -> ionColor('primary', 'base', { alpha: 0.3 }),
624- background : rgba ( 'var(--ion-color-primary-bold-rgb)' , 0.3 ) ,
620+ background : ionColor ( 'primary' , 'base' , { alpha : 0.3 } ) ,
625621 } ,
626622
627623 semantic : {
@@ -636,9 +632,7 @@ export const defaultTheme: DefaultTheme = {
636632 determinate : {
637633 progress : {
638634 default : {
639- // TODO: Replace with ionColor() once that utility is merged
640- // ion-color(primary, base) -> ionColor('primary', 'base')
641- background : 'var(--ion-color-primary-bold)' ,
635+ background : ionColor ( 'primary' , 'base' ) ,
642636 } ,
643637
644638 semantic : {
@@ -651,9 +645,7 @@ export const defaultTheme: DefaultTheme = {
651645 buffer : {
652646 bar : {
653647 default : {
654- // TODO: Replace rgba() with ionColor() once that utility is merged
655- // ion-color(primary, base, 0.3) -> ionColor('primary', 'base', { alpha: 0.3 }),
656- background : rgba ( 'var(--ion-color-primary-bold-rgb)' , 0.3 ) ,
648+ background : ionColor ( 'primary' , 'base' , { alpha : 0.3 } ) ,
657649 } ,
658650
659651 semantic : {
@@ -665,9 +657,7 @@ export const defaultTheme: DefaultTheme = {
665657
666658 circles : {
667659 default : {
668- // TODO: Replace rgba() with ionColor() once that utility is merged
669- // ion-color(primary, base, 0.3) -> ionColor('primary', 'base', { alpha: 0.3 })
670- background : rgba ( 'var(--ion-color-primary-bold-rgb)' , 0.3 ) ,
660+ background : ionColor ( 'primary' , 'base' , { alpha : 0.3 } ) ,
671661 } ,
672662
673663 semantic : {
0 commit comments