@eeacms/volto-design-tokens
v3.0.0
Published
@eeacms/volto-design-tokens: Volto add-on
Readme
@eeacms/volto-design-tokens
Volto Design Tokens
Features
Provides the following EEA design system tokens:
- borders
- colors
- fonts
- shadows
- shapes
- sizes
- z-index
Upgrade
Upgrading to 3.x
This version requires
Volto 18orVolto 19and Node.js 22.
The token files keep their names, their paths and their variables: every .less file in src/ is
byte-identical to 2.x, so a project that imports @eeacms/volto-design-tokens/src/tokens.less or any
of its siblings keeps the same styles. The release adds Volto 19 support and moves the repository to
the Volto 19 layout, where the published package lives in packages/volto-design-tokens.
Breaking changes
- Node.js 22 or newer is required (
engines.node >= 22), 2.x declared no engine. - React 18 is required. The package declares
reactandreact-domas^18.2.0peers, 2.x declared no peers. - The package no longer ships the repository tooling. The Jest setup is gone and the unit tests moved to Vitest next to the add-on, so nothing a site imports was removed.
Requirements
Backend
Frontend
- Node.js:
>=22.0.0
Installation
Make sure you have a Plone backend up-and-running at http://localhost:8080/Plone
docker compose up backendStart Volto frontend
If you already have a volto project, just update
package.json:"dependencies": { "@eeacms/volto-design-tokens": "*" }and
volto.config.js:const addons = ['@eeacms/volto-design-tokens'];If not, create one with Cookieplone, as recommended by the official Plone documentation for Volto 18+:
uvx cookieplone project cd project-title
Install or update dependencies, then start the project:
make installFor a Cookieplone project, start the backend and frontend in separate terminals:
make backend-start make frontend-startGo to http://localhost:3000
Happy editing!
License
See LICENSE.md for details.
