CSSObject<Props> Requires css-defined keys #283
Labels
customization: css
Design CSS customizability
customization: theme
Centered around the theming features
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
add this kinds of things throws type error.
Current behavior
'--label-color': string
is inferred asCSSOthersObject
which is
{ [selector: string]: CSSObject<Props>; }
Warning saids, theme.colors.primary70 is not an
CSSObject<Props>
While, if I put some valid css keys with it,
Type error disappears.
Expected behavior
'--label-color': string
should be accepted as a valid key and value without other css properties.Context
No response
Your environment
in VSCode
Search keywords: css, style, CSSObject, key
The text was updated successfully, but these errors were encountered: