-
Hi, I'm writing a codemod to change a bunch of static styled components into Vanilla Extract styles. For example;
How are these properties expected to be handled by VE? Thanks for any help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
since it's a typings issue, you could assert the type like this: import { style, ComplexStyleRule } from '@vanilla-extract/css'
const unsupportedStyleProperty = style({
size: 60,
WebkitAppRegion: 'no-drag',
orAnyCustomProp: 'vanilla-extract'
} as ComplexStyleRule) note that currently, VE is using CSSType for its CSS type definition. Hopefully, they'll support new CSS property like |
Beta Was this translation helpful? Give feedback.
-
Would you be able to share the codemod? Or some simple examples to get us started? Looking to do the same thing. I have a basic understanding of ASTs but hit a bit of a wall trying to mod styled template literals :( |
Beta Was this translation helpful? Give feedback.
since it's a typings issue, you could assert the type like this:
note that currently, VE is using CSSType for its CSS type definition.
Hopefully, they'll support new CSS property like
size
ASAP, or you could open a PR for it.