Skip to content

Animated React Components - Lightswind UI. Create stunning web applications effortlessly with Lightwind UI. Access 100+ customizable CLI components, blocks, and templates—from dashboards to resource pages. Available in React, these animated elements are fully customizable, helping you craft user-friendly, visually appealing apps quickly

License

Notifications You must be signed in to change notification settings

codewithMUHILAN/Lightswind-UI-Library

Repository files navigation

Lightswind UI Logo

Lightswind UI 3.1.16

A collection of beautifully crafted React Components, Blocks & Templates built with Tailwind CSS. Create stunning web applications effortlessly by using our 100+ professional and animated react components.

GitHub Stars NPM Version License



📦 Installation

Step 1: Install Tailwind CSS

Lightswind UI components are built on Tailwind CSS. Make sure to install Tailwind in your project by following the instructions at Tailwind CSS Installation Guide.


Step 2: Install Lightswind UI Package

Add the Lightswind UI package to your project dependencies.

# Using npm
npm install lightswind@lastest

# Using yarn
yarn add lightswind

# Using pnpm
pnpm add lightswind

Step 3: Initialize Components

Set up Lightswind UI components in your project structure.

Full Setup

Our CLI tool will automatically install all components, utilities, and styles to your project.

npx create-lightswind
What this command does?

Creates src/components/lightswind src/components/lightswind folder All UI components are organized in this directory.

Sets up src/lib folder Contains utilities and helpers for component functionality.

Configures theme settings Sets up custom theme variables and Tailwind configuration.

Adds TypeScript types Includes comprehensive type definitions for all components.

Copies CSS styles Places the lightswind.css file in src/components/lightswind.css.

Individual Component

Use the CLI to install only the components you need. Replace `[component-name]` with the desired component (e.g., `button`, `card`, `dialog`).

npx create-lightswind button
What this command does?

Copies the component file to src/components/lightswind The selected component's source code will be available in this directory.

Copies associated utility files to src/lib Any necessary helper functions or utilities for the component are included.

Copies the main Lightswind CSS to src/components/lightswind.css The core styles for Lightswind UI are provided.


Step 4: Configure Styles

Integrate Lightswind UI's core styles into your project using one of the methods below.

Use as Plugin

Using the Tailwind CSS plugin is the easiest way to get started and ensures seamless integration and updates.

For Tailwind CSS v4.x (Alpha)
----------------------

/* In your main CSS file (e.g., globals.css) */
@import 'tailwindcss';
@plugin 'lightswind/plugin'; /* <-- Add this line */

/* Your custom styles below */



For Tailwind CSS v3.x
----------------------

// tailwind.config.js
module.exports = {
  // ...
  plugins: [
    require('lightswind/plugin'),
    // ...
  ],
}

Import CSS File

This method requires you to manually import the static CSS file generated by the CLI. This is not recommended if you plan to use the plugin system.

/* Add to your main CSS file (e.g., globals.css) */
@import "./src/components/lightswind.css";

                      (or)

@import "@/components/lightswind/lightswind.css";

Final Step: Using Components

Start building your interface with Lightswind UI components.

Component Structure

After running the initialization command (e.g., `npx create-lightswind`), your project structure will be updated to include Lightswind UI components and utilities.

src/
├── components/
│   ├── lightswind/
│   │   ├── button.tsx
│   │   ├── card.tsx
│   │   ├── dialog.tsx
│   │   └── ... more components
│   └── ... your components
├── lib/
│   ├── utils.ts
│   └── theme.ts
├── components/lightswind.css  <-- Lightswind UI core styles
└── ... rest of your project

Ready to go!

You've successfully installed and set up Lightswind UI components in your project.

🔗 View Full Installation Guide

For a complete setup walkthrough with examples and configuration tips, visit: https://lightswind.com/components/installation

```

Start building your interface with Lightswind UI components

🔧 Requirements

  • React 18+
  • Tailwind CSS 3+
  • TypeScript 4.9+ (for TypeScript users)

🚀 Quick Start

import React from "react";
import { Button } from "@/components/lightswind/button";
import {
  Card,
  CardHeader,
  CardTitle,
  CardDescription,
  CardContent,
  CardFooter,
} from "@/components/lightswind/card";
import { Input } from "@/components/lightswind/input";

export default function LoginPage() {
  return (
    <div className="min-h-screen flex items-center justify-center bg-slate-50 dark:bg-slate-900 p-4">
      <Card className="w-full max-w-md shadow-lg">
        <CardHeader className="space-y-1">
          <CardTitle className="text-2xl font-bold">Sign in</CardTitle>
          <CardDescription>
            Enter your credentials to access your account
          </CardDescription>
        </CardHeader>
        <CardContent>
          <div className="space-y-4">
            <div className="space-y-2">
              <label htmlFor="email" className="text-sm font-medium">
                Email
              </label>
              <Input id="email" type="email" placeholder="your@email.com" />
            </div>
            <div className="space-y-2">
              <label htmlFor="password" className="text-sm font-medium">
                Password
              </label>
              <Input id="password" type="password" placeholder="••••••••" />
            </div>
          </div>
        </CardContent>
        <CardFooter>
          <Button className="w-full">Sign in</Button>
        </CardFooter>
      </Card>
    </div>
  );
}

✨ Core Features

  • ⚡ Responsive by Default — All components are designed to work across devices of all sizes

  • ⚡ Themeable — Customize the look and feel to match your brand identity

  • ⚡ Accessible — Follows WAI-ARIA guidelines for inclusive user interfaces

  • ⚡ Modern Animations — Subtle animations and transitions enhance user experience

  • ⚡ CLI Installation — Quickly set up projects with our simple and powerful CLI tool

  • ⚡ AI Assistance — Get smart recommendations and code suggestions powered by AI for faster development

🧩 Component Library

Create stunning web applications effortlessly by using our 100+ professional and animated react components.:

Our Components List

🌈 Theming System

Lightswind UI uses CSS variables for theming, making it easy to customize:

      ":root": {
        "--primarylw": "#173eff",
        "--primarylw-2": "#3758f9",
        "--darklw": "#11131B",
        "--darklw-2": "#1a1d25",
        "--greedy": "#07eae6",

        "--background": "0 0% 100%",
        "--foreground": "0 0% 0%",

        "--card": "0 0% 100%",
        "--card-foreground": "0 0% 0%",

        "--popover": "0 0% 100%",
        "--popover-foreground": "0 0% 0%",

        "--primary": "0 0% 0%",
        "--primary-foreground": "0 0% 100%",

        "--secondary": "0 0% 96%",
        "--secondary-foreground": "0 0% 0%",

        "--muted": "0 0% 96%",
        "--muted-foreground": "0 0% 45%",

        "--accent": "0 0% 96%",
        "--accent-foreground": "0 0% 0%",

        "--destructive": "0 84% 60%",
        "--destructive-foreground": "0 0% 100%",

        "--border": "0 0% 90%",
        "--input": "0 0% 90%",
        "--ring": "0 0% 0%",

        "--radius": "0.5rem",

        "--scrollbar-thumb": "0 0% 75%",
        "--scrollbar-track": "0 0% 95%",
        "--scrollbar-hover": "0 0% 65%",
      },

      // Dark theme
      ".dark": {
        "--primarylw": "#173eff",
        "--primarylw-2": "#3758f9",
        "--darklw": "#11131B",
        "--darklw-2": "#1a1d25",
        "--greedy": "#07eae6",

        "--background": "0 0% 0%",
        "--foreground": "0 0% 100%",

        "--card": "0 0% 5%",
        "--card-foreground": "0 0% 100%",

        "--popover": "0 0% 5%",
        "--popover-foreground": "0 0% 100%",

        "--primary": "0 0% 100%",
        "--primary-foreground": "0 0% 0%",

        "--secondary": "0 0% 15%",
        "--secondary-foreground": "0 0% 100%",

        "--muted": "0 0% 15%",
        "--muted-foreground": "0 0% 65%",

        "--accent": "0 0% 15%",
        "--accent-foreground": "0 0% 100%",

        "--destructive": "0 62% 30%",
        "--destructive-foreground": "0 0% 100%",

        "--border": "#000",
        "--input": "0 0% 20%",
        "--ring": "0 0% 20%",

        "--scrollbar-thumb": "0 0% 25%",
        "--scrollbar-track": "0 0% 10%",
        "--scrollbar-hover": "0 0% 35%",
      },

📖 Documentation

For comprehensive documentation including all components, props, and examples:

View Documentation

🤝 Contributing

We welcome contributions to Lightswind UI! Here's how you can help:

  1. Request a feature
  2. Report an issue
  3. Buy me a Coffee (Support Us❤️)
  4. Buy Our Premium Plan (Support Us❤️)
  5. Star out Repository (Star Us❤️)

📄 License

Lightswind UI is licensed under the [MIT License].


Designed and built with ❤️ by the Code with Muhilan

Instagram Follow

<script src="https://cdn.tailwindcss.com"></script>

About

Animated React Components - Lightswind UI. Create stunning web applications effortlessly with Lightwind UI. Access 100+ customizable CLI components, blocks, and templates—from dashboards to resource pages. Available in React, these animated elements are fully customizable, helping you craft user-friendly, visually appealing apps quickly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published