Tags

Updated

Usage

Open Appearance → Customize → Styles → Tags to style filter buttons and category pills. Set the Font, Size, Weight, Style, Transform, Tracking, and Width, then Horizontal Padding, Vertical Padding, and Border Radius for the pill shape.

Color and Background set the normal look. Color When Active and Background When Active (default White on Primary) apply to the selected filter, for example in a portfolio or blog archive.

Tags keep their text color wherever it's easy to read on their background (a contrast of 4.5:1 or more): Color on Background, and on the selected tag Color When Active on Background When Active. Where it wouldn't be, for example white on a yellow or light orange, the text turns black or white, whichever reads better. On hover a tag darkens as usual, unless its text would get hard to read; then it keeps its color.

When to use it

  • Portfolio, publication, or blog blocks with category filters or tag lists.
  • Matching filter pills to your buttons. Compare Border Radius with Styles → Buttons.
  • After palette changes, to keep unselected tags (Gray background) distinct from the selected one.

Tips

  • This styles the pill design wherever it appears, not only WordPress post tags.
  • Background defaults to Gray with Text-colored labels. The selected tag switches to your Primary color.
  • For uppercase category labels above titles, use Header 4 through Header 6 instead of pills.
  • Raise Border Radius for fully rounded pills; 0 gives square corners.
  • Width shows when this style's font comes in several widths and is set to Full axis in Dirigible Fonts. Uncheck Default and drag the slider for a condensed (narrower) or expanded (wider) cut of the font; the slider covers only the widths the font has. Leave Default checked to keep the width the text has now.

Settings

Tags

Font setting in the block editor sidebar
Font

Picks which of the three stacks from Styles → Fonts this style uses. Each row shows the family behind it, with a sample set in that font.

  • Display
  • Body
  • Altdefault
Weight setting in the block editor sidebar
Weight

With a variable font, a slider covers the weights the font has. With other fonts, only the weights Dirigible Fonts loads show. A saved weight the font doesn't load is marked, with a note.

  • Extra Light
  • Light
  • Normal
  • Book
  • Md. Bold
  • Bolddefault
  • Xtra Bold
  • Black
  • Xtra Black
Transform setting in the block editor sidebar
Transform
  • Nonedefault
  • Uppercase
  • Lowercase
  • Title Case
Style setting in the block editor sidebar
Style

Italic shows when the font has an italic loaded in Dirigible Fonts; with no italic, Style is hidden. A saved Italic the font doesn't load is marked, with a note.

  • Normaldefault
  • Italic
Size setting in the block editor sidebar
Size
Tracking setting in the block editor sidebar
Tracking
Width setting in the block editor sidebar
Width

Shows when this style's font comes in several widths and is set to Full axis in Dirigible Fonts. Uncheck Default, then drag for a narrower (condensed) or wider (expanded) cut; the slider covers only the widths the font has. Default keeps the width the text has now.

Horizontal Padding setting in the block editor sidebar
Horizontal Padding
Vertical Padding setting in the block editor sidebar
Vertical Padding
Border Radius setting in the block editor sidebar
Border Radius
Color setting in the block editor sidebar
Color
  • White
  • Textdefault
  • Primary
  • Secondary
  • Accent
  • Variant
  • Muted
Background setting in the block editor sidebar
Background
  • Text
  • Primary
  • Secondary
  • Accent
  • Variant
  • Muted
  • White
  • Graydefault
Color When Active setting in the block editor sidebar
Color When Active
  • Whitedefault
  • Text
  • Primary
  • Secondary
  • Accent
  • Variant
  • Muted
Background When Active setting in the block editor sidebar
Background When Active
  • Text
  • Primarydefault
  • Secondary
  • Accent
  • Variant
  • Muted
  • White
  • Gray

Built by Dirigible Studio. Get in touch