Skip to content

v1.3.0 — WordPress consumption (4 npm packages lockstep)

Choose a tag to compare

@yutaro-shirai yutaro-shirai released this 11 Jun 10:51
· 79 commits to main since this release

@willink-labs/{tokens, tailwind-preset, css-tokens, react} 1.3.0

WordPress consumption ships — and the "WordPress package" roadmap item closes without a package. Two pilots proved @willink-labs/css-tokens is the WordPress integration: wp-modern-starter-kit (canonical wiring pattern) and esperanza-wp-theme (production — 10/10 variable parity, byte-identical dist except inert variable additions, 4/4 visual regression; consumer-side checks ran in that repo). Decision record: ADR-0014.

  • css-tokens — both pilot findings fixed:
    • Root-level proxy CSS files (tokens.css / tokens.scale.css / tokens.semantic.css / tokens.dark.css / tokens.primitives.css): plain-path resolvers — postcss-import, and therefore the Tailwind v3 CLI and classic WP PostCSS toolchains — never read the package exports map, so the documented specifiers were unresolvable (the pilots' BLOCKER). Every documented path is now a physical file; the exports map stays, plus a ./src/*.css passthrough keeps the pilots' workaround imports valid.
    • New export tokens.primitives.css — color-free primitives: radius + duration + easing only (10 vars, zero --color-* / --shadow-*). For consumers that keep their own palette and adopt only the DS shape/motion contract — esperanza's radius/motion-only contract no longer ingests 50 inert color/shadow vars.
  • tokens / tailwind-preset / react — lockstep markers, no source change.

Install

pnpm add @willink-labs/css-tokens@^1.3.0
# WordPress / PostCSS toolchains can now use the documented plain paths:
#   @import "@willink-labs/css-tokens/tokens.css";
#   @import "@willink-labs/css-tokens/tokens.primitives.css";

All four packages published via npm OIDC Trusted Publisher with --provenance (SLSA v1). No Flutter release this cycle — willink_theme stays at 1.5.0 (ADR-0011).

Out of v1.3 scope (v1.4 candidates)

FormField compound export (strongest candidate) · Flutter Checkbox/Switch/RadioGroup wrappers · Popover / Combobox / Breadcrumb / Stepper (Discussion-gated).

Roadmap: docs/roadmap/v1.3.md (PR #50).