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.3.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.3.0.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wandelbots_design_tokens-3.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.6 kB
Release files / wandelbots_design_tokens-3.3.0.tar.gz
| Download URL | wandelbots_design_tokens-3.3.0.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e62e77a38669b1922d8beb6124fde7ec77d4c60978c4c985d84843042a642cb
|
|
BLAKE2b-256 checksum How to use checksums |
b2cdfcca5c48d376bf7e309b102907942ee181d11ab77d67bb4b9a9185012ec3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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.3.0-py3-none-any.whl
| Download URL | wandelbots_design_tokens-3.3.0-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a8714cec438399026e02bfab764a86dc7fad622472919fd93ea9ea86d75bcb4
|
|
BLAKE2b-256 checksum How to use checksums |
fb8c392ed17ca086b5630c5a78c8f488ad16e4ed8fd494c700c0770254aa7f00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.21 {"installer":{"name":"uv","version":"0.12.21","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}
|