Pills
A flexible row of tag-style pills for categories, filters, or labels.
Usage
Pills displays a row (or column) of tag-style labels β useful for categories, filters, skills, status tags, or any compact list of short text items. Each Pill child can be plain text or a link, with its own color and optional indicator dot.
Parent Pills controls layout and shared styling for every pill in the group. Select an individual Pill to edit its label, URL, color, and indicator.
Parent and child blocks
The Pills parent holds one or more Pill children (ds/pill). Add pills with the block inserter or duplicate an existing pill.
Select Pills for layout and group-wide pill styling. Select a Pill child for text, link, color, and indicator settings.
Layout (parent)
- Justify β Start, Center, End, or Space Between
- Orientation β Horizontal (default) or Vertical
- Gap β spacing between pills in
remsteps (0β12)
Pill style (parent)
These settings apply to every pill in the group via shared CSS variables:
- Quick-Set Color β applies a color preset to every existing pill in the group (Primary, Secondary, Accent, Variant, Gray, White, Black, or Transparent). Individual pills can still be changed afterward. Newly added pills start as Primary until you quick-set again or edit that pill.
- Padding X / Padding Y β internal spacing in
em - Font Size β text size in
em(0.5β2) - Border Radius β Square, Rounded, or Full (pill-shaped, default)
- Border Width β outline thickness in pixels (0β4)
- Font Weight β 100β900 in steps of 100
- Text Transform β Normal, Uppercase, Title Case, or Lowercase
Individual pills (child)
Select a Pill to configure:
- Text β edit inline in the editor; bold (
<strong>) is allowed from the formatting toolbar. Ampersands in labels are stored as&(WordPress JSON escapes are repaired on open). - URL β optional link (sidebar URL field or Link toolbar button). Without a URL the pill renders as a
<div>; with a URL it becomes an<a>. - Color β Primary, Secondary, Accent, Variant, Gray, White, Black, or Transparent (transparent fill with a gray outline; set parent Border Width to 0 for no outline)
- Show Indicator β animated dot before the label, useful for live/active status
Block width
Pills supports Wide and Full alignment from the block toolbar.
Tips
- Use Space Between justify for filter bars that span the full width of a container.
- Show Indicator with a pulse animation works well for "Live" or "New" status tags.
- Set Orientation to Vertical for sidebar tag lists or stacked filters on mobile-first layouts.
- Parent padding and typography controls keep a long pill list visually consistent β use Quick-Set Color to match every pill, then override individual pills when items need different emphasis.
Screenshots
Front-end
-
Four pills beside copy in a columns layout β mixed color presets including a transparent outlined Cancel Anytime pill.
Editor
-
Parent Pills selected β Layout panel with Justify, Orientation, Gap, and the start of Pill Style. -
Pill Style panel β Quick-Set Color, Padding, Border Radius Full, Font Weight 700, and Text Transform.
Settings
Layout

Horizontal alignment of the pill row β start, center, end, or space between.

Horizontal row (default) or vertical stack.

Space between pills in 0.25rem steps (0β12).
Pill Style

Horizontal padding inside each pill, in 0.25em steps (0β12). Applies to all pills in the group.

Vertical padding inside each pill, in 0.25em steps (0β12). Applies to all pills in the group.

Text size inside each pill in em units (0.5β2).

Corner shape for all pills β square, rounded, or full (pill-shaped, default).

Border thickness around each pill in pixels (0β4).

Font weight for pill text (100β900, step 100).

Capitalization for all pill labels β normal, uppercase, title case, or lowercase.