Skip to content

Empower components with custom props for Tailwind styles 👽

Notifications You must be signed in to change notification settings

plushdohn/tailprops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Empower your framework's components with custom props for Tailwind styles.

Warning

Tailprops is just starting to form. It is not yet ready for production use. We appreciate you tinkering with it, feel free to provide feedback to make it better for everyone.

Overview

Tailprops is a set of tools that allow you to write Tailwind classes in this way:

<div
  tw="flex flex-col bg-red-500"
  tw-desktop="flex-row" // Responsive breakpoints
  tw-dark-focus-hover="bg-blue-500" // Or any combination of Tailwind modifiers
/>

It works as a compile step, hooking into your bundler and transforming the props into the actual Tailwind classes.

Docs

The full documentation is available at tailprops.dev.