Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix a incorrect link #2648

Merged
merged 1 commit into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading