Icon
An icon is an inline <svg class="ts icon"> from the Lucide set. It inherits the text color (currentColor), and you copy and paste it like any other HTML.
Helpers · TaishoDS Core, in plain HTML.
Examples
One working example per case. Each example is the HTML of its preview—copy it as is, and with Core’s CSS and JS loaded, it looks and works the same.
Standalone icons
When to use
- Reinforcing the meaning of an action or a status that already has text.
- An icon-only control where space is tight and the metaphor is well known.
- You want the icon to follow the color and size of its context.
When not to use
- The icon would have to carry the meaning alone. Add text.
- It’s a content image, not a symbol → an image with
aspect-ratio.
Do
- For an icon without text, give the control that contains it an accessible name (
aria-label). - Use the same icon for the same concept across the whole product.
Don’t
- Don’t decorate for decoration’s sake. Every icon competes for attention.
Related
TaishoDS Core
Doesn’t need JavaScript—it’s markup and CSS.
Inserts the icon’s SVG. It has no behavior.
From the CDN, without a build, load taisho.icon.css along with taisho.base.css. That file is all you need.
For how Core works in general, see Behavior.
Accessibility
- Icons have no accessible name. So that no screen reader announces them, add
aria-hidden="true"to a decorative<svg>. If the icon conveys meaning on its own, userole="img"andaria-label.
Verification
What was actually tested. Anything that wasn’t tested says so—we’d rather say “not verified” than claim too much.
- axe WCAG 2.2 A + AA in a real browser, in light and dark mode, before every release.
- keyboard Adds no keys of its own—it uses the browser’s native behavior.
- screen reader Not verified with a screen reader. Test it in your own combination of components, not just here, where each one appears alone and on its happy path.