bevy-color-macros

Crates.iobevy-color-macros
lib.rsbevy-color-macros
version0.2.0-alpha.1
created_at2026-01-18 08:58:18.936797+00
updated_at2026-01-23 23:06:58.101605+00
descriptionProc-macro crate for bevy-color-palettes: compile-time helpers for defining Bevy color palettes.
homepagehttps://weirdboi.dev/libraries/bevy-colours
repositoryhttps://github.com/AmyGilhespy/bevy-color-palettes
max_upload_size
id2052076
size18,502
Amy (AmyGilhespy)

documentation

README

weirdboi_bevy_colour_macros

This is the proc-macro crate used by the weirdboi_bevy_colour library.

You normally won’t depend on this crate directly. Instead, use the main crate, which re-exports the macros for defining palettes at compile time.

Usage

Most users should import macros through the main crate:

use weirdboi_bevy_colour::palette;

palette!(MyPalette {
    "bg": (0.1, 0.1, 0.2),
    "fg": (0.9, 0.9, 1.0),
});

If you really need to depend on the macros crate directly (advanced use-cases), add this to your Cargo.toml:

[dependencies]
weirdboi_bevy_colour_macros = "0.1.0"

But prefer the main crate unless you know you need only the macros.

Commit count: 19

cargo fmt