# fellipeutaka/ui architecture

> Architecture diagram of the GitHub repository fellipeutaka/ui, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fellipeutaka/ui
- Repository: https://github.com/fellipeutaka/ui

## Overview

This repository provides a Tailwind-based React design system: developers configure theme utilities and CSS, then compose UI components in an application. The component package covers primitives, overlays, form controls, and data display; its data table composes lower-level UI parts. Edges reflect README statements and indexed imports or shown calls. Most component files were not sampled, so their internal relationships are omitted rather than inferred.

Main entry points: [`packages/ui/src/data-table.tsx`](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/data-table.tsx) (Data table), [`packages/ui/src/button.tsx`](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/button.tsx) (Buttons), [`packages/ui/src/alert-dialog.tsx`](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/alert-dialog.tsx) (Alert dialogs), [`packages/ui/src/select.tsx`](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/select.tsx) (Select control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Theme and Styles"]
  node_theme_config["Tailwind config helper<br/>[config.ts]"]
  node_class_utils["Class utilities<br/>[cn.ts]"]
  node_theme_css["Theme CSS<br/>[theme.css]"]
end

subgraph group_components["UI Components"]
  node_buttons["Buttons<br/>[button.tsx]"]
  node_text["Text and labels<br/>[text.tsx]"]
  node_form_controls["Form controls<br/>[checkbox.tsx]"]
  node_select["Select control<br/>[select.tsx]"]
  node_form["Form integration<br/>[form.tsx]"]
  node_dialogs["Dialogs<br/>[dialog.tsx]"]
  node_alert_dialog["Alert dialogs<br/>[alert-dialog.tsx]"]
  node_menus["Dropdown menus<br/>[dropdown-menu.tsx]"]
  node_table["Table primitives<br/>[table.tsx]"]
  node_feedback["Feedback and status<br/>[alert.tsx]"]
  node_display["Display components<br/>[card.tsx]"]
  node_accordion["Accordion<br/>[accordion.tsx]"]
  node_other_controls["Other controls<br/>[radio-group.tsx]"]
end

subgraph group_composites["Composed UI"]
  node_data_table["Data table<br/>[data-table.tsx]"]
end

node_developer(("Application developer"))

node_developer -->|"configures Tailwind"| node_theme_config
node_developer -->|"imports theme"| node_theme_css
node_developer -->|"uses components"| node_buttons
node_data_table -->|"renders"| node_buttons
node_data_table -->|"renders"| node_menus
node_data_table -->|"uses"| node_select
node_data_table -->|"uses"| node_table
node_select -->|"renders"| node_text
node_form -->|"uses label"| node_text
node_alert_dialog -->|"reuses styles"| node_dialogs
node_alert_dialog -->|"uses button styles"| node_buttons

click node_theme_config "https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/config.ts"
click node_class_utils "https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/cn.ts"
click node_theme_css "https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/theme.css"
click node_buttons "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/button.tsx"
click node_text "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/text.tsx"
click node_form_controls "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/checkbox.tsx"
click node_select "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/select.tsx"
click node_form "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/form.tsx"
click node_dialogs "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/dialog.tsx"
click node_alert_dialog "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/alert-dialog.tsx"
click node_menus "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/dropdown-menu.tsx"
click node_data_table "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/data-table.tsx"
click node_table "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/table.tsx"
click node_feedback "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/alert.tsx"
click node_display "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/card.tsx"
click node_accordion "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/accordion.tsx"
click node_other_controls "https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/radio-group.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_theme_config,node_class_utils,node_theme_css toneBlue
class node_buttons,node_text,node_form_controls,node_select,node_form,node_dialogs,node_alert_dialog,node_menus,node_table,node_feedback,node_display,node_accordion,node_other_controls toneAmber
class node_data_table toneMint
class node_developer toneIndigo
```

## Components

### Theme and Styles

- [Tailwind config helper](https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/config.ts): `packages/styles/src/config.ts`
- [Class utilities](https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/cn.ts): `packages/styles/src/cn.ts`
- [Theme CSS](https://github.com/fellipeutaka/ui/blob/main/packages/styles/src/theme.css): `packages/styles/src/theme.css`

### UI Components

- [Buttons](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/button.tsx): `packages/ui/src/button.tsx`
- [Text and labels](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/text.tsx): `packages/ui/src/text.tsx`
- [Form controls](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/checkbox.tsx): `packages/ui/src/checkbox.tsx`
- [Select control](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/select.tsx): `packages/ui/src/select.tsx`
- [Form integration](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/form.tsx): `packages/ui/src/form.tsx`
- [Dialogs](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/dialog.tsx): `packages/ui/src/dialog.tsx`
- [Alert dialogs](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/alert-dialog.tsx): `packages/ui/src/alert-dialog.tsx`
- [Dropdown menus](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/dropdown-menu.tsx): `packages/ui/src/dropdown-menu.tsx`
- [Table primitives](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/table.tsx): `packages/ui/src/table.tsx`
- [Feedback and status](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/alert.tsx): `packages/ui/src/alert.tsx`
- [Display components](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/card.tsx): `packages/ui/src/card.tsx`
- [Accordion](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/accordion.tsx): `packages/ui/src/accordion.tsx`
- [Other controls](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/radio-group.tsx): `packages/ui/src/radio-group.tsx`

### Composed UI

- [Data table](https://github.com/fellipeutaka/ui/blob/main/packages/ui/src/data-table.tsx): `packages/ui/src/data-table.tsx`

### Other components

- **Application developer**

## Connections

- Application developer → Tailwind config helper: configures Tailwind (evidence: `README.md`)
- Application developer → Theme CSS: imports theme (evidence: `README.md`)
- Application developer → Buttons: uses components (evidence: `README.md`)
- Data table → Buttons: renders (evidence: `packages/ui/src/data-table.tsx`)
- Data table → Dropdown menus: renders (evidence: `packages/ui/src/data-table.tsx`)
- Data table → Select control: uses (evidence: `packages/ui/src/data-table.tsx`)
- Data table → Table primitives: uses (evidence: `packages/ui/src/data-table.tsx`)
- Select control → Text and labels: renders (evidence: `packages/ui/src/select.tsx`)
- Form integration → Text and labels: uses label (evidence: `packages/ui/src/form.tsx`)
- Alert dialogs → Dialogs: reuses styles (evidence: `packages/ui/src/alert-dialog.tsx`)
- Alert dialogs → Buttons: uses button styles (evidence: `packages/ui/src/alert-dialog.tsx`)
