Skip to content

Custom Styles

Farben's built-in tags cover a lot of ground, but sometimes you need your own. This section covers the style file system powered by farben-build, which lets you define custom tags in a .frb.toml file and have them work with both runtime and compile-time macros.

Quick Comparison

ApproachWhen to useFeature flag
style!() / prefix!()Simple runtime aliases, no build script neededformat (default)
.frb.toml + farben-buildShared styles across projects, compile-time resolutionformat or compile