Skip to content

Theming ​

One brand colour themes the whole HUD. The NUI derives the tile ramp, accents and tinted glass from it.

All themes

Strength ​

Strength What gets the brand colour
accent Progress bars, route and accent lines only
tiles + the brand tiles
glass + a tint on the glass surfaces

Server default ​

By default the HUD follows np_admin's Server theme: brand colour, strength and material, set once for every np_* UI, live.

A field set in Config.Theme wins over the server theme. Leave a field nil to follow the server:

lua
Config.Theme = { brand = nil, strength = nil, material = nil }   -- nil = the server theme (neutral grey without one)
Config.Theme = { brand = '#4f7bff', strength = 'tiles' }        -- this HUD only: blue tiles, material from the server

The order is: SetTheme / /hudtheme, then Config.Theme, then the server theme.

At runtime ​

lua
exports.np_hud:SetTheme('#4f7bff', 'tiles')
exports.np_hud:SetTheme(nil)   -- back to Config.Theme / the server theme

You can theme per job or per event, for example blue tiles while on duty as police. A runtime theme stays active until the next hud:config that carries a theme.

Player preview ​

/hudtheme <#hex|reset|none> [accent|tiles|glass] previews a theme for the player who runs it only.

Design system ​

The visuals come from Nimbus UI in np_hud/design/: tokens, component CSS and preview pages. The NUI imports it unchanged. Read design/README.md before changing the look.

Design previews

Colours Icon tiles Level tiles Map and status Vehicle Vehicle-specific panels Type