Skip to content

Server theme ​

np_admin sets one theme for every np_* UI. Staff pick it once under Resource settings → np_admin → Theme. The HUD, menus, inventory, shops, banking and every other np_* UI then pick it up live, without a restart.

The Theme tab in np_admin's settings

Settings ​

Setting Values
Brand colour #RRGGBB or empty The server colour. Empty keeps the neutral grey Nimbus look
Strength accent · tiles · glass How much of the UI takes the brand colour (see below)
Material frosted · liquid Frosted glass (the default) or Liquid Glass

The defaults come from Config.Theme in np_admin's shared/config.lua (see Configuration):

lua
Config.Theme = {
  brand = nil,            -- '#3D74FF'; nil = the neutral grey look
  strength = 'accent',    -- 'accent' | 'tiles' | 'glass'
  material = 'frosted',   -- 'frosted' | 'liquid'
}

Strength ​

Strength What takes the brand colour
accent Bars, timers, progress fills, selection rings, the speedometer arc, the map route
tiles Everything in accent, plus every neutral icon tile
glass Everything in tiles, plus a hint of the colour in every glass panel

Brand #3D74FF with strength "tiles": the neutral tiles turn blue

Meaningful colours never change. Health stays red, armour blue, hunger orange, thirst aqua, success green and errors red, so players can read any np_* UI at a glance. The brand only replaces the neutral grey layer.

Pick the brand with care

A red or pink brand blurs into health and error colours. Use it with accent only.

Material ​

liquid switches every UI that supports it to the Liquid Glass material. Frosted stays the default.

Emerald brand with strength "glass" and Liquid Glass

Who wins ​

  • The server theme is the default for every np_* UI.
  • A resource's own theme config wins only when it's set. These defaults are now empty, which means "follow the server", e.g. np_hud's Config.Theme or np_inventory's Config.Material.
  • Players keep their own choices. A player's material toggle in np_menu, np_shops, np_character or np_inventory wins over the server default. So does np_hud's /hudtheme preview.
  • Business colours stay. Shop, fuel-station and workshop brand colours are part of their content, not the UI theme.
  • np_phone keeps its own theme system. Its accent colours and its Liquid Glass toggle stay player settings.

Without np_admin ​

The lib that every np_* resource carries reads three replicated convars instead:

cfg
setr np_theme_brand "#3D74FF"
setr np_theme_strength "tiles"
setr np_theme_material "frosted"

Nothing set means the neutral grey look.

For resource authors ​

The lib hands the theme to your resource and to its NUI. See Integrating a resource → Server theme.