chore(workflows): Fix merge conflicts with master

This commit is contained in:
olivermrbl
2022-12-07 20:28:32 +01:00
890 changed files with 101176 additions and 38064 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* Converts a string of CSS into object syntax
* @param strings
* @param keys
* @returns {Object} CSS in object syntax
* @example
* const output = css`
* html {
* color: rebeccapurple;
* }
* `
*/
export function css(strings, ...keys) {
const lastIndex = strings.length - 1
return (
strings.slice(0, lastIndex).reduce((p, s, i) => p + s + keys[i], ``) +
strings[lastIndex]
)
}