Giter Site home page Giter Site logo

alexandredev3 / tails-ui Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 2.86 MB

A Design System for TailwindCSS projects

Home Page: https://tails-ui-playground.vercel.app

License: MIT License

JavaScript 15.16% HTML 1.95% TypeScript 75.12% CSS 0.42% Handlebars 7.35%
design-system javascript plopjs reactjs storybook tailwind tailwind-css tailwindcss turborepo typescript

tails-ui's Introduction

Tails UI

A Design System for TailwindCSS

Components Storybook Docs License

Documentation

To see all the available components and usages, visit alexandredev3.github.io/tails-ui.com

Visit https://tails-ui-playground.vercel.app/ to play around with the demo.

Usage

Follow these steps to start using the components:

  1. Install TailwindCSS in your existing React project.
$ npm install -D tailwindcss
$ npx tailwindcss init
  1. Install the Tails UI Tailwind plugin as a dev dependency on your project.
$ npm install -D @tails-ui/plugin 
  1. Install the components that you want to use in your project.
$ npm install @tails-ui/checkbox @tails-ui/button

Tails UI allows you to download only those components that you really need in your project.

  1. Add the Tails UI plugin to your project tailwind.config.js file.
/** @type {import('tailwindcss').Config} */
module.exports = {
  plugins: [require('@tails-ui/plugin')]
}
  1. Add the Tails UI components template path to your tailwind.config.js file.
/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./node_modules/@tails-ui/**/*.js"
  ],
}
  1. Now you can start to use the components!
function Example() {
  return (
    <main>
      <div className="flex items-center gap-2">
        <Checkbox
          id="terms"
          name="terms"
        >
          <Checkbox.Icon />
        </Checkbox>
        <Label
          className="text-sm"
          htmlFor="terms"
        >
          Accept terms & conditions
        </Label>
      </div>
    </main>
  );
}

Contributing

tails-ui's People

Contributors

alexandredev3 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.