You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using nx to manage my project. I've got it set up so that;
Main Next.js app runs in apps/my-app
tokens, semantic tokens and recipes live in libs/theme and imported into the panda.config.ts via @nx-integrated-monorepo/theme.
panda watches the next.js app/storybook and outputs are sent to libs/styled-system/src/__generated__/* and exported via @nx-integrated-monorepo/styled-system.
This works as expected for recipes and tokens, but not semantic tokens.
This mostly works as expected - I can see tokens I've created via defineTokens in the output CSS, but the semantic tokens are not outputting (regardless of whether I inline them here or define them in the theme lib).
Check libs/styled-system/src/__generated__tokens/index.css for missing heavy semantic token
Verify in storybook that the token isn't found:
JS Framework
React, TS, next.js, storybook, nx (🥲)
Panda CSS Version
0.5.1
Browser
No response
Operating System
macOS
Windows
Linux
Additional Information
No response
The text was updated successfully, but these errors were encountered:
mayteio
changed the title
semanticTokens don't seem to generate in nx context (full repro included)
semanticTokens don't seem to generate in nx/monorepo context
Jul 8, 2023
Description
I'm using
nx
to manage my project. I've got it set up so that;apps/my-app
libs/theme
and imported into thepanda.config.ts
via@nx-integrated-monorepo/theme
.libs/styled-system/src/__generated__/*
and exported via@nx-integrated-monorepo/styled-system
.This works as expected for recipes and tokens, but not semantic tokens.
Here's my panda.config.ts:
This mostly works as expected - I can see tokens I've created via
defineTokens
in the output CSS, but the semantic tokens are not outputting (regardless of whether I inline them here or define them in the theme lib).Link to Reproduction
Codesandbox
Steps to reproduce
libs/styled-system/src/__generated__tokens/index.css
for missingheavy
semantic tokenJS Framework
React, TS, next.js, storybook, nx (🥲)
Panda CSS Version
0.5.1
Browser
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: