A modern design system library for React.js and Next.js, built on top of Tailwind CSS v4.
Read this in other languages: English | 한국어
- 🎨 Utility-First: Powered by Tailwind CSS v4 for ultimate flexibility and performance.
- 🛠️ Type-Safe: Fully written in TypeScript with comprehensive IntelliSense support.
- 📦 Minimal Footprint: Optimized with Tree-shaking and Minification to keep your bundle light.
- 🚀 Framework Ready: Seamless integration with Next.js (App Router), Vite, and more.
Install the package via your favorite package manager:
# npm
npm install soongle-ui
# yarn
yarn add soongle-ui
# pnpm
pnpm add soongle-uiTo ensure components are styled correctly, follow the setup guide based on your project configuration.
If you are not using Tailwind CSS in your project, import the pre-compiled stylesheet in your root entry file:
// For Next.js (app/layout.tsx) or Vite (src/main.tsx)
import 'soongle-ui/styles.css';If your project already uses Tailwind CSS, do not import soongle-ui/styles.css. Instead, include the library in your Tailwind configuration to leverage shared theme tokens and avoid duplicate styles.
Tailwind v4 scans your modules automatically. Simply ensure your root CSS file includes the @source directive:
@import "tailwindcss";
@source "../node_modules/soongle-ui";Add the library path to your content array:
export default {
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/soongle-ui/dist/**/*.{js,ts,jsx,tsx}",
],
// ...
};The Text component supports various sizes, weights, and colors derived from Tailwind defaults.
import { Text } from 'soongle-ui';
function Example() {
return (
<div className="flex flex-col gap-4">
<Text size="5xl" weight="black" color="primary">
Modern UI with Soongle
</Text>
<Text size="base" color="muted">
Build beautiful interfaces faster with pre-styled components.
</Text>
</div>
);
}| Component | Status | Description |
|---|---|---|
Button |
✅ | Primary, Secondary, and Ghost variants with loading states. |
Text |
✅ | Semantic typography with full Tailwind utility support. |
Input |
⏳ | Accessible form inputs and validations. |
Card |
⏳ | Flexible container for diverse content layouts. |
- React:
^18.0.0or^19.0.0 - Tailwind CSS:
v4.xrecommended (compatible withv3.x)
Developed by Soongle.