yp717 / tailwindcss-radix-colors-plugin

https://tailwind-radix-plugin-docs.vercel.app
MIT License
5 stars 1 forks source link

tailwindcss-radix-colors-plugin

GitHub npm

Overview

Welcome to the world of superior color control with our Radix Colors for Tailwind CSS plugin. Designed to seamlessly enhance your Tailwind CSS projects, this plugin effortlessly incorporates the dynamic Radix color palette into your design workflow. Simplify your color management process while maintaining design consistency across your projects.

This Radix Colors for Tailwind CSS plugin operates in conjunction with your Tailwind CSS configuration. By extending your Tailwind CSS theme colors with the Radix palette, it allows you to use Radix colors directly in your Tailwind utility classes. Simply install the plugin, update your Tailwind configuration, and start creating stunning designs with enhanced color control.

Key Features

tailwindcss-radix-colors-plugin introduces the following standout features:

How it works

Prerequisites

Before using tailwindcss-radix-colors-plugin, ensure you meet the following prerequisites:

Installation

Install tailwindcss-radix-colors-plugin with npm:

npm install tailwindcss-radix-colors-plugin

Basic Usage

In your Tailwind CSS configuration file (tailwind.config.js), import the plugin and add it to your configuration:

const { tailwindRadixPlugin } = require('tailwindcss-radix-colors-plugin')

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
  darkMode: 'class',
  theme: {
    // your theme configuration
  },
  variants: {
    // your variants configuration
  },
  plugins: [
    tailwindRadixPlugin(),
    // your other plugins
  ],
}

After adding the plugin to your configuration, your Tailwind CSS utility classes will have access to Radix color palette. You can use these classes like any other utility classes provided by Tailwind CSS:

<div className="text-crimson-500 bg-indigo-1000">
  <!-- your content -->
</div>

Project Stack 🥞

Inside the monorepo 🏎️?

This Turborepo includes the following packages/apps: