Skip to content

Themes & Custom UI ​

Kohl's Admin features a reactive UI framework powered by Flux and _K.UI. You can customize the look and feel of every window using Themes, or build your own reactive windows and components inside client addons.

Customizing Themes (Config > Themes) ​

Kohl's Admin ships with built-in themes (Default, Light, and Legacy) and allows you to define custom studio themes or let players customize their own theme in-game.

Theme Settings in Config > Settings ​

In Kohl's Admin > Config > Settings, two settings control how themes behave:

luau
theme = "Default", -- Initial theme name (matches a ModuleScript in Config > Themes or built-in Themes)
changeThemeAuthority = "Client", -- "Client", "Server", or "Studio"
  • "Client" (Default): Every player can customize their own UI theme and colors in Dashboard > Settings locally. Admins with the settings permission can also update the default server-wide theme.
  • "Server": Only users with the settings = true role permission can change the theme, which syncs across all servers.
  • "Studio": Locks the theme strictly to what you configure in Roblox Studio (Config > Settings and Config > Themes), preventing any in-game theme changes.

Creating a Custom Studio Theme ​

  1. Inside Kohl's Admin > Config, create a Folder named Themes (if it doesn't already exist).
  2. Inside Config > Themes, create a ModuleScript named after your theme (for example, Cyberpunk, or Default to override the built-in default theme).
  3. Return a table overriding any properties from UI.Theme (any omitted properties automatically inherit from Default):
luau
-- Kohl's Admin > Config > Themes > Cyberpunk
return {
	Transparency = 0.05,
	TextStrokeTransparency = 0.85,

	Primary = Color3.fromRGB(15, 10, 30),
	PrimaryText = Color3.fromRGB(240, 240, 255),

	Secondary = Color3.fromRGB(0, 255, 200),
	SecondaryText = Color3.fromRGB(15, 10, 30),

	Border = Color3.fromRGB(0, 200, 255),
	BorderStop = Color3.fromRGB(255, 0, 128),
	BorderAngle = 45,
	StrokeEnabled = true,

	Valid = Color3.fromRGB(0, 255, 140),
	Invalid = Color3.fromRGB(255, 50, 90),

	FontSize = 16,
	Font = Enum.Font.BuilderSans,
	FontMono = Enum.Font.RobotoMono,

	CornerRadius = UDim.new(0, 8),
	Padding = UDim.new(0, 6),
}
  1. Set theme = "Cyberpunk" in Kohl's Admin > Config > Settings.

Theme Properties Reference ​

PropertyTypeDefaultDescription
PrimaryColor3RGB(18, 18, 21)Main window and container background color.
PrimaryTextColor3RGB(255, 255, 255)Primary text and icon color on Primary surfaces.
SecondaryColor3RGB(255, 255, 255)Accent and secondary surface color.
SecondaryTextColor3RGB(0, 0, 0)Text color on Secondary surfaces.
BorderColor3RGB(100, 100, 100)UIStroke border color.
BorderStopColor3RGB(100, 100, 100)Secondary gradient color for borders.
BorderAnglenumber90Gradient rotation angle in degrees for borders.
StrokeEnabledbooleanfalseEnables or disables 1px UIStroke borders across UI components.
ValidColor3RGB(0, 255, 0)Positive / valid indicator color.
InvalidColor3RGB(255, 0, 0)Error / invalid indicator color.
Transparencynumber0.08Base background transparency (0 = opaque, 1 = invisible). Automatically computes TransparencyLight, TransparencyMedium, TransparencyStrong, etc.
TextStrokeTransparencynumber0.875Text outline transparency.
FontFont | Enum.FontInter (12187365364)Primary UI font family.
FontMonoFont | Enum.FontEnum.Font.RobotoMonoMonospace font used in the Command Bar, Logs, and code inputs.
FontSizenumber16Base font size in pixels (automatically scales FontSizeSmall, FontSizeLarge, etc.).
CornerRadiusUDimUDim.new(0, 12)Base corner radius for windows and controls.
PaddingUDimUDim.new(0, 6)Base layout spacing and padding.
BackgroundImagestring"rbxassetid://..."Optional texture overlaid on window backgrounds.
BackgroundImageTransparencynumber1Transparency of the background image (1 = hidden by default).
BackgroundGradientEnabledbooleanfalseEnables a color gradient across window backgrounds.
BackgroundGradient / Stop / AngleColor3 / number-Start color, stop color, and angle for the window background gradient.
SoundEnabledbooleantrueEnables UI hover, click, and notification sound effects.
TypingSoundsbooleantrueEnables mechanical clack typing sounds in inputs.
Volumenumber1Master volume for Kohl's Admin UI sounds.

Building Custom UI with _K.UI & _K.Flux ​

On the client (_K.IsClient), _K.UI inherits from _K.Flux (Flux 0.3) and provides a library of themed, reactive UI component classes (src/Client/UI/Classes). Anything not defined on _K.UI falls through to Flux, so UI.signal and Flux.signal are the same function.

Reactive State (_K.UI.signal & _K.UI.computed) ​

  • local count = UI.signal(0): Creates a reactive signal. Call count() to read it (inside a computed, effect, or property function this also subscribes to it), or count:peek() to read without subscribing. Call count(newValue) or count:set(newValue) to update it and every bound UI property.
  • local doubled = UI.computed(function() return count() * 2 end): Creates a derived node that recalculates whenever any node read inside it changes.
  • UI.effect(UI.on(count, function(value, previous) ... end, true)):get(): Runs a callback whenever count changes. The true skips the initial run, and :get() runs the effect immediately so it starts watching now instead of on the next frame. Stop it with Flux.dispose(effect).
  • Writing nil: count(nil) is a read, because a call with no value reads. Use count:set(nil) to clear a signal.
  • Property functions: Any property can be a plain function, such as Text = function() return tostring(count()) end; it re-runs when the nodes it reads change.

Built-In UI Component Classes ​

Pass any of the following class names (or any standard Roblox Instance class name like "Frame", "TextLabel", "UIListLayout") to _K.UI.new "<ClassName>" { ... }:

Component ClassDescription
"Window"Draggable, resizable window with title bar, icon, minimize/maximize/close buttons, and content container.
"Tabs"Tabbed page container (supports horizontal or vertical tab bars).
"List" & "ListItem"Structured settings/property list and labeled row container.
"Scroller" & "ScrollerFast"Themed scrolling frame and virtualized high-performance list scroller for thousands of rows.
"Button"Interactive button with icon, label, hover/press states, and sound effects.
"Input"Text / number input field with placeholder, validation, clear button, and typing sounds.
"Switch" & "Checkbox"Boolean toggle switch and checkbox controls.
"Slider"Numeric range slider.
"Select" & "Menu"Dropdown selection control and contextual popup menu.
"Color" & "ColorPicker"Color swatch button and full HSV/Oklab/Hex color picker popup.
"Dialog"Confirmation or prompt dialog box.
"Tooltip"Hover/touch tooltip attached to any UI element.
"Spacer" & "Stroke"Flexible layout spacer and themed UIStroke border.

Flux also provides layout helpers that create the matching UI* instance as a child: UI.list { direction = "y", gap = UI.Theme.Padding }, UI.padding(UI.Theme.Padding) or UI.padding { x = ..., top = ... }, UI.corner(UI.Theme.CornerRadius), UI.flex("fill"), UI.sizeConstraint { min = ..., max = ... }, and UI.gradient { color = ..., rotation = ... }.

To change an existing instance or component, use the curried form UI.edit(target)(properties).

Example: Creating a Custom Window Command ​

Here is a shared addon that registers a ;counter command which opens a custom reactive Window on the client:

luau
return function(_K)
	local window

	if _K.IsClient then
		local UI = _K.UI
		local clicks = UI.signal(0)

		window = UI.new "Window" {
			Parent = UI.LayerTopInset,
			Title = "Click Counter",
			Visible = false,
			Size = UDim2.fromOffset(280, 160),
			Position = UDim2.new(0.5, -140, 0.5, -80),

			UI.list {
				direction = "y",
				gap = UI.Theme.Padding,
			},

			UI.new "ListItem" {
				Text = "Total Clicks",
				UI.new "TextLabel" {
					AutomaticSize = Enum.AutomaticSize.XY,
					BackgroundTransparency = 1,
					FontFace = UI.Theme.FontMono,
					TextColor3 = UI.Theme.PrimaryText,
					TextSize = UI.Theme.FontSizeLarge,
					Text = function()
						return tostring(clicks())
					end,
				},
			},

			UI.new "Button" {
				LayoutOrder = 2,
				Label = "Increment (+1)",
				Activated = function()
					clicks(clicks:peek() + 1)
				end,
			},
		}

		-- print every 10 clicks
		UI.effect(UI.on(clicks, function(count)
			if count % 10 == 0 then
				print(`Click Counter reached {count}`)
			end
		end, true)):get()
	end

	_K.Registry.registerCommand(_K, {
		name = "counter",
		description = "Opens the custom Click Counter window.",
		group = "Utility",
		runClient = function(_context)
			if window then
				window._instance.Visible = not window._instance.Visible
			end
		end,
	})
end

Migrating Addons from 0.18 ​

Kohl's Admin 0.19 moved its UI to Flux 0.3. Addons written against the 0.18 _K.UI / _K.Flux API need these changes:

0.180.19
UI.state(v) / Flux.state(v)UI.signal(v)
UI.compute(fn) / Flux.compute(fn)UI.computed(fn)
node._valuenode:peek() (no subscription) or node() (subscribes inside reactive code)
node(nil) to clearnode:set(nil) (node(nil) now reads)
node:Connect(fn)local eff = UI.effect(UI.on(node, fn, true)); eff:get(), stopped with Flux.dispose(eff)
[UI.Clean] = { ... }__CLEAN = { ... }
[UI.Event] = { Prop = fn }_Prop = fn (or __EVENT = { Prop = fn })
[UI.Attribute] = { ... }__ATTR = { ... }
UI.action(function(instance) ... end) childa plain function(instance) ... end child
Flux.cleanup(x) to destroy x nowFlux.dispose(x); Flux.cleanup(x) now registers x to be cleaned up with the current owner
UI.isState(x)UI.isNode(x)
UI.edit(target, properties) / Flux.edit(target, properties)UI.edit(target)(properties) / Flux.edit(target)(properties)

Two-argument edits silently do nothing

UI.edit(target, properties) and Flux.edit(target, properties) no longer throw. The two-argument call returns the curried function and ignores properties, so the edit silently does nothing. Search your addons for UI.edit( and Flux.edit( and check that every call has the second set of parentheses.