Skip to content

Commit

Permalink
fix: support numeric tokens in themes (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathantneal authored Feb 17, 2021
1 parent a9166d1 commit ed8945d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export type TConditions = {
initial: string
[k: string]: string
}
export type TTheme = { [k in keyof EmptyTheme]?: { [b: string]: string } }
export type TTheme = { [k in keyof EmptyTheme]?: { [b: string]: number | string } }
export type TThemeMap = { [k in keyof Properties]?: keyof EmptyTheme }
/** Configuration of Stitches, including a default theme, prefix, custom conditions, and functional properties. */
export interface IConfig<Conditions extends TConditions = {}, Theme extends TTheme = {}, Utils = {}, Prefix = '', ThemeMap = {}> {
Expand Down

0 comments on commit ed8945d

Please sign in to comment.