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

Method css

packages/theme/src/yaakColor.ts:98–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96 }
97
98 css(): string {
99 const [r, g, b] = parseColor(`hsl(${this.hue},${this.saturation}%,${this.lightness}%)`).rgb;
100 return rgbaToHex(r, g, b, this.alpha);
101 }
102
103 hexNoAlpha(): string {
104 const [r, g, b] = parseColor(`hsl(${this.hue},${this.saturation}%,${this.lightness}%)`).rgb;

Callers 9

cloneMethod · 0.95
themeVariablesFunction · 0.80
toastColorVariablesFunction · 0.80
bannerColorVariablesFunction · 0.80
_inputCSSFunction · 0.80
completeThemeFunction · 0.80

Calls 1

rgbaToHexFunction · 0.85

Tested by

no test coverage detected