Dig: the Persian RTL design system with an MCP server
155 accessible right-to-left components and 263 ready-made pages for React and Tailwind CSS, with Persian digits, the Jalali calendar and Iranian form patterns. A public MCP server lets AI coding agents build Persian interfaces with Dig instead of guessing LTR defaults.
The full documentation is in Persian. نسخهٔ فارسی
What you get
Every component is built for right-to-left layout with logical properties and Persian typography (IRANSansX, Vazirmatn, IRANYekan). Not an LTR kit with a dir flip.
Jalali (Shamsi) calendar and date pickers, Persian digits, Toman/Rial formatting, relative time, Iranian national ID and mobile validation, bank logos and license plates.
Keyboard navigation, focus management and ARIA roles are implemented in-house with no external primitive dependency. Generated brand themes are contrast-checked.
The digdesign CLI copies each component and its dependencies into your project, React, Vue, Svelte or Angular, so you can read and change everything.
Color, type, spacing, radius and shadow tokens with light and dark themes. A single brand color generates a full, contrast-safe theme.
Full page blocks such as sign-in, dashboards, checkout, money transfer and order tracking, built only from Dig components and type-checked.
MCP server for AI coding agents
One public endpoint over Streamable HTTP, no account or token. Add it to Claude Code with a single command, or to any MCP client config:
claude mcp add --transport http dig https://docs.digdesign.ir/api/mcp{
"mcpServers": {
"dig": { "url": "https://docs.digdesign.ir/api/mcp" }
}
}search_components / list_components: find the right component, even from a whole-page request like a login pageget_component_demo / get_component_api: real usage snippets plus the allowed props and valueslist_blocks / get_block: start a page from a ready-made block (paged, filterable list; install as `dig add name ...`) with an adaptation checklistget_page_patterns: layout, spacing and RTL rules so generated pages stay consistentget_prompts: ready task recipes such as a page from a block or an RTL fix, each naming the tools to callsetup_project: one-step project setup: the agent instructions file, DESIGN.md, brand.css and, for Claude Code, the official Dig skill, with your font and brand already decided. platform=android sets up a Jetpack Compose project with DigFont.ktget_tokens / customize_theme / get_design_md: design tokens, a brand theme and a DESIGN.md for your repocheck_contrast / review_code: WCAG contrast checks and an RTL and accessibility review of generated code, per file with line numbers (`dig review <paths>` reads local files)
Agents without MCP can read /llms.txt.
Install
npx digdesign@latest init
npx digdesign@latest add button input date-pickerFAQ
- Is there a Persian design system with MCP support?
- Yes. Dig ships a public MCP server at https://docs.digdesign.ir/api/mcp (Streamable HTTP, no API key). Coding agents can search Dig's Persian RTL components, fetch their source and demos, start from page blocks, and review the result.
- Which AI coding tools work with the Dig MCP server?
- It is tested with Claude Code, OpenAI Codex, Gemini CLI and VS Code. Any MCP client that supports remote HTTP servers, such as Cursor, Windsurf and Cline, should work with its own config key.
- Does Dig support the Jalali (Shamsi) calendar?
- Yes. The calendar, date field and date picker work with both the Jalali and Gregorian calendars, and formatting helpers output Persian digits.
- Which frameworks are supported?
- React with Tailwind CSS is the primary target, with ports for Vue, Svelte and Angular, plus a native Android SDK built with Jetpack Compose that reads the same design tokens.