Lightning-fast component library optimized for Next.js. 64 accessible, theme-aware components built with Tailwind CSS.
npm install @storm-ds/ui
# or
pnpm add @storm-ds/uipnpm add react react-dom tailwindcss
# Optional — only needed for chart components
pnpm add recharts @storm-ds/iconsAdd the Storm plugin to your tailwind.config.js:
module.exports = {
darkMode: 'class',
content: [
// ...
'./node_modules/@storm-ds/ui/dist/**/*.{js,mjs}',
],
plugins: [
require('@storm-ds/ui/plugin').default || require('@storm-ds/ui/plugin'),
],
}For Next.js, add transpilePackages in next.config.js:
module.exports = {
transpilePackages: ['@storm-ds/ui'],
}import { Button, Card, CardHeader, CardBody } from '@storm-ds/ui'
export default function App() {
return (
<Card>
<CardHeader>Hello</CardHeader>
<CardBody>
<Button>Click me</Button>
</CardBody>
</Card>
)
}import { StormBarChart, StormLineChart } from '@storm-ds/ui/charts'Requires recharts as a peer dependency.
The plugin provides semantic design tokens:
- Colors —
bg-storm-primary,text-storm-foreground,border-storm-border, etc. - Border radius —
rounded-storm-sm(6px),rounded-storm-md(8px),rounded-storm-lg(12px) - Spacing —
storm-xs(4px) throughstorm-2xl(48px) - Dark mode — all tokens adapt automatically with
darkMode: 'class'
| Entry point | Description |
|---|---|
@storm-ds/ui |
All 64 components |
@storm-ds/ui/plugin |
Tailwind CSS plugin (colors, radius, spacing) |
@storm-ds/ui/charts |
Chart wrappers (BarChart, LineChart, AreaChart, etc.) |
- Node >= 18
- React >= 18
- Tailwind CSS >= 3
MIT