{"id":35003330,"url":"https://github.com/awethemes/margin-ui","last_synced_at":"2026-04-26T17:31:19.784Z","repository":{"id":328138507,"uuid":"1113621642","full_name":"awethemes/margin-ui","owner":"awethemes","description":"A modern, open-source UI component library built on Base UI.","archived":false,"fork":false,"pushed_at":"2025-12-11T17:55:41.000Z","size":470,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-28T18:00:01.523Z","etag":null,"topics":["base-ui","shadcn","ui"],"latest_commit_sha":null,"homepage":"https://margin-ui.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/awethemes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-10T08:27:41.000Z","updated_at":"2025-12-19T14:18:13.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/awethemes/margin-ui","commit_stats":null,"previous_names":["awethemes/margin-ui"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/awethemes/margin-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awethemes%2Fmargin-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awethemes%2Fmargin-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awethemes%2Fmargin-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awethemes%2Fmargin-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awethemes","download_url":"https://codeload.github.com/awethemes/margin-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awethemes%2Fmargin-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32307010,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T17:23:19.671Z","status":"ssl_error","status_checked_at":"2026-04-26T17:23:19.195Z","response_time":129,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["base-ui","shadcn","ui"],"created_at":"2025-12-27T04:12:16.908Z","updated_at":"2026-04-26T17:31:19.771Z","avatar_url":"https://github.com/awethemes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Margin-UI\n\nA modern, open-source UI component library built on [Base UI](https://base-ui.com/). Built for developers and AI.\n\n**Margin-UI** is a collection of beautifully designed, accessible, and composable components for React apps. Styled with [Tailwind CSS v4](https://tailwindcss.com/), it's designed for you to copy, paste, and own.\n\n## Why Margin-UI?\n\n- **Built on Base UI**: Powerful, unstyled primitives with robust accessibility\n- **Copy \u0026 Paste**: Own your code - no package dependencies\n- **shadcn/ui Compatible**: Similar CLI and workflow, but with Base UI instead of Radix\n- **AI-Friendly**: Documentation and code structure optimized for LLMs\n\n\u003e **Note**: Margin-UI is in early development. Both this library and Base UI are evolving, so expect breaking changes.\n\n## Quick Start\n\n### Prerequisites\n\n- React 18+ project\n- Tailwind CSS v4\n\n### Install All Components\n\n```bash\n# Install all UI components\nnpx shadcn@latest add @margin-ui/ui\n\n# Recommended: with optimized color tokens\nnpx shadcn@latest add @margin-ui/ui @margin-ui/colors-zinc\n```\n\n### Install Individual Components\n\nEach component page provides a command to add it individually:\n\n```bash\nnpx shadcn@latest add @margin-ui/button\nnpx shadcn@latest add @margin-ui/dialog\nnpx shadcn@latest add @margin-ui/accordion\n```\n\n### Manual Installation\n\n1. Find a component on the [documentation site](https://margin-ui.com)\n2. Copy the code from the **Code** tab\n3. Create a file in your project (e.g., `components/ui/button.tsx`)\n4. Paste the code and install listed dependencies\n5. Import and use in your app\n\n## Development\n\n```bash\n# Install dependencies\npnpm install\n\n# Start dev server (runs on port 4000)\npnpm dev\n\n# Type check\npnpm types:check\n\n# Lint\npnpm lint\n\n# Build for production\npnpm build\n\n# Build registry (after adding/modifying components)\npnpm registry:build\n```\n\n## Project Structure\n\n```\nmargin-ui/\n├── src/\n│   ├── registry/          # Component registry\n│   │   ├── default/\n│   │   │   ├── ui/        # UI components\n│   │   │   ├── lib/       # Utilities\n│   │   │   └── examples/  # Component examples\n│   │   ├── registry.ts    # Registry index\n│   │   ├── registry.ui.ts # UI component definitions\n│   │   └── __index__.tsx  # Generated registry index\n│   ├── routes/            # TanStack Start routes\n│   ├── components/        # Documentation components\n│   └── lib/               # Shared utilities\n├── content/\n│   └── docs/              # MDX documentation\n├── scripts/\n│   └── build-registry.mts # Registry build script\n└── public/\n    └── r/                 # Published registry files\n```\n\n## Architecture\n\n### Component Layers\n\n1. **Primitives** - Low-level, unstyled Base UI components with full accessibility\n2. **Particles** - Pre-assembled components combining multiple primitives\n3. **Atoms** - API-enhanced particles with backend integration\n\n### Registry System\n\nComponents are registered in `src/registry/registry.*.ts` files with:\n- Dependencies (npm packages)\n- Registry dependencies (other components)\n- File paths and types\n- CSS variable definitions\n\nRun `pnpm registry:build` after changes to generate:\n- `src/registry/__index__.tsx` - Component index\n- `registry.json` - Metadata for CLI\n- `public/r/` - Published registry\n\n## Tech Stack\n\n- **Framework**: React 19 + TanStack Start\n- **Styling**: Tailwind CSS v4\n- **Components**: @base-ui-components/react\n- **Documentation**: Fumadocs (MDX)\n- **Build**: Vite 7 + Nitro\n- **Package Manager**: pnpm 10\n\n## Contributing\n\nWe welcome contributions! Whether it's:\n- Bug reports\n- New components\n- Documentation improvements\n- Feature requests\n\nCheck our [contribution guidelines](https://github.com/awethemes/margin-ui) to get started.\n\n## Migration from Radix UI\n\nComing from shadcn/ui or another Radix-based library? Many components include migration guides and API comparisons to help you transition smoothly.\n\n## License\n\nOpen source under the MIT license. See LICENSE for details.\n\n## Links\n\n- [Documentation](https://margin-ui.com)\n- [GitHub](https://github.com/awethemes/margin-ui)\n- [Base UI](https://base-ui.com)\n\n---\n\nBuilt with ❤️ by the community\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawethemes%2Fmargin-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawethemes%2Fmargin-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawethemes%2Fmargin-ui/lists"}