Overview
Next Commerce design system

Tsugi

次 tsugi: next. 継ぎ tsugi: the join that brings every piece together as one.

HTML, CSS and vanilla JavaScript components for the ecommerce admin. One design system covers every admin surface, from orders and products to payments and settings.

Browse components

Markup first

A class names the component and data-* attributes set its variant and size. It is plain HTML, so there is nothing to compile and no framework to learn.

One stylesheet, one script

A page loads tsugi.min.css and tsugi.min.js. Charts, the rich text editor and the date picker each add one library file.

Icons, flags and payment icons included

2118 icons, 249 country flags and 27 payment icons ship with the stylesheet. Each one is a class: icon icon-house, flag flag-us.

Framework agnostic

Anything that renders HTML can use it: Django, Rails, Liquid, React, or a static page. A component starts when its element appears, even after the page has loaded.

A page loads two files

Build dist/ with npm run build:dist and serve the whole folder. The stylesheet points at the fonts, flags and payment icons beside it, so they stay together.

<link rel="stylesheet" href="/static/tsugi/tsugi.min.css">
<script src="/static/tsugi/tsugi.min.js" defer></script>

A component is a class, and data attributes for its variant and size

Paid
<div class="flex flex-wrap items-center gap-3">
<button type="button" class="btn">Save</button>
<button type="button" class="btn" data-variant="outline" data-size="sm">Cancel</button>
<span class="badge" data-variant="success">Paid</span>
<span class="flag flag-us" aria-hidden="true"></span>
<i class="icon icon-house" aria-hidden="true"></i>
</div>

Components

Each page shows the component in use, the markup to copy, and its states.