React component library for e-INFRA CZ applications, built with TypeScript and Tailwind CSS v4, based on radix UI and shadcn-UI.
- 30+ reusable components covering common UI patterns
- Fully typed with TypeScript for type safety
- Tailwind CSS v4 for utility-first styling
- Radix UI primitives for accessibility and interactivity
- Dark mode support and responsive design
- Comprehensive documentation and live showcase
- Customizable and extensible for various use cases
bun add @e-infra/design-system
# or using yarn
yarn add @e-infra/design-system
# or using pnpm
pnpm add @e-infra/design-system
# or using npm
npm install @e-infra/design-systemMake sure you have the required peer dependencies installed:
bun add react react-dom tailwindcss
# or npm
npm install react react-dom tailwindcss- React 18 or 19
- React DOM 18 or 19
- Tailwind CSS v4
! Important: Ensure you import the library styles in your global CSS file, ideally immediately after Tailwind in your global stylesheet:
@import "tailwindcss";
@import "@e-infra/design-system/setup.css";
@source "../node_modules/@e-infra/design-system/dist";import {
Button,
Card,
CardContent,
CardHeader,
CardTitle,
} from "@e-infra/design-system";
export function Example() {
return (
<Card>
<CardHeader>
<CardTitle>Welcome</CardTitle>
</CardHeader>
<CardContent>
<Button>Get started</Button>
</CardContent>
</Card>
);
}@e-infra/design-system- Components, utilities, and hooks@e-infra/design-system/setup.css- Library CSS entry for Tailwind v4 setup
- Live showcase: https://design-system.e-infra.cz/
- Comprehensive documentation with usage examples, API reference, and best practices for all components: https://design-system.e-infra.cz/docs
- Source repository: https://github.com/CERIT-SC/design-system
# Install dependencies
bun install
# Run development server with live reloading
bun run dev:showcase
# Build library
bun run build:lib
# Build showcase web
bun run build:showcase
# Run linting, format checks and type checks
bun run lint
bun run format:check
bun run typecheck:lib
bun run typecheck:showcaseFor other commands and scripts, see package.json.
Run from the project root:
docker compose -f ./env/prod/docker-compose.yml up --buildBun as package manager and runtime:
docker build -t design-system-showcase:latest -f ./env/prod/Dockerfile.bun .Bun as package manager and node as runtime:
docker build -t design-system-showcase:latest -f ./env/prod/Dockerfile .- Romana Ďuráčiová duraciova@mail.muni.cz
- Jakub Čillík cillik@muni.cz
- Michal Mikuš 553650@mail.muni.cz
See CONTRIBUTING.md.
Please report any bugs or issues to our GitHub repository.
MIT. See LICENSE.md.