This package creates a Tailwind 4.0 @theme CSS file with Radix colors, not including alpha colors.
npm install -D tailwind-4-radix-colors
@import "tailwindcss";
@import "tailwind-4-radix-colors/dist/theme.css";
<div class="bg-violet-2 dark:bg-violet-dark-2 text-violet-12 dark:text-violet-12 border border-violet-9">
Hello, world!
</div>
supports-p3
custom variant to add P3 colors to your project:<div class="bg-violet-2 supports-p3:bg-violet-p3-2 dark:bg-violet-dark-2 dark:supports-p3:bg-violet-dark-p3-2">
Hello, world with more color space!
</div>
Radix Colors is an open-source color system designed for adaptive, accessible design. Learn more about Radix Colors at https://www.radix-ui.com/colors.