Early Adopting Cerberus (Alpha) #12
caseybaggz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If you are a user or team that is interested in early adopting Cerberus, follow the steps below to add Cerberus Design System to your app.
Step 1 - Install Panda-CSS
Install Panda CSS using the guide related to your project stack. Make sure you have validated Panda works before moving onto the next step. This is included in the Panda setup guides.
Supporting Older Browsers
If your app needs to support older browsers be sure to also install and use the CSS Polyfills
Step 2 - Install Cerberus Packages
Once you have verified Panda CSS works in your project, install the Cerberus and Panda preset:
Step 3 - Update Panda Config to use Cerberus
Once the preset packages are installed, update your
panda.config.ts
to use those:Update your local styles
Now that you have extended Panda, you need to update your local styles by running the
prepare
script.Step 4 - Setup Cerberus Fonts (optional)
If you would like to use the Brand font associated with Cerberus, we recommend Poppins. Unfortunately, it is not a variable font, so another great solution which is, is the Inter font (comes pre-configured in NextJS apps).
NextJS usage:
Using the Cerberus React & Icons packages
If you are interested in using the Cerberus React and Icons packages, install those now:
Add a Cerberus script
To help make maintaining a breeze, add this new script to your package.json to use when you are ready to upgrade Cerberus:
Typescript w/out NextJS
Beta Was this translation helpful? Give feedback.
All reactions