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.
tailwindcss-radix-colors-plugin
introduces the following standout features:
Before using tailwindcss-radix-colors-plugin, ensure you meet the following prerequisites:
Install tailwindcss-radix-colors-plugin with npm:
npm install tailwindcss-radix-colors-plugin
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>
This Turborepo includes the following packages/apps:
docs
: The documentation site for tailwindcss-radix-colors-plugin
, built with Next.js and TypeScripteslint-config-custom
: eslint
configurations (includes eslint-config-next
and eslint-config-prettier
)tsconfig
: tsconfig.json
s used throughout the monorepoexample apps
: Example apps built with tailwindcss-radix-colors-plugin
and different frameworks (Coming Soon!)