Replies: 4 comments 6 replies
|
BTW is there docs for styleVariants? |
1 reply
|
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'
} |
2 replies
|
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! |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
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
All reactions