CSS widgets

Live demos · copy CSS · copy LLM prompt · baseline badges. Filter by tag:

Widely supported

CSS-only toggle

Checkbox-driven switch — no JavaScript at all.

uino-js
Widely supported

Scroll progress bar

animation-timeline: scroll() reading indicator.

animationno-js
Widely supported

:has() dropdown

Expand/collapse or highlight with the parent selector.

uino-js
Widely supported

Fluid typography

clamp() for scalable headings — no breakpoints.

typography
Widely supported

Aspect-ratio card

Media card with consistent ratio and object-fit.

layoutui
Widely supported

CSS accordion

details / summary styled, no JS.

uino-js
Widely supported

Subgrid layout

Aligned grid children with subgrid.

layout
Widely supported

Center with place-items

display: grid; place-items: center — the two-line centering trick.

layout
New

Fade in entrance

@starting-style fade-up on page load — no JavaScript.

animationno-js
Widely supported

Primary button

Every state: hover, focus-visible, active, disabled.

ui
Widely supported

Top navigation bar

Sticky nav with logo, links, and backdrop blur.

layoutui
Widely supported

Sticky footer

Footer always at the bottom — grid + min-height: 100dvh.

layout
Widely supported

Gradient text

Gradient fill on text with background-clip: text.

colortypography
Widely supported

Scroll snap gallery

Horizontal scroll gallery with scroll-snap-type.

layoutui
Widely supported

Glass card

Frosted glass card with backdrop-filter: blur().

colorui
Widely supported

Styled text input

Custom input with focus ring, placeholder, and transitions.

ui
Widely supported

CSS loading spinner

Border-based spinner with prefers-reduced-motion respect.

animationui
Widely supported

Gradient border

Card with gradient border using background-clip.

color
Widely supported

Skip to content link

Hidden link that appears on keyboard focus for accessibility.

a11y
Widely supported

CSS tooltip

Pure CSS tooltip on hover/focus — no JavaScript.

uino-js
Widely supported

Avatar stack

Overlapping circular avatars with negative margins.

uilayout
Widely supported

Responsive table

Table that stacks to cards on small containers.

layoutui
Widely supported

Pricing card

Three-tier pricing with highlighted popular option.

ui
Widely supported

Progress bar

Styled <progress> element with gradient fill.

uianimation
Widely supported

Holy grail layout

Header + sidebars + content + footer with grid-template-areas.

layoutgrid
Widely supported

Media object

Image + text side-by-side — the classic layout pattern.

layout