#color-palette #radix #constants #ui #expressed #parsed #generate

nightly macro radix-colors-derive

The Radix UI Colors palettes expressed in Rust constants

1 unstable release

0.1.2 Dec 26, 2024
0.1.1 Dec 26, 2024
0.1.0 Dec 26, 2024

#36 in #parsed

Download history 297/week @ 2024-12-23 3/week @ 2025-01-06

300 downloads per month
Used in radix-colors-rs

MIT license

7KB
134 lines

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.7–2.4MB
~55K SLoC