Colors & Gradients

blue-5
red-5
green-5
orange-5
purple-5
pink-5
teal-5
yellow-5
Linear Gradient (Open Props)
Radial Gradient
Conic Gradient

Typography

font-size-0 — The quick brown fox

font-size-1 — The quick brown fox

font-size-2 — The quick brown fox

font-size-3 — The quick brown fox

font-size-4 — The quick brown fox

font-size-5 — The quick brown fox

font-size-6 — Fox

font-size-7

W1 W3 W5 W7 W9

This paragraph uses text-wrap: balance to create more even line lengths in narrow containers, making the text feel more visually balanced.

Layout (Grid & Flexbox)

Auto-fit Grid

Card 1
Card 2
Card 3
Card 4
Card 5
Card 6

Flexbox Wrap with Gap

HTML CSS JavaScript Open Props Vite Modern

Container Queries

Resize the browser to see the cards adapt based on their container width, not viewport.

Responsive Card

This card layout changes based on its container size using @container queries.

Narrow Container

Same component, narrower container — different layout automatically.

Cascade Layers

Styles are organized with @layer — base, components, utilities. The box below is styled by all three layers with predictable specificity.

Styled with @layer base, components, utilities

CSS Nesting

Parent Element

This section uses native CSS nesting (no preprocessor needed).

:has() Selector

Check the checkbox to change the card's appearance using :has(:checked).

The parent card reacts to the checkbox state via :has().

Animations & Transitions

Bounce
Fade In
Slide Up
Spin

Open Props Easings

ease-1
ease-2
ease-3
elastic-1
squish-2

Scroll-Driven Animations

As the page scrolls, the progress bar at the top fills. The boxes below animate as they enter the viewport.

Reveal 1
Reveal 2
Reveal 3

color-mix() & Relative Colors

blue + red 50%
green + yellow 50%
purple + white 30%
orange + black 20%

Subgrid

Card A

Short text

Card B

This card has significantly more text content to demonstrate how subgrid keeps the rows aligned.

Card C

Medium text here.

Anchor Positioning

Experimental — may not work in all browsers. The tooltip is positioned relative to the anchor element.

Anchored tooltip!

Popover API

Popover Content

This uses the native Popover API — no JavaScript needed for show/hide!

Dialog Element

Native Dialog

This is a <dialog> element with ::backdrop styling.

Accent Color & Form Styling

Logical Properties

Uses margin-inline, padding-block, border-inline-start — works with any writing direction.

Aspect Ratio

1:1
16:9
4:3
21:9

Fluid Typography (clamp)

This heading scales fluidly between viewport sizes using clamp().

Individual Transform Properties

rotate
scale
translate
skew (transform)

Advanced Custom Properties

Using @property for typed custom properties with animation.

Animated Gradient via @property