Use Tangle's colors, typography and knot in a website, or build a React interface with its buttons, dialogs, Markdown renderer and recorded examples.
| Package | Start here |
|---|---|
| @tangle-network/brand | CSS tokens and themes, React logos, a framework-independent SVG knot, and social metadata |
| @tangle-network/ui | React components with focused imports for controls, forms, Markdown, and application layouts |
For a React app that already builds Tailwind CSS v4, install the two packages alongside React and React DOM.
npm install @tangle-network/brand @tangle-network/ui react react-domIn src/styles.css, load the theme and let Tailwind discover the component classes. Adjust the relative source path if your stylesheet lives elsewhere.
@import "tailwindcss";
@import "@tangle-network/brand/styles";
@source "../node_modules/@tangle-network/ui/src";import { Logo } from "@tangle-network/brand";
import { Button } from "@tangle-network/ui/primitives";
export function Example() {
return <div><Logo size="md" /><Button onClick={() => window.print()}>Print page</Button></div>;
}For a static page, import knotSvg from @tangle-network/brand/knot. It produces SVG without React or a browser. The brand guide covers named themes, font loading and metadata.
Use the Node and pnpm versions listed in package.json. From a clone of this repository, run the following commands.
pnpm install --frozen-lockfile
pnpm --filter @tangle-network/brand build
pnpm storybookOpen Storybook on localhost to try a component in light and dark themes. Run pnpm typecheck and pnpm test to check changes. To exercise the browser suite, install Chromium with pnpm exec playwright install --with-deps chromium, then run pnpm test:visual.
- Brand guidelines cover product language, visual hierarchy and component ownership.
- Control sizes and typography and interaction states explain how the controls behave.
- Design principles and the component audit give examples of how the system is used.
- Both packages use the MIT license.