Skip to content

Commit

Permalink
Merge pull request #271 from 404mat/docs_theme_tip_typescript_error
Browse files Browse the repository at this point in the history
  • Loading branch information
jpudysz authored Aug 28, 2024
2 parents 8370345 + d0a76f2 commit e66c66e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/content/docs/reference/theming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Where `name` is the unique name of your theme.

:::tip
Your themes may have different shapes, but it's generally not recommended.

For example, at runtime, if you reference a property from `lightTheme` that doesn’t exist in `darkTheme` or any other theme, the value will default to `undefined` when the app switches to that theme. This can lead to unpredictable behavior in your app.

TypeScript will warn you if you attempt to use a property that isn’t defined across all your themes.
:::

### Select theme
Expand Down

0 comments on commit e66c66e

Please sign in to comment.