Resources

Components

Larger pieces of UI that bring their own behavior. The smaller building blocks live in the style guide.

[ Accordion - Component ]

Tucks away lengthy info, often an FAQ. Each title is a button that opens its panel, so it works with the keyboard and screen readers. The panel grows to any height with no measuring.

Available props:

  • items An array of { title, content, defaultOpen }. content takes Rich Text tokens, and defaultOpen starts that item open. Required.
  • icon An icon name from static/icons, shown at the end of each title and flipped when open.
  • plus A boolean. A plus sign that turns into a minus, instead of an icon. Defaults to false.
  • singleOpen A boolean. Only one item open at a time. Defaults to false.
  • defaultOpen Which items start open: true for all, an item's number (from 0), or a list such as [0, 2]. With singleOpen only the first opens. An item can also set defaultOpen: true itself. Defaults to none.
  • toggleAll A boolean. Shows a button that opens or closes every item; it reads "Close All" once all are open and goes back to "Open All" only when all are closed. Ignored with singleOpen. Defaults to false.
  • toggleAllTextOpen A string, the button label while any item is closed. Defaults to Open All.
  • toggleAllTextClose A string, the button label once all are open. Defaults to Close All.

Icon, one open at a time

Content can hold <a href="https://axyscreative.com" target="_blank" rel="noopener noreferrer">a link</a>. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

It is accessible, works with any content length, and has a few options such as single open and an icon or plus sign.

Plus sign with open all, the first item open

Content can hold <a href="https://axyscreative.com" target="_blank" rel="noopener noreferrer">a link</a>. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

It is accessible, works with any content length, and has a few options such as single open and an icon or plus sign.

[ Accordion Table - Component ]

A table-style accordion: a header row names the columns, and every row below is an accordion item whose cells line up with those headers. It uses plain elements, not a <table>, and collapses to stacked rows on small screens. Style it with --gap, --img-size and --sticky-top (the sticky offset, e.g. a fixed header's height).

Available props:

  • columns An array of { key, label, type, width }. key is the field read off each item, label the header text, type is image to show an { src, alt } image (anything else is text), and width is any CSS grid track size (1fr by default). Required.
  • items An array of objects with a field per column key, plus content, Rich Text shown when the row is open. A row can also have images (an array of { src, alt } shown in a Carousel under the content), its own slidesPerView, and a cta (Button props) under the carousel. Required.
  • icon An icon name from static/icons, shown along the right edge of each row and flipped when open.
  • singleOpen A boolean. Only one row open at a time. Defaults to false.
  • defaultOpen Which rows start open: true for all, a row's number (from 0), or a list such as [0, 2]. With singleOpen only the first opens. A row can also set defaultOpen: true itself. Defaults to none.
  • sticky A boolean. Pins the header row while scrolling through the rows. Defaults to false.
  • contentColumn A number, the 1-indexed column the opened content lines up with. Defaults to 2.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

A shorter description that sits directly beneath the year.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

Sticky header, several rows open at once

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

A shorter description that sits directly beneath the year.

Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat. Lorem ipsum dolor sit amet consectetur adipisicing elit. Minima numquam officiis ipsa obcaecati illo molestias aliquam molestiae praesentium provident eos? Excepturi veniam assumenda non corrupti similique aperiam rem enim dolores repellat.

Lorem ipsum dolor sit amet.

Lorem ipsum dolor sit amet.

Lorem ipsum dolor sit amet.

[ Avatar Cycle - Component ]

A row of round avatars with a caption card below. The one in the middle is the largest and the ones further out are smaller, overlapping a little, with the middle on top. It turns by itself, the middle moving to the left as the next one comes in. The ring around each avatar matches the background, so each looks as if it cuts into its neighbors. The caption cards stack behind the front one, showing their tops, and turn in step. Clicking an avatar brings it to the middle. It can hold while hovered or focused, with pauseOnHover.

Available props:

  • items An array of three or more { src, alt, title, caption }. Odd counts look the most balanced; with an even count, one side has an extra avatar. Required.
  • interval A number, milliseconds between turns. Defaults to 4000.
  • autoplay A boolean. Turns by itself. Defaults to true.
  • pauseOnHover A boolean. Holds the turning while the pointer or keyboard focus is on the component, so a caption can be read. Defaults to false.
  • size A number, the most the middle avatar can be across, in px. It shrinks to fit a narrow container. Defaults to 120.
  • cardSize A number, the width in px of the caption card, which is as tall as it is wide. Defaults to 280.
  • ringColor A string, any CSS color for the ring around each avatar. The default matches the page background, so each avatar looks as if it cuts into its neighbors.
  • class A string of extra classes.

Three avatars

Ada, Founder

Started the studio to make the web feel simple, quick and a little bit playful.

Five avatars, same settings

Ada, Founder

Started the studio to make the web feel simple, quick and a little bit playful.

[ Back To Top - Component ]

A Button that glides the page back to the top. It is a link to #, so it needs no script of its own: Smooth Scroll turns it into a smooth glide, and without it the browser jumps to the top. The footer's return link is this component. Everything else is a Button prop, so it takes the same types, sizes and attachments.

Available props:

  • text A string, the label. Defaults to Back to top. An empty string makes it icon only.
  • iconEnd An icon name from static/icons, after the label. Defaults to chevron-up.
  • iconStart An icon name from static/icons, before the label.
  • type solid | outline | underline | text. A Button type. Defaults to underline.
  • size sm | md | lg. Defaults to md.
  • textDescription A string, the button's accessible name when it is icon only. Without a label, set it.
  • class A string of extra classes.

[ Card Gnomon - Component ]

A square card with one or more rectangular notches cut from its corners or sides (a gnomon). The border is an SVG stroke, so its color can transition on hover, and the image is clipped to the exact same shape.

Available props:

  • cutouts An array of { from, text }, one per notch. from is a corner (top-left, top-right, bottom-left, bottom-right) or the middle of a side (top, right, bottom, left); text is shown inside that notch, sized to fill it. Any number can be combined. Defaults to one top-right notch with no text.
  • depth A number, 0-100. The least every cutout reaches into the card, as a % of its side. Shared by all cutouts. It has no maximum: when the text wraps at maxLength, the cutout cuts deeper to hold it. If two cutouts would overlap on an edge, depth and length shrink together so they never collide. Defaults to 12.
  • maxLength A number, 0-100. The most every cutout runs along its edge, as a % of the card side. The cutout always fits its longest text, and past this the text wraps and the cutout deepens instead. Without text it is 32. Defaults to 90.
  • lengthPadding A number in px, added to the measured text width, for the room beside the text. With a tilted angle, the room is counted from the narrow, deep end, so the text clears the slant. Defaults to 28.
  • radius A number, 0-50. The corner curve as a % of the card side, applied to every corner including each notch. It is clamped so it never exceeds half the shortest edge. Defaults to 8.
  • angle A number, 45-90 degrees. Tilts each notch from a square step (90) toward a single diagonal. Keep it around 75-85 for a crisp diagonal with rounded ends; much lower and a large radius rounds the notch into one blob. Defaults to 90.
  • borderWidth A number in px, the stroke width. Defaults to 2.
  • img An object { src, alt, eager } for the image that fills the card. eager loads it right away instead of lazily.
  • children A snippet for anything else the card holds, shown over the image.
  • class A string of extra classes. Set --card-size to change the width (25vw, or 50vw on small screens).

Default notch with an image and text

Sample card image
Sample 01

A deeper, longer cut with a tilted angle and content instead of an image

This uses an angle of 80.

Keep angle near 90

A notch centered on a side

Sample card image
View more

Two notches with a maxLength of 28: longer text wraps and cuts deeper

Sample card image
Sample 01A longer caption wraps into the depth

[ Carousel Accordion - Component ]

A picture on the left and an accordion on the right, on a timer. One item is open at a time, showing its description and its picture. The border under the open item fills over the interval, and then the next item opens. The open title takes the accent color and the others are muted. From the md breakpoint up the list is exactly as tall as the picture, with the open item taking the space that is left. Hovering or focusing the list pauses the timer, and clicking an item opens it straight away. With reduced motion nothing moves on its own.

Available props:

  • items An array of { title, description, image }, two or more. One is open at a time, and each opens its own picture beside the list (image is { src, alt }). Required.
  • interval A number, how long each item stays open in milliseconds. The border under the open item fills over that time, and then the next one opens. Defaults to 6000.
  • autoplay A boolean. Moves on by itself when the interval ends, looping back to the first. It stops while the pointer or keyboard focus is in the list, while the section is off screen, and with reduced motion. Defaults to true.
  • class A string of extra classes, such as full on a Library page.

[ Carousel - Component ]

A dependency-free carousel built on native CSS scroll-snap. Touch and trackpad scroll natively, the mouse can drag, and the arrow keys work when the track is focused.

Available props:

  • slides An array of { img, alt, title, desc }. Every field is optional; alt falls back to the title. Required.
  • label A string, the accessible name of the carousel. Defaults to Carousel.
  • pagination arrows | dots | none. Defaults to arrows.
  • progress A boolean. Shows a non-interactive line that fills as the carousel advances, beside the pagination or alone with pagination: none. Defaults to false.
  • cta An object of Button props, shown at the left of the footer, with the pagination moved to the right.
  • loop A boolean. An endless loop: slides are repeated (hidden from assistive tech) and the position quietly resets once scrolling settles. Defaults to false.
  • slidesPerView A number, how many slides show at once from the md breakpoint up. It is always one below. Defaults to 1.
  • autoplay An object { enabled, interval }, with interval in milliseconds (4000 by default). Pauses on hover and focus, and is off with reduced motion.
  • class A string of extra classes. Style it with --gap, --dot-size, --progress-width and --progress-height.

Arrows

Arrows, progress and loop

Dots and autoplay

With a button

[ Counter - Component ]

Reflects a stat by counting up to it when it scrolls into view, then back to zero when it leaves (unless once). Screen readers get the final number, not the counting. With reduced motion the final number just shows. It needs no GSAP.

Available props:

  • digit A number to count to. Required. If it changes after the count has played, the number counts on to the new one.
  • comma A boolean. Separate thousands with commas. Defaults to false.
  • prefix A string before the number, such as $.
  • suffix A string after the number, such as M.
  • label A string describing what the number measures.
  • spokenLabel A string for screen readers. Defaults to the final number and the label, since the counting itself is hidden from them.
  • duration A number, milliseconds to count. Not used with ticker. Defaults to 2400.
  • once A boolean. Only counts the first time it scrolls into view, instead of every time. Defaults to false.
  • ticker A boolean. Rolls each digit up a column instead of counting. Defaults to false.
  • class A string of extra classes.

[ Form - Component ]

A contact form with two behaviors. Forms need Netlify set up: a page with a form must be prerendered so Netlify can find it, and the form is only sent in production (locally the feedback form shows its alert and the redirect form goes to the next page, without sending). Fields are floating labels, a honeypot catches bots, and showRecaptcha adds Netlify's reCAPTCHA.

Available props:

  • variant underline | outline. The look of every field. Defaults to underline.
  • feedback A boolean. Shows alerts on submit instead of going to another page. Defaults to false.
  • name A string, the Netlify form name. Defaults to form-feedback with feedback, otherwise form-redirect.
  • action A string, the page to go to after submitting. Not used with feedback. Defaults to /form-submit.
  • showPhone A boolean. Adds a phone field, digits only. Defaults to false.
  • showAddress A boolean. Adds city, state and zip fields. Defaults to false.
  • showMessage A boolean. Adds a message textarea with a 250 character limit. Defaults to false.
  • showDiscovery A boolean. Adds a "how did you hear about us" textarea. Defaults to false.
  • maxCountDiscovery A number, the character limit of the discovery textarea.
  • showRecaptcha A boolean. Adds Netlify's reCAPTCHA widget. Defaults to false.
  • submitText A string, the button label. Defaults to Send message with feedback, otherwise Submit.
  • submitLabel A string, the button's accessible name.
  • successTitle A string, the success alert title. Only used with feedback.
  • successMessage A string, the success alert message. Only used with feedback.
  • errorTitle A string, the error alert title. Only used with feedback.
  • errorMessage A string, the error alert message. Only used with feedback.
  • duplicateMessage A string, the warning shown when an email that was already used submits again. Only used with feedback.
  • class A string of extra classes.

With feedback

Shows an alert on submit: success, or a warning if the same email is used twice (remembered in this browser). Alerts stack in the bottom right.

With a redirect

Sends the visitor to another page after submitting, here the Form Submitted page. showPhone, showAddress and showDiscovery add more fields.

[ Image Circle - Component ]

Cards spaced evenly around an exact circle, spinning slowly while each card turns against the ring to stay upright. It is decorative, so it has no hover response. It scales with its container, and is off with reduced motion.

Available props:

  • images An array of { src, alt }, any number of them. Required.
  • itemWidth A number, the card width as a percent of the component's own width (24 is 24%). Defaults to 24.
  • gap A number, the space between cards as a multiple of card width: 1 touches, more spaces them, less overlaps. Defaults to 1.15.
  • direction left | right. Which way the ring spins. Defaults to left.
  • duration A number, seconds for one full turn. Defaults to 40.
  • bloom left | right | top. Cards turn with the ring like petals instead of staying upright, with the left, right or top card upright. Off by default.
  • ticks A boolean. A faint ring of thin surface-colored ticks behind the cards, tracing the path they travel. Set the color with --tick-color. Defaults to true.
  • class A string of extra classes.
  • clip A boolean. Crops the cards that swing past the square the component sits in. Turn it off to let them bleed out, as in Hero Image Circle. Defaults to true.

Upright cards

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8

Bloom, spinning the other way

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8

[ Image Columns - Component ]

A grid of images with an uneven number per column. As the page scrolls, every column moves up until its bottom lines up with the shortest column, which never moves. It needs GSAP ScrollTrigger, loaded only when the component is used, and is still when motion is reduced.

Available props:

  • images An array of { src, alt, accent, caption, gnomon }. The slots draw from it in order, looping if there are fewer images than slots. accent is a small handwritten note on the corner, caption is text on the image, and gnomon overrides that card's gnomon settings. Required.
  • columns An array, one number per column: how many images it holds at the widest size. Uneven is fine, e.g. [4, 5, 4, 5]. Defaults to an even split in four columns.
  • columnsMd An array like columns, for tablet widths. Defaults to an even split of the same slots in one fewer column (at least two).
  • columnsSm An array like columns, for mobile widths. Defaults to two fewer columns (at least two).
  • start A string, a GSAP ScrollTrigger start such as top 95% (the default, as it enters from below), top center or top top. The element is the shortest column's first card.
  • startOffset A number or string, px (40 or '40px') or a percent of the shortest column's height ('-10%'). Moving columns start this far from their resting place, so their tops are staggered; the end, bottoms aligned, is unchanged.
  • markers A boolean. Shows GSAP start and end markers for debugging. Defaults to false.
  • gnomon An object { depth, maxLength, radius, angle, borderWidth, cutouts }. When set, every image is drawn as a Card Gnomon with these settings, and a caption fills the first notch.
  • class A string of extra classes.

Plain images

Sample image 1 Caption 1
Sample image 2 Caption 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8
Sample image 9
Sample image 10
Sample image 11
Sample image 12
Sample image 13
Sample image 14

As gnomon cards

Sample image 1
One
Sample image 2
Two
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8
Sample image 9
Sample image 10
Sample image 1
One

[ Image Comparison - Component ]

Two images with a divider between them: the position of the divider decides how much of each shows. It works by dragging, by hovering, and with the keyboard (arrow keys move 5%, Shift with an arrow 1%, Page Up and Page Down 20%), and it announces its position to screen readers.

Available props:

  • before An object { src, alt }, the image on the left of the divider. Required.
  • after An object { src, alt }, the image on the right of the divider. Required.
  • mode drag | hover. drag moves the divider by dragging anywhere on the image; hover makes it follow the mouse. Touch screens always drag. Defaults to drag.
  • position A number from 0 to 100, bindable. Where the divider starts: 0 shows all of the after image, 100 all of the before image. Defaults to 30.
  • beforeLabel A string, a Tag in the top left.
  • afterLabel A string, a Tag in the top right.
  • aspectRatio A string, the CSS aspect ratio of the frame. Defaults to 16 / 9.
  • class A string of extra classes.

Drag

The sixth sample image The fifth sample image

Follows the mouse

The fifth sample image The sixth sample image

[ Image Fan - Component ]

Images curve along an arc whose radius comes from the spread and the card spacing, so the whole fan scales with its container. Hovering a card parts its neighbours. It is still when motion is reduced.

Available props:

  • images An array of { src, alt }, any number of them. Required.
  • arc A number, the degrees the fan wraps: 0 is a flat row, 90 a quarter circle, 180 a semicircle, 360 a full ring. Defaults to 90.
  • gap A number, the space between cards as a multiple of card width: 1 touches, more spaces them, less overlaps. Defaults to 1.15.
  • chop A number, the pixels each ring of cards drops below the one inside it, outward from the middle: 12 drops the 2nd and 4th cards 12px, the 1st and 5th 24px, for a stepped-down fan. Defaults to 0.
  • closed A boolean. Spreads the cards evenly around a full ring and ignores arc. Defaults to false.
  • direction up | down. A rainbow with the middle card highest, or a valley. Defaults to up.
  • stack sequence | pyramid. Stack in array order, or put the middle card on top and step down to the ends. Defaults to sequence.
  • itemWidth A number, the card width as a percent of the component's own width. Defaults to 22.
  • animateIn A boolean. Reveals the fan when it scrolls into view and again each time it returns: sequence rises the cards in with a staggered fade, pyramid starts them collapsed on the middle card then opens the fan out along the arc. Defaults to false.
  • class A string of extra classes. Hover feel, reveal timing and easing are the --push, --splay, --ripple, --in-* and --open-* properties at the top of the component.

Pyramid that opens as it scrolls in

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5

Closed ring that rises in

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8

[ Image Shuffle - Component ]

A grid of logos for a credibility section. Cells swap to a different image: the new one rolls up from below, or crossfades, one cell at a time or several together. The choice is random, but not truly: it prefers an image that is not on screen, never puts the same image beside itself, and never makes every cell match. It keeps shuffling under the mouse (pauseOnHover holds it), pauses while a cell has focus, and stops while off screen. Below md it drops to two columns. Give it more images than cells (eight by default) for the most variety; with fewer, some repeat, but never side by side. Logos made for white backgrounds can use the light tiles.

Available props:

  • images An array of { src, alt, url }. alt is required, since these are usually logos; url makes one a link. Give it more images than cells so every cell can show a different one. Required.
  • type roll | fade. roll slides the new image up from below as the old one leaves upward, like the Roll attachment; fade crossfades. Defaults to roll.
  • interval A number, milliseconds between swaps. One cell changes each time. Defaults to 3000.
  • columns A number. Below md the grid is always two columns wide. Defaults to 4.
  • rows A number. Defaults to 2.
  • pauseOnHover A boolean. Holds the shuffling while the pointer is over the grid; by default it keeps playing. A focused cell always holds it. Defaults to false.
  • tiles surface | light. surface draws the cells in the theme's surface color; light draws them on a light tile in both themes, which suits logos made for white backgrounds. Defaults to surface.
  • class A string of extra classes.

Roll, one at a time, on light tiles

Roll, three at a time

Fade, everything at once, with only five images

[ Image Wave - Component ]

A row of image cards that pans slowly left and loops without a seam, while each card bobs a little behind the one before it, so the bob reads as a wave travelling along the row. The images repeat enough to fill the screen. It is off with reduced motion.

Available props:

  • images An array of { src, alt }, any number of them. Required.
  • repeat A number, how many times the images repeat inside one set. One set has to be wider than the screen or the loop shows a gap, so raise it for few or narrow images. Defaults to 1.
  • speed A number, seconds for the row to pan one full set. Higher is slower. Defaults to 60.
  • duration A number, seconds for one full up-and-down bob. Defaults to 4.
  • amplitude A number, pixels each card travels up and down from center, the wave's height. 0 is a flat row. Defaults to 32.
  • waves A whole number, how many crests the wave has across one set (fractions are rounded, since a partial crest cannot loop without a jump). Higher staggers the cards more tightly; 0 moves them together. Defaults to 1.
  • scrub A number. Ties the wave to scrolling, on top of its own motion: scrolling down pushes the row further left and moves the bob ahead, and scrolling up reverses both. 1 is 1px of pan per 1px scrolled and one full wave per 1000px, so higher is more sensitive. 0 is off. Defaults to 0.
  • reverse A boolean. The row and the bob run backwards after the page scrolls up and forwards again after it scrolls down, turning around smoothly each time. Works with or without scrub. Defaults to false.
  • class A string of extra classes.

Scrolling pushes it along

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8

Reverses with the scroll direction

Sample image 1
Sample image 2
Sample image 3
Sample image 4
Sample image 5
Sample image 6
Sample image 7
Sample image 8

[ Marquee - Component ]

Text or images that run across the screen, also called a ticker. The content repeats to fill the width on its own, and rows move the same speed at every screen size. It holds still while off screen, and is still when motion is reduced.

Available props:

  • text A string repeated across the row. For links or styled words, use children instead.
  • children A snippet repeated across the row, for rich text.
  • images An array of { src, alt } repeated across the row, at a set height (--image-height).
  • label A string, the accessible name. Defaults to text. Only one copy of the content is exposed to screen readers.
  • rows A number, how many rows are stacked. Defaults to 1.
  • speed A number, pixels per second the rows move, the same at every screen size. 0 turns the automatic motion off, for a row that only moves as the page scrolls. Defaults to 60.
  • alternate A boolean. Every other row moves the opposite way. Defaults to true.
  • reverse A boolean. The rows move backwards after the page scrolls up and forwards again after it scrolls down, turning around smoothly. Anything inside the content with the class marquee-flip (an arrow, say) turns around with it, and in rows that run the other way. Defaults to false.
  • scrub A number. Ties the rows to scrolling, on top of their own motion: scrolling down pushes them along. 1 is 1px per 1px scrolled, so higher is more sensitive. Defaults to 0.
  • pauseOnHover A boolean. Holds the motion while the pointer or keyboard focus is on the marquee. Defaults to false.
  • class A string of extra classes. The text size follows the h2 style; --gap and --image-height adjust the spacing and the image size.

Text, the simplest form

• Sample marquee • Sometimes known as a ticker • Use the text prop to control the content

Two rows that turn around with the scroll direction

This one is more configured →

Images, pushed along by scrolling

Sample image 1Sample image 2Sample image 3Sample image 4Sample image 5Sample image 6Sample image 7

[ Marquee Curve - Component ]

Text that runs along a curve you draw. In the curve tool, drag the points until the shape is right, copy the cubic Bézier it gives you, and paste it into curve as it is. The text is centered on the curve, and an optional band with edge lines follows the same curve, so the background and both borders stay parallel to the text however much it bends. It repeats to fill the curve, moves the same speed at every screen size, holds still while off screen, and is still when motion is reduced.

Available props:

  • text A string that runs along the curve, repeated to fill it. Required.
  • curve A string pasted straight from the curve tool, cubic-bezier(x1, y1, x2, y2), or the four numbers. The curve starts and ends at the frame's vertical middle; x runs across the width (0 to 1), and y is a control point's height, where 1 is the top edge, 0 the bottom and 0.5 the middle, so values past 0 or 1 swing outside the frame. To look like the tool's canvas, the frame must be the same shape (see aspect). Defaults to a flat line.
  • aspect A number, the shape of the box the curve is drawn in, as width ÷ height. 1 is a square, the shape of the curve tool's canvas, so the curve looks just as it did there. A bigger number gives a flatter frame, and a flatter curve. Defaults to 1.
  • height A number, a fixed height in px, instead of aspect. The curve is stretched to fit it, so it will no longer match the tool.
  • band A number, the thickness in px of a colored band the text runs along. It follows the curve with the same thickness all the way, edge lines included. 0 is no band. Defaults to 0.
  • bandColor A string, any CSS color. Defaults to the accent color.
  • borderColor A string, any CSS color, for the two lines along the edges of the band. Defaults to the text color.
  • borderWidth A number, the width in px of each edge line. 0 is none. Defaults to 2.
  • spacing A number, the space between letters as a multiple of each letter's own width. Letter widths come from the font, so any font works, though mono-spaced looks tidiest. Defaults to 1.
  • speed A number, pixels per second the text moves along the curve. 0 turns the automatic motion off. Defaults to 60.
  • backwards A boolean. Runs the text the other way. Defaults to false.
  • reverse A boolean. The text runs backwards after the page scrolls up and forwards again after it scrolls down, turning around smoothly. Defaults to false.
  • scrub A number. Ties the text to scrolling, on top of its own motion: 1 is 1px along the curve per 1px scrolled. Defaults to 0.
  • uppercase A boolean. Shows the text in capitals, and centers on the capitals. Defaults to true.
  • class A string of extra classes. Set font-size and color on it; the text is --font-mono at 44px by default.

The curve as the tool draws it, edge to edge

Full width, a band with edge lines, and scroll reversing

[ Mouse Cursor - Component ]

A custom cursor that follows the mouse. Mount it once in a layout; attachments such as cursorContent and cursorTarget then change how it looks. It is hidden on touch devices and with reduced motion. See the Attachments page for live demos.

Available props:

  • elastic A boolean. Stretches and rotates the shape in the direction of movement.
  • tilt A boolean or tilt options (max, reverse, velocityMax, inSpeed, outSpeed, idleMs).
  • variants An object of named looks, e.g. { menu: { size: 64 } }. A look can set size, opacity, background, border, color, transition and elastic.
  • defaultIcon An icon name used when an element asks for an icon without naming one. Defaults to bolt.
  • duration A number, milliseconds the cursor takes to catch up with the mouse. Defaults to 333.
  • ease A function from catch-up progress (0 to 1) to distance travelled. Defaults to a front-loaded curve.

[ Post Card - Component ]

A link card for one post in a list, with its cover image, tag, date, author and description. The first card of the Blog page is featured.

Available props:

  • post An object: slug, title, description, author, date (YYYY-MM-DD), tag, coverImage and coverAlt. Links to /blog/{slug}. Required.
  • featured A boolean. Lays the card out wide with the image beside the text. Defaults to false.

[ Rich Text - Component ]

How an admin styles a few words inside a plain text field without writing HTML. Wrap the words in square brackets and follow them with the classes in curly braces. Section Copy titles and descriptions, the Headline, the Scroll Horizontal message and the accordions all use it, and blog posts take the same tokens in their Markdown, where raw HTML is shown as text. Everything is escaped except the tokens, so nothing an admin types can break the page. Classes that are not on the list are ignored and the words stay.

Available props:

  • text A string. [words]{.primary} styles the words, [words]{.primary .scribble} combines classes, and {.br} is a line break. Anything else, including < and &, is shown as typed. Required.
  • .h1 The size and style of a Heading 1. .h2 to .h6 match their headings.
  • .italic Italic.
  • .primary The brand accent color.
  • .scribble A thin hand-drawn zigzag underline, drawn in each time it scrolls into view (see Scribble under Attachments).
  • .scribble-circle A thin hand-drawn loop around the words, drawn in on scroll (see Scribble under Attachments).
  • .scribble-circle-tight The same loop drawn closer to the words (scale 0.8).
  • .scribble-circle-wide The same loop drawn farther from the words (scale 1.2).
  • .scribble-zigzag The same underline, always the shallow zigzag preset.
  • .secondary The secondary color.
  • .stroke An outline with no fill.
  • .strong Bold, as a <strong>.
  • class A string, a class for the wrapping span.

Every project tells a story, in the brand color, with outlined and italic words,bold ones and all of them at once.

[ Scroll Progress - Component ]

A small bar that fills as the page scrolls, down the right edge by default. It fades back after a moment without scrolling and returns on hover, and clicking it can jump the page to that point. It is decorative for screen readers, since the page's own scrollbar and keyboard already do the job. Mount it once in a layout. The buttons below show it on this page.

Available props:

  • placement bottom | right | left. Where the bar sits: a short bar along the bottom that fills left to right, or a bar down the right or left edge that fills downward. Defaults to right.
  • allowClick A boolean. Clicking the bar scrolls the page to that point, and the bar grows on hover. It also hides the custom cursor while over it. Defaults to true.
  • hideScrollbar A boolean. Hides the browser's own scrollbar, since the bar takes its place. Defaults to true.
  • class A string of extra classes. Size and position are set by placement; override them with this.

[ Side Shadows - Component ]

Soft dark gradients down both edges of the screen, fixed over the page, so content fades in from the sides. They ignore the pointer and are hidden from screen readers. Mount it once in a layout for every page, or in one page for that page only. The button below shows it on this page.

Available props:

  • width A CSS length, how wide each shadow is. Defaults to clamp(24px, 6vw, 120px).
  • opacity A number from 0 to 1, how dark the shadows are at the screen edge. Defaults to 0.3; the light theme halves it.

[ Solar System - Component ]

A picture in a circle with up to two rings of tags orbiting it. Each ring turns slowly and its tags turn against it, so they stay upright and readable. It scales with its container, stops while off screen or hovered, and is still when motion is reduced. Tags are the Tag component, so they can take an icon.

Available props:

  • image An object { src, alt }, the picture in the middle, shown as a circle. Required.
  • rings An array of one or two rings. The first orbits close to the image and the second further out; a single ring sits wider and the picture grows to fill it. Each ring is { tags, duration, direction }: tags is up to six { text, icon, type } tags, spaced evenly around the ring (the outer ring is offset half a step so the two interleave); duration is the seconds for one turn (40 for the inner ring, 60 for the outer); direction is left or right (the inner ring turns left and the outer right). Required.
  • tagType solid | outline | glass. The look of every tag; a tag can set its own type. Defaults to glass.
  • class A string of extra classes. The component is square and sized by its container, and its tags scale with it.

Two rings

  • Creative
  • Responsive
  • Accessible
  • Engaging
  • Speedy
  • Unlimited
  • HTML5
  • CSS3/SCSS
  • JavaScript
  • TypeScript
  • Svelte
A sample landscape

One ring, outline tags

  • Design
  • Build
  • Launch
  • Grow
A second sample landscape

[ Strap - Component ]

A pill with a round hole through it, like the loop on a lanyard. The strap has no background of its own: the loop is a transparent circle with an enormous box-shadow, and that shadow is the strap's color everywhere outside the circle. The strap clips it to its rounded shape, so the page shows through the loop. Anything can sit beside the loop, such as social links. Header Absolute uses it in the corner.

Available props:

  • icon A string, an icon name from static/icons (or a path to a single-color SVG), centered in the loop.
  • children A snippet, what sits beside the loop, such as the social links.
  • bleed A number, px. How far the right end runs past the edge the strap is placed against, so its curve is not seen. The padding on the right grows by the same amount, so the content stays in view. Defaults to 0.
  • --strap-color A CSS variable, the strap’s color, which is also the loop’s shadow. Defaults to --color-accent, the brand color.
  • --strap-height A CSS variable, the strap’s height. Defaults to 80px.
  • class A string of extra classes.

[ Theme Toggle - Component ]

Switches between system, light and dark, and remembers the choice. It takes no props; an inline script in app.html applies the saved theme before the page paints.

Display theme

[ Video Overlay - Component ]

A modal video on the native <dialog>, so focus trapping, Escape to close and an inert background come for free. The video only loads once it is opened and is released after it closes. Open it from anything by setting open; focus returns to the trigger on close.

Available props:

  • open A boolean, bindable. bind:open to show or hide the video. Defaults to false.
  • src A string, the video file. Self-hosted or CDN files are best. Required.
  • title A string, the dialog's accessible name. Defaults to Video.
  • poster A string, an image shown before the video plays.
  • captions A string, the path to a .vtt captions file.
  • captionsLang A string, the captions language. Defaults to en.

[ Video Player - Component ]

A plain <video> with custom controls under it (a play/pause button, a seek track and the time) and a play button of your own resting on top while it is not playing. The track comes in three looks: solid, ticks and glass. Pass controls to use the browser's own controls instead. The button follows the video's own state, so it fades out however playback starts. It is a simple way to style the video tag: pass the icon, the frame shape and the button's colors and size, and any video attribute goes straight through. For a video in a popup, use the Video Overlay.

Available props:

  • src A string, the video: a Mux playback ID (the Playback ID, not the Asset ID, which also gives the poster), an HLS .m3u8 URL, a Dropbox share link, or a video file URL. Playback pauses when the video scrolls out of view, unless it autoplays. Required.
  • poster A string, an image shown before the video plays.
  • captions A string, the path to a .vtt captions file.
  • captionsLang A string, the captions language. Defaults to en.
  • title A string, the video's accessible name.
  • playIcon A string, the icon on the play button: a name from static/icons, or a path to any single-color SVG. Defaults to play.
  • playLabel A string, the play button's accessible name. Defaults to Play video.
  • aspect A string, the shape of the frame as a CSS aspect ratio. Defaults to 16 / 9.
  • track solid | ticks | glass. The look of the custom track under the video, between the play/pause button and the timestamp. Defaults to solid.
  • glass A boolean. Gives the big play button and the side buttons the glass background. Defaults to true when track is glass, otherwise false.
  • followCursor A boolean, or an object of cursor-field options (ease, followSpeed, returnSpeed, bounce, tilt). The big play button glides toward the mouse while it is over the video. Defaults to false.
  • playButton A boolean. The big play button resting on the video while it is not playing. Defaults to true.
  • sideControls An object of buttons (shaped like the Button component) that straddle the video edge and stay in view while it scrolls past: { side?: "left" | "right", volume?: boolean, fullscreen?: boolean }. volume is a mute button over a vertical volume slider. side defaults to right.
  • pauseIcon A string, the icon on the pause button. Defaults to pause.
  • pauseLabel A string, the pause button's accessible name. Defaults to Pause video.
  • controls A boolean. Shows the browser's own controls instead of the custom ones. Defaults to false.
  • preload none | metadata | auto. How much of the video loads up front. Defaults to metadata.
  • ...rest Any other video attribute, such as loop, muted, autoplay or onended, goes straight to the <video>.
  • class A string of extra classes. Style the button with --play-size, --play-bg and --play-color; the corners follow --radius.
00:00
00:00
00:00