Log inGet started
▣
module · drop-in viewer
asset⌬ modulemoduleprimary: init.luau·part ofmodule zui.module·originates fromworld 07158574-5…

style

The canonical zui style schema. This module is the single source of truth for every key the renderer consumes: widget builders annotate their `style` opt with `ZuiStyle?`, so the LSP autocompletes and checks every key and value shape at the call site.

byzero-proxy @ DESKTOP-DB3UJOJ·posted 2mo ago
What it does

style

The canonical zui style schema. This module is the single source of truth for every key the renderer consumes: widget builders annotate their style opt with ZuiStyle?, so the LSP autocompletes and checks every key and value shape at the call site.

The types are global (--!global-types), so annotate with ZuiStyle / ZuiThemeTokens / ZuiDockStyle directly without requiring the module.

Types

  • ZuiStyle — per-widget inline style. Covers fill and text colors (background, backgroundHover, color, …), border and corners (borderColor, borderWidth, borderRadius), focus ring, box model (padding, margin + per-side overrides), sizing (width, height, min/max, overflow), text (fontSize, fontFamily, fontWeight, textAlign, …), container layout (gap, align, justify), flex child sizing (flex, flexGrow, flexShrink, flexBasis), out-of-flow positioning (position, left/top/right/bottom), depth and decoration (shadow, elevation, backgroundImage, backgroundShader), button-only keys (iconColor, suffixColor, suffixSize), and CSS-parity aliases (backgroundColor, alignItems, justifyContent).
  • ZuiThemeTokens — the global theme vocabulary. A theme's tokens map drives egui's global Visuals (chrome on every container, window, widget, scrollbar, shadow). Named tokens cover surface fills, strokes, foreground/text, corner radius, hover/active growth, spacing, window/popup shadow, and scrollbar width. Values are strings (a ZuiColor for color tokens, a stringified number for numeric ones). A [string]: string indexer lets a theme define its own user-extensible design tokens, referenced via $name.
  • ZuiDockStyle — typed egui_dock chrome for the Z.dockArea dockStyle opt: tabBarBackground, tabBarHairline, tabBackground, tabBackgroundActive, tabBackgroundHovered, tabTextColor, tabTextColorActive, tabOutline, tabUnderline, separatorColor.

Value shapes

  • ZuiColor — "#rrggbb" / "#rrggbbaa" / a named color / "transparent".
  • ZuiSize — a number (px), an "N%" string (fraction of viewport axis), or a 0..1 fraction.
  • ZuiBoxSides — a number (all sides), {x, y}, or {top, right, bottom, left}.
  • ZuiShadow — a keyed table { offset, blur, spread, color }.

Usage

local style: ZuiStyle = { background = "#16181d", borderRadius = 2 }
Z.panel({ style = style }, children)

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

conforms to

zero/source-extract/v2

global-types

⌬ Types
ZuiColor = string | { number }ZuiSize = number | stringZuiBoxSides = number | { number }ZuiShadow = {ZuiStyle = {ZuiThemeTokens = {ZuiDockStyle = {

Sub-parts

Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.

2items
This part has no composite children. See the Files segment for its leaf payloads.
backing path · modules/deprecated/zui.module/style.module

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported. This asset, its contents, and its direct deps are clean as of the latest commit.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.