milandekruijf / pandacss-preset-typography

Typography preset for PandaCSS
https://milandekruijf.com/work/pandacss-preset-typography
MIT License
24 stars 2 forks source link

Exposing the `createRecipe` function #5

Closed astahmer closed 1 year ago

astahmer commented 1 year ago

Hey, I'm currently using this preset with some customizations on my end, it looks like this:

className={cx(prose(), article(), css(xxx))}

prose is generated from pandacss-preset-typography article is one of my config recipe

the issue is that some of my article styles are being overriden, due to the CSS specificity being the same between prose and article so if you exposed the createRecipe I could create it and customize it directly on my end, that way there wouldnt be any clash because the prose styles that I'm trying to override would simply not be there anymore (probably using the recipe extension, or at least a deep merge)

milandekruijf commented 1 year ago

Hey! Sorry for the late response.

I've just published a new patch with more exposed functions, including the createRecipe function.

I hope it works out!

milandekruijf commented 1 year ago

I might do something with options to allow customisations within the preset options, but that might be something for in the future.

astahmer commented 1 year ago

thanks, that was fast !