Migrate from Pando v0.7.1, 0.4.1, and earlier
What has changed?
You will still install and import @pluralsight/react
for use in v1
, but other dependencies such as @pluralsight/headless-styles
will be removed.
Additionally, some of the components that were available in v0 are not yet available in v1. This will be a short term state, and the unavailable components will be released in upcoming minor releases.
To see the current list of components available in v1, check the list of components that are
To see the components that are not yet available in v1, but will be released in upcoming minor releases, check the list of components that are
If there is a specific component you need that is not available in either of the above, please reach out to the Pando team on the #pando-help slack channel
Migration steps
Configure your project
1. Confirm your fonts
Check that you have this in your <head />
tag in your index.html
file (this should already be there from your usage of v0):
2. Include theme and mode attributes
Modify your <html />
tag to include the data-theme
and data-color-mode
attributes:
Installs and imports
1. Install v1
2. Import the Pando CSS
Import the static Pando CSS at the top of your index.css
file
3. Define layers in your root css file
Define css layers below the import of the Pando CSS in your index.css
file.
Patterns to modify
1. Change theme attributes
You will need to update theme attributes to use the new @pluralsight/react
package. The attribute sentiment
will now be palette
.
2. Replace Icons
While the package @pluralsight/icons
still exists, it is now also exported through v1 of @pluralsight/react
. You can import icons directly from @pluralsight/react/icons
:
Uninstall old dependencies
1. Uninstall @pluralsight/headless-styles
2. Uninstall @pluralsight/icons
Use Pando!
You’re all set! You are migrated to Pando v1.