Every JCKS window, menu and notification uses one theme. The server picks the default in /jcks, Appearance, or in /uiadmin when jcks_bridge does not run. Players can pick their own in /uisettings if the server allows it. Saving restyles every JCKS window for all players without a restart.
Built in themes
| Id | Base | Look |
|---|---|---|
graphite |
dark | Near black graphite with the JCKS blue, the default |
midnight |
dark | Deep navy with a cyan accent |
asphalt |
dark | Neutral charcoal with amber, sharper corners |
paper |
light | Light warm grey for bright screens |
ledger |
dark | Warm dark brown with a gold accent, DIN headings and deep shadows |
console |
dark | Near black with a mint accent, monospace headings, compact rows and square corners |
showroom |
dark | Black with an orange red accent, large corners, roomy rows and high contrast |
What a theme contains
| Field | Values | What it changes |
|---|---|---|
id |
letters, digits, _ and -, up to 32 |
Unique name, the editor creates it |
name |
up to 32 characters | Shown in the theme list |
mode |
dark or light |
Base for shadows, scrollbars and form controls |
bg |
#rrggbb |
Window background |
panel |
#rrggbb |
Sidebar and, in dark themes, cards |
raised |
#rrggbb |
Inputs, hovered rows, the selected list menu row |
text |
#rrggbb |
Main text. Every line and fill is derived from it. |
muted |
#rrggbb |
Secondary text and descriptions |
accent |
#rrggbb |
Buttons, switches, selection |
success, danger, warning |
#rrggbb |
Positive amounts, errors, warnings |
radius |
0 to 16 (px) | Corner radius, every other radius scales from it |
density |
compact, normal, comfortable |
Height of buttons, fields and menu rows |
font |
instrument, system, din or mono |
Instrument Sans (bundled), the system font, Bahnschrift or a monospace font |
opacity |
0.8 to 1 | Window background opacity |
accentFill, accentInk |
#rrggbb, optional |
Button fill and accent text. Without them both are derived from accent. |
display |
instrument, system, din, mono, optional |
Font of headings |
border |
none, hairline, strong, optional |
Strength of lines and outlines |
shadow |
flat, soft, deep, optional |
Window shadows |
accentUse |
subtle, standard, bold, optional |
How much of the interface uses the accent |
contrast |
soft, standard, high, optional |
Text contrast |
header |
plain, bar, accent, optional |
Window header style |
layout |
optional table | prompt (card, pill, minimal), notify (card, bar, minimal), boss (side, top), menu (panel, slim) |
Fills, separators, the darker button colour and text on buttons are calculated from these values. The editor warns when text has less than 4.5:1 contrast with the window and when the accent has less than 3:1.
Theme codes
The copy button on a theme puts a code like JCKS-THEME:eyJpZCI6... on the clipboard. Paste it into the import field in /jcks, Appearance or in /uisettings. A code only carries the fields above. Colours are checked against #rrggbb and every number is clamped on import, on the server and again in every window, so a code cannot inject CSS or scripts.
Server settings in /jcks, Appearance
- Themes: pick the default, create, edit, copy, delete. Up to 24 own themes.
- Hide from players: the eye button keeps a theme on the server but players cannot pick it. The default theme is always offered.
- Theme per script: admins set a default theme for each JCKS script. Players can pick a theme per script too. The order is the player choice for the script, the admin choice for the script, the player theme, the server theme.
- Reduce motion, interface size (90 to 120 %), window header (logo and name, or name only) and an optional custom logo URL.
- Player settings: allow or block picking a theme, the theme editor, importing codes, language, size, sounds and
/notifysettings.
Config.Appearance in settings/config.lua can pin any of these for this server, see Configuration.
Player settings (/uisettings)
With jcks_bridge the command name is set in /jcks, Appearance. Without the bridge it is Config.PlayerSettings.command. It also shows in Spotlight.
| Switch | What the player may do |
|---|---|
| Pick a theme | Use any theme that is not hidden |
| Theme editor | Build their own themes, only they see them |
| Import themes | Paste theme codes from other players |
| Language | Language of every JCKS script, texts and Lua notifications |
| Size | 85 to 120 % |
| Sounds | Interface sounds on or off |
Players can also turn on reduced motion for themselves. The option is hidden when the server already runs reduced motion. Anything switched off is fixed to what the server set, and the player's saved choice for it is ignored. Config.PlayerSettings can lock single fields on top of the bridge. Players keep up to 12 own themes, saved on their PC in KVP jcks:player. Themes installed from the theme presets browser (Spotlight, Theme presets) land in the same list.
/notifysettings lets players show or hide notifications, pick the kinds they see, sound, position, duration and how many show at once.
Using a theme in your own NUI
SendNUIMessage({ action = 'init', data = { appearance = exports.jcks_lib:GetAppearance() } })GetAppearance() returns { script, surfaces, theme, themes, playerThemes, motion, scale, branding, logoUrl }. theme is the id the player uses for the calling script, surfaces the themes picked for single parts of it, themes and playerThemes hold the custom ones. The React kit that turns this into CSS variables is part of the JCKS workspace only and not in the released package.
Lua helpers
Every resource with @jcks_lib/init.lua has:
| Function | Returns |
|---|---|
jcks.theme.clean(theme) |
A validated copy, or nil |
jcks.theme.cleanList(list, max) |
A validated list without duplicates |
jcks.theme.has(id, ...) |
true for a built in id or an id in one of the lists |
jcks.theme.legacy(appearance) |
The V2 theme id for a V1 look (preset, mode) |