Skip to content

Add a bundled variables.css to the Tokens Studio release workflow #5201

Description

@pomfrida

Part of #4740 (tooling track, alongside #5108).

Implement the bundle step decided in ADR-0010 (#5199): tokens_studio_release.yaml concatenates the generated CSS files in packages/eds-tokens/src/tokens/css/ and minifies the result into a committed src/tokens/css/variables.css.

Requirements

  • Plain concat + minify — the bundle adds no behaviour on top of the generated files (colour-scheme behaviour is governed by ADR-0004; no prefers-color-scheme fallback, per ADR-0013 / PR docs: add ADR for attribute-scoped colour-scheme switching over light-dark() #5200)
  • Glob the css/ directory rather than hard-coding the file list, so future export-set changes are followed automatically
  • Reuse the assert-no-light-dark guard from 2.x on the bundled output as a regression check
  • The committed file becomes importable on the beta line as @equinor/eds-tokens/next/css/variables.css through the existing ./next/css/* wildcard — no change needed in publish_tokens.yaml

Done when a beta release ships the bundle and it can be imported with one line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions