Core-X · Design System v0.1.0
KBLLR · local-first AI workbench

Core-X Design System

One visual language for the Core-X ecosystem: the web shell, the houses and the native macOS app. Warm monochrome, dashed lines, square corners, three typefaces. Everything on this page is drawn from tokens.json, the single source of values.

Principles

five rules · they explain most decisions

The dashed line is the brand

Panels, cards, badges and fields take a 1px dashed border. A solid border means focus, selection or error, and nothing else.

Content is square

Every content surface has a radius of zero. Only status dots, avatars and the glass layer are round.

Colour is a signal

The core is warm grey. Hue appears on status, tiers and ecosystem identity. No neon, no gradient fills.

Three typefaces, strict roles

Chakra Petch for headings and labels, always uppercase. Inter for prose. Fira Code for IDs, logs and values.

A theme is a context

A theme says where you are, such as the running machine or the native app. It is never switched for variety.

Themes

set with data-theme on any element · pick one to re-theme this page

Colour

Type

Chakra Petch · Inter · Fira Code

Space & shape

spacing · radius · elevation

Radius: the shape rule

Content never rounds. Glass surfaces take 16px and glass controls are capsules, so a rounded corner always means "this floats above the content".

Spacing

Elevation

Shadow steps are redeclared per theme, so depth reads the same on a light or a dark ground.

Other scales: text size, tracking, leading, measure, blur, z-index

Liquid Glass

the native layer · macOS 26 and later

Glass is the layer that floats above content: sidebar, toolbar, floating actions. Content itself never takes glass. On the web the material is approximated with backdrop blur, saturation and a rim; in SwiftUI it is Apple's own material.

The one rounded layer

Controls are capsules. Surfaces take 16px. Content on or under glass stays square.

No border on glass

The edge of glass is its rim. A dashed border and a rim never share a surface.

Never glass on glass

Neighbouring controls share one group, so they read as a single shape.

Regular for text

Use the regular material behind anything with text. Clear is only for large type or icons over media or a 3D scene.

One tint, one prominent button

Per view. The prominent button is the action the view exists for.

Nothing scales

Hover and press change the fill. Nothing bounces, grows or shimmers.

Components

live previews · each loads when it scrolls into view

Use it

web · SwiftUI · agents

Web

<link rel="stylesheet" href="tokens.css">
<html data-theme="kbllr">

.panel {
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);   /* 0 */
  padding: var(--space-5);
}

Download tokens.css or read the values from tokens.json.

SwiftUI

import CoreXDesign

Text("Hello")
  .foregroundStyle(CXTheme.default.color(.fg1))

Button("Run") {}.cxGlassButton(prominent: true)
panel.cxGlass()          // 16pt glass surface
CXGlassGroup { toolbarButtons }

The reference is swift/CoreXGlass.swift.txt: glass on macOS 26 and later, with a material fallback from macOS 14.

Agents

skills/core-x-native/SKILL.md

The core-x-native skill gives a coding agent the rules for the native app: the MACOS theme, Liquid Glass, the native shell and the spatial and assistant overlays.