Radix Colors
Development library / tool · Free
Ready-to-use color scales for light and dark interfaces, transparent layers, and semantic states.
Also known as: radix-ui/colors

What you can use for free
Radix Colors code is available free of charge for local and commercial projects, subject to its license.
Paid features and costs
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Access and limitations
Radix Colors code is available free of charge for local and commercial projects, subject to its license. This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
Use cases
- Consistent light and dark themes
- Color scales for interface states
Example workflow
A possible workflow; this is not a report of hands-on testing.
Consistent light and dark themes with Radix Colors.
Before you start
- A working CSS; JavaScript project and a specific use case: consistent light and dark themes.
- A design, interface states, or dataset; target screens and accessibility requirements.
Steps
- Check the project's stack and version against the current Radix Colors documentation; add the package or the required source component.
- Implement the selected workflow with the supplied data, adapting styles and states to the project.
- Check the result in the target environment, remove sample data, and retain the notices required by the license.
Check your result
- The example works in the chosen tech stack, including target dimensions and input errors.
- Dependency size, keyboard behavior, and reduced motion suit the task; license terms are met.
Choosing Radix Colors
Consistent light and dark themes
Choose this when
- Consistent light and dark themes
- Color scales for interface states
Requirements
- Assign semantic roles to scale steps: background, component state, border, and text; check your own color pairs.
Things to consider
- Costs and limits of free use: This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
- Terms of use: MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
- White text on step 9 is not a universal rule: the documentation identifies scales requiring dark text.
Frequently asked questions
What can you use for free in Radix Colors?
Radix Colors code is available free of charge for local and commercial projects, subject to its license.
What additional costs might arise with Radix Colors?
This library does not require a paid plan. Development and hosting of the finished application are separate from the free code license.
What terms of use matter for Radix Colors?
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
How do you get started with Radix Colors?
Check the project's stack and version against the current Radix Colors documentation; add the package or the required source component. Implement the selected workflow with the supplied data, adapting styles and states to the project. Check the result in the target environment, remove sample data, and retain the notices required by the license.
What text should I use over a Radix Colors primary color?
In most scales, steps 9–10 are intended for white text. Sky, Mint, Lime, Yellow, and Amber require dark text. Steps 11–12 are intended for text on the corresponding backgrounds; this does not confirm accessibility of arbitrary combinations from different scales.
Related tasks and approaches
License
MIT: permits commercial use, modification, and distribution of the code at no charge, provided the license text and copyright notice are retained.
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- CSS
- JavaScript
- color