wuzekang / antd-theme

Provide runtime dynamic theme for ant design.
https://wuzekang.github.io/antd-theme
55 stars 14 forks source link

No variables when using only "default" theme #12

Open donwojtallo opened 3 years ago

donwojtallo commented 3 years ago

If I provide in themes only the default one (or if I do not provide any theme) I get this object from useTheme():

{
  name: "default"
  themes: [
    name: "default"
    variables: {}
  ]
}

Please note that there are no variables. If I add any other theme the problem disappears (the variables are populated). Maybe using this lib with just one theme is not really useful, but I think this could be supported just for consistency.