Tokens-first design system for Aleph Cloud, built with Tailwind CSS 4, OKLCH color scales, and CSS custom properties. Ships as a component library (@aleph-front/ds) with a Next.js preview app for visual reference.
Status: Published on npm as @aleph-front/ds.
npm install
npm run dev # http://localhost:3000 — preview app with theme switcher
npm run check # lint + typecheck + test| Command | Description |
|---|---|
npm run dev |
Start dev server (Turbopack) |
npm run build |
Static export of the preview app |
npm run test |
Run tests (Vitest) |
npm run lint |
Lint all workspaces (oxlint) |
npm run typecheck |
Type-check all workspaces |
npm run check |
lint + typecheck + test |
packages/ds/ # @aleph-front/ds — tokens + components
apps/preview/ # @aleph-front/preview — Next.js preview app
docs/ # Architecture, decisions, design system docs
The design system uses source-level subpath exports:
import { Button } from "@aleph-front/ds/button";
import { Spinner } from "@aleph-front/ds/ui/spinner";
import { cn } from "@aleph-front/ds/lib/cn";
import "@aleph-front/ds/styles/tokens.css";Within each workspace, internal imports use the @ac/* alias which resolves to ./src/*.
The DS exports raw TypeScript/TSX source (no build step), so the consuming project's bundler must transpile it.
From the DS repo, register the package globally:
cd packages/ds
npm linkFrom your other project, link it:
npm link @aleph-front/dsSince @aleph-front/ds ships source files, your bundler needs to transpile it.
Next.js — add to next.config.ts:
const nextConfig = {
transpilePackages: ["@aleph-front/ds"],
};Vite — add to vite.config.ts:
export default defineConfig({
ssr: { noExternal: ["@aleph-front/ds"] },
});Import the design tokens in your app's global CSS or layout:
@import "@aleph-front/ds/styles/tokens.css";Or in a layout file:
import "@aleph-front/ds/styles/tokens.css";If your project uses Tailwind, add the DS source to your content paths so Tailwind scans its classes:
@import "tailwindcss";
@source "../../node_modules/@aleph-front/ds/src/**/*.tsx";| You need to... | Go here |
|---|---|
| Use tokens (colors, fonts, shadows, gradients, transitions) | docs/DESIGN-SYSTEM.md |
| Use or build components | docs/DESIGN-SYSTEM.md § Components |
| Understand token architecture and patterns | docs/ARCHITECTURE.md |
| Know why a decision was made | docs/DECISIONS.md |
| See planned or deferred work | docs/BACKLOG.md |
MIT — see LICENSE