Skip to main content

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.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wandelbots-design-tokens 3.1.0
File Size Uploaded
wandelbots_design_tokens-3.1.0.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wandelbots-design-tokens 3.1.0
File Interpreter ABI Platform
wandelbots_design_tokens-3.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.6 kB

Release files / wandelbots_design_tokens-3.1.0.tar.gz

Download URL wandelbots_design_tokens-3.1.0.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fd5a0c3458cbae4b54230a5ef3caa9079d35854f53dc10674a1ab621c39d1514
BLAKE2b-256 checksum
How to use checksums
8da3d0b54669e808a2cfff3ed676284dbbd5160afe3d7e364586c8251f780c49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","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.1.0-py3-none-any.whl

Download URL wandelbots_design_tokens-3.1.0-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
106370669427e176264173a1ec9b923a85f51c0012635bb56059514ed34ce2ad
BLAKE2b-256 checksum
How to use checksums
be112793ca668adb5852362a8267a0bc333d18eca1f691e886d5a81a186d765a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.8 {"installer":{"name":"uv","version":"0.12.8","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 history Release notifications | RSS feed

3.3.0

2 release files

3.2.0

2 release files

This release

3.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page