MCPcopy
hub / github.com/mountain-loop/yaak / buttonCSS

Function buttonCSS

packages/theme/src/window.ts:210–222  ·  view source on GitHub ↗
(
  theme: Theme,
  colorKey: YaakColorKey,
  colors?: ThemeComponentColors,
)

Source from the content-addressed store, hash-verified

208}
209
210function 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
224function bannerCSS(
225 theme: Theme,

Callers 1

getThemeCSSFunction · 0.85

Calls 4

ycFunction · 0.85
variablesToCSSFunction · 0.85

Tested by

no test coverage detected