Live theme gallery & docs β Β· GitHub Wiki β
The master definition repository and underpinning system engine of the Cybercore Systems Framework. The single source of truth for global configuration schemas, the CYBERGRID color palette, and canonical filesystem paths shared across every downstream project β cyberdeck, cyberdock, cyberterm, cyberplug, omniscient, and whatever comes next.
Cybercore is maintained in the open. Choose the channel that best fits what you need:
- Questions, ideas, and showcase posts: start a GitHub Discussion.
- Confirmed bugs and focused feature requests: open an issue.
- Code, documentation, and theme contributions: read CONTRIBUTING.md before opening a pull request.
Please do not include credentials, personal data, or machine-specific configuration in public posts.
schema/cybergrid.json β not any Rust source file. This is
deliberate: JSON is readable by every language in the framework, not
just Rust. cyberdock's C++/QML can load it directly at runtime with
Qt's QJsonDocument; Rust projects get it embedded at compile time
(below) for zero runtime cost and zero drift risk.
Everything else in this repo is a typed loader for that one file, not an owner of the data. Edit the JSON. Never hand-edit palette values or paths anywhere else.
The same rule covers the web: the org site's kit and theme data, the
cybercore-web-kit mirror and the official cybercore.* packs are all
generated from this repository and arrive as sync PRs. See
docs/distribution.md for what to edit where.
Every Cybercore tool can publish one JSON status snapshot for the TUI hub and the Omarchy HUD to read:
[dependencies]
cybercore = { version = "0.6", features = ["status"] }use cybercore::status::{self, Health, ToolStatus};
let snapshot = ToolStatus {
tool: "sigilward".into(),
version: env!("CARGO_PKG_VERSION").into(),
health: Health::Watch,
summary: "2 files drifted".into(),
..ToolStatus::default()
};
status::write(&snapshot)?; // atomic: readers never see partial JSONFiles go to $XDG_RUNTIME_DIR/cybercore/<tool>.json (falling back to
~/.local/state/cybercore/status/). The contract is schema/status.json.
Colours are cybergrid.json. Everything else about the feel β font
families, a type scale, spacing, radii, motion, z-index β lives in
css/cybertokens.css (with a schema/tokens.json mirror for
non-CSS consumers).
// a ready-to-serve :root {} stylesheet
let css = cybercore::tokens::CSS;Load order in any project: reset β cybertokens.css β theme colours β components. Every Cybercore surface pulls the same --font-mono,
--fs-*, --space-*, --radius-* so a new site or tool matches the
rest without copy-paste.
Cybercore is being extracted incrementally into focused crates while the
original cybercore crate remains the compatibility source of truth:
| Crate | Responsibility |
|---|---|
cybercore-core |
Shared contracts, themes, validation, paths, and pack metadata |
cybercore-effects |
Governed effects, fallbacks, and reduced-motion adapters |
cybercore-components |
Shared component styles and behavior contracts |
cybercore-publish |
Dry-run publish plans and consumer packaging contracts |
Pack sources live in packs/; packs/packs.json lists the eight official
packs (themes, effects, components, CyberDark wallpapers, snippets, fonts,
SVG assets and web templates). tools/export-distribution.py packs builds
them, with checksums and registry entries, into
cybercore-packs, whose
sync workflow opens a PR whenever a source changes.
Before publishing a crate, run cargo publish --dry-run -p <crate>. Publish
dependencies in order: cybercore-core, cybercore-effects and
cybercore-components, then cybercore-publish. Publishing requires a
configured crates.io credential and is never performed by a build or publish
plan automatically.
The reusable components are served as cybercore::components::CSS and cover
window chrome, theme pickers, tables, controls, empty states, rendered
markdown, and modal viewers. See the
design-system guide for the load order and class
contract.
The browser distribution lives in web/ and is generated into the Cybercore
Tech Pages kit/v1/ directory with tools/build-web-kit.sh. It preserves the
legacy window.SITE theme contract while adding allowlisted motion profiles,
effect recipes, component recipes, and asset/provenance metadata in
schema/webkit.json. Static sites should consume the versioned Web Kit rather
than copying app.js, tokens, or component styles into each repository.
The cybercore::theme module turns the embedded palette collection into a
shared runtime catalog. It keeps the existing eleven color roles for current
apps, adds optional light appearance variants and validated design tokens,
and stores user themes outside the binary so every Cybercore app can use them.
use cybercore::theme::{Appearance, ThemeCatalog};
let mut themes = ThemeCatalog::load()?;
let active = themes.get(themes.active_id()).expect("active theme");
let css = active.document.to_css(themes.active_appearance());
themes.select("tokyo-night")?;Theme documents are portable JSON: they include a stable id, metadata,
palette, optional variants.light, and typography/density/corners/motion
settings. Legacy flat palette JSON remains importable. Custom themes are saved
under $XDG_CONFIG_HOME/cybercore/themes/ (or ~/.config/cybercore/themes/);
set CYBERCORE_CONFIG_DIR to override the shared config root. The selected
theme and dark/light appearance are recorded in active-theme.json.
The Hub exposes the shared catalog through its theme picker. The standalone
creator is the cybercore-theme-studio workspace package; run it with
cargo run -p cybercore-theme-studio for JSON import/export, contrast
feedback, and shared persistence. The cybercore-theme CLI checks contrast,
appearance variants, and portable packs. See
docs/theme-engine.md for the document contract,
storage rules, API, and integration notes. Install the checker with:
curl -fsSL https://cybercoretech.github.io/install.sh | shThis requires Rust/Cargo and installs only the cybercore-theme CLI. For a
direct Cargo install, use cargo install --locked cybercore --bin cybercore-theme. Add cybercore = "0.8" to a Rust project to use the library.
Studio provides live previews, per-appearance contrast feedback, stable-ID
editing for custom themes, and Duplicate as new to safely derive themes
from built-ins or existing custom themes. Imports remain drafts until saved;
built-in themes cannot be overwritten. The Studio uses the active CYBERGRID
palette for its own interface, groups themes into editable family packs, and
accepts both color-picker and direct hex input for each semantic color.
Theme families can be exported as portable .cyberpack.json bundles and
installed together with validation and explicit collision policies. Packs
carry version/license/compatibility metadata and palette previews. Consumer
compatibility automation covers Hub, Cyberdesk, DaemonHall, Dockspace, and
Cyberterm.
Add as a dependency:
[dependencies]
cybercore = "0.8"Requires Rust 1.85 or newer. For local development against an unpublished
change, use a [patch.crates-io] entry instead of committing a path
dependency, so the project still builds from a clean checkout.
Then:
use cybercore::palette;
use cybercore::paths;
println!("{}Hello{}", palette::acid_green(), palette::RESET);
let sysops = paths::sysops_root(); // ~/.sysops, expandedThe JSON is embedded into your binary via include_str! at compile
time β no runtime file dependency, and the exact schema version your
binary was built against travels with it.
Load schema/cybergrid.json directly:
QFile file(":/cybercore/schema/cybergrid.json");
file.open(QIODevice::ReadOnly);
QJsonDocument doc = QJsonDocument::fromJson(file.readAll());
QString acidGreen = doc["palette"]["acid_green"].toString();Or in QML, since JSON is just JS object syntax:
property var cybergrid: JSON.parse(cybergrid_json_string)
color: "#" + cybergrid.palette.acid_green(Wiring the actual file into a Qt resource bundle or reading it from a known filesystem path is left to cyberdock's own build β this repo just guarantees the JSON's shape and location.)
{
"schema_version": 1,
"palette": {
"bg": "0e091d",
"acid_green": "c8e967",
"hot_pink": "FD3E6A",
"purple": "9147a8",
"cyan": "14B9B5",
"orange": "FF7F41",
"red": "f93d3b",
"white": "ffffff"
},
"paths": {
"sysops_root": "~/.sysops",
"cargo_target_root": "~/.cargo-target",
"arch_sys_root": "~/.arch-sys",
"omarchy_config_root": "~/.config/omarchy"
}
}Hex values have no leading # (each consumer prepends what it needs β
a # for CSS/QML, nothing for raw RGB parsing). Paths use ~/ for
home-relative locations; cybercore::paths expands this for Rust
consumers.
schema_version bumps on any breaking change to the JSON's shape
(renaming or removing a field). Adding a new field is non-breaking β
consumers using an older cybercore crate version simply won't see
the new field yet, nothing errors.
Tag releases (v0.1.0, v0.2.0, ...) so downstream Cargo.toml
dependencies can pin to a known-good version rather than tracking
main directly.
The crate release workflow and required checks are documented in
docs/releasing.md.
schema/cybergrid.json β the actual source of truth
src/lib.rs β module declarations
src/schema.rs β embeds + parses the JSON once per process
src/theme.rs β versioned themes, shared catalog, validation + CSS
src/palette.rs β true-color ANSI helpers + raw hex accessor
src/paths.rs β canonical filesystem locations, ~-expanded
- Add the field to
schema/cybergrid.json - Add the matching field to the relevant struct in
src/schema.rs - Expose it through
src/palette.rsorsrc/paths.rs(or a new module, if it's a new category of shared data) - Every Rust project depending on this crate picks it up on their
next
cargo update+ rebuild. Non-Rust consumers see it the next time they read the JSON.
MIT
The default fs feature enables native theme persistence. Disable default features
to use ThemeCatalog::builtin(), insert_custom, set_active,
set_active_appearance, remove_custom_entry, and import_pack_in_memory without
filesystem access. Existing default-feature consumers keep their current behavior.
The optional status feature remains a native API and is independent of fs.
The wasm/ bindings expose theme validation, quality reports, CSS,
family packs, and collision-aware import to browser apps such as DarkskyForge.