@still-forest/canopy
v0.51.0
Published
React components, built with Tailwind CSS, Shadcn, and VisX
Downloads
3,474
Readme
Canopy
React components, built with Tailwind CSS, Shadcn, and VisX
Resources
- Github repo
- Distribution
- Building blocks
- Documentation via Storybook
- Github Pages - docs only
- Development
- Other documentation, documents
Usage
Installation
When using Vite, Canopy must be included in your primary .css file in order to ensure the necessary CSS classes are included in the build. For more details, read the Tailwind CSS documentation on explicitly registering sources.
Example index.css:
@import "tailwindcss";
@source "../node_modules/@still-forest/canopy/dist";
@layer base {
/* your usual CSS definitions */
}Testing locally
Using pnpm link
- In this package, run build in watch mode:
pnpm build --watchThen expose it locally for linking:
pnpm link- In the consuming package, link package.json to the locally built version:
pnpm link @still-forest/canopy- When done, cleanup:
pnpm unlink @still-forest/canopy
pnpm store prune # clear pnpm's global storeUsing pnpm add
- In this package, run build in watch mode:
pnpm build --watch- In the consuming package, point package.json to the locally built version:
pnpm add ~/Development/canopyDirect file copy
Alternatively, directly copy the built version periodically:
rm -rf ./node_modules/@still-forest/canopy/dist && cp -r ~/Development/canopy/dist ./node_modules/@still-forest/canopy/dist