Skip to content
PolyFish CSS

Every class in the framework

All 690 public classes, grouped by module and family, with the properties each one sets. This page is generated from the CSS source on every build — a hand-written index is out of date the day after it ships.

690 classes 12 modules Generated at build time
Documentation menu

How to read this

“Declares” lists the properties a rule sets, not its values — the values are tokens and you can change them. “Applies when” names the media or container query a class sits inside; an empty cell means it always applies. Families of more than a dozen near-identical classes are printed as a list of names rather than a table of eighty identical rows.

Classless

Styles bare semantic elements — headings, links, buttons, fields, tables, code, quotes, details, dialogs — with no classes. Every rule is wrapped in :where() and sits in the lowest cascade layer, and it only touches elements that carry no class, so any PolyFish component placed on top wins.

PolyFishCSS-Classless.css · element selectors only

Core

Required. Tokens and colour roles, the reset, the fluid type scale, layout primitives, buttons, focus handling and the reduced-motion and forced-colours policies.

PolyFishCSS-Core.css · 85 public classes

Scoped Density And Retinting

ClassDeclaresApplies when
pf-compact——
pf-airy——
pf-retint——

Intrinsic Layout Primitives

ClassDeclaresApplies when
pf-switcherdisplay, flex-wrap, gap, flex-grow, flex-basis, min-inline-size—
pf-sidebardisplay, flex-wrap, gap—
pf-sidebar__sideflex-basis, flex-grow—
pf-sidebar__mainflex-basis, flex-grow, min-inline-size—
pf-coverdisplay, flex-direction, min-block-size, padding, margin-block, margin-block-start, margin-block-end—
pf-cover__mainmargin-block-start, margin-block-end, margin-block—
pf-centerbox-sizing, max-inline-size, margin-inline, padding-inline—
pf-center--intrinsicdisplay, flex-direction, align-items—
pf-iconinline-size, block-size, flex-shrink, align-self—
pf-with-icondisplay, align-items, gap, align-self—
pf-imposterposition, inset-block-start, inset-inline-start, transform—
pf-imposter--containmax-inline-size, max-block-size, overflow—

Tokens

ClassDeclaresApplies when
pf-invertbackground-color, color—

Typography

ClassDeclaresApplies when
pf-proseline-height, padding-inline-start, display, gap, color, margin-top, min-inline-size—

Layout Primitives

Sets width, max-width, margin-inline, padding-inline, display… — 34 classes.

pf-container pf-container--narrow pf-container--wide pf-stack pf-stack--sm pf-stack--lg pf-measure-prose pf-measure-wide pf-cluster pf-cluster--between pf-cluster--center pf-grid pf-grid--2 pf-grid--3 pf-grid--4 pf-grid--auto pf-grid--auto-sm pf-grid--auto-md pf-grid--auto-lg pf-grid--auto-xl pf-shell pf-shell--narrow pf-shell--aside pf-split pf-logo pf-logo--sm pf-lockup pf-brand-well pf-fg-brand pf-brand-rule pf-span-full pf-stretched-link pf-facet pf-facet--sw

Buttons

ClassDeclaresApplies when
pf-btndisplay, align-items, justify-content, gap, background, color, border, border-radius, font-family, font-size, font-weight, line-height, padding, text-decoration, cursor, transition, border-color, transform, pointer-events, opacity, content, width, height, border-top-color, animation, min-height, forced-color-adjust@media (pointer: coarse) @media (forced-colors: active)
pf-btn--secondarytransform, background, border-color, color—
pf-btn--ghosttransform, background, border-color, color—
pf-btn--linktransform, padding-inline, text-decoration, text-underline-offset, background, border-color, color—
pf-btn--accent-2background, border-color—
pf-btn--iconwidth, height, padding, border-radius, font-size, line-height—
pf-btn--squareborder-radius—
pf-btn--smwidth, height, font-size, padding—
pf-btn--lgfont-size, padding—
pf-btn--blockdisplay, width—

Pills, Markers, Focus

Sets display, align-items, gap, background, border… — 24 classes.

pf-pill pf-pill--accent pf-pill--accent-2 pf-mark pf-mark--accent-2 pf-dot pf-skip pf-scroll-lock pf-visually-hidden pf-card pf-plan pf-alert pf-table-wrap pf-code pf-input pf-select pf-textarea pf-progress__bar pf-meter__seg--on pf-meter__seg--warn pf-switch__track pf-range pf-spinner pf-switch

Headers

Navigation bars, heroes, page heads and breadcrumbs — everything above the content.

PolyFishCSS-Headers.css · 37 public classes

Announcement Bar

ClassDeclaresApplies when
pf-topbarbackground, border-bottom, color, font-size, font-weight—
pf-topbar__innerdisplay, flex-wrap, align-items, justify-content, gap, padding-block, text-align—
pf-topbar--accentbackground, border-color, color, text-decoration-color—

Navigation

ClassDeclaresApplies when
pf-navposition, top, z-index, background, -webkit-backdrop-filter, backdrop-filter, border-bottom, content, inset, height, pointer-events—
pf-nav--staticposition, -webkit-backdrop-filter, backdrop-filter—
pf-nav--flushbackground, border-bottom-color, display—
pf-nav__innerdisplay, align-items, justify-content, gap, min-height, position@media (max-width: 860px)
pf-nav__branddisplay, align-items, gap, color, font-family, font-size, font-weight, letter-spacing, text-decoration, flex, width, height, align-self, border, border-radius, padding—
pf-nav__menudisplay, align-items, gap, margin-inline-start, position, inset, background, border-bottom, padding, max-height, overflow-y, overscroll-behavior, padding-bottom, visibility, opacity, transform, transition, min-inline-size@media (max-width: 860px)
pf-nav__linksdisplay, align-items, gap, margin, color, font-size, font-weight, text-decoration, padding-block, position, content, inset-inline-start, inset-inline-end, bottom, height, background, flex-direction, min-height@media (max-width: 860px) @media (pointer: coarse)
pf-nav__actionsdisplay, align-items, gap, flex-direction@media (max-width: 860px)
pf-nav__checkboxdisplay, position, opacity, pointer-events, outline, outline-offset, visibility, transform, background@media (max-width: 860px)
pf-nav__burgerdisplay, width, height, border, border-radius, cursor, place-items, background, content, transition, transform, outline, outline-offset@media (max-width: 860px)

Hero

Sets position, overflow, background, padding-block, content… — 24 classes.

pf-hero pf-hero__inner pf-hero--center pf-hero__lede pf-hero__eyebrow pf-hero__title pf-hero__actions pf-hero__meta pf-hero--split pf-hero__media pf-hero--photo pf-pagehead--roomy pf-pagehead pf-pagehead__inner pf-pagehead__title pf-pagehead__lede pf-breadcrumb pf-hero--panel pf-hero--compact pf-hero--hub pf-hero__assure pf-hero__glance pf-hero--art pf-hero__art

Content

Sections, cards, plans, stats, tables, alerts, code blocks, accordions, side navigation and CTA bands.

PolyFishCSS-Content.css · 96 public classes

Sections

Sets padding-block, background, border-top, display, gap… — 15 classes.

pf-section pf-section--tight pf-section--roomy pf-section--vast pf-section--alt pf-section--raised pf-section__head pf-section__head--center pf-eyebrow pf-lede pf-muted pf-prose pf-table-wrap pf-code pf-alert

Cards

Sets display, flex-direction, gap, background, border… — 14 classes.

pf-card pf-card__title pf-card__body pf-card__foot pf-card--facet pf-card--accent pf-card--flat pf-card--link pf-card__icon pf-card__icon--accent-2 pf-feature pf-checks pf-checks--accent-2 pf-checks--muted

Plan Cards

ClassDeclaresApplies when
pf-planposition, display, flex-direction, gap, background, border, border-radius, padding—
pf-plan--featuredborder-color, background—
pf-plan__namefont-size—
pf-plan__notecolor, font-size—
pf-plan__pricedisplay, align-items, gap, font-family, font-size, font-weight, letter-spacing, color—
pf-plan__badgeposition, top, inset-inline-end, background, border-radius, color, font-size, font-weight, padding—
pf-plan__footmargin-top, padding-top—

Stats

ClassDeclaresApplies when
pf-statsdisplay, gap, grid-template-columns, margin—
pf-statdisplay, gap, border-inline-start, padding-inline-start, min-inline-size—
pf-stat__valuefont-family, font-size, font-weight, letter-spacing, line-height, forced-color-adjust, background, -webkit-background-clip, background-clip, color—
pf-stat__labelcolor, font-size—

Tables

ClassDeclaresApplies when
pf-tablefont-size, line-height, min-width, padding, text-align, vertical-align, background, color, font-family, font-weight, white-space, border-top, caption-side, padding-top—
pf-table--zebrabackground—
pf-table--compactpadding, font-size—
pf-table--roomypadding—
pf-table--borderedborder—
pf-table--hoverbackground—
pf-table--fixedtable-layout—
pf-table-wrap--tallmax-height, overflow—
pf-table--stickyposition, top, z-index—
pf-table--stackdisplay, min-width, position, width, height, overflow, clip-path, white-space, border, border-radius, margin-bottom, padding, border-top, justify-content, gap, padding-inline, text-align, content, color, font-size, font-weight, padding-inline-end@media (max-width: 620px)

Alerts And Quotes

ClassDeclaresApplies when
pf-alert__titlefont-family, font-size, font-weight, color—
pf-alert--infoborder-inline-start-color—
pf-alert--successborder-inline-start-color, background—
pf-alert--warnborder-inline-start-color, background—
pf-alert--dangerborder-inline-start-color, background—
pf-quoteborder-inline-start, padding-inline-start, font-size, line-height, color, margin-top—

Code

ClassDeclaresApplies when
pf-code__bardisplay, align-items, justify-content, gap, background, border-bottom, color, font-family, font-size, padding—
pf-code__copybackground, border, border-radius, color, cursor, font-family, font-size, padding, min-height, border-color—
pf-th-sortdisplay, align-items, gap, background, border, color, cursor, font, padding, content, width, height, opacity, clip-path, transform—
pf-tagcolor—
pf-attrcolor—
pf-strcolor—
pf-commentcolor—

Forms

ClassDeclaresApplies when
pf-fielddisplay, gap, min-inline-size—
pf-labelfont-size, font-weight—
pf-helpcolor, font-size, line-height—
pf-inputwidth, background, border, border-radius, color, font-size, padding, transition, border-color, box-shadow, outline, cursor, opacity, -webkit-box-shadow, -webkit-text-fill-color, caret-color, min-height, flex@media (pointer: coarse)
pf-selectwidth, background, border, border-radius, color, font-size, padding, transition, border-color, box-shadow, outline, cursor, opacity, -webkit-box-shadow, -webkit-text-fill-color, caret-color, appearance, background-image, background-position, background-size, background-repeat, padding-inline-end@media (pointer: coarse)
pf-textareawidth, background, border, border-radius, color, font-size, padding, transition, border-color, box-shadow, outline, cursor, opacity, -webkit-box-shadow, -webkit-text-fill-color, caret-color, min-height, resize@media (pointer: coarse)
pf-choicedisplay, align-items, gap, font-size, accent-color, width, height@media (pointer: coarse)
pf-inline-formdisplay, flex-wrap, gap, flex, width—

Accordion

ClassDeclaresApplies when
pf-accordiondisplay, gap, background, border, border-radius, padding, align-items, justify-content, cursor, font-family, font-size, font-weight, list-style, content, width, height, flex, clip-path, transition, transform, margin-bottom, color, line-height, interpolate-size, block-size, overflow-y, min-inline-size@supports (interpolate-size: allow-keywords) @media (prefers-reduced-motion: no-preference)
pf-sidenavdisplay, gap, align-content, min-inline-size—
pf-sidenav--stickyposition, top—
pf-sidenav__groupdisplay, gap, min-inline-size—
pf-sidenav__headingfont-family, font-size, font-weight, color—
pf-sidenav__linksdisplay, gap, margin, color, font-size, text-decoration, min-inline-size, min-height, align-items@media (pointer: coarse)

Gallery

ClassDeclaresApplies when
pf-gallerydisplay, gap, grid-template-columns, margin—
pf-tileposition, overflow, border, border-radius, aspect-ratio, background, width, height, object-fit, inset, color, font-size, padding—
pf-scrollerdisplay, grid-auto-flow, grid-auto-columns, gap, overflow-x, overscroll-behavior-x, scroll-snap-type, scroll-padding-inline, padding-bottom, margin, scrollbar-width, scroll-snap-align, scroll-behavior@media (prefers-reduced-motion: no-preference)
pf-scroller--sm——
pf-scroller--lg——
pf-scroller--stopgrid-auto-flow, grid-template-columns, overflow@media (min-width: 900px)

Steps

ClassDeclaresApplies when
pf-stepscounter-reset, display, gap, margin, counter-increment, position, padding-inline-start, max-width, inset-inline-start, inset-block-start, content, place-items, width, height, background, border, border-radius, color, font-family, font-size, margin-bottom, line-height, min-inline-size—
pf-screendisplay, place-items, min-height, background-image, min-inline-size—
pf-screen__panelwidth—
pf-tile__fillwidth, height—
pf-specimenfont-family, font-size, font-weight, line-height, letter-spacing, margin—

Cta Band

ClassDeclaresApplies when
pf-ctaposition, overflow, background, border, border-radius, padding, content, inset, background-image, -webkit-mask-image, mask-image, pointer-events, font-size, max-width, color—
pf-cta__innerposition, display, flex-wrap, align-items, justify-content, gap—
pf-card--numberedcounter-increment, position, content, inset-block-start, inset-inline-end, color, font-family, font-size, opacity, counter-reset—
pf-card--mediapadding, overflow, aspect-ratio, background, object-fit, inline-size, display, border-block-end, margin-inline, margin-block-start, margin-block-end—
pf-card__mediaaspect-ratio, background, object-fit, inline-size, display, border-block-end, margin-inline, margin-block-start—
pf-alert--inlinedisplay, align-items, gap, padding, font-size, border-width, border-inline-start-width—
pf-table--numericfont-variant-numeric, text-align—
pf-quote--pullborder-inline-start, border-block, padding, margin-block, padding-inline, font-size, line-height, text-align, text-wrap, margin-top—

Forms

Fields and labels, every native control, validation that waits until someone has typed, fieldsets, ranges and file inputs.

PolyFishCSS-Forms.css · 37 public classes

Sizes

ClassDeclaresApplies when
pf-input--smfont-size, padding@media (pointer: coarse)
pf-select--smfont-size, padding@media (pointer: coarse)
pf-input--lgfont-size, padding—
pf-select--lgfont-size, padding—

Floating Labels

ClassDeclaresApplies when
pf-floatposition, padding-top, padding-bottom, transform, color—
pf-inputpadding-top, padding-bottom, transform, color, border-color, box-shadow—
pf-selectpadding-top, padding-bottom, transform, border-color—
pf-textareapadding-top, padding-bottom, transform, color, border-color—
pf-float__labelposition, top, inset-inline-start, color, font-size, pointer-events, transform-origin, transition, transform—

Validation States And Feedback

ClassDeclaresApplies when
pf-feedbackdisplay, align-items, gap, font-size, line-height, content, width, height, margin-top, flex, background, clip-path—
pf-feedback--errorcolor—
pf-feedback--okcolor, clip-path—
pf-feedback--hintcolor, display—
pf-label--requiredcontent, color, margin-inline-start—

Fieldsets And Legends

ClassDeclaresApplies when
pf-fieldsetborder, border-radius, padding, min-width—
pf-fieldset--plainborder, padding, padding-inline—
pf-legendcolor, font-family, font-size, font-weight, padding-inline—

Range

ClassDeclaresApplies when
pf-rangewidth, height, appearance, background, cursor, outline, outline-offset, border-radius, margin-top, border—

File Input

ClassDeclaresApplies when
pf-filewidth, background, border, border-radius, color, font-size, padding, margin-inline-end, cursor, font, border-color, outline, outline-offset—

Checks And Radios

ClassDeclaresApplies when
pf-checks-groupdisplay, gap, min-inline-size—
pf-checks-group--inlinedisplay, flex-wrap, gap—
pf-choice-carddisplay, align-items, gap, background, border, border-radius, cursor, padding, transition, border-color, accent-color, margin-top, outline, outline-offset—
pf-choice-card__titlefont-weight, font-size—
pf-choice-card__bodycolor, font-size—

Form Layout

ClassDeclaresApplies when
pf-formdisplay, gap, min-inline-size—
pf-form__rowdisplay, gap, min-inline-size—
pf-form__row--2grid-template-columns@media (max-width: 620px)
pf-form__row--3grid-template-columns@media (max-width: 620px)
pf-form__row--splitgrid-template-columns@media (max-width: 620px)
pf-form__actionsdisplay, flex-wrap, justify-content, gap, flex@media (max-width: 620px)
pf-btnflex@media (max-width: 620px)
pf-field--horizontaldisplay, grid-template-columns, align-items, gap, grid-column@media (max-width: 760px)
pf-helpgrid-column@media (max-width: 760px)

Counters And Hints

ClassDeclaresApplies when
pf-label-rowdisplay, align-items, justify-content, gap—
pf-countercolor, font-family, font-size, font-variant-numeric—
pf-counter--overcolor—
pf-textarea--autofield-sizing, min-block-size, max-block-size—

Components

Application UI: badges, button groups, pagination, progress, lists, avatars, switches, tabs, menus, dialogs, popovers, drawers, toasts.

PolyFishCSS-Components.css · 106 public classes

Badges And Chips

ClassDeclaresApplies when
pf-badgedisplay, align-items, gap, background, border, border-radius, color, font-size, font-weight, line-height, padding, white-space—
pf-badge--accentbackground, border-color, color—
pf-badge--secondarybackground, border-color, color—
pf-badge--dangerbackground, border-color, color—
pf-badge--mutedbackground, color—
pf-badge--outlinebackground, border-color, color—
pf-badge--countmin-width, justify-content, padding-inline—
pf-chipdisplay, align-items, gap, background, border, border-radius, color, font-size, padding, text-decoration, border-color—
pf-chip__xcolor, font-size, line-height—

Button Groups

ClassDeclaresApplies when
pf-btn-groupdisplay, flex-wrap, border-radius, margin-inline-start, border-start-start-radius, border-end-start-radius, border-start-end-radius, border-end-end-radius, position, z-index, background, border-color, color—
pf-btnborder-radius, margin-inline-start, border-start-start-radius, border-end-start-radius, border-start-end-radius, border-end-end-radius, position, z-index, background, border-color, color, flex—
pf-btn-group--squareborder-radius—
pf-btn-group--blockdisplay, flex—

Segment

ClassDeclaresApplies when
pf-segmentdisplay, flex-wrap, position, opacity, pointer-events, align-items, justify-content, min-height, padding, background, border, color, cursor, font-size, font-weight, margin-inline-start, transition, border-start-start-radius, border-end-start-radius, border-start-end-radius, border-end-end-radius, z-index, border-color, outline, outline-offset—
pf-segment--blockdisplay, flex—

Pagination

ClassDeclaresApplies when
pf-paginationdisplay, flex-wrap, align-items, gap—
pf-pagination__itemdisplay, align-items, justify-content, min-width, min-height, padding-inline, background, border, border-radius, color, font-size, text-decoration, transition, border-color, font-weight, opacity, pointer-events@media (pointer: coarse)
pf-pagination__gapcolor, padding-inline—

Progress And Meter

ClassDeclaresApplies when
pf-progressoverflow, height, background, border-radius—
pf-progress__barheight, width, background, border-radius, transition—
pf-progress--lgheight—
pf-progress--secondarybackground—
pf-meterdisplay, gap, height—
pf-meter__segflex, background, border-radius—
pf-meter__seg--onbackground—
pf-meter__seg--warnbackground—

Spinner

ClassDeclaresApplies when
pf-spinnerdisplay, width, height, border-radius, background, -webkit-mask, mask, animation, vertical-align—
pf-spinner--lgwidth, height—

List Group

ClassDeclaresApplies when
pf-listdisplay, flex-direction, border, border-radius, overflow, margin—
pf-list__itemdisplay, align-items, justify-content, gap, background, color, font-size, padding, text-decoration, max-width, border-top, box-shadow, padding-inline—
pf-list__item--linkbackground—
pf-list__titlefont-weight—
pf-list__metacolor, font-size—
pf-list--flushborder, border-radius, background, padding-inline—

Avatar

ClassDeclaresApplies when
pf-avatardisplay, place-items, width, height, flex, background, border, border-radius, color, font-size, font-weight, letter-spacing, object-fit, overflow, margin-inline-start, box-shadow—
pf-avatar--smwidth, height, font-size—
pf-avatar--lgwidth, height, font-size—
pf-avatar--accentbackground, border-color, color—
pf-avatarsdisplay, margin-inline-start, box-shadow—

Switch

ClassDeclaresApplies when
pf-switchdisplay, align-items, gap, cursor, font-size, position, opacity, width, height, margin, background, border-color, transform, outline, outline-offset—
pf-switch__trackposition, width, height, flex, background, border, border-radius, transition, content, top, inset-inline-start, transform, border-color, outline, outline-offset, opacity—

Input Group

ClassDeclaresApplies when
pf-input-groupdisplay, align-items, width, border-radius, border-start-start-radius, border-end-start-radius, border-start-end-radius, border-end-end-radius, margin-inline-start, flex, min-width, position, z-index—
pf-inputflex, min-width, position, z-index—
pf-input-group__addondisplay, align-items, background, border, color, font-size, padding-inline, white-space—

Tabs

ClassDeclaresApplies when
pf-tabsdisplay, grid-template-columns, border-bottom, column-gap, grid-auto-flow, justify-content, overflow-x, overscroll-behavior-x, scrollbar-width@media (max-width: 620px)
pf-tabs__panelgrid-column, grid-row, display, padding-top@media (max-width: 620px)
pf-tabs__listdisplay—
pf-tabs__radioposition, opacity, pointer-events, border-bottom-color, color, outline, outline-offset, display—
pf-tabs__labelgrid-row, padding, border-bottom, color, cursor, font-size, font-weight, white-space, border-bottom-color, outline, outline-offset—

Disclosure Menu

ClassDeclaresApplies when
pf-menuposition, display, border-color—
pf-menu__triggerdisplay, align-items, gap, background, border, border-radius, color, cursor, font-size, font-weight, list-style, padding, content, width, height, clip-path, border-color—
pf-menu__listposition, z-index, top, inset-inline-start, min-width, max-width, display, background, border, border-radius, box-shadow, padding, inset-inline-end, min-inline-size—
pf-menu--endinset-inline-start, inset-inline-end—
pf-menu__itemdisplay, align-items, gap, background, border, border-radius, color, cursor, font-size, padding, text-align, text-decoration, width—
pf-menu__item--dangercolor—
pf-menu__sepborder, border-top, margin—

Dialog

ClassDeclaresApplies when
pf-dialogmax-width, background, border, border-radius, color, padding, transition, opacity, transform, background-color@media (prefers-reduced-motion: no-preference) @starting-style
pf-dialog-targetposition, inset, z-index, display, place-items, padding, background—
pf-dialog__panelposition, width, background, border, border-radius, padding—
pf-dialog__closeposition, top, inset-inline-end, color, font-size, line-height, text-decoration—
pf-dialog__titlefont-family, font-size—
pf-dialog__footdisplay, flex-wrap, justify-content, gap, margin-top—

Native Overlays: Popover And Invoker Commands

ClassDeclaresApplies when
pf-popovertransition, opacity, transform, margin, inset, min-width, max-width, background, border, border-radius, box-shadow, color, padding, position, inset-block-start, inset-inline, margin-inline, position-anchor, position-area, margin-block-start, position-try-fallbacks@media (prefers-reduced-motion: no-preference) @starting-style @supports (anchor-name: --a)
pf-popover--menupadding, display, width, align-items, gap, background, border, border-radius, color, font, text-align, text-decoration—
pf-popover-anchoranchor-name@supports (anchor-name: --a)
pf-dialog__actionsdisplay, flex-wrap, justify-content, gap, margin-block-start—
pf-tooltipposition, content, bottom, inset-inline-start, z-index, width, max-width, background, border, border-radius, color, font-size, font-weight, line-height, padding, opacity, pointer-events, transform, transition—
pf-tooltip--endinset-inline-start, inset-inline-end, transform—

Ratio Box

ClassDeclaresApplies when
pf-ratioposition, width, aspect-ratio, inset, height, border—
pf-ratio--1x1——
pf-ratio--4x3——
pf-ratio--16x9——
pf-ratio--21x9——

Skeleton

ClassDeclaresApplies when
pf-skeletonbackground, background-size, border-radius, height, animation—
pf-skeleton--titleheight, width—
pf-skeleton--textwidth, margin-top—
pf-skeleton--blockheight, border-radius—
pf-skeleton--circleheight, width, border-radius—

Empty State

ClassDeclaresApplies when
pf-emptydisplay, justify-items, gap, border, border-radius, padding, text-align, min-inline-size—
pf-empty__markwidth, height, background, opacity, clip-path—
pf-empty__titlefont-family, font-size—
pf-empty__bodycolor, max-width—

Divider

ClassDeclaresApplies when
pf-dividerdisplay, align-items, gap, color, font-size, content, flex, height, background—

Drawer

ClassDeclaresApplies when
pf-drawerposition, inset, z-index, display—
pf-drawer__scrimposition, inset, background, display—
pf-drawer__panelposition, inset-block, inset-inline-start, display, flex-direction, width, background, border-inline-end, box-shadow, padding-bottom, inset-inline, border-inline, inset, max-height, border, border-radius—
pf-drawer--endinset-inline, border-inline—
pf-drawer--bottominset, width, max-height, border, border-radius, content, position, top, inset-inline-start, height, background, transform, padding-top—
pf-drawer__headdisplay, align-items, justify-content, gap, border-bottom, padding, content, position, top, inset-inline-start, width, height, border-radius, background, transform, padding-top—
pf-drawer__titlefont-family, font-size—
pf-drawer__bodyflex, overflow-y, overscroll-behavior, padding—
pf-drawer__footborder-top, display, gap, padding, padding-bottom, flex—

Bottom Bar

ClassDeclaresApplies when
pf-bottombarposition, inset, z-index, display, justify-content, gap, background, -webkit-backdrop-filter, backdrop-filter, border-top, padding, padding-bottom@media (min-width: 860px)
pf-bottombar__itemdisplay, justify-items, gap, flex, min-height, align-content, border-radius, color, font-size, text-decoration—
pf-bottombar__markwidth, height, background, clip-path—
pf-has-bottombarpadding-bottom@media (min-width: 860px)

Toast

ClassDeclaresApplies when
pf-toastsposition, inset, z-index, display, justify-items, gap, padding, padding-bottom, pointer-events, min-inline-size@media (min-width: 620px)
pf-toastdisplay, align-items, gap, width, background, border, border-radius, box-shadow, color, font-size, padding, pointer-events, animation—
pf-toast--accentborder-color—
pf-toast--dangerborder-color—
pf-toast__closemargin-inline-start—

Toolbar

ClassDeclaresApplies when
pf-toolbardisplay, flex-wrap, align-items, justify-content, gap, padding-block—
pf-toolbar__groupdisplay, flex-wrap, align-items, gap—
pf-toolbar__group--endmargin-inline-start—
pf-toolbar--borderedborder, border-radius, padding—
pf-badge--dotcontent, inline-size, block-size, border-radius, background, flex-shrink—

Footers

Column, slim and accent footers.

PolyFishCSS-Footers.css · 16 public classes

Footers

Sets background, border-top, color, font-size, padding-block… — 16 classes.

pf-footer pf-footer__top pf-footer__brand pf-footer__logo pf-footer__col pf-footer__heading pf-footer__links pf-footer__signup pf-social pf-footer__bottom pf-footer__legal pf-totop pf-footer--slim pf-footer--accent pf-footer--center pf-footer--minimal

Space

Top and bottom margins, padding, gap, proportional widths and flex sizing, with responsive gap at two breakpoints.

PolyFishCSS-Space.css · 76 public classes

Padding

ClassDeclaresApplies when
pf-p-0padding—
pf-p-1padding—
pf-p-2padding—
pf-p-3padding—
pf-p-4padding—
pf-p-5padding—
pf-p-6padding—
pf-p-7padding—
pf-p-8padding—
pf-p-9padding—

Margin

Sets margin, margin-inline, margin-block, margin-top, margin-inline-end… — 27 classes.

pf-m-auto pf-mx-auto pf-my-auto pf-mt-0 pf-mt-1 pf-mt-2 pf-mt-3 pf-mt-4 pf-mt-5 pf-mt-6 pf-mt-7 pf-mt-8 pf-mt-9 pf-mt-auto pf-me-auto pf-mb-0 pf-mb-1 pf-mb-2 pf-mb-3 pf-mb-4 pf-mb-5 pf-mb-6 pf-mb-7 pf-mb-8 pf-mb-9 pf-mb-auto pf-ms-auto

Gap

ClassDeclaresApplies when
pf-gap-0gap—
pf-gap-1gap—
pf-gap-2gap—
pf-gap-3gap—
pf-gap-4gap—
pf-gap-5gap—
pf-gap-6gap—
pf-gap-7gap—
pf-gap-8gap—
pf-gap-9gap—
pf-gap-fluidgap—
pf-gap-fluid-lggap—

Grid Tracks And Placement

ClassDeclaresApplies when
pf-self-startalign-self—
pf-self-centeralign-self—
pf-self-endalign-self—
pf-self-stretchalign-self—
pf-content-betweenalign-content—
pf-content-startalign-content—

Proportional Widths

Sets width — 20 classes.

pf-w-0 pf-w-5 pf-w-10 pf-w-15 pf-w-20 pf-w-25 pf-w-30 pf-w-35 pf-w-40 pf-w-45 pf-w-50 pf-w-55 pf-w-60 pf-w-65 pf-w-70 pf-w-75 pf-w-80 pf-w-85 pf-w-90 pf-w-95

Flex Sizing

ClassDeclaresApplies when
pf-flex-1flex—

Effects

Gradients, the frosted panel, animations, scroll behaviour, group and focus-within reactions, and the particle field.

PolyFishCSS-Effects.css · 26 public classes

Filters And Backdrop

ClassDeclaresApplies when
pf-frostbackground, -webkit-backdrop-filter, backdrop-filter@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)))

Gradients

ClassDeclaresApplies when
pf-gradient-surfacebackground-image—
pf-gradient-deepbackground-image—
pf-gradient-accentbackground-image—
pf-gradient-edgebackground-image—
pf-gradient-textcolor, background-image, -webkit-background-clip, background-clip@supports (background-clip: text) or (-webkit-background-clip: text)
pf-rule-fadeheight, border, background-image—

Animations

ClassDeclaresApplies when
pf-animate-spinanimation@media (prefers-reduced-motion: no-preference)
pf-animate-pulseanimation@media (prefers-reduced-motion: no-preference)
pf-animate-fadeanimation@media (prefers-reduced-motion: no-preference)
pf-animate-riseanimation@media (prefers-reduced-motion: no-preference)

Scroll Behaviour

ClassDeclaresApplies when
pf-scroll-smoothscroll-behavior—
pf-scroll-containoverscroll-behavior—
pf-scrollbar-thinscrollbar-width—
pf-scrollbar-nonescrollbar-width, display—
pf-scroll-mtscroll-margin-top—

Group And Focus-Within

ClassDeclaresApplies when
pf-group-showopacity, transition@media (hover: hover)
pf-groupopacity, transition, transform@media (hover: hover)
pf-group-slidetransform, transition@media (hover: hover)
pf-focus-ringbox-shadow—

Blend, Isolation And Misc

ClassDeclaresApplies when
pf-isolateisolation—
pf-accent-coloraccent-color—
pf-list-nonelist-style—

Particle Field

ClassDeclaresApplies when
pf-particlesposition, isolation, overflow, content, inset, z-index, pointer-events, opacity, background-repeat, -webkit-mask-image, mask-image, background-image, background-size, animation@media (prefers-reduced-motion: no-preference)
pf-particles--meshbackground-image, background-color, -webkit-mask-image, mask-image, -webkit-mask-size, mask-size—
pf-particles--constellationbackground-image, background-color, -webkit-mask-image, mask-image, -webkit-mask-size, mask-size—

Utilities

Display, sizing, position, typography, colour and visibility helpers, container-query helpers, scroll reveal, and the print stylesheet.

PolyFishCSS-Utilities.css · 191 public classes

Spacing Lives In The Space Module

Sets display, flex-wrap, flex-direction, align-items, justify-content… — 58 classes.

pf-block pf-inline-block pf-flex pf-inline-flex pf-grid-d pf-hidden pf-wrap pf-nowrap pf-flex-col pf-flex-row pf-items-start pf-items-center pf-items-end pf-justify-start pf-justify-center pf-justify-between pf-justify-end pf-grow pf-shrink-0 pf-text-start pf-text-center pf-text-end pf-text-xs pf-text-sm pf-text-lg pf-text-xl pf-text-2xl pf-text-3xl pf-text-4xl pf-text-5xl pf-font-display pf-font-mono pf-weight-500 pf-weight-600 pf-weight-700 pf-balance pf-measure pf-measure-none pf-fg-accent pf-fg-accent-2 pf-fg-paper pf-fg-muted pf-bg-deep pf-bg-base pf-bg-surface pf-bg-accent-wash pf-bg-accent-2-wash pf-bg-mesh pf-sticky pf-sticky-top pf-sticky-nav pf-round pf-round-lg pf-round-pill pf-bordered pf-bordered-strong pf-lift pf-overflow-hidden

Sizing, Position And Layers

Sets width, max-width, height, min-height, min-width… — 35 classes.

pf-w-full pf-w-auto pf-w-min pf-w-max pf-w-fit pf-max-w-xs pf-max-w-sm pf-max-w-md pf-max-w-lg pf-max-w-xl pf-h-full pf-h-screen pf-min-h-0 pf-min-w-0 pf-relative pf-absolute pf-fixed pf-static pf-inset-0 pf-top-0 pf-right-0 pf-bottom-0 pf-left-0 pf-z-0 pf-z-10 pf-z-20 pf-z-40 pf-z-60 pf-overflow-auto pf-overflow-x-auto pf-overflow-visible pf-object-cover pf-object-contain pf-aspect-square pf-aspect-video

Typography Helpers

Sets text-transform, letter-spacing, text-decoration, text-underline-offset, font-style… — 13 classes.

pf-uppercase pf-capitalize pf-normal-case pf-underline pf-no-underline pf-italic pf-tabular pf-leading-tight pf-leading-snug pf-leading-normal pf-truncate pf-clamp-2 pf-clamp-3

Borders, Opacity, Cursor

ClassDeclaresApplies when
pf-border-0border—
pf-border-tborder-top—
pf-border-bborder-bottom—
pf-round-noneborder-radius—
pf-round-smborder-radius—
pf-circleborder-radius—
pf-opacity-50opacity—
pf-opacity-75opacity—
pf-cursor-pointercursor—
pf-select-noneuser-select—
pf-pointer-nonepointer-events—

Depth, Motion And Transforms

ClassDeclaresApplies when
pf-shadow-smbox-shadow—
pf-shadowbox-shadow—
pf-shadow-lgbox-shadow—
pf-shadow-nonebox-shadow—
pf-ringbox-shadow—
pf-transitiontransition—
pf-transition-colorstransition—
pf-hover-lifttransition, transform, box-shadow@media (hover: hover)

Divide And Rules

ClassDeclaresApplies when
pf-divide-yborder-top—
pf-divide-xborder-inline-start—
pf-vrwidth, align-self, min-height, background, flex—

Container Queries

ClassDeclaresApplies when
pf-container-qcontainer-type—
pf-cq-rowflex-direction, align-items@container (min-width: 30rem)
pf-cq-2display, grid-template-columns@container (min-width: 30rem)
pf-cq-sidedisplay, grid-template-columns, align-items@container (min-width: 30rem)
pf-cq-showdisplay@container (min-width: 30rem)
pf-cq-hidedisplay@container (min-width: 30rem)
pf-cq-3display, grid-template-columns@container (min-width: 48rem)
pf-cq-4display, grid-template-columns@container (min-width: 48rem)

Responsive Variants

Sets display, flex-direction — 14 classes.

pf-md-hidden pf-md-block pf-md-flex pf-md-grid-d pf-md-inline-flex pf-md-flex-col pf-md-flex-row pf-lg-hidden pf-lg-block pf-lg-flex pf-lg-grid-d pf-lg-inline-flex pf-lg-flex-col pf-lg-flex-row

Scroll Reveal

Sets animation, animation-timeline, animation-range, animation-name, display… — 41 classes.

pf-reveal pf-reveal--left pf-reveal--right pf-reveal--zoom pf-reveal-soft pf-hide-mobile pf-hide-desktop pf-print-only pf-nav pf-topbar pf-footer pf-cta pf-skip pf-totop pf-sidenav pf-bottombar pf-drawer pf-pagination pf-tabs__label pf-scroller pf-breadcrumb pf-code__copy pf-tabs__panel pf-accordion pf-prose pf-btn pf-card pf-plan pf-alert pf-code pf-table-wrap pf-alert__title pf-section pf-container pf-container--wide pf-container--narrow pf-hero pf-grid pf-split pf-shell pf-no-print

Variants

Curated state variants without a build step: hover, focus, focus-within, active, group-hover and group-focus.

PolyFishCSS-Variants.css · 20 public classes

Variants

Sets background-color, color, border-color, text-decoration-line, text-underline-offset… — 20 classes.

pf-hover-bg-surface pf-hover-bg-accent pf-hover-fg-accent pf-hover-border-accent pf-hover-border-strong pf-hover-underline pf-hover-shadow-lg pf-hover-lift pf-focus-ring pf-focus-within-ring pf-focus-within-border-accent pf-active-sink pf-active-scale-down pf-group pf-group-hover-fg-accent pf-group-hover-fg-text pf-group-hover-lift pf-group-focus-fg-accent pf-group-focus-fg-text pf-group-focus-lift

Fonts

Self-hosted @font-face declarations and metric-matched fallback faces. No classes.

PolyFishCSS-Fonts.css · element selectors only