Closed jsellam closed 4 months ago
Hi, I'm using a config in a ts file with colors, but I would like to type the color field as strict dripsy color
Actually I don't know how to type my color field, I use string, and I have an error in my sx prop 👍
Who know what type to use please ?
Thx, Jeremie.
Ok I have the answer :
type Color = keyof ReturnType<typeof useDripsyTheme>['theme']['colors'];
Yes, or you can simply import Theme from dripsy
Theme
Hi, I'm using a config in a ts file with colors, but I would like to type the color field as strict dripsy color
Actually I don't know how to type my color field, I use string, and I have an error in my sx prop 👍
Who know what type to use please ?
Thx, Jeremie.