Skip to main content

cybercore/
tokens.rs

1//! Shared **non-colour** design tokens — fonts, a type scale, spacing,
2//! radii, motion, z-index — for the Cybercore Systems Framework.
3//!
4//! Colours are handled separately by [`crate::schema`] /
5//! `schema/cybergrid.json`. This module just hands you the ready-made
6//! token stylesheet (and a JSON mirror) so every Cybercore surface —
7//! cyberdesk, cyberdeck, cyberterm, a marketing site — shares one
8//! typographic system.
9//!
10//! ```ignore
11//! // serve it, or inline it into your <head>
12//! let css = cybercore::tokens::CSS;
13//! ```
14
15/// The token stylesheet: a single `:root { … }` block. Load it after your
16/// CSS reset and before the theme colours and component styles.
17pub const CSS: &str = include_str!("../css/cybertokens.css");
18
19/// The same tokens as structured JSON, for non-CSS consumers.
20pub const JSON: &str = include_str!("../schema/tokens.json");
21
22/// `text/css` content-type string, handy for HTTP handlers.
23pub const CSS_CONTENT_TYPE: &str = "text/css; charset=utf-8";