#color #radix #radix-colors-rs

radix-colors-rs

The Radix UI Colors palettes expressed in Rust constants

2 releases

Uses new Rust 2024

0.1.1 Dec 26, 2024
0.1.0 Dec 26, 2024

#8 in #radix

MIT license

53KB

radix-colors-rs

I got tired of manually copying Radix colors into my projects, so I made this crate. It contains a mini JS project and some Nix code to produce a colors.json file. This file is parsed by rust macros to generate the color constants.

If you're coming from some other language, you're welcome also to just use the colors.json file as is.

Dependencies

~1.8–2.5MB
~56K SLoC