buildVariables method

  1. @override
Map<String, Object> buildVariables(
  1. ContentTheme theme
)
override

Builds CSS variables for this extension.

Implementation

@override
Map<String, Object> buildVariables(ContentTheme theme) {
  return {
    _backgroundVariable: backgroundColor ?? ThemeColor(ThemeColors.gray.$200, dark: ThemeColors.gray.$900),
    _textVariable: textColor ?? ThemeColor(ThemeColors.gray.$800, dark: ThemeColors.gray.$100),
    _iconVariable: iconColor ?? ThemeColor(ThemeColors.gray.$600, dark: ThemeColors.gray.$400),
    _highlightVariable: highlightColor ?? ContentColors.primary,
    _radiusVariable: radius ?? 0.375.rem,
  };
}