marigold-ui / marigold

Design System based on react-aria and Tailwind CSS
https://marigold-ui.io
MIT License
101 stars 7 forks source link
a11y aria component-library design-system design-tokens react react-aria style tailwind tailwindcss theme ui

type_logo



ci coverage MIT License version

Open in Visual Studio Code

Marigold

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

Installation πŸ”§

# 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:

# 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'

<MarigoldProvider theme={b2bTheme}>
  <Text>Lorem ipsum</Text>
</MarigoldProvider>

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 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. When working on the components, use the following commands for development.

Contributors ✨

Thanks goes to these wonderful people (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 specification. Contributions of any kind welcome!