( strings: TemplateStringsArray, ...values: string[] )
| 9 | }; |
| 10 | |
| 11 | export 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 | }; |
no test coverage detected