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.5.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.5.0
File Size Uploaded Provenance Actions
wandelbots_design_tokens-3.5.0.tar.gz 14.2 kB Without provenance Details for wandelbots_design_tokens-3.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 30.0 kB

Release files / wandelbots_design_tokens-3.5.0.tar.gz

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

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