Global Colors
Central color token system shared across Exylia plugins
Global Colors
ExyliaLib includes a global color token system using the {TOKEN} format.
It is designed so server owners can restyle the whole plugin quickly without editing every message, menu, or lore line manually.
How it works
- The plugin creates a
colors.ymlfile automatically. - Each key in that file becomes a reusable token.
- You use those tokens in text with
{key}format.
Example:
some-message: "{primary}Text using primary color"In this example, {primary} is replaced by the value configured in colors.yml.
Default colors.yml
primary: <#8a51c4>
secondary: <#aa76de>
secondary_light: <#b48fd9>
letters: <#e7cfff>
letters_black: <#a89ab5>
error: <#a33b53>
success: <#8fffc1>
success_light: <#a1ffc3>
warning: <#ff9500>
warning_light: <#ffd2a8>
info: <#59a4ff>
info_light: <#7db7ff>
accent: <#ff6b9d>
neutral: <#6c757d>
highlight: <#ffd700>
muted: <#868e96>
gradient_primary: <gradient:#8a51c4:#aa76de>
gradient_success: <gradient:#8fffc1:#a1ffc3>
gradient_warning: <gradient:#ff9500:#ffd2a8>
gradient_error: <gradient:#a33b53:#ff6b9d>Usage examples
prefix: "{primary}&lEXYLIA"
error-message: "{error}You cannot do this right now."
success-message: "{success}Configuration saved."name: "{gradient_primary}&lMain Menu"
lore:
- "{letters}Select an option"
- "{muted}Click to continue"Why this exists
- Fast branding changes in seconds
- Consistent style across all plugin files
- Cleaner YAML with reusable style tokens
Compatibility note
This token system is an additional layer, not a replacement.
You can still use your usual formatting styles:
- MiniMessage tags like
<red>,<#ffffff>,<bold> - Legacy color/style codes like
&c,&f,&l - Hex style codes like
&#ffffff