Replies: 4 comments 6 replies
-
BTW is there docs for styleVariants? |
Beta Was this translation helpful? Give feedback.
-
I mean, it doesn't work cuz that is not what the API is expecting, it expects something like this: type Tokens = {
[key: string]: string | Tokens;
}; You should just pass the values as strings and it'll work. fontWeight: {
normal: '400'
} |
Beta Was this translation helpful? Give feedback.
-
Hey @sillyleo, font weight should be a string as recommended by @p7gg |
Beta Was this translation helpful? Give feedback.
-
Hi @Mokshit06 thanks again. Would like to hear your suggestion on the best way to type a component. Issuehttps://github.com/sillyleo/nomimono/blob/main/src/Button/index.tsx In my setup here, the vite plugin I used to generate/infer type doesn't work. (config) The type does work in local env (I can get auto-completion and checking). However, the published package doesn't have that. Is there a recommended setup? For example, import some type definition and extend the type with my own props like Stitches? Thank! |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for the library! I came from vanilla-extract to macaron for the friendlier setup and variant API.
However, I encountered an issue with typing:
Do you have any idea why I can't assign numbers to the fontWeights? Thanks
Beta Was this translation helpful? Give feedback.
All reactions