Design Systems
Styles
A style is a named bundle of values that layers follow: a fill, a shadow, or the font, size and spacing of a text. A variable holds one value; a style holds the several that belong together. "Text/Heading" is a family, a size, a weight, a line height and a letter spacing, changed in one place.

The four kinds#
| Style | Holds | Followed by |
|---|---|---|
| Fill | One or more fills: a color, a gradient, an image | A layer's fills |
| Stroke | The same: a paint style serves a stroke as it serves a fill | A layer's strokes |
| Effect | Shadows and blurs | A layer's effects |
| Text | Font family, size, weight, italic, line height, letter spacing, paragraph spacing, case | A text |
Name styles with a / between group and role: Text/Heading, Text/Body, Surface/Card, Stroke/Divider, Shadow/Card.
Make and apply a style#
- Style one layer the way you want it.
- For a text: in the Text section, open Style and choose New Style from This…. Name it, such as
Text/Heading. - For a fill, a stroke or effects: click the style button beside the plus of the Fill, Stroke or Effects section and choose New Style from This….
- To apply a style to another layer, open the same menu on that layer and choose it. No style lets go: the layer keeps what it has.

Create text styles Text/Heading (Inter 24 bold, line height 30) and Text/Body (Inter 14, line height 21), a Surface/Card fill, a Stroke/Divider and a Shadow/Card effect.
A style is a node of kind style, made on a page with create_nodes. What it holds says what kind it is:
{
"nodes": [
{"kind": "style", "name": "Surface/Card", "fill": "#FFFFFF"},
{"kind": "style", "name": "Stroke/Divider", "fill": "#E3E6EC"},
{"kind": "style", "name": "Shadow/Card", "effects": [{"type": "drop_shadow", "x": 0, "y": 8, "blur": 24, "color": "#0F172A1F"}]},
{"kind": "style", "name": "Text/Heading", "font_family": "Inter", "font_size": 24, "font_weight": 700, "line_height": 30, "letter_spacing": -0.3},
{"kind": "style", "name": "Text/Body", "font_family": "Inter", "font_size": 14, "font_weight": 400, "line_height": 21}
]
}
Layers follow them by id, with fill_style, stroke_style, effect_style and text_style:
{
"nodes": [
{
"kind": "frame", "name": "Card", "x": 0, "y": 0, "width": 288, "height": "hug", "corner_radius": 16,
"fill_style": "SURFACE_STYLE_ID", "stroke_style": "STROKE_STYLE_ID", "effect_style": "SHADOW_STYLE_ID",
"layout": {"direction": "vertical", "gap": 6, "padding": 20},
"children": [
{"kind": "text", "text": "Invoices", "text_style": "HEADING_STYLE_ID", "fill": "#111318"},
{"kind": "text", "text": "Three are due this week.", "width": "fill", "text_style": "BODY_STYLE_ID", "fill": "#6B7280"}
]
}
]
}A text style does not hold a color. A text takes its font and spacing from the text style and its color from its own fill, a fill style or a variable.
Change a style#
Change the style and everything that follows it changes.

By hand, change one layer that follows the style. It then follows no longer, and while it is still selected its style menu ends with Update "…" to Match This: the style takes what the layer has, the layer follows it again, and every other layer of the style changes with it, as one step. The same menu has Rename and Delete. Deleting a style leaves each layer with what it had.
An agent changes the style node itself with update_nodes:
{"changes": [{"id": "HEADING_STYLE_ID", "font_family": "Lora", "font_size": 30, "line_height": 36}]}
A layer lets go of a style when it is given a value of its own for what the style holds: a fill given to a node with a fill_style no longer follows it. "fill_style": null detaches on purpose and keeps the fills.
Styles that follow variables#
A style can itself be made of variables. Then each layer of the style shows what those variables hold in the mode the layer stands in. One Surface/Card is white in Light and near black in Dark; one Text/Body is 14 on a phone and 16 on a desktop.
By hand, make the style from a layer that already follows variables: New Style from This… carries them into the style.
An agent gives the style bindings:
{
"nodes": [
{"kind": "style", "name": "Surface/Card", "fill": "#FFFFFF", "bindings": {"fill": "color/bg/card"}},
{"kind": "style", "name": "Stroke/Divider", "fill": "#E3E6EC", "bindings": {"fill": "color/border"}},
{"kind": "style", "name": "Text/Body", "font_family": "Inter", "font_size": 14, "line_height": 21, "bindings": {"font_size": "type/body/size"}}
]
}
The picture at the top is this: two frames with the same styles, the second with "mode": "Dark".
Styles or variables#
- Use a variable for a single value with a meaning: a color role, a spacing step, a radius.
- Use a style where several values travel together: a type setting, a stack of shadows, a gradient.
- Use both for a system with modes: variables hold the values per mode, styles name the combinations and follow the variables.
Nox has no panel that lists every style. You reach a style through a layer that follows it, or an agent finds them: find with "kind": "style" lists the style nodes.
See Variables and modes for sets and modes, and Libraries to use styles from another file.