MCPcopy Index your code
hub / github.com/webstudio-is/webstudio / css

Function css

packages/template/src/css.ts:11–24  ·  view source on GitHub ↗
(
  strings: TemplateStringsArray,
  ...values: string[]
)

Source from the content-addressed store, hash-verified

9};
10
11export const css = (
12 strings: TemplateStringsArray,
13 ...values: string[]
14): TemplateStyleDecl[] => {
15 const cssString = `.styles{ ${String.raw({ raw: strings }, ...values)} }`;
16 const styles: TemplateStyleDecl[] = [];
17 for (const { breakpoint, state, property, value } of parseCss(
18 cssString,
19 new Map()
20 ).styles) {
21 styles.push({ breakpoint, state, property: property, value });
22 }
23 return styles;
24};

Callers 15

vimeo.template.tsxFile · 0.90
core-templates.tsxFile · 0.90
css.test.tsxFile · 0.90
css.test.tsFile · 0.90
jsx.test.tsxFile · 0.90
createSelectItemFunction · 0.90
createAccordionItemFunction · 0.90
createMenuContentItemFunction · 0.90

Calls 1

parseCssFunction · 0.90

Tested by

no test coverage detected