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
Currently I'm trying to define a recipe outside of the main package where styled-system is setup
From what I understand there's two ways to define a recipe
pass in the recipe to the cva function
use the defineConfig function then add it to the panda css config
Then import the above / use it as the input to a cva function
Problem Statement/Justification
So the question I've got is would it be useful to add a new type to @pandacss/types/dist/index
which is an alias to RecipeDefinition<RecipeVariantRecord> so that an object can be defined outside of the main package
that can then be passed into the cva function
Or in this case is the design choice to force the use of defineConfig for receipe's defined outside of the main pacakge?
This discussion was converted from issue #940 on July 05, 2023 08:55.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
Currently I'm trying to define a recipe outside of the main package where styled-system is setup
From what I understand there's two ways to define a recipe
One way to do this is:
Then import the above / use it as the input to a cva function
Problem Statement/Justification
So the question I've got is would it be useful to add a new type to
@pandacss/types/dist/index
which is an alias to
RecipeDefinition<RecipeVariantRecord>
so that an object can be defined outside of the main packagethat can then be passed into the cva function
Or in this case is the design choice to force the use of defineConfig for receipe's defined outside of the main pacakge?
Proposed Solution or API
As above
Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions