Go to file
2025-08-27 09:01:27 +02:00
.storybook feat: added them all 2025-07-31 11:14:20 +02:00
src fix: css tailwind layers 2025-08-27 09:01:27 +02:00
.gitignore feat: add storybook config 2025-07-31 10:46:00 +02:00
biome.json formatter and export icons 2025-08-05 12:59:18 +02:00
bun.lock feat: add typo 2025-07-31 11:29:01 +02:00
components.json feat: add initial build setup 2025-07-30 17:36:55 +02:00
LICENSE Initial commit 2025-07-30 12:25:53 +02:00
package.json fix: css tailwind layers 2025-08-27 09:01:27 +02:00
README.md feat: add initial build setup 2025-07-30 17:36:55 +02:00
tsconfig.build.json feat: add initial build setup 2025-07-30 17:36:55 +02:00
tsconfig.json feat: add initial build setup 2025-07-30 17:36:55 +02:00
vite.config.ts fix: css tailwind layers 2025-08-27 09:01:27 +02:00
vitest.shims.d.ts feat: bootstrapped storybook 2025-07-30 14:25:52 +02:00

@foomo/ui

A modern React component library built with Tailwind CSS v4, TypeScript, and Radix UI primitives.

Features

  • 🎨 Built with Tailwind CSS v4
  • 🔧 Full TypeScript support
  • 📦 Tree-shakeable - import only what you need
  • 🎯 No barrel exports - better performance
  • 🌗 Dark mode support
  • Accessible components via Radix UI

Installation

npm install @foomo/ui

Usage

Import the CSS file once in your app:

// In your app's entry file (e.g., App.tsx or main.tsx)
import "@foomo/ui/ui.css";

Import components individually:

import { Button } from "@foomo/ui/components/button";
import { cn } from "@foomo/ui/lib/utils";

function App() {
  return (
    <div>
      <Button variant="outline" size="lg">
        Get Started
      </Button>

      <Button variant="destructive" className={cn("mt-4")}>
        Delete Item
      </Button>
    </div>
  );
}

Development

# Install dependencies
bun install

# Start Storybook
bun run storybook

# Build the library
bun run build