Skip to content

CERIT-SC/design-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

208 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e-INFRA CZ Design System

npm version License: MIT

React component library for e-INFRA CZ applications, built with TypeScript and Tailwind CSS v4, based on radix UI and shadcn-UI.

Features

  • 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

Installation

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-system

Peer Dependencies

Make sure you have the required peer dependencies installed:

bun add react react-dom tailwindcss

# or npm
npm install react react-dom tailwindcss

Requirements

  • React 18 or 19
  • React DOM 18 or 19
  • Tailwind CSS v4

Quick Start

1. Import Styles

! 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";

2. Usage of Components

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>
  );
}

Package Exports

  • @e-infra/design-system - Components, utilities, and hooks
  • @e-infra/design-system/setup.css - Library CSS entry for Tailwind v4 setup

Documentation

Development

# 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:showcase

For other commands and scripts, see package.json.

Docker

Run from the project root:

Using docker-compose to build and run the production container:

docker compose -f ./deployment/containers/prod/docker-compose.yml up --build

Build image only:

Bun as package manager and runtime:

docker build -t designsystem-app:latest -f ./deployment/containers/prod/Dockerfile.app.bun .

Maintainers

Contributing

See CONTRIBUTING.md.

Issues

Please report any bugs or issues to our GitHub repository.

License

MIT. See LICENSE.md.

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

1 star

Watchers

0 watching

Forks

Packages

 
 
 

Contributors