Skip to content

Commit

Permalink
docs: fix a incorrect link (#2648)
Browse files Browse the repository at this point in the history
  • Loading branch information
suu3 authored Jun 4, 2024
1 parent b2fc4f4 commit 66079d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/pages/docs/guides/component-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ This approach comes with a few downsides:

### Summary

- create a Panda [preset](docs/customization/presets) so that you (and your users) can share the same design system tokens
- create a Panda [preset](/docs/customization/presets) so that you (and your users) can share the same design system tokens
- create a workspace package for your outdir (`@acme-org/styled-system`) and use that package name as the `importMap` in your app code
- have your component library (`@acme-org/components`) use the `@acme-org/styled-system` package as external

Expand All @@ -144,7 +144,7 @@ Let's make a dedicated workspace package for your `outdir`:
1. Create a new directory `packages/styled-system` (or any other name)
2. Install `@pandacss/dev` as a dev dependency
3. Run the `panda init` command in there to generate a `panda.config.ts` file, don't forget to set the `jsxFramework` if needed
4. [optional] you might want to install and import your [preset](docs/customization/presets) in this `panda.config.ts` file as well
4. [optional] you might want to install and import your [preset](/docs/customization/presets) in this `panda.config.ts` file as well
5. Run the [`panda emit-pkg`](/docs/references/cli#emit-pkg) command to set the entrypoints in [`exports`](https://nodejs.org/api/packages.html#exports)

This should look similar to this:
Expand Down

0 comments on commit 66079d7

Please sign in to comment.