Buttons

Components

Component

A call-to-action button with a light that travels around its border and a sheen that sweeps across the face on hover or keyboard focus. Light colours default to the theme's chart colours and can be overridden, along with the speed and three sizes. All movement respects prefers-reduced-motion.

Buttons · Chomodo Studio 0 likes 0 installs
Component

A pill link or button whose label sits beside a small solid disc carrying an arrow. On hover or keyboard focus the circle's colour sweeps across the whole pill, the label turns to the contrast colour and the arrow nudges forward; on press the pill gives slightly. External links point the arrow north-east, open in a new tab and say so to screen readers. Renders a link when given href and a button otherwise, with three sizes, two tones, an arrow at either end and a held-open filled state. The sweep becomes an instant colour swap when reduced motion is requested.

Buttons · Chomodo Studio 0 likes 0 installs
Component

A pill toggle for liking, saving, starring and following, with a count that rolls. Turning it on pops the icon and throws a small burst of dots and strokes; the number rolls up or down through a two-row swap. Like fills rose, save fills amber and becomes Saved, star fills with the primary colour, and follow changes to a quieter outlined Following pill. Rapid repeat clicks settle into a single change event, and a long press (or Alt+Arrow) opens an optional tray of alternative reactions that the pill then shows. It reports its pressed state and count to screen readers, the tray is a keyboard menu that returns focus when closed, and reduced motion just switches the fill.

Buttons · Chomodo Studio 0 likes 0 installs