Tailwind CSS plugin for softpop design system
npm install tailwind-softpop-pluginA Tailwind CSS v4 plugin that implements the "Soft Pop" design system. This plugin provides a vibrant, playful aesthetic with hard shadows, bold borders, and a comprehensive color palette using accessible oklch colors.
- šØ Radiant Colors: Complete 50-950 color palette using oklch for Primary, Secondary, Accent, Base, Neutral, and functional colors (Success, Warning, Error, Info).
- š¤ Typography: Pre-configured font families (Nunito for headings, Mulish for body).
- š¦ Components: Ready-to-use accessible components like Buttons and Cards.
- š Layout: Responsive container utilities.
- š Container Queries: Intelligent card layouts that adapt to their container size.
``bash`
npm install tailwind-softpop-pluginor
pnpm add tailwind-softpop-pluginor
yarn add tailwind-softpop-plugin
Since this is a Tailwind CSS v4 plugin, you simply need to import it into your main CSS file.
`css`
@import "tailwindcss";
@import "tailwind-softpop-plugin";
This will automatically configure the theme variables, base styles, and load the component plugin.
The system uses oklch for inconsistent perceptual brightness.
- Primary: Cyan/Blue tones
- Secondary: Orange/Yellow tones
- Accent: Purple/Pink tones
- Neutral: Slate/Grey tones
#### Buttons (.btn)
Available variants:
- .btn-primary.btn-secondary
- .btn-outline
-
`html`
#### Cards (.card)
Responsive cards that support Container Queries.
` Some awesome content here.html`
Card Title
Horizontal Card:
Add .horizontal to make the card adapt to a row layout when width permits (>450px).
`html`
#### Section Container (.section-container)
A responsive container that handles max-width and padding automatically across breakpoints.
`html``
MIT Ā© CarfDev