# samzydd/sakani-design-system architecture

> Architecture diagram of the GitHub repository samzydd/sakani-design-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/samzydd/sakani-design-system
- Repository: https://github.com/samzydd/sakani-design-system

## Overview

Sakani is a token-driven React design-system library, not a standalone business application. A consumer imports its public components or copyable composition blocks, applies the token styles, and renders themed UI. The library spans reusable primitives, domain-oriented blocks (including commerce, authentication, dashboards, chat, and marketing), and a large glass-icon set. Liquid glass is a distinct theme capability with a shared renderer. The README documents these capabilities; several block implementations were not sampled, so their internal calls are not mapped.

Main entry points: [`src/index.ts`](https://github.com/samzydd/sakani-design-system/blob/main/src/index.ts) (Public exports), [`src/blocks/index.ts`](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/index.ts) (Block exports), [`src/styles/tokens.css`](https://github.com/samzydd/sakani-design-system/blob/main/src/styles/tokens.css) (Design tokens), [`src/lib/LiquidGlass.tsx`](https://github.com/samzydd/sakani-design-system/blob/main/src/lib/LiquidGlass.tsx) (Liquid glass renderer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Consumer API"]
  node_api["Public exports<br/>[index.ts]"]
  node_block_exports["Block exports<br/>[index.ts]"]
end

subgraph group_ui["UI Components"]
  node_primitives["UI primitives"]
  node_app_components["Application components"]
  node_commerce_components["Commerce components"]
  node_marketing_components["Marketing components"]
end

subgraph group_blocks["Composition Blocks"]
  node_auth_blocks["Auth blocks"]
  node_billing_blocks["Billing blocks"]
  node_commerce_blocks["Commerce blocks"]
  node_crm_block["CRM dashboard"]
  node_chat_block["Chat interface"]
  node_data_block["Data table<br/>[DataTableBlock.tsx]"]
  node_liquid_block["Liquid dashboard"]
  node_marketing_blocks["Marketing blocks"]
  node_block_collection["Composition blocks"]
end

subgraph group_theme["Theme And Icons"]
  node_tokens["Design tokens<br/>[tokens.css]"]
  node_liquid_glass["Liquid glass renderer<br/>[LiquidGlass.tsx]"]
  node_glass_icons["Glass icon set"]
  node_icon_shape["Generated icon shapes<br/>[route.ts]"]
end

node_consumer(("React consumer"))

node_consumer -->|"imports components"| node_api
node_consumer -->|"imports blocks"| node_block_exports
node_api -->|"exports"| node_primitives
node_api -->|"exports"| node_app_components
node_api -->|"exports"| node_commerce_components
node_api -->|"exports"| node_marketing_components
node_block_exports -->|"exports"| node_auth_blocks
node_block_exports -->|"exports"| node_commerce_blocks
node_block_exports -->|"exports"| node_marketing_blocks
node_consumer -->|"imports styles"| node_tokens
node_tokens -->|"themes components"| node_primitives
node_tokens -->|"themes blocks"| node_block_collection
node_api -->|"exports renderer"| node_liquid_glass
node_liquid_glass -->|"used in dashboard"| node_liquid_block
node_glass_icons -->|"creates icon"| node_icon_shape
node_consumer -->|"imports icons"| node_glass_icons

click node_api "https://github.com/samzydd/sakani-design-system/blob/main/src/index.ts"
click node_block_exports "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/index.ts"
click node_primitives "https://github.com/samzydd/sakani-design-system/tree/main/src/components"
click node_app_components "https://github.com/samzydd/sakani-design-system/tree/main/src/components/ApplicationComponents"
click node_commerce_components "https://github.com/samzydd/sakani-design-system/tree/main/src/components/ECommerceComponents"
click node_marketing_components "https://github.com/samzydd/sakani-design-system/tree/main/src/components/MarketingComponents"
click node_auth_blocks "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/TwoFactorAuthBlock/TwoFactorAuthBlock.tsx"
click node_billing_blocks "https://github.com/samzydd/sakani-design-system/tree/main/src/blocks/Billing"
click node_commerce_blocks "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/CheckoutFlowBlock/CheckoutFlowBlock.tsx"
click node_crm_block "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/CRMDashboardBlock/CRMDashboardBlock.tsx"
click node_chat_block "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/ChatInterfaceBlock/ChatInterfaceBlock.tsx"
click node_data_block "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/DataTableBlock/DataTableBlock.tsx"
click node_liquid_block "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/LiquidDashboardBlock/LiquidDashboardBlock.tsx"
click node_marketing_blocks "https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/BlogListingBlock/BlogListingBlock.tsx"
click node_block_collection "https://github.com/samzydd/sakani-design-system/tree/main/src/blocks"
click node_tokens "https://github.com/samzydd/sakani-design-system/blob/main/src/styles/tokens.css"
click node_liquid_glass "https://github.com/samzydd/sakani-design-system/blob/main/src/lib/LiquidGlass.tsx"
click node_glass_icons "https://github.com/samzydd/sakani-design-system/blob/main/src/glass-icons/createGlassIcon.tsx"
click node_icon_shape "https://github.com/samzydd/sakani-design-system/blob/main/src/glass-icons/icons/route.ts"

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_api,node_block_exports toneBlue
class node_primitives,node_app_components,node_commerce_components,node_marketing_components toneAmber
class node_auth_blocks,node_billing_blocks,node_commerce_blocks,node_crm_block,node_chat_block,node_data_block,node_liquid_block,node_marketing_blocks,node_block_collection toneMint
class node_tokens,node_liquid_glass,node_glass_icons,node_icon_shape toneRose
class node_consumer toneIndigo
```

## Components

### Consumer API

- [Public exports](https://github.com/samzydd/sakani-design-system/blob/main/src/index.ts): `src/index.ts`
- [Block exports](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/index.ts): `src/blocks/index.ts`

### UI Components

- [UI primitives](https://github.com/samzydd/sakani-design-system/tree/main/src/components): `src/components`
- [Application components](https://github.com/samzydd/sakani-design-system/tree/main/src/components/ApplicationComponents): `src/components/ApplicationComponents`
- [Commerce components](https://github.com/samzydd/sakani-design-system/tree/main/src/components/ECommerceComponents): `src/components/ECommerceComponents`
- [Marketing components](https://github.com/samzydd/sakani-design-system/tree/main/src/components/MarketingComponents): `src/components/MarketingComponents`

### Composition Blocks

- [Auth blocks](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/TwoFactorAuthBlock/TwoFactorAuthBlock.tsx): `src/blocks/TwoFactorAuthBlock/TwoFactorAuthBlock.tsx`
- [Billing blocks](https://github.com/samzydd/sakani-design-system/tree/main/src/blocks/Billing): `src/blocks/Billing`
- [Commerce blocks](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/CheckoutFlowBlock/CheckoutFlowBlock.tsx): `src/blocks/CheckoutFlowBlock/CheckoutFlowBlock.tsx`
- [CRM dashboard](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/CRMDashboardBlock/CRMDashboardBlock.tsx): `src/blocks/CRMDashboardBlock/CRMDashboardBlock.tsx`
- [Chat interface](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/ChatInterfaceBlock/ChatInterfaceBlock.tsx): `src/blocks/ChatInterfaceBlock/ChatInterfaceBlock.tsx`
- [Data table](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/DataTableBlock/DataTableBlock.tsx): `src/blocks/DataTableBlock/DataTableBlock.tsx`
- [Liquid dashboard](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/LiquidDashboardBlock/LiquidDashboardBlock.tsx): `src/blocks/LiquidDashboardBlock/LiquidDashboardBlock.tsx`
- [Marketing blocks](https://github.com/samzydd/sakani-design-system/blob/main/src/blocks/BlogListingBlock/BlogListingBlock.tsx): `src/blocks/BlogListingBlock/BlogListingBlock.tsx`
- [Composition blocks](https://github.com/samzydd/sakani-design-system/tree/main/src/blocks): `src/blocks`

### Theme And Icons

- [Design tokens](https://github.com/samzydd/sakani-design-system/blob/main/src/styles/tokens.css): `src/styles/tokens.css`
- [Liquid glass renderer](https://github.com/samzydd/sakani-design-system/blob/main/src/lib/LiquidGlass.tsx): `src/lib/LiquidGlass.tsx`
- [Glass icon set](https://github.com/samzydd/sakani-design-system/blob/main/src/glass-icons/createGlassIcon.tsx): `src/glass-icons/createGlassIcon.tsx`
- [Generated icon shapes](https://github.com/samzydd/sakani-design-system/blob/main/src/glass-icons/icons/route.ts): `src/glass-icons/icons/route.ts`

### Other components

- **React consumer**

## Connections

- React consumer → Public exports: imports components (evidence: `README.md`)
- React consumer → Block exports: imports blocks (evidence: `README.md`)
- Public exports → UI primitives: exports (evidence: `src/index.ts`)
- Public exports → Application components: exports (evidence: `src/index.ts`)
- Public exports → Commerce components: exports (evidence: `src/index.ts`)
- Public exports → Marketing components: exports (evidence: `src/index.ts`)
- Block exports → Auth blocks: exports (evidence: `src/blocks/index.ts`)
- Block exports → Commerce blocks: exports (evidence: `src/blocks/index.ts`)
- Block exports → Marketing blocks: exports (evidence: `src/blocks/index.ts`)
- React consumer → Design tokens: imports styles (evidence: `README.md`)
- Design tokens → UI primitives: themes components (evidence: `README.md`)
- Design tokens → Composition blocks: themes blocks (evidence: `README.md`)
- Public exports → Liquid glass renderer: exports renderer (evidence: `README.md`)
- Liquid glass renderer → Liquid dashboard: used in dashboard (evidence: `README.md`)
- Glass icon set → Generated icon shapes: creates icon (evidence: `src/glass-icons/icons/route.ts`)
- React consumer → Glass icon set: imports icons (evidence: `README.md`)
