{"id":19214954,"url":"https://github.com/datum-cloud/datum-ui","last_synced_at":"2026-05-11T09:55:53.688Z","repository":{"id":340199459,"uuid":"1139882611","full_name":"datum-cloud/datum-ui","owner":"datum-cloud","description":"Datum Cloud's design system and React component library.","archived":false,"fork":false,"pushed_at":"2026-05-07T05:45:59.000Z","size":1886,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T07:38:24.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.datum.net","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/datum-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2026-01-22T14:43:26.000Z","updated_at":"2026-04-23T02:55:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"1e921732-3c4f-457f-8c9c-b7afc2e0d9f2","html_url":"https://github.com/datum-cloud/datum-ui","commit_stats":null,"previous_names":["datum-cloud/datum-ui"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/datum-cloud/datum-ui","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datum-cloud%2Fdatum-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datum-cloud%2Fdatum-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datum-cloud%2Fdatum-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datum-cloud%2Fdatum-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datum-cloud","download_url":"https://codeload.github.com/datum-cloud/datum-ui/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datum-cloud%2Fdatum-ui/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32889971,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["graphql","nextjs","typescript","ui"],"created_at":"2024-11-09T14:11:59.783Z","updated_at":"2026-05-11T09:55:53.643Z","avatar_url":"https://github.com/datum-cloud.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg\n    width=\"64px\"\n    src=\"assets/logo.png\"\n    style=\"border: 1px solid #e5e7eb; border-radius: 0.5rem;\"\n  /\u003e\n\n  \u003ch1 align=\"center\"\u003eDatum UI\u003c/h1\u003e\n\n  \u003cp align=\"center\"\u003e\n    Datum Cloud Design System \u0026 Component Library\n  \u003c/p\u003e\n\u003c/p\u003e\n\n---\n\n## About\n\nDatum UI is Datum Cloud's design system and React component library. It provides themed, composable components built on [shadcn/ui](https://ui.shadcn.com), [Radix UI](https://www.radix-ui.com), and [Tailwind CSS v4](https://tailwindcss.com) with a Figma-driven design token pipeline.\n\n### Key Features\n\n- **50+ Components** — Buttons, forms, data tables, dialogs, maps, typography, navigation, and more\n- **Two-Layer Architecture** — shadcn/Radix primitives (base) + Datum-customized components (features)\n- **Compound Form System** — Built on Conform.js and Zod with validation, field arrays, and multi-step support\n- **Interactive Maps** — SSR-safe Leaflet integration with drawing tools, layers, clustering, and fullscreen\n- **Task Queue** — Background task engine with progress UI, retry logic, and summary dialogs\n- **Design Token Pipeline** — Figma tokens → purpose tokens → theme classes\n- **Dark Mode** — Built-in theme provider with system preference detection\n- **TypeScript** — Fully typed with exported types for all components\n\n### Built With\n\n- **React 19** — Latest React with server component support\n- **Tailwind CSS v4** — Utility-first CSS framework\n- **Radix UI** — Accessible, unstyled primitives\n- **shadcn/ui** — Component foundation layer\n- **CVA** — Class-variance-authority for variant-based component APIs\n- **Conform.js + Zod** — Form state management and schema validation\n\n---\n\n## Monorepo Structure\n\n```\npackages/\n  datum-ui/        # Component library (@datum-cloud/datum-ui)\n  shadcn/          # shadcn/ui primitives (@repo/shadcn)\n  config/          # Shared config (TypeScript, Tailwind, ESLint)\napps/\n  docs/            # Fumadocs documentation site\n  storybook/       # Storybook component explorer\n```\n\n| Package | Description | npm |\n|---|---|---|\n| `@datum-cloud/datum-ui` | Published component library | [![npm](https://img.shields.io/npm/v/@datum-cloud/datum-ui)](https://www.npmjs.com/package/@datum-cloud/datum-ui) |\n| `@repo/shadcn` | Internal shadcn/ui primitives | — |\n| `@repo/config` | Shared TypeScript, Tailwind, and ESLint config | — |\n\n---\n\n## Prerequisites\n\n- **Node.js \u003e= 24** — Required for ESM module resolution with pnpm's strict dependency linking\n- **pnpm \u003e= 10** — Monorepo package manager\n\n## Quick Start (Development)\n\n```bash\n# Clone and install\ngit clone https://github.com/datum-cloud/datum-ui.git\ncd datum-ui\npnpm install\n\n# Start Storybook (component explorer)\npnpm --filter @repo/storybook dev\n\n# Start documentation site\npnpm --filter @repo/docs dev\n\n# Build the component library\npnpm --filter @datum-cloud/datum-ui build\n\n# Run all checks\npnpm --filter @datum-cloud/datum-ui typecheck\npnpm --filter @datum-cloud/datum-ui lint\npnpm --filter @datum-cloud/datum-ui test\n```\n\n\u003e **Note:** Apps auto-build `@datum-cloud/datum-ui` before starting via a `predev` script.\n\n---\n\n## Usage (Consumers)\n\nInstall the package:\n\n```bash\nnpm install @datum-cloud/datum-ui\n# or\nyarn add @datum-cloud/datum-ui\n# or\npnpm add @datum-cloud/datum-ui\n# or\nbun add @datum-cloud/datum-ui\n```\n\nAdd datum-ui styles to your CSS file, after Tailwind:\n\n```css\n@import 'tailwindcss';\n@import '@datum-cloud/datum-ui/styles';\n```\n\nWrap your app with `ThemeProvider` for light/dark/system switching:\n\n```tsx\nimport { ThemeProvider } from '@datum-cloud/datum-ui/theme'\nimport { Button, Input } from '@datum-cloud/datum-ui'\n\nfunction App() {\n  return (\n    \u003cThemeProvider attribute=\"class\" defaultTheme=\"system\" enableSystem\u003e\n      \u003cInput placeholder=\"Enter your name\" /\u003e\n      \u003cButton type=\"primary\" theme=\"solid\"\u003e\n        Submit\n      \u003c/Button\u003e\n    \u003c/ThemeProvider\u003e\n  )\n}\n```\n\n### Entry Points\n\n| Import Path | Description |\n|---|---|\n| `@datum-cloud/datum-ui` | All components, hooks, and utilities |\n| `@datum-cloud/datum-ui/styles` | CSS (fonts, tokens, theme variables, component styles) |\n| `@datum-cloud/datum-ui/theme` | `ThemeProvider`, `useTheme` |\n| `@datum-cloud/datum-ui/hooks` | `useCopyToClipboard`, `useDebounce` |\n| `@datum-cloud/datum-ui/icons` | `CloseIcon`, `IconWrapper`, `SpinnerIcon` |\n| `@datum-cloud/datum-ui/utils` | `cn` (className merge utility) |\n\n### Peer Dependencies\n\nAll peer dependencies are **optional** — install only what you use.\n\n\u003e Replace `npm install` with `yarn add`, `pnpm add`, or `bun add` for your package manager.\n\n```bash\n# Core (required)\nnpm install react react-dom\n\n# Forms\nnpm install @conform-to/react @conform-to/zod zod\n\n# Maps\nnpm install leaflet react-leaflet leaflet-draw leaflet.fullscreen leaflet.markercluster react-leaflet-markercluster\n\n# Charts\nnpm install recharts\n\n# Date pickers\nnpm install react-day-picker date-fns date-fns-tz\n\n# Animations\nnpm install motion\n```\n\nSee the full peer dependency list in the [package README](packages/datum-ui/README.md).\n\n---\n\n## Component Overview\n\n### Base Components (30)\n\nThin wrappers around shadcn/Radix primitives with Datum styling.\n\n`Alert` · `Badge` · `Breadcrumb` · `Button` · `ButtonGroup` · `Calendar` · `Card` · `Chart` · `Checkbox` · `Collapsible` · `Command` · `Dialog` · `HoverCard` · `Input` · `InputGroup` · `Label` · `Map` · `PlaceAutocomplete` · `Popover` · `RadioGroup` · `Select` · `Separator` · `Sheet` · `Skeleton` · `Spinner` · `Switch` · `Table` · `Tabs` · `Textarea` · `Tooltip` · `Typography` · `VisuallyHidden`\n\n### Feature Components (18)\n\nComplex, fully-customized components with significant business logic.\n\n`Autocomplete` · `AvatarStack` · `CalendarDatePicker` · `Dropdown` · `Dropzone` · `EmptyContent` · `FileInputButton` · `Form` · `Grid` · `InputNumber` · `InputWithAddons` · `LoaderOverlay` · `MoreActions` · `NProgress` · `PageTitle` · `Sidebar` · `Stepper` · `TagInput` · `TaskQueue` · `TimeRangePicker` · `Toast`\n\nFor the complete component API with props, sub-components, and usage examples, see the [package README](packages/datum-ui/README.md).\n\n---\n\n## Documentation\n\n- **[Package README](packages/datum-ui/README.md)** — Full component catalog, API reference, and usage examples\n- **[Documentation Site](apps/docs/)** — Component docs, guides, and live previews\n- **[Storybook](apps/storybook/)** — Interactive component explorer\n\n---\n\n## Contributing\n\n```bash\n# 1. Create a feature branch\ngit checkout -b feat/my-feature\n\n# 2. Make changes and verify\npnpm --filter @datum-cloud/datum-ui build\npnpm --filter @datum-cloud/datum-ui typecheck\npnpm --filter @datum-cloud/datum-ui lint\npnpm --filter @datum-cloud/datum-ui test\n\n# 3. Add a changeset to describe your changes\npnpm changeset\n\n# Follow the prompts:\n# - Select packages that changed (usually @datum-cloud/datum-ui)\n# - Choose version bump type (patch/minor/major)\n# - Write a summary of changes (becomes changelog entry)\n\n# 4. Commit and push (include the changeset file)\ngit add .\ngit commit -m \"feat: description of changes\"\ngit push -u origin feat/my-feature\n```\n\n### Release Workflow\n\nThis project uses [Changesets](https://github.com/changesets/changesets) for version management and releases.\n\n**For Contributors:**\n\nWhen making changes, add a changeset to document what changed:\n\n```bash\npnpm changeset\n```\n\nChoose the version bump type:\n- **patch** — Bug fixes, minor updates (`0.3.2` → `0.3.3`)\n- **minor** — New features, backward-compatible (`0.3.2` → `0.4.0`)\n- **major** — Breaking changes (`0.3.2` → `1.0.0`)\n\nCommit the generated `.changeset/*.md` file with your PR.\n\n**For Maintainers:**\n\n1. After PRs are merged, a \"Version Packages\" PR is automatically created\n2. Review the PR to see version bumps and changelog\n3. When ready to release:\n   - Merge the \"Version Packages\" PR\n   - Create a [GitHub Release](https://github.com/datum-cloud/datum-ui/releases)\n   - GitHub Actions automatically publishes to npm\n\n**Renovate PRs:**\nDependency update PRs from Renovate automatically include changesets — no manual action needed.\n\nFor detailed workflow documentation, see [.github/RELEASE_WORKFLOW.md](.github/RELEASE_WORKFLOW.md).\n\n## License\n\nDatum UI is licensed under the [MIT License](https://github.com/lmsqueezy/wedges/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatum-cloud%2Fdatum-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatum-cloud%2Fdatum-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatum-cloud%2Fdatum-ui/lists"}