Anyone successfully used Unistyles in a monorepo? #133
Replies: 2 comments 3 replies
-
Please check this repo with turborepo and solito: |
Beta Was this translation helpful? Give feedback.
3 replies
-
Here a monorepo with unistyles the typescript init in this file https://github.com/Paymium/crossed/blob/main/packages/ui/src/theme/index.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So far my turborepo setup looks like
-- apps/native
-- packages
In order to have the theme registered in the app I've added
import '@theapp/packages-unistyles'
in theapps/native/app/_layout.tsx
and that works ok.In order to use the type for the theme in the components package I need to add
import '@theapp/packages-unistyles'
to every file.Did someone manage to implement a better monorepo structure?
Beta Was this translation helpful? Give feedback.
All reactions