Skip to content

TaishoDS Core

The whole system—tokens, utilities, themes, and 56 components—in HTML and CSS. On any stack, with no build step: modals open, accordions expand, and menus work from the keyboard. Free, MIT license.

Two ways to use it

The first one needs nothing installed. Paste these three lines and you’re set. It works in any project, with any backend. For a full page with a button and a modal, see Installation.

html
<link rel="stylesheet" href="https://taisho.design/core/0.16.0/taisho.tokens.css" integrity="sha384-+2WHAtu42BCWEq7KajKLeexi0n+E4UXhDgH4f5iQLZWhC0WJf3DNRH2uBr4FrdIV" crossorigin="anonymous">
<link rel="stylesheet" href="https://taisho.design/core/0.16.0/taisho.full.css" integrity="sha384-nXkvfhi45iBlfj6WyOwieVBV1uWh8pQaHK9ObB4RPzCC2Rsj7tXlloB4fMGH4l/9" crossorigin="anonymous">
<script type="module" src="https://taisho.design/core/0.16.0/taisho.core.js" integrity="sha384-AcLAh9bi9NFu/LxLgFXtP6pkTui6MW3eUwTLDBIxFsWjSBwiQqzxo3zTWvBjpnpE" crossorigin="anonymous"></script>

The URL includes the version, so what you pin today won’t change tomorrow. Load the two CSS files in that order. The first brings the theme values, and the second the rules that use them.

That second file is the whole system. If you only use a few components, load the base plus just the ones you use. Each component has its own taisho.<component>.css, and its page says whether it needs another one (the Button, for example, needs the Spinner).

base + components

How much each file weighs, compared with other libraries, is in File size. To go smaller still, taisho generate with content outputs CSS with only what your files use.

The second way brings the engine. taisho generate builds the utilities, the components you use, and your theme from your taisho.config.ts, so the CSS comes out tailored to your brand instead of fixed. Install it with npm i -D @taishods/core; the steps are in Installation and Theming.

State lives in the HTML

In Core there are no reactive props or controlled state: each component’s state is an HTML attribute, and you handle it with attributes. Behavior explains how the JS hooks in and how to control it from your code.

Components

Each page shows the component working and the HTML to copy.