Install Pando Deps (@next version)
Add the PS Font
In order to use the PS Commons font, you will need to preload it in your index.html
file:
Extend the Panda config
Now, it’s time to add Pando by extending the config. Update your panda.config.ts
file to look like this:
Update PostCSS
If you are using a build that doesn’t come with PostCSS built in - update your config to use the following plugins:
If you do not have the plugins - install them to your devDeps
:
Generate the styles
Now that we have Pando extending Panda - we need to update the styles:
Or, you could add a script to your package.json
for a better interface:
While you’re adding scripts to your package.json
you can also add a script for future Pando updates to your style library.