what if we just export a simple k template literal tag that literally does nothing, except it now allows us to target the tagged template literal expression so we can get syntax highlighting
eg:
import { k } from 'kremling';
const styles = k`
& .test {
background-color: red;
}
`;
this is extremely easy to set up in intellij/webstorm/etc - just add a new language injection for scss (css doesn't allow ampersands), and paste in this line for the pattern:
+ taggedString("k")
I did some research on building an intellij plugin, and it seems pretty straight forward.
vscode should be pretty easy too - just need to fork vscode-styled-components and make it work with k instead of styled.*
new proposal (concerning #32 )
what if we just export a simple
k
template literal tag that literally does nothing, except it now allows us to target the tagged template literal expression so we can get syntax highlightingeg:
this is extremely easy to set up in intellij/webstorm/etc - just add a new language injection for
scss
(css doesn't allow ampersands), and paste in this line for the pattern:I did some research on building an intellij plugin, and it seems pretty straight forward.
vscode should be pretty easy too - just need to fork
vscode-styled-components
and make it work withk
instead ofstyled.*
thoughts?