Grid
A grid with two sides: a content grid (ts grid-container with grid-cols-* and gap-*, which adapts to width with sm: and lg:), and a grid with divider lines between cells.
Layout · 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.
Three metrics in columns
Users · 1,240
Deployments · 86
Errors · 3
When to use
- The elements line up in rows and columns, like a gallery, a dashboard, or a grid of cards.
- You want the columns to adapt to the available width on their own.
- You want divider lines between cells.
When not to use
- It runs in a single direction →
stack. - It’s data compared field by field →
table.
Do
- Start with
grid-cols-1and add columns as the width grows (sm:grid-cols-2,lg:grid-cols-3). It adjusts on its own. - Keep cells at an even height when the grid reads as a whole.
Don’t
- Don’t set more columns than the content needs at each width.
- Don’t use it for tabular data →
table.
TaishoDS Core
Doesn’t need JavaScript—it’s markup and CSS.
Layout: CSS Grid.
From the CDN, without a build, load taisho.grid.css along with taisho.base.css. That file is all you need.
For how Core works in general, see Behavior.
Accessibility
- A CSS Grid layout container that adds no semantics. It doesn’t use
role="grid", which is for interactive tables.
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.