The TUM.ai design system as a component library for Next.js. It ships brand tokens, six tone bands, accessible Base UI interactions, editorial page patterns and an optional website shell (header, footer, skip link). A Storybook explorer documents every component with live controls and accessibility checks.
| Area | Contents |
|---|---|
| Foundations | Tone bands (paper, mist, lavender, ink, night, violet), Manrope type scale, spacing and focus |
| Components | Buttons and links, typography, cards, media, logos, badges, accordions, dialogs, chips, figures and lists |
| Patterns | PageHero, SectionHeader, CtaBand, FaqSection, Steps, StatGrid, Ledger, KeyDates, IndexList |
| Motion | Reveal, SplitWords, CountUp, Aurora, BrandMark; all respect prefers-reduced-motion |
| Shell | Header, Footer, SkipLink from @tum.ai/ui-kit/shell, configured entirely through props |
| Tokens | Brand color scales and per-tone semantic colors as Tailwind 4 theme variables (bg-violet-950, text-fg, var(--color-violet-500)), type scale, easing and utilities |
| Styles | tailwind.css (tokens and utilities), fonts.css (Manrope), shell.css (optional page shell behavior) |
The package is published on npm as @tum.ai/ui-kit. It requires Next.js 16, React 19 and Tailwind CSS 4 in the consuming application.
npm install @tum.ai/ui-kitInstall the peer dependencies if your application does not have them yet:
npm install next@^16 react@^19 react-dom@^19 tailwindcss@^4 @tailwindcss/postcss@^4Other package managers work the same way:
pnpm add @tum.ai/ui-kit
yarn add @tum.ai/ui-kit
bun add @tum.ai/ui-kitBefore 1.0, minor versions may contain breaking changes (see releases). Pin an exact version (npm install --save-exact @tum.ai/ui-kit) if you want to upgrade deliberately.
Import the kit's styles after Tailwind in your global stylesheet, for example app/globals.css:
@import "tailwindcss";
@import "@tum.ai/ui-kit/tailwind.css";
@import "@tum.ai/ui-kit/fonts.css";
/* Only when using the floating Header and page shell: */
@import "@tum.ai/ui-kit/shell.css";The kit stylesheet registers its compiled JavaScript as a Tailwind class source, so no safelists or copied class lists are needed. fonts.css is optional if you load Manrope yourself (for example with next/font) and define --font-manrope.
Set up the root layout once:
// app/layout.tsx
import "./globals.css";
import { MotionProvider } from "@tum.ai/ui-kit";
import { SkipLink } from "@tum.ai/ui-kit/shell";
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en">
<body>
<MotionProvider>
<div id="app-root" data-tone="paper">
<SkipLink />
{children}
</div>
</MotionProvider>
</body>
</html>
);
}Then compose pages from tone bands:
// app/page.tsx
import { ButtonLink, Container, Heading, Section } from "@tum.ai/ui-kit";
export default function Page() {
return (
<main id="main-content" tabIndex={-1}>
<Section tone="ink">
<Container>
<Heading as="h1">Build with TUM.ai</Heading>
<ButtonLink href="/about">About the project</ButtonLink>
</Container>
</Section>
</main>
);
}Points to know:
#app-rootis the element that dialogs make inert while they are open. Portals mount outside it. PassbackgroundRootIdif your root has a different ID.SkipLinktargets<main id="main-content" tabIndex={-1}>.- Components without event handlers are server-compatible. Keep
"use client"to your own interactive modules. - The shell components receive navigation, logos, CTAs and footer content as props. Routes, data fetching and remote image configuration stay in your application.
The full walkthrough is in Getting started.
The kit implements the TUM.ai brand: violet and indigo palette, Manrope, tone bands and the official logos. Read the brand guide before building new pages. The MIT license covers the code only; the TUM.ai name, logos and marks are covered by brand asset terms.
| Guide | Covers |
|---|---|
| Getting started | Installation, layout setup, local explorer, testing a tarball |
| Brand guide | Palette, tones, typography, logos, imagery, do's and don'ts |
| Design system | Principles, tokens, API conventions, components, motion rules |
| Component notes | Contracts for foundations, media, compositions and the shell |
| Public API | Generated export reference |
| Portability decisions | How the components stay independent of any one application |
| Engineering standards | Every enforced rule and the check that enforces it |
| Testing and accessibility | Test layers, axe, visual baselines, manual checks |
| Browser quirks | Safari workarounds and where they live |
| Figma library | Generating the native Figma library from code |
| Releases | Changesets, npm publishing and hosting the explorer |
| GitHub workflow | Branches, pull requests, CI and dependency updates |
| AI assistants | AGENTS.md, skills, subagents and hooks for coding assistants |
Use Node 24 and Bun 1.4.2 (see .node-version and packageManager). No environment variables or accounts are needed.
git clone https://github.com/tum-ai/ui-kit.git
cd ui-kit
bun install --frozen-lockfile
bun run devStorybook opens at http://localhost:6006. bun run verify runs the full CI-equivalent check; install its browsers first with bunx playwright install --with-deps chromium webkit. See Contributing for the workflow.
The components were first built for the TUM.ai website redesign (tum-ai/website_new#264) and are maintained here as a standalone package. extraction.json records the source revision.
Code is released under the MIT License. The Manrope font is licensed under the SIL Open Font License; see third-party notices. TUM.ai identity assets are not covered by the MIT License; see brand asset terms.