Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marigold-ui/marigold

Design System based on react-aria and Tailwind CSS
https://github.com/marigold-ui/marigold

a11y aria component-library design-system design-tokens react react-aria style tailwind tailwindcss theme ui

Last synced: 3 months ago
JSON representation

Design System based on react-aria and Tailwind CSS

Awesome Lists containing this project

README

        


type_logo





[![ci][ci-badge]][ci] [![coverage][coverage-badge]][coverage] [![MIT License][license-badge]][license] [![version][version-badge]][package]

[![Open in Visual Studio Code](https://shields.io/badge/-Open%20in%20Visual%20Studio%20Code-blue?logo=visualstudiocode&style=for-the-badge)](https://open.vscode.dev/marigold-ui/marigold)

# Marigold

React implementation of the Marigold Design System based on [react-aria](https://react-spectrum.adobe.com/react-aria/) and [Tailwind CSS](https://tailwindcss.com/).

## Installation πŸ”§

```sh
# with pnpm
pnpm add @marigold/components

# with npm
npm install @marigold/components --save

# with yarn
yarn add @marigold/components

# for development:
git clone https://github.com/marigold-ui/marigold.git
cd marigold

# with pnpm
pnpm install

# with npm
npm install

# with yarn
yarn install
```

If you want to use a marigold theme you have to install them seperatly like:

```sh
# with pnpm
pnpm add @marigold/theme-b2b

# with npm
npm install @marigold/theme-b2b --save

# with yarn
yarn add @marigold/theme-b2b
```

## Usage πŸ’‘

Use the styles for your component from a global `theme` object. To provide the theme in context, wrap your component into the `MarigoldProvider`.

```
// basic usage
import React from 'react'
import { MarigoldProvider, Text } from '@marigold/components'
import b2bTheme from '@marigold/theme-b2b'

Lorem ipsum

```

## For Developers

### 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` and navigate to the new folder `cd marigold`. Install the packages using `pnpm install` command in the root and use `pnpm watch` to start storybook. Open [localhost:1337](http://localhost:1337) to see the components in storybook.
Navigate to the documentation `cd docs` and start the development server `pnpm dev`, which opens the documentation site on [localhost:3000](http://localhost:3000).
When working on the components, use the following commands for development.

- Coverage: `pnpm test:coverage`
- Linting: `pnpm lint`
- Test: `pnpm test` (with optional `--watch`)
- Type checking: `pnpm typecheck`

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):



Sebastian Sebald
Sebastian Sebald

πŸ’» 🎨 πŸ“– πŸ‘€
sarahgm
sarahgm

πŸ’» 🎨 πŸ“– πŸ‘€
Benedikt Grether
Benedikt Grether

πŸ’» 🎨 πŸ“– πŸ‘€
viktoria-schwarz
viktoria-schwarz

πŸ’» πŸ“– πŸš‡
ti10le
ti10le

πŸ’» πŸ“– πŸš‡


Toshi
Toshi

πŸ’» πŸ“– 🎨
Julian Thiel
Julian Thiel

πŸ“–
johannaracky
johannaracky

πŸ“–
Ikko Ashimine
Ikko Ashimine

πŸ“–
andres-dediego2
andres-dediego2

🎨


snragund
snragund

πŸ“–
Michael Partheil
Michael Partheil

πŸ€”
lauraNawrotzki
lauraNawrotzki

πŸ€”
Osama Abdul Latif
Osama Abdul Latif

πŸ’» 🎨 🚧 ⚠️ πŸ“–
Marcel KΓΆhler
Marcel KΓΆhler

πŸ“– πŸ’» 🎨 πŸ’‘ ⚠️

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

[ci]: https://github.com/marigold-ui/marigold/actions/workflows/build.yml
[ci-badge]: https://github.com/marigold-ui/marigold/actions/workflows/build.yml/badge.svg
[license]: https://github.com/marigold-ui/marigold/blob/master/LICENSE
[license-badge]: https://img.shields.io/github/license/marigold-ui/marigold?style=flat-square
[package]: https://www.npmjs.com/package/@marigold/components
[version-badge]: https://img.shields.io/npm/v/@marigold/components?style=flat-square
[coverage]: https://codecov.io/github/marigold-ui/marigold/branch/main
[coverage-badge]: https://codecov.io/github/marigold-ui/marigold/branch/main/graph/badge.svg?token=YIIcKX7TZu