pro-laico

styles

by pro-laico
atomic-payload
Admin customization
v3
>=3.0.0
MIT

Overview

Summary generated from the README

Adds designSet and shortcutSet collections to Payload, along with token fields and admin row labels. A runtime UnoCSS processor turns the active design set into CSS for both the frontend and the Payload admin. It is part of the Atomic Payload suite and builds on its core, zap and site packages. Requires Payload 3 or later.

Features

  • designSet and shortcutSet collections for managing styles in the admin
  • Tailwind-style class authoring inside the Payload dashboard
  • UnoCSS shortcuts for grouping and reusing styles
  • Design tokens for colors, sizes, screen sizes and animations
  • Only one design set active at a time, so concept designs can be swapped
  • CSS pipeline with a processor, hook and processDesignSet function

Use cases

  • Switch between complete site designs by activating a different design set
  • Define reusable color, sizing and animation tokens editable by non-developers
  • Style custom blocks with utility classes written directly in the admin

From the author

Atomic Payload styles: designSet + shortcutSet collections, token fields, CSS preflight pipeline, UnoCSS processor and processDesignSet pipeline. The single package responsible for all CSS handling (frontend + Payload admin/runtime).

Installation

npm i @pro-laico/styles

37

Stars

0

Forks

0

Open Issues

2 months ago

Last Updated

1

Weekly Downloads

v0.5.0

npm Version

239.0 KB

Unpacked Size

2

Dependencies

Repository stars

Trends appear after 7 days of data. Collecting since Oct 22 — 2 daily snapshots so far.

Shared by 10 plugins in pro-laico/atomic-payload.

npm weekly downloads

Trends appear after 7 days of data. Collecting since Oct 22 — 2 daily snapshots so far.

Each point is npm's rolling 7-day download count.

Health Score

57/100Good

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1128550352-styles.svg)](https://payloaddirectory.dev/plugins/1128550352-styles)
HTML
<a href="https://payloaddirectory.dev/plugins/1128550352-styles"><img src="https://payloaddirectory.dev/badge/1128550352-styles.svg" alt="Payload Directory"></a>
Updated Jul 28, 2026Created Jan 5, 2026Published Jun 27, 2026

README

Atomic Payload Styles Plugin

The single home for all CSS handling in Atomic Payload: the designSet + shortcutSet collections, token fields and admin row-labels, and the runtime UnoCSS processor that turns the active design set into CSS for both the frontend and Payload's admin. Part of Atomic Payload.

Features

Tailwind Styles

Write Tailwind directly in the Payload admin dashboard, so you can have custom styled blocks wherever you need them.

styles

UnoCSS Shortcuts

UnoCSS powers our style generation, so we can leverage the built in Shortcut functionality to group our styles for reuse across your website.

shortcuts

Design Tokens

Create reusable values related to your website design. Including colors, sizings, screen sizes, animations and more!

tokens

Design Sets

Design Sets are the equivalent of a complete Tailwind config file and can completely alter the appearance of your website. Only one design set can be active at a time, meaning you can build new concept designs and easily swap back and forth to see which you prefer.

designsets

Atomic Payload dependencies

  • @pro-laico/core — shared kernel the plugin builds on.
  • @pro-laico/zap — the schema registry that wires the design-set / shortcut-set type stubs.
  • @pro-laico/site — type-only relationship for the fields/slugs the processor reads.

Exports

ImportWhat's there
@pro-laico/stylesstylesPlugin (default + named) and its options types, the ClassNameField field, and the CSS pipeline (createCssProcessor, createCssHook, processDesignSet) with their types.
@pro-laico/styles/schemaSchema stubs (DesignSet, CollectionThatUsesCSSProcessorSlug, CollectionWithStoredAtomicClassesSlug) for the PayloadAugment registry.
@pro-laico/styles/fields/classNameThe ClassNameField factory.
@pro-laico/styles/ui/rowLabels/shortcutAdmin row-label React component for shortcuts.
@pro-laico/styles/ui/rowLabels/colorAdmin row-label React component for colors.
@pro-laico/styles/ui/rowLabels/animationAdmin row-label React component for animations.
@pro-laico/styles/ui/rowLabels/designTokenAdmin row-label React component for design tokens.

Similar plugins