Shared Tapiz design system package for React applications.
Repository: https://github.com/owlCoder/tapiz-design-system
@tapizlabs/ui centralizes the visual foundation used across Tapiz frontends:
- shared theme tokens and utility classes
- shared font loading
- shared icon exports
- shared React UI primitives
It is intended to keep multiple apps visually aligned while reducing duplicated UI code.
npm install @tapizlabs/uiThis package expects Tailwind CSS v4 to already exist in the consuming app.
If your app does not use Tailwind yet, install it before using @tapizlabs/ui:
npm install tailwindcss @tailwindcss/postcssreact >= 19react-dom >= 19tailwindcss >= 4
These are declared as peer dependencies and must be provided by the consuming app.
Important: @tapizlabs/ui is not Tailwind-free. Consumer applications must have Tailwind CSS v4 configured, otherwise shared styles and local utility classes will not build correctly.
This package exposes:
@tapizlabs/uiReact components, icons, and exported TypeScript types@tapizlabs/ui/theme.cssShared theme tokens, utility classes, button styles, surfaces, and animation helpers@tapizlabs/ui/fontsShared IBM Plex font loading entrypoint
Import fonts once in your application entry:
import "@tapizlabs/ui/fonts";Import the shared theme before your app-specific styles:
@import "@tapizlabs/ui/theme.css";Then consume components directly from the package:
import { Button, EmptyState, InfoBanner } from "@tapizlabs/ui";
export function ExamplePanel() {
return (
<div className="space-y-4">
<InfoBanner
title="Shared UI"
description="This screen is using the shared Tapiz design system package."
/>
<Button>Save changes</Button>
<EmptyState
title="No records"
description="Create your first item to get started."
/>
</div>
);
}@tapizlabs/ui/theme.css is published as a compiled CSS bundle, so consumer apps only need to import it. No extra @source directive is required in application code.
You still must keep Tailwind enabled in the consuming app itself.
Minimum consumer setup:
// postcss.config.js
export default {
plugins: {
"@tailwindcss/postcss": {},
},
};/* app entry CSS */
@import "@tapizlabs/ui/theme.css";
@import "tailwindcss";
@source "./**/*.{ts,tsx}";If Tailwind is missing from the consumer app, @tapizlabs/ui will not render correctly.
Current exports include:
ButtonInputSelectTextareaFieldLabelFieldHintCheckboxRadioButtonSpinnerPageSpinnerToastToastProvideruseToastFormErrorErrorBoundaryBaseModalConfirmDialogTooltipBadgeCardCardHeaderCardBodyEmptyStateErrorStateInfoBannerPageHeaderSearchInputPaginationSectionTitleStatusBadgeActionMenuSkeletonSkeletonCardSkeletonKpiCardSkeletonBannerSkeletonPageHeaderSkeletonTableDataTable
import { Button, Plus } from "@tapizlabs/ui";
export function Actions() {
return (
<div className="flex gap-3">
<Button>Default</Button>
<Button variant="secondary" icon={Plus}>
Create
</Button>
<Button variant="danger" loading>
Deleting
</Button>
</div>
);
}import { ConfirmDialog, Trash } from "@tapizlabs/ui";
export function DeleteDialogExample() {
return (
<ConfirmDialog
open
danger
title="Delete record"
description="This action cannot be undone."
icon={<Trash size={14} />}
confirmLabel="Delete"
cancelLabel="Cancel"
onConfirm={() => {}}
onCancel={() => {}}
/>
);
}Compatibility note:
ConfirmDialogsupports bothdescriptionand legacymessage
import { FieldHint, FieldLabel, Input, Select, Textarea } from "@tapizlabs/ui";
export function ProfileFields() {
return (
<div className="space-y-4">
<div className="space-y-2">
<FieldLabel htmlFor="name">Display name</FieldLabel>
<Input id="name" placeholder="Jane Doe" />
<FieldHint>Visible to other Tapiz users.</FieldHint>
</div>
<div className="space-y-2">
<FieldLabel htmlFor="role">Role</FieldLabel>
<Select id="role" defaultValue="assistant">
<option value="assistant">Assistant</option>
<option value="student">Student</option>
</Select>
</div>
<div className="space-y-2">
<FieldLabel htmlFor="bio">Bio</FieldLabel>
<Textarea id="bio" rows={4} placeholder="Short description" />
</div>
</div>
);
}import { EmptyState, Info } from "@tapizlabs/ui";
export function NoResults() {
return (
<EmptyState
title="No results"
description="Try adjusting your filters."
icon={<Info size={18} />}
/>
);
}import { ToastProvider, useToast } from "@tapizlabs/ui";
function SaveButton() {
const { showToast } = useToast();
return (
<button
type="button"
onClick={() => showToast({ message: "Saved successfully.", ok: true })}
>
Save
</button>
);
}
export function App() {
return (
<>
<SaveButton />
<ToastProvider />
</>
);
}import { DataTable, type Column } from "@tapizlabs/ui";
interface User {
id: string;
name: string;
role: string;
}
const columns: Column<User>[] = [
{ id: "name", header: "Name", cell: (row) => row.name, sortable: true, sortAccessor: (row) => row.name },
{ id: "role", header: "Role", cell: (row) => row.role },
];
export function UsersTable({ rows }: { rows: User[] }) {
return (
<DataTable
data={rows}
columns={columns}
rowKey={(row) => row.id}
emptyState="No users"
/>
);
}The root package export also includes shared icons used across Tapiz apps, including navigation, status, auth, action, feedback, form, layout, and logo icons.
Example:
import { Button, Plus, LogoMark } from "@tapizlabs/ui";
export function Toolbar() {
return (
<div className="flex items-center gap-3">
<LogoMark />
<Button icon={Plus}>Create</Button>
</div>
);
}Button accepts either a rendered React node or an icon component reference through the icon and iconRight props.
Additional branded/storefront icons such as AppleIcon, GooglePlayIcon, and Star are also exported when needed by marketing surfaces.
This package is intentionally opinionated. It provides the shared Tapiz visual language, including:
- theme color variables
- font variables
- reusable button classes
- surface and border tokens
- shared motion helpers
Consumer apps can add local styles on top, but should treat theme.css as the base design contract for consistency.
@tapizlabs/ui is the shared framework layer for reusable Tapiz UI primitives. Layout shells, SEO helpers, language/session flows, and domain-bound selectors should usually stay in consuming apps.
See FRAMEWORK_BOUNDARY.md for the exact package-vs-app contract used in this workspace.
- modal components render through portals
- table components expose sortable state through appropriate semantics
- button and feedback primitives preserve native HTML behavior where possible
This package is released under the MIT license.
Attribution is retained as Tapiz UI in the package metadata and license file.