Skip to content

A demo for creating dynamic Tailwind CSS classes in React components

Notifications You must be signed in to change notification settings

Achronus/dynamic-tailwindcss-classes

Repository files navigation

Dynamic Tailwind CSS Classes

This repository is dedicated to a niche problem I encountered when trying to create Dynamic Tailwind CSS classes in a React project. You can read more about it in my Medium blog post.

This project follows a simple setup of using Vite + React + Typescript with the Vite boilerplate code from the command:

npm create vite@latest <project_name> --template react-ts

And the addition of the Tailwind CSS package.

Files to Explore

Here's some quick links to the updated boilerplate files for creating the final (Enum) solution:

About

A demo for creating dynamic Tailwind CSS classes in React components

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published