Skip to content

⚛ Tailwind CSS plugin to get atomic components ready to use with HTML & React.

License

Notifications You must be signed in to change notification settings

ChristoRibeiro/tailwindatoms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Tailwind Atoms

Tailwind Atoms

Tailwind CSS plugin to get atomic components ready to use
with HTML & React: button, input, checkbox switch...


Created by Christophe Ribeiro 🪄

Setup

Install the plugin:

yarn add tailwindatoms --dev
yarn add @tailwindatoms/react # if you use React

or

npm install tailwindatoms --save-dev
npm install @tailwindatoms/react # if you use React

Add the plugin to your Tailwind config:

// tailwind.config.js
module.exports = {
  // ...
  plugins: [require("tailwindatoms")],
}

Getting started

With HTML

<button class="btn btn-primary">Submit</button>

<input type="text" class="input" />
<input type="checkbox" class="switch">

With React

import { Button, Input } from "@tailwindatoms/react"

const MyPage = () => (
  <>
    <Button color="primary">Submit</Button>

    <Input type="text" />
    <Input type="switch" />
  </>
)

export default MyPage

Components

Checkout the components list on the official website.

About

⚛ Tailwind CSS plugin to get atomic components ready to use with HTML & React.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published