Skip to content

Instantly share code, notes, and snippets.

@argyleink argyleink/css&js.css
Created Dec 26, 2018

Embed
What would you like to do?
css and js doing similar tasks
foo {
color: hsl(100,80%,75%);
background-color: hsl(100,20%,25%);
}
foo.map(styles => ({
...styles,
color: 'hsl(100,80%,75%)',
background-color: 'hsl(100,20%,25%)',
}))
foo {
color: hsl(100,80%,75%);
background-color: hsl(100,20%,25%);
&.primary {
color: hotpink;
}
}
foo
.filter(node =>
node.classList.contains('primary'))
.map(styles => ({
...styles,
color: 'hotpink'
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.