( theme: Theme, colorKey: YaakColorKey, colors?: ThemeComponentColors, )
| 208 | } |
| 209 | |
| 210 | function buttonCSS( |
| 211 | theme: Theme, |
| 212 | colorKey: YaakColorKey, |
| 213 | colors?: ThemeComponentColors, |
| 214 | ): string | null { |
| 215 | const color = yc(theme, colors?.[colorKey]); |
| 216 | if (color == null) return null; |
| 217 | |
| 218 | return [ |
| 219 | variablesToCSS(`.x-theme-button--solid--${colorKey}`, buttonSolidColorVariables(color)), |
| 220 | variablesToCSS(`.x-theme-button--border--${colorKey}`, buttonBorderColorVariables(color)), |
| 221 | ].join("\n\n"); |
| 222 | } |
| 223 | |
| 224 | function bannerCSS( |
| 225 | theme: Theme, |
no test coverage detected