Skip to content

Repository files navigation

Core-X Design System — Tokens, themes, Liquid Glass and components for Core-X

Core-X Design System

KBLLR / Core-X Institution v0.1.0 MIT

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.

See it live: https://core-x-design-system.vercel.app · Full rules: GUIDE.md

Four themes

A theme is a context, not a preference. Set it with data-theme on any element.

The four themes

The shape rule

Content is square and dashed. Glass is the one rounded layer, and it floats above content.

Square content, a 16px glass surface and a capsule glass control

Use it on the web

<link rel="stylesheet" href="tokens.css">
<html data-theme="kbllr">
.panel {
  background: var(--bg-surface);
  border: 1px dashed var(--border);   /* the dashed line is the brand */
  border-radius: var(--radius);       /* 0: content never rounds */
  padding: var(--space-5);
  color: var(--fg1);
}
.panel h2 {
  font-family: var(--font-heading);   /* Chakra Petch, always uppercase */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.panel .id { font-family: var(--font-mono); }  /* Fira Code for IDs and values */

Use it in SwiftUI

import CoreXDesign

Text("CORE-X").foregroundStyle(CXTheme.macos.color(.fg1))

Button("Send") {}.cxGlassButton(prominent: true)  // capsule glass; one per view
sidebar.cxGlass()                                  // 16pt glass surface
CXGlassGroup { toolbarButtons }                    // never glass on glass

CoreXDesign is a Swift package generated from these tokens; it lives in the Core-X Chat app (Packages/CoreXDesign) and is added by path. Liquid Glass needs macOS 26; the same calls fall back to a material from macOS 14. Reference: swift/CoreXGlass.swift.txt.

Use it with agents

skills/core-x-native/SKILL.md gives a coding agent the rules for the native app. It is installed in Core-X as the core-x-native skill.

What is in here

Path What
tokens.json Every value: 77 colours in 4 themes, type, spacing, radius, shadow, glass. The source of truth.
tokens.css The same tokens as CSS custom properties.
components/ 33 components, each with a README and a live preview.
swift/ The SwiftUI glass reference.
skills/ The agent skill.
GUIDE.md The full guide: content, visual foundations, motion, materials, ecosystem palette.
index.html The live site.

Site

index.html is served at https://core-x-design-system.vercel.app from Vercel, which redeploys on every merge to main; the repository stays private. Everything in the repository root is publicly reachable, so do not commit anything here that must stay private.

  • No build step: the page reads tokens.json and tokens.css directly.
  • After changing a component preview, run python3 tools/build-site-index.py.
  • After changing tokens, run python3 tools/build-readme-art.py to redraw these README images.
  • Both scripts take --check. To view the site locally, run python3 -m http.server here.

License

MIT · KBLLR

Releases

Packages

Contributors

Languages