cjm-design-system
A design system as data (ruling a439c226): token schema v1 with its check and its headless resolution into one flat vocabulary, the CSS custom-properties projection for the web, the vendored seed systems Classical and Netrunner with their OFL fonts, and the importer for a web-first system's CSS. Nothing here imports Qt, so a web build never needs PySide6; the Qt kit (cjm-substrate-qt-kit) consumes the same tokens and keeps only what Qt reads. Born out of the kit by design 0858bbd0, the theme half of the public-site redesign build 8079ae0f.
Modules
cjm_design_system.__init__— A design system as DATA (ruling a439c226): one canonical tokens file percjm_design_system.systems.__init__— The design systems this library ships as DATA (ruling a439c226): onecjm_design_system.tokens— Token schema v1 — a design system as DATA, resolved headlessly (rulingcjm_design_system.tools.__init__— Design-system tools (run as modules):cjm_design_system.tools.build— Build the static web projections of a design system: the CSScjm_design_system.tools.css_to_tokens— Import a web-first design system's CSS into a schema-v1 tokens file.
API
cjm_design_system.systems.__init__
availablefunction — Every vendored system slug (a directory carrying a tokens.json).locatefunction — The directory of a system: a vendored slug, a directory holding atokens_pathfunction
cjm_design_system.tokens
SchemaErrorclass — A tokens file that violates schema v1 — every problem listed, so onecheckfunction — Refuse a malformed system loudly: every missing / mistyped field namedloadfunction — Read a tokens file (JSON).checkit before resolving anything.mixfunction — Flattenfgat opacitytoverbg-> a solid hex (QPalette, painters,mode_for_schemefunction — The mode the system maps an OS scheme ("light" / "dark") onto — Nonemodesfunctionresolvefunction — tokens + mode -> the flat vocabulary every projection reads: the QSSrgbafunction — QSS rgba() with a 0-255 alpha (the form every Qt 6 version parses).slugfunction — The system's file-system / preference slug: lower-case, spaces -> dashes.to_cssfunction — The CSS custom-properties layer for a system — the ruling's secondto_hexfunction
cjm_design_system.tools.build
mainfunction
cjm_design_system.tools.css_to_tokens
convertfunctiondarkerfunctionfamilyfunctionmainfunctionparse_rootfunctionpxfunctionrampfunction
Dependencies
Used by: cjm-context-graph-projection, cjm-substrate-qt-kit
Metadata
Release files for cjm-design-system 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjm_design_system-0.0.1.tar.gz | 911.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjm_design_system-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / cjm_design_system-0.0.1.tar.gz
| Download URL | cjm_design_system-0.0.1.tar.gz |
|---|---|
| Size | 911.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b69b13bc33e84dad7b72f9bd8c2137cf884122ba1f14d2790d1615cfe602123b
|
|
BLAKE2b-256 checksum How to use checksums |
1d8c04cb48f2ac015c1e6878c7def7e68cfc0426890ba0cadc02aa6ac867b888
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / cjm_design_system-0.0.1-py3-none-any.whl
| Download URL | cjm_design_system-0.0.1-py3-none-any.whl |
|---|---|
| Size | 915.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85be39bfae46cee4f44593c76c8b9e1ecf7a2857dd225bbba5b0378d03157a58
|
|
BLAKE2b-256 checksum How to use checksums |
f2d0337a3aab2a2076908da0bb9f199eaac2bd6245df98f1b714441fada684a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|