Resourcesdnd_economyGuides
Theming (Config.Color)
Last updated on
dnd_economy's NUI reads its accent colors from Config.Color at open time and applies them as CSS variable overrides — no CSS editing required. Pick colors below, watch the mock preview update live, then copy the generated config straight into config.lua.
Government Agency Dashboard
job: government · commission: 3.0%
Scrap Metal
k=0.5
$1,950 ▲
High Demand
🔒 LOCKED Price held — 18h left
Pending Buy Order — ID: 1 (0.0m)
Config.Color = {
mainColor = '#A3E635', -- primary accent: borders, highlights, focus rings, scrollbar
mainColorLight = '#D9F99D', -- lighter tint: glows, gradient light stops
buttonColor = '#65A30D', -- secondary/darker shade: button gradient dark stop
successColor = '#22C55E', -- accept actions, "well stocked" demand
warningColor = '#F59E0B', -- price-locked, urgent countdown
dangerColor = '#EF4444', -- reject actions, "high demand"
}What each key controls
| Key | CSS variable | Used for |
|---|---|---|
mainColor | --c-primary | Borders, highlights, focus rings, scrollbar thumb |
mainColorLight | --c-primary-light | Glows, gradient light stops, title accent text |
buttonColor | --c-secondary | Button gradient's dark stop |
successColor | --c-success | Accept actions, "well stocked" demand |
warningColor | --c-warning | Price-locked badge, urgent countdown |
dangerColor | --c-danger | Reject actions, "high demand" pill |
Structural surfaces — background, text, borders — aren't themeable through this config; they follow the NUI's own built-in dark/light toggle instead. Only the brand/status accent tokens above are configurable.
Applying it
- Pick colors above (or paste hex codes directly into the text fields).
- Copy the generated
Config.Color = { ... }block. - Paste it into your
config.lua, replacing the existingConfig.Colorblock. - Restart the resource — no rebuild needed, this is read fresh from Lua on every NUI open.