@rafaelsamico/cadus-ds
v1.0.1
Published
> A design system rooted in Brazilian identity — built with shadcn/ui.
Readme
Cadus DS
A design system rooted in Brazilian identity — built with shadcn/ui.
About
Cadus DS is a design system that speaks PT-BR. Its color and type choices draw from the Brazilian territory. Built on top of shadcn/ui.
Installation
npm install @rafaelsamico/cadus-dsRequirements: React 19+
Usage
Import the stylesheet once at your app's entry point:
import '@rafaelsamico/cadus-ds/index.css'Then import components as needed:
import { Typography } from '@rafaelsamico/cadus-ds'Project Structure
cadus-ds/
├── public/
├── src/
│ ├── components/
│ │ ├── typography/ # Typography component
│ │ └── ui/ # shadcn/ui components
│ ├── lib/
│ │ └── utils.ts # cn() and shared utilities
│ ├── App.tsx
│ ├── index.css # Global styles
│ ├── index.ts # Library entry point
│ └── main.tsx
├── package.json
├── tsconfig.json
└── vite.config.tsDesign Tokens
Colors
Four palettes, each named after a Brazilian landscape. Every palette ships 11 steps (50 → 950) in OKLCH for perceptually uniform lightness scaling.
| Palette | Name | Role |
|---|---|---|
| --mata-* | Mata Atlântica | Primary |
| --barro-* | Barro Nordestino | Secondary |
| --areia-* | Areia Sertaneja | Neutrals |
| --urucum-* | Urucum Amazônico | Destructive |
Semantic tokens map the palettes to roles consumed by components:
--background: var(--areia-50);
--primary: var(--mata-600);
--secondary: var(--barro-600);
--destructive: var(--urucum-600);
--muted: var(--areia-100);
--border: var(--areia-200);
--ring: var(--mata-500);Typography
Three typefaces, each with a semantic role — all self-hosted via @fontsource, no external requests at runtime.
| Role | Font | Variable |
|---|---|---|
| Display | Archivo | --font-display |
| Body / UI | Public Sans | --font-sans |
| Code | IBM Plex Mono | --font-mono |
