Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿง  UI-Brain

An Obsidian-Powered UI Knowledge Base & Local Reference Dataset for Human & AI Engineers

Obsidian Vault PRs Welcome GitHub stars GitHub repo size GitHub last commit


๐Ÿ“Œ Overview โ€ข โœจ Key Features โ€ข ๐Ÿ’ป Cloning โ€ข ๐Ÿ“‚ Structure โ€ข ๐Ÿ”ฎ Obsidian Setup โ€ข ๐Ÿค– AI Agents โ€ข ๐Ÿš€ New Projects โ€ข ๐Ÿ“š Reference Sources


๐Ÿ“Œ Overview

UI-Brain turns a massive collection of UI libraries, design systems, primitives, animations, templates, and frontend documentation into a navigable, hyper-linked second brain powered by Obsidian.

It is designed to help software engineers and AI coding agents (Claude Code, Cursor, Codex, Google Antigravity) make deliberate, architectural frontend decisions before writing code.

Note

The repository combines deep architectural notes in data/ with local reference source code from industry-standard UI libraries.


โœจ Key Features

  • ๐Ÿง  Obsidian Knowledge Base: Connected notes, Maps of Content (MOCs), technology decision matrixes, and accessibility checklists inside data/.
  • ๐Ÿ“ฆ 8+ Bundled Reference Datasets: Source material from Astryx, Carbon, Fluent UI, Material Web, Radix Primitives, React Bits, TDesign, and shadcn/ui.
  • ๐Ÿค– Native AI Agent Support: Built-in instructions and configurations for Claude Code, Cursor, Codex, and Google Antigravity.
  • ๐Ÿ“ Strict Architecture Scope: Clean boundary between read-only reference datasets and user-generated applications (projects/<site-name>/).
  • ๐Ÿ—บ๏ธ Visual Knowledge Graph: Deep node-graph visualization of component dependencies, design tokens, and UI patterns.

๐Ÿ’ป Cloning the Repository

Select your operating system below for platform-tailored clone commands and configuration instructions.

Tip

Make sure you have Git installed on your system before running these commands.

๐ŸŒ Quick Cloning Methods

# Option 1: HTTPS Clone
git clone https://github.com/alisattorov06/UI-Brain.git

# Option 2: SSH Clone
git clone git@github.com:alisattorov06/UI-Brain.git

# Option 3: GitHub CLI
gh repo clone alisattorov06/UI-Brain

๐ŸชŸ Windows Setup (PowerShell / Command Prompt / Git Bash)

  1. Open Terminal (PowerShell or Git Bash).
  2. Clone the repository:
    git clone https://github.com/alisattorov06/UI-Brain.git
    cd UI-Brain
  3. (Recommended for Windows) Enable long paths support to avoid path length limits with deep UI component trees:
    git config --system core.longpaths true
  4. (Optional) Configure line endings for Windows environment:
    git config core.autocrlf true

๐ŸŽ macOS Setup (Terminal / Zsh)

  1. Open Terminal (Cmd + Space โ†’ Terminal).
  2. Check Git installation (install via Homebrew if needed: brew install git).
  3. Clone the repository:
    git clone https://github.com/alisattorov06/UI-Brain.git
    cd UI-Brain
  4. (Optional) Preserve UNIX line endings:
    git config core.autocrlf input

๐Ÿง Linux Setup (Ubuntu / Debian / Fedora / Arch)

  1. Open Terminal (Ctrl + Alt + T).
  2. Install Git (if not already installed):
    # Ubuntu / Debian
    sudo apt update && sudo apt install -y git
    
    # Fedora / RHEL
    sudo dnf install -y git
    
    # Arch Linux
    sudo pacman -S git
  3. Clone the repository:
    git clone https://github.com/alisattorov06/UI-Brain.git
    cd UI-Brain

๐Ÿ“‚ Knowledge-Base Structure

UI-Brain/
โ”œโ”€โ”€ ๐Ÿ“„ AGENTS.md                  # Shared agent instructions & boundary rules
โ”œโ”€โ”€ ๐Ÿ“„ CLAUDE.md                  # Claude Code agent workspace instructions
โ”œโ”€โ”€ ๐Ÿ“ .cursor/rules/             # Cursor rules (ui-knowledge-base.mdc)
โ”œโ”€โ”€ ๐Ÿ“ .agents/rules/             # Google Antigravity custom rules
โ”œโ”€โ”€ ๐Ÿ“ assets/                    # Screenshots & documentation graphics
โ”œโ”€โ”€ ๐Ÿ“ data/                      # ๐Ÿง  Obsidian Knowledge Base Vault
โ”‚   โ”œโ”€โ”€ 00-Start/                 # Home note & Relationship Map MOC
โ”‚   โ”œโ”€โ”€ 01-Design-Systems/        # Astryx, Carbon, Fluent UI, Material Web, TDesign
โ”‚   โ”œโ”€โ”€ 02-Component-Primitives/  # Radix Primitives documentation
โ”‚   โ”œโ”€โ”€ 03-UI-Components/         # shadcn/ui components & registry notes
โ”‚   โ”œโ”€โ”€ 04-Animations/            # React Bits animation guides
โ”‚   โ”œโ”€โ”€ 05-Templates-and-Tooling/ # Framework starters & tooling
โ”‚   โ”œโ”€โ”€ 06-Design-Tokens/         # Themes, colors, typography & spacing
โ”‚   โ”œโ”€โ”€ 07-Accessibility/         # A11y standards & WCAG checklists
โ”‚   โ”œโ”€โ”€ 08-Patterns/              # Forms, state management, layouts, navigation
โ”‚   โ”œโ”€โ”€ 09-Examples/              # Links to local UI implementations
โ”‚   โ”œโ”€โ”€ 10-Decision-Guides/       # Technology selection matrix & trade-offs
โ”‚   โ””โ”€โ”€ 99-Source-Map/            # Note-to-source mapping references
โ””โ”€โ”€ ๐Ÿ“ projects/                  # ๐Ÿš€ Directory for generated web projects

๐Ÿ”ฎ Knowledge Graph & Obsidian Setup

๐Ÿ› ๏ธ Obsidian Quick Start

  1. Download and install Obsidian.
  2. Select Open folder as vault.
  3. Choose the data/ directory inside this repository for a clean second-brain view.
  4. Start with data/00-Start/Home.md or data/00-Start/Relationship-Map.md.
  5. Open Graph View (Ctrl + G / Cmd + G) to visually explore relationships.

Tip

If you open the root folder as an Obsidian vault, apply the graph filter path:data to hide raw source code nodes and focus purely on knowledge notes.

๐Ÿ“Š Graph Previews

Full Workspace Knowledge Graph Connected Source & Component Graph
Full Obsidian Graph Connected Source Graph

๐Ÿค– Using UI-Brain with AI Coding Agents

UI-Brain is optimized for AI pair programming. Every supported agent is pre-configured to read data/ guides before writing frontend code.

Important

Boundary Rule: The reference folders (astryx/, carbon/, fluentui/, material-web/, primitives/, react-bits/, tdesign/, ui/) are read-only. Agents and developers must create new web applications strictly inside projects/<site-name>/.

โš™๏ธ Agent Integrations Matrix

Agent Configuration File How to Activate
Claude Code CLAUDE.md Automatically loaded when starting claude in repository root
Cursor .cursor/rules/ui-knowledge-base.mdc Active by default (alwaysApply: true)
Google Antigravity .agents/rules/ui-knowledge-base.md Set ui-knowledge-base rule to Always On in Agent Panel
Codex / Custom Agents AGENTS.md Shared guidelines loaded at root level

๐Ÿ’ฌ Agent Execution Examples

Click to expand Claude Code setup & prompt example
cd UI-Brain
claude

Prompt:

Use the UI-Brain knowledge base to build a responsive SaaS landing page.
First explain the chosen design system, UI patterns, design-token approach,
and accessibility considerations. Then implement it in projects/saas-landing/.
Do not modify the reference dataset folders.

Run /memory inside Claude Code to verify that CLAUDE.md is active.

Click to expand Universal Prompt for Any AI Agent
Read the UI-Brain knowledge base first. I want to create [website type] for [target audience].
Choose a suitable design system or component strategy from the dataset, explain the accessibility
and responsive-design decisions, and build the implementation in projects/[website-name]/.

๐Ÿš€ Creating a New Website

Keep all custom applications decoupled from the knowledge base reference source material:

projects/
โ””โ”€โ”€ my-website/
    โ”œโ”€โ”€ README.md
    โ”œโ”€โ”€ package.json
    โ”œโ”€โ”€ vite.config.js
    โ””โ”€โ”€ src/
        โ”œโ”€โ”€ components/
        โ””โ”€โ”€ App.jsx

๐Ÿ“š Included Reference Sources

UI-Brain contains local source snapshots of major UI frameworks:

Source Library Badge Primary Purpose
Astryx Astryx Customizable React design system and theme tools
Carbon Carbon Enterprise IBM design system and components
Fluent UI Fluent UI Microsoft Fluent design framework for Web & React
Material Web Material Web Google Material Design 3 web components
Radix Primitives Radix Accessible, unstyled UI primitives for React
React Bits React Bits Micro-interactions, background, text & cursor animations
TDesign TDesign Tencent design system with extensive UI tokens
shadcn/ui shadcn/ui Reusable component registry & starter templates

๐Ÿค Contributing to the Brain

Contributions to enhance the knowledge base are welcome:

  1. โœ๏ธ Create Notes: Add focused Markdown notes under the relevant data/ category.
  2. ๐Ÿ”— Add Connections: Link new notes to MOCs or Relationship-Map.md using [[WikiLinks]].
  3. โ™ฟ Include A11y Guidelines: Document WCAG compliance, keyboard interaction, and design trade-offs.
  4. ๐Ÿงน Clean Commits: Keep build artifacts, untracked dependencies, and temporary files out of git.

๐Ÿ“œ Repository Policy

  • ๐Ÿ”’ Source Integrity: Library directories (astryx/, carbon/, etc.) are reference sources; do not modify or format them.
  • ๐Ÿ™ˆ Ignored Folders: The blog/ folder is explicitly git-ignored.
  • โš™๏ธ Agent Persistence: Configuration files (AGENTS.md, CLAUDE.md, .cursor/rules/, .agents/rules/) are core assets and must remain versioned.

Made with โค๏ธ for Developers & AI Engineers โ€ข Powered by Obsidian

About

A structured UI/UX knowledge base built from modern design systems, component libraries, design tokens, patterns, accessibility guidelines, and frontend code.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages