Skip to main content
Glama

UXonFly

An open-source design system for AI coding sessions. Strong opinions. MIT licensed.

License: MIT


What this is

Every AI coding session starts blind. Generic shadcn components. Default Tailwind colors. Modal-inside-a-modal. Empty states with no CTA. Errors in toasts that should be inline. Destructive actions with single-click delete.

UXonFly is a curated set of design and UX rules — tokens, components, UX patterns, flows, copy rules, and principles — that your AI reads before generating UI. The rules live in one markdown file: uxonfly.md.

Two ways to use it. Same content, same rules:

  1. As a file — copy uxonfly.md into your project. Your AI reads it natively every session. Zero install.

  2. As an MCP server — run uxonfly-mcp and your AI invokes 7 tools (get_component, get_ux_pattern, …) on demand.

The file install is the recommended starting point. The MCP server is the upgrade for power users who want tool-call precision.

MIT licensed. Fork it. Improve it. Send a PR.

Related MCP server: weave-design-system-mcp

What's in it

  • 5 token categories — colors, typography, spacing, shape, shadows

  • 6 components — button, input, card, badge, modal, toast

  • 9 UX patterns — navigation, modals, forms, loading, empty states, errors, destructive actions, data tables, notifications

  • 3 flows — empty-state, onboarding, auth

  • Copy rules — voice, tense, errors, CTAs, tooltips, placeholders, labels

  • 7 principles — accessibility first, one primary action, error prevention, progressive disclosure, copy-driven, keyboard navigable, trust the system

Strong opinions. Border-first. Modern SaaS aesthetic (Linear / Stripe / Vercel-aligned).


Run one command from your project root. Pick the line for your AI tool — it downloads the rules and saves them with the exact filename your tool auto-loads on every session.

Important: the filename matters. If the file is saved as uxonfly.md, your AI will not auto-read it. Each command below saves it with the right name in one shot so you can't miss the rename step.

# Claude Code
curl -o CLAUDE.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# Cursor
curl -o .cursorrules https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# Windsurf
curl -o .windsurfrules https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# Gemini CLI
curl -o GEMINI.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# Zed / Google Antigravity / any tool using the AGENTS.md convention
curl -o AGENTS.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# GitHub Copilot
mkdir -p .github && curl -o .github/copilot-instructions.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# JetBrains Junie
mkdir -p .junie && curl -o .junie/guidelines.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md

# Aider
curl -o CONVENTIONS.md https://raw.githubusercontent.com/Phanikondru/uxonfly-mcp/main/uxonfly.md
# then run: aider --read CONVENTIONS.md

Filename reference if your tool isn't listed:

AI tool

Save as

Location

Claude Code

CLAUDE.md

project root

Cursor

.cursorrules

project root

Windsurf

.windsurfrules

project root

Gemini CLI

GEMINI.md

project root

Zed

AGENTS.md

project root

Google Antigravity

AGENTS.md

project root

GitHub Copilot

copilot-instructions.md

.github/

Aider

CONVENTIONS.md (then aider --read CONVENTIONS.md)

project root

JetBrains Junie

guidelines.md

.junie/

Any other tool

AGENTS.md

project root (emerging universal convention)

That's it. No npm install, no config, no login. Works with any AI tool that reads project-level context files — which is most of them in 2026.

Verify it's actually loaded (do this once)

The file install has one silent failure mode: if the filename is wrong, your AI won't read it — and you won't know until you get generic UI back. Confirm in 10 seconds by asking your AI:

"What design system rules are you following in this project? List the token categories and components by name."

If it mentions UXonFly, the token categories (colors, typography, spacing, shape, shadows), or components like button / input / card — it's loaded. If it says "I don't see any design system" or invents generic answers, the file isn't being read. Check the filename and location against the table above.

If you want a zero-ambiguity install where the AI is forced to load rules before generating UI, use the MCP server below instead.


Install option 2 — MCP server (power users)

If you want your AI to invoke specific tools (get_component, get_ux_pattern, get_tokens, …) on demand instead of reading the whole file every prompt, run UXonFly as a local MCP server.

Published to npm as uxonfly-mcp. MCP is a standard protocol — any MCP-compatible AI tool can load this server with the same command: npx -y uxonfly-mcp. Only the config location varies per tool. Snippets for the most common tools below.

Claude Code

claude mcp add uxonfly -- npx -y uxonfly-mcp

Cursor

Add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "uxonfly": {
      "command": "npx",
      "args": ["-y", "uxonfly-mcp"]
    }
  }
}

Claude Desktop

On macOS, edit ~/Library/Application Support/Claude/claude_desktop_config.json. On Windows, edit %APPDATA%\Claude\claude_desktop_config.json.

{
  "mcpServers": {
    "uxonfly": {
      "command": "npx",
      "args": ["-y", "uxonfly-mcp"]
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "uxonfly": {
      "command": "npx",
      "args": ["-y", "uxonfly-mcp"]
    }
  }
}

VS Code (with MCP support)

Add to .vscode/mcp.json in your project root:

{
  "servers": {
    "uxonfly": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "uxonfly-mcp"]
    }
  }
}

Zed

Add to ~/.config/zed/settings.json under context_servers:

{
  "context_servers": {
    "uxonfly": {
      "command": {
        "path": "npx",
        "args": ["-y", "uxonfly-mcp"]
      }
    }
  }
}

Any other MCP-compatible tool

MCP is a standard protocol. The command is always the same across tools:

npx -y uxonfly-mcp

Gemini CLI, Google Antigravity, JetBrains Junie, and a growing list of other editors and agents support MCP. Consult your tool's documentation for where to register MCP servers, then use the command above.

Tools without MCP support

For tools that don't speak MCP yet (Aider, basic terminal LLM CLIs, older editors), use Install option 1 above. The file install works with any AI that reads project context files.

Install from source (contributors)

If you want to run the MCP server from a local clone — for example, to modify the base uxonfly.md or the server code — build from source and point your AI tool at the compiled binary:

git clone https://github.com/Phanikondru/uxonfly-mcp.git
cd uxonfly-mcp
npm install
npm run build

Then in your MCP config, replace npx -y uxonfly-mcp with node /absolute/path/to/uxonfly-mcp/build/index.js.

Available tools

Tool

When AI calls it

Returns

get_design_system

Before any UI task

Full system

get_component

Before generating a component

Component spec

get_tokens

Before writing CSS / Tailwind

Tokens

get_ux_pattern

Before any UX decision

Pattern

get_flow

Before any multi-step flow

Flow spec

get_copy_rules

Before writing interface copy

Copy rules

get_rules

Before layout / IA decisions

Principles

Each tool description begins with ALWAYS call… so your AI invokes them proactively before generating UI code (the trick: the tool description itself is the instruction).

Custom rulebook

Point the MCP server at your own version of uxonfly.md via the UXONFLY_MD_PATH environment variable:

UXONFLY_MD_PATH=/absolute/path/to/your/uxonfly.md npx -y uxonfly-mcp

Local development

git clone https://github.com/Phanikondru/uxonfly-mcp.git
cd uxonfly-mcp
npm install
npm run dev    # run with tsx
npm run build  # compile to ./build
npm start      # run the compiled server

Contributing

The whole point of this project: one designer's opinions become a shared standard the community keeps improving. PRs welcome.

How to help:

  • Open an issue if you think a rule is wrong, missing, or unclear

  • Send a PR for new components, patterns, or principles you've battle-tested

  • Add real-world usage examples (apps you've built with uxonfly.md)

Goal: make UXonFly better than any one designer's taste alone.


About

Built by Phanindhra Kondru — designer with 4 years of production UX experience, building in public.

Just trying to build good things. Design + AI + Code.

UXonFly was built with Gemini, Cursor, and the rules in uxonfly.md itself — the same system that ships with this package. The tool eats its own dog food.

Connect


License

MIT. Use it commercially. Fork it. Modify it. Just keep the LICENSE file.

Available Tools

7 tools
get_componentGet Component SpecA

ALWAYS call this before generating any UI component (button, input, card, badge, modal, toast, etc.). Returns the full component spec: sizes, variants, states, and UX rules. Never improvise component specs.

Inputs: name (required).

get_copy_rulesGet Copy RulesA

ALWAYS call this before writing any interface copy — error messages, CTAs, empty-state text, tooltips, placeholders, labels. Returns tone, voice, tense, and format rules. Never write copy without checking these.

Inputs: no named parameters.

get_design_systemGet UXonFly Design SystemA

ALWAYS call this tool before writing any UI code. Returns the complete 3-layer UXonFly design system for this project: visual language (tokens, components, layout), UX patterns (navigation, modals, forms, loading, empty states, errors, destructive actions, tables, notifications), and product principles. Do not invent design decisions — follow what this tool returns.

Inputs: no named parameters.

get_flowGet UX FlowA

ALWAYS call this before building any multi-step flow. Returns a complete flow spec: all screens, states, transitions, success and error handling. Never design flows from scratch.

Inputs: flow_name (required).

get_rulesGet Product PrinciplesA

ALWAYS call this before making layout or information architecture decisions. Returns all product and design principles for this project: progressive disclosure, primary-action rules, error prevention, copy-driven UI, keyboard navigation, and accessibility.

Inputs: no named parameters.

get_tokensGet Design TokensA

ALWAYS call this before writing CSS, Tailwind config, CSS variables, or any styling code. Returns the complete token set: colors (with all semantic variants), typography scale, spacing scale, border radius, and shadows. Never use values outside these tokens.

Inputs: no named parameters.

get_ux_patternGet UX PatternA

ALWAYS call this before making any UX decision. Covers destructive actions, forms, modals, loading states, empty states, errors, navigation, data tables, and notifications. Returns the correct pattern plus implementation guidance. Never guess at UX decisions.

Inputs: context (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 7 tools

    Disambiguation3/5

    The narrower tools (get_tokens, get_component, get_ux_pattern, get_rules) each target a distinct slice, but get_design_system explicitly claims to return tokens, components, UX patterns, and principles — i.e. the union of the other four. That overlap makes it unclear whether the aggregate tool supersedes the specific ones or is a required first step. Additionally, every tool description opens with 'ALWAYS call this before X,' giving the agent no priority ordering and creating competing mandates.

    Naming Consistency5/5

    Every tool follows the same get_<noun> snake_case pattern: get_design_system, get_component, get_tokens, get_ux_pattern, get_flow, get_copy_rules, get_rules. The noun phrases are readable and predictably scoped.

    Tool Count5/5

    Seven tools is well within a healthy range and each maps to a coherent layer of a design-system reference (tokens, components, patterns, flows, copy, principles). No obvious filler or redundant tool beyond the aggregate get_design_system.

    Completeness4/5

    The surface covers the full design-decision lifecycle — tokens, component specs, UX patterns, multi-step flows, copy rules, and product principles — with no dead ends for the stated read-only purpose. The one gap is discovery: there is no list_components or search tool, so an agent must already know component names to call get_component, though get_design_system partially compensates.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to query a workspace's design system before writing UI and validate generated code against the same system afterward, using configurable token and component sources.
      13 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      A design harness for AI coding agents. Better Design gives an agent design systems, UI and UX principles, icons and UI review: it finds or creates a design system that fits the product and installs its components, explains how sign-up, forms and onboarding should work, and reviews finished screens for readability, accessibility and unclear copy.
      48
      603
      MIT