Skip to content
Proyek

Tentang

Design System based on react-aria and Tailwind CSS

Pengembangan web dan aplikasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

type_logo



ci MIT License version

Open in Visual Studio Code

Marigold

React implementation of the Marigold Design System based on react-aria and Tailwind CSS.

Release notes

Check out our latest release notes

Documentation

Do you want to start using the Marigold Design System?

Then get started in the Marigold documentation.

Techstack

React React Aria Vitest Storybook Next.js TypeScript

Local Development

Setup & Usage

Open a terminal and navigate to a folder of your choice:

  • clone the project git clone https://github.com/marigold-ui/marigold.git
  • navigate to the new folder cd marigold
  • install the packages using pnpm install

Storybook

To start storybook use the following command in the root:

Marigold Documentation

To start documentation follow these steps:

  • navigate to the documentation cd docs
  • start the development server pnpm dev
  • open localhost:3000.

Command overview

Command Description
pnpm start Start the documentation app in dev mode.
pnpm sb Start Storybook using the components and system source folders.
pnpm build Build components and theme packages.
pnpm build:docs Build the documentation app.
pnpm build:sb Build the Storybook configuration.
pnpm build:themes Build all theme packages.
pnpm registry Run the documentation registry task.
pnpm test Run tests with Vitest.
pnpm test:coverage Run tests with coverage.
pnpm test:sb Run Storybook component tests.
pnpm clean Remove node_modules, dist, .next, .turbo, coverage, and storybook-static directories.
pnpm clean:build Remove dist folders and coverage reports.
pnpm lint Lint the repository with ESLint.
pnpm lint:prose Lint docs prose with Vale.
pnpm format Format files with Prettier.
pnpm format:check Check formatting without writing (what CI runs).
pnpm typecheck Run TypeScript type checking (no emit). Same as typecheck:only.
pnpm typecheck:only Run TypeScript type checking (no emit).
pnpm changeset Run the Changesets CLI.

Releasing

Releases are published by CI, not locally. .github/workflows/release.yml runs changesets/action on every push to main: it either opens a "release: version packages" PR that consumes the pending changesets, or, once that PR is merged, publishes the bumped packages to npm.

So the only thing you do by hand is add a changeset with pnpm changeset when your change should cause a version bump.

Prereleases

Prereleases use changesets pre mode, which lives on main (there is no separate release branch). The mode is recorded in .changeset/pre.json, and pnpm changeset publish derives the npm dist-tag from its tag field, so while pre mode is active, everything publishes to that tag instead of latest.

pnpm changeset pre enter rc   # start publishing 18.0.0-rc.x to the "rc" dist-tag
pnpm changeset pre exit       # go back to regular releases on "latest"

Two things worth knowing:

  • The prerelease counter comes from the current version in package.json, not from the tag. Switching channel mid-prerelease continues the count (18.0.0-beta.4 → 18.0.0-rc.5) rather than resetting it.
  • Switching channel leaves the old dist-tag pinned at its last version. Consumers on the old tag keep resolving a stale version without any error, so repoint (npm dist-tag add <pkg>@<new-version> <old-tag>) or remove (npm dist-tag rm <pkg> <old-tag>) it per package after the first publish on the new channel.

Jelajahi proyek terkait

Memuat…