Skip to content

Commit

Permalink
Merge pull request #429 from jeremybarbet/patch-1
Browse files Browse the repository at this point in the history
docs: warning about `theme` and `rt` usage with `.create` function
  • Loading branch information
jpudysz authored Dec 13, 2024
2 parents 5019642 + e6e8854 commit 0c74711
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/src/content/docs/v3/references/stylesheet.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ It can parse your `variants`, `compoundVariants` or `dynamic functions` (even if
Once you register your `themes` and `breakpoints`, it unlocks even more features, like injecting the current `theme` or `miniRuntime` into your stylesheet.
It also assists you with TypeScript autocompletion for your styles.

<Aside type="caution" title="Injected `theme` and `rt`">You explicity need to use `theme` and `rt` to detect dependencies, they cannot be destructured. This is a limitation of the babel plugin.</Aside>

Example usage:

```tsx /create/
Expand Down

0 comments on commit 0c74711

Please sign in to comment.