Tsugite
A design-system reference built like joinery: pieces meet through contracts that fit exactly — and refuse what doesn't.
A design-system reference built like joinery: pieces meet through contracts that fit exactly — and refuse what doesn't.
Tsugite (継手) are the joints of Japanese carpentry: pieces cut to meet so precisely that no nails are needed, and a wrong assembly will not fit. Tsugite brings that idea to the front end. Every interface is a contract, and what a contract does not allow does not exist.
A component shouldn't need a prop for every place it can appear. A section steps into a theme — one attribute — and everything inside reads it through one chain.
See the color systemLight, dark and both contrast modes are generated from one source, and their contrast is tested at build. A colour change that breaks WCAG should fail a test, not a reader.
See a test benchThe page should work in every browser, with or without JavaScript. Enhancements sit behind support gates, and each colour is authored once in oklch, with its sRGB fallback computed from it.
Watch it resolveIn ordinary CSS, why a button is blue is usually a sum — cascade order, specificity, breakpoints and inheritance at once. Tsugite aims for one active rule per property, and one you can point at.