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.4.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.4.0
File Size Uploaded Provenance Actions
wandelbots_design_tokens-3.4.0.tar.gz 14.2 kB Without provenance Details for wandelbots_design_tokens-3.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.0 kB

Release files / wandelbots_design_tokens-3.4.0.tar.gz

Download URL wandelbots_design_tokens-3.4.0.tar.gz
Size 14.2 kB
Tags Source
SHA-256 checksum
How to use checksums
05c27126376fcbeab3df9992588169f25e3f144dab1b74d1b18d4176d7a9f779
BLAKE2b-256 checksum
How to use checksums
3c98bab07488b20f0b9a74bd0626f82b6325a6b35dc9129086f1853de7d62120
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.4.0-py3-none-any.whl

Download URL wandelbots_design_tokens-3.4.0-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f09f1490849f6da43e43e08c9f95aea9fc003821494bded7878a487ec65480e4
BLAKE2b-256 checksum
How to use checksums
01c034f593c1f3011c2b356ca45d7972432bbc7670c87d82498132487074fd71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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}

Security for wandelbots-design-tokens 3.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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