wandelbots-design-tokens
Wandelbots Nova design tokens as a frozen dataclass. No dependencies.
Generated from the same Figma source as the @wandelbots/design-tokens
npm package — both are released in lockstep and always carry the same version.
Install
pip install wandelbots-design-tokens
Usage
from wandelbots_design_tokens import DARK, THEMES
DARK.zero_gravity_text_primary # '#ffffff'
DARK.radius_md # '20px'
DARK is the default theme. Every entry in THEMES is a complete Tokens
instance with the same fields, so a theme can be selected at runtime without
merging anything:
tokens = THEMES["simulation"] if simulating else DARK
tokens.zero_gravity_background_default
Instances are frozen — assigning to a field raises FrozenInstanceError.
Token paths
For dynamic lookup, as_mapping() returns a read-only mapping keyed by dotted
DTCG token path. TOKENS is that mapping for DARK.
from wandelbots_design_tokens import TOKENS, THEMES, as_mapping
TOKENS["zero-gravity.text.primary"]
as_mapping(THEMES["simulation"])["radius.md"]
A key maps directly onto the CSS custom property: --wb- plus the key with
. replaced by -.
Values
Values are strings exactly as emitted for CSS and JS — colors are hex,
dimensions carry their px suffix. Use px() when you need a number:
from wandelbots_design_tokens import px
px(DARK.radius_md) # 20.0
Contributing
Token values come from Figma and the generated modules must never be hand-edited — see the repository README.
Run the tests with uv:
uv run --directory packages/design-tokens/python pytest
Metadata
Release files for wandelbots-design-tokens 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wandelbots_design_tokens-3.2.0.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wandelbots_design_tokens-3.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / wandelbots_design_tokens-3.2.0.tar.gz
| Download URL | wandelbots_design_tokens-3.2.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
680ad82781ed09a351dac30e26a4a14846f4357e4ab461bb56bbb1f4411fb443
|
|
BLAKE2b-256 checksum How to use checksums |
e1c1c57f0e034a2c9673dabf9ebe380bde9f96681afb43c3f65365b32e2a32ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / wandelbots_design_tokens-3.2.0-py3-none-any.whl
| Download URL | wandelbots_design_tokens-3.2.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8d5179a61cd2a90c6ffccae2975041ced32854265ef829d88c610303efaaaf9
|
|
BLAKE2b-256 checksum How to use checksums |
c105bb67a271c047486e3d6e0d8dc0766302472ccd01cb5085e6ea3e404c6aa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|