Skip to content

About

Plone Aurora XMAS theme

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plone Aurora Xmas Theme (@plone/xmas-theme)

A Plone Aurora theme on top of Agave, with Tailwind, shadcn components and three skins. It's the worked example for creating a theme on top of Agave, and the acceptance tests of Plone Aurora run its tests to check that a theme can still build on Agave.

Code analysis checks Acceptance tests

Features

  • Three skins, noel (the default), neve and dourado, which only set token values in styles/tokens.css.
  • A Plone block, christmasBanner, and a Plate block, alert, styled with the block contract's classnames in styles/content.css.
  • A greeting above the content, built with Tailwind utilities and shadcn components, with a skin picker.
  • The page frame's decoration in styles/publicui.css, in the custom layer.

The skin picker sets data-skin on <html> in the Public UI only, so the editor always shows the default skin. It's temporary: how a site picks its skin is still open, and the picker stays until then.

Installation

The theme needs Plone Aurora 1.0.0-alpha.32 or later, which loads its styles/tokens.css: @plone/agave 1.0.0-alpha.13, @plone/plate 1.0.0-alpha.33 and @plone/registry 4.0.0-alpha.11, its peer dependencies.

Add @plone/xmas-theme to the dependencies of your Plone Aurora app:

pnpm add @plone/xmas-theme

Then add it to the add-ons in the app's registry.config.ts, after the add-ons of @plone/aurora, which include Agave:

import { addons } from '@plone/aurora/registry.config';

addons.push('@plone/xmas-theme');

export { addons };

How Plone Aurora tests it

The Aurora (xmas-theme) job of the acceptance workflow of Plone Aurora checks out this repository, puts its own checkout in core/, and runs the acceptance tests of this repository. So a change to Plone Aurora that breaks a theme on top of Agave fails there, and the tests in acceptance/tests/xmas-theme.test.ts assert the theme's exact values: change them together with the styles.

Development

This repository is a Plone Aurora app that installs the add-on from packages/xmas-theme. It's a standard React Router app: app/, react-router.config.ts and vite.config.ts come with @plone/aurora, from npm. The add-on and the app take their dependency versions from the pnpm catalog of @plone/aurora, with catalog:. The version of @plone/aurora is in the configDependencies of pnpm-workspace.yaml, and .pnpmfile.cjs loads its catalog. To upgrade Plone Aurora, run pnpm add --config @plone/aurora@<version>, then make install.

Pre-requisites

Install and enable the latest Corepack. Corepack will resolve the pnpm version pinned by this repository's packageManager field.

npm install --global corepack@latest
corepack enable

Make convenience commands

Run make help to list the available commands.

help                             Show this help
install                          Installs the add-on in a development environment
start                            Starts Plone Aurora in development mode, reloading the add-on on changes
build                            Build a production bundle for distribution of the project with the add-on
typecheck                        Check the types of the app and the add-on
format                           Format codebase
lint                             Lint, or catch and remove problems, in code base
release                          Release the add-on on npmjs.org
release-dry-run                  Dry-run the release of the add-on on npmjs.org
test                             Run unit tests
ci-test                          Run unit tests in CI
backend-docker-start             Starts a Docker-based backend for development
acceptance-frontend-dev-start    Start acceptance frontend in development mode
acceptance-frontend-prod-start   Start acceptance frontend in production mode
acceptance-backend-start         Start backend acceptance server
ci-acceptance-backend-start      Start backend acceptance server in headless mode for CI
install-acceptance               Install the Playwright browsers used by the acceptance tests
acceptance-test                  Start the acceptance tests in interactive (UI) mode
ci-acceptance-test               Run the acceptance tests in headless mode for CI

Development environment set up

Install package requirements.

make install

Start developing

Start the backend.

make backend-docker-start

In a separate terminal session, start the frontend.

make start

Develop against an unreleased Plone Aurora

The app installs the released Plone Aurora packages from npm. To develop against a branch of Plone Aurora that isn't released yet, check it out in core/.

make core

It clones the main branch of Plone Aurora in core/, links every @plone/* package to the one in core/packages, and builds them. Choose another branch, or your fork, with CORE_BRANCH and CORE_REPOSITORY.

make core CORE_BRANCH=my-feature CORE_REPOSITORY=git@github.com:me/aurora.git

make start then uses the source of the checkout, and reloads when you change it. After you pull changes in core/, run make install build-core.

pnpm-lock.yaml doesn't change while core/ exists, so you can't commit the checkout's versions by mistake. .pnpmfile.cjs does the linking, and only when core/ exists. The Docker image uses the released packages: a frozen install refuses the checkout, and .dockerignore leaves it out. The acceptance workflow also runs the tests against a checkout of the main branch, with pnpm install --no-frozen-lockfile, every day, to catch a change in Plone Aurora that breaks the theme before it's released.

To use the released packages again, remove the checkout.

make remove-core

Lint code

Run ESlint, Prettier, and Stylelint in analyze mode.

make lint

Format code

Run ESlint, Prettier, and Stylelint in fix mode.

make format

Unit tests

Run unit tests.

make test

Run acceptance tests

Run each of these steps in separate terminal sessions.

In the first session, start the frontend in development mode.

make acceptance-frontend-dev-start

In the second session, start the backend acceptance server.

make acceptance-backend-start

In the third session, start the acceptance test runner (Playwright UI).

make acceptance-test

License

The project is licensed under the MIT license.

Credits and Acknowledgements 🙏

Crafted with care by Generated using Cookieplone (2.0.0) and cookieplone-templates (d2dd4d4) on 2026-12-03 13:51:41.101226. A special thanks to all contributors and supporters!

About

Plone Aurora XMAS theme

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages