SunUI Icons
Icons drawn to one standard.
Pixel, two-tone and line, drawn to one standard. Every icon moves, and one command installs a set.
$ npx shadcn@latest add https://sunui.synvize.com/r/icons/sunui-animated-pixel-icons.json$ npx shadcn@latest add https://sunui.synvize.com/r/icons/sunui-animated-twotone-icons.json$ npx shadcn@latest add https://sunui.synvize.com/r/icons/sunui-animated-icons.json24px grid, 2px margin
Shapes live between 3 and 21. Circles reach 8.5, squares 7 from center.
1.5 stroke, round caps
Matches the 1px hairline of SunUI surfaces at 24px. Drop to 1.25 above 32px.
One accent spot
Each icon marks at most one accent part. It follows the text colour until you set the variable.
Objects as they are
A coupon keeps its notch and a receipt its torn edge because that is how you recognise them at 16px. Details describe the object, never decorate it.
Motion that means something
Bells swing, carts nudge forward, checks draw in. Only on hover, focus or a state change.
Usage
Icons inherit currentColor and are hidden from screen readers unless you pass a title.
import { Icon } from "@/components/ui/sunui-icons";
// Decorative, next to a text label
<button><Icon name="cart" size={16} /> Add to cart</button>
// Standalone, announced as "Claimed"
<Icon name="stamp-check" title="Claimed" />
// Point the accent part at your theme color for one subtree
<div className="[--sunui-icon-accent:var(--primary)]">
<Icon name="punch-card" />
</div>Animated icons
AnimatedIcon uses the same shapes. Hover icons play when their parent button is hovered or focused, so the whole control is the trigger. Toggle icons follow active, and loading icons loop only while it is true. Under reduced motion every icon jumps straight to its end state.
import { AnimatedIcon } from "@/components/ui/sunui-animated-icons";
// Plays the tear along the perforation when the button is hovered
<button><AnimatedIcon name="coupon" size={16} /> Claim coupon</button>
// Menu morphs into a close icon
<button aria-expanded={open} onClick={() => setOpen(!open)}>
<AnimatedIcon name="menu" active={open} title={open ? "Close menu" : "Open menu"} />
</button>
// Fills with a short press
<AnimatedIcon name="heart" active={saved} />
// Spins only while loading
<AnimatedIcon name="loader" active={pending} />