chore(workflows): Fix merge conflicts with master
This commit is contained in:
@@ -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]
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user