@solana/design-system
v1.0.0
Published
Solana Design System - A collection of React components for building Solana applications
Readme
@solana/design-system
Solana Design System — React components, tokens, and styles for Solana apps.
Install
pnpm add @solana/design-system @base-ui/react motionUsage
Add the design system styles to your Tailwind entry CSS (the file that contains @import "tailwindcss";).
@import 'tailwindcss';
@import '@solana/design-system/styles';Optional (opt-in global base styles): copy @solana/design-system/base.css into your app and customize it, or import it after styles.
@import '@solana/design-system/base.css';For deeper guidance on overrides and theming, see docs/css-overrides.md.
For a complete npm setup guide, see docs/getting-started-npm.md.
Then import components.
import { Button } from '@solana/design-system/button';You can also import from the root entrypoint (less tree-shaking friendly).
import { Button } from '@solana/design-system';Development (monorepo)
From the repository root:
pnpm --filter @solana/design-system storybook
pnpm --filter @solana/design-system build