GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - persianlabs/ui: A copy-paste component library, RTL-first for Persian interfaces.

BranchesTags
Open more actions menu

Latest commit

 

History

483 Commits
483 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents/skills/emil-design-eng
.agents/skills/emil-design-eng
 
 
.claude
.claude
 
 
.github
.github
 
 
apps/web
apps/web
 
 
docs
docs
 
 
packages
packages
 
 
scripts
scripts
 
 
templates
templates
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
README.md
README.md
 
 
bun.lock
bun.lock
 
 
package.json
package.json
 
 
skills-lock.json
skills-lock.json
 
 
tsconfig.json
tsconfig.json
 
 
turbo.json
turbo.json
 
 

Repository files navigation

PersianLabs/ui logo

PersianLabs/ui

RTL-first, copy-paste components for Persian interfaces. Copy the source, own the code.

GitHub Stars Follow taymakz on X shadcn compatible

Docs · Components · llms.txt

PersianLabs/ui preview

What is PersianLabs/ui?

PersianLabs/ui is an RTL-first component registry for Persian interfaces — logical properties and mirrored icons by default, with full LTR support too. It's built on Base UI and Tailwind v4, and ships as plain React source through a shadcn-compatible registry, not an npm package. There's no version to chase — components land straight in your codebase, so you can read, extend, and refactor every line.

The registry currently covers 75+ components, 10 utilities, and 6 hooks, split across two kinds of coverage:

  • Most of the shadcn/Base UI catalog — Accordion, Dialog, Command, Select, Slider, Tabs, Toast, and most everything else you'd expect from a general-purpose registry, RTL-converted where it matters (directional spacing, mirrored icons, logical properties) and left untouched where it doesn't. Data Table is not shipped as an installable component yet — its docs page is a guide linking out to shadcn's own in the meantime.
  • Iranian/Persian-specific pieces you won't find upstream — Bank Input and the Iranian Bank utility (card/Shaba validation and bank detection), City Selector (province → city), Calendar/Date Picker/Time Picker on the Jalali calendar, Toman Icon, Receipt Printer, QR Code, Mobile Number Input, and validators/formatters for National ID, Postal Code, Persian Date, Persian Holidays, Persian Slug, and Persian Reshape (fixes Persian text rendering in next/og OG images, which don't shape Arabic/Persian script on their own).

Install a component

Open any component page and copy the install command.

npx shadcn@latest add @persianlabsui/city-selector

The full URL form works too:

npx shadcn@latest add https://ui.persian-labs.ir/r/city-selector.json

You can also copy the source directly from the component page.

For AI agents

PersianLabs/ui exposes a static endpoint that coding agents can read without scraping the UI.

https://ui.persian-labs.ir/llms.txt

Run locally

bun install
bun run dev

Open http://localhost:3000.

Checks

Run these before pushing — resolve any errors and include Prettier's formatting changes in the same commit.

bun run typecheck
bun run lint
bun run format
bun run build

Project structure

This is a Turborepo monorepo (bun workspaces). Every component and utility is maintained in two parallel copies, kept in sync by design:

Path What it is
packages/ui/src/components, packages/ui/src/lib The internal @workspace/ui package — used by apps/web itself for the docs site's own previews and examples.
apps/web/registry/base/ui, apps/web/registry/base/lib The consumer-ready source — what registry.json points at, what shadcn build compiles into apps/web/public/r/*.json, and what actually ships when someone runs the install command.
apps/web/registry.json The registry manifest — source of truth for what's installable and its dependency graph.
apps/web/app/docs The docs site (Next.js 16) — component pages, live previews, and the registry JSON server.

Contributing

PRs are welcome. See CLAUDE.md for the full checklist on adding or editing a registry component end-to-end (both source copies, registry entry, docs page, examples, RTL section, credits), naming conventions, and repo-specific pitfalls worth knowing before you start.

About

A copy-paste component library, RTL-first for Persian interfaces.

ui.persian-labs.ir/

Topics

motionnextjspersianpersian-uishadcn-uitailwidcssuiui-componentsui-design

Resources

Readme
Activity
Custom properties

Stars

146 stars

Watchers

2 watching

Forks

10 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.