Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/auth0/cosmos

🔭 Auth0 Design System
https://github.com/auth0/cosmos

design-system styleguide

Last synced: 4 days ago
JSON representation

🔭 Auth0 Design System

Awesome Lists containing this project

README

        

## Project Status

Cosmos is a legacy project, that has now been deprecated. Consider using [Quantum Design System](https://www.npmjs.com/package/@auth0/quantum-product) as an alternative.

*Thank you.*

 

# [Cosmos](https://auth0-cosmos.now.sh/)

[![style: styled-components](https://img.shields.io/badge/style-%F0%9F%92%85%20styled--components-orange.svg?colorB=daa357&colorA=db748e)](https://github.com/styled-components/styled-components) [![npm version](https://img.shields.io/npm/v/@auth0/cosmos.svg)](https://npmjs.com/@auth0/cosmos)

> A Design System For Auth0 Products.

### What is a design system?

> “A set of shared and integrated principles and patterns that define the overall design of a product.” — Karri Saarinen @ Airbnb

The aim of Cosmos is to help Auth0 designers and developers deliver work faster and better. It provides teams with a common language and encourages adherence to design guidelines with compliant components right out of the box.

We are currently building our roadmap and initial components inventory to estimate the v1 release date. We are in active development and testing with selected teams, so the components API may change frequently. However, you can play with the alpha version today! Your feedback will help us shape Cosmos.

See the documentation at https://auth0-cosmos.now.sh/

 
 

#### Quicklinks:

- [Getting started](https://auth0-cosmos.now.sh/)
- [How to use Cosmos](https://auth0-cosmos.now.sh/#/usage)
- [Components Overview](https://auth0-cosmos.now.sh/#/overview)
- [Playground](https://auth0-cosmos.now.sh/#/playground)
- [Sandbox](https://auth0-cosmos.now.sh/sandbox/) - Storybook
- [Contribution Guide](https://auth0-cosmos.now.sh/#/contribution-guide)

 
 

### Installation

Ensure you have [Yarn](https://yarnpkg.com/lang/en/) installed.

To add Cosmos to your React application, run:

```
$ yarn add @auth0/cosmos
```

If you prefer npm, run this command instead:

```
$ npm install --save @auth0/cosmos
```

That's all you need to do: no config changes required!

 
 

### Using Cosmos components in your application

1. Cosmos provides a CssBaseline component to setup some of the base styles required (fonts, etc). It also fixes some inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements. Import and render the `CssBaseline` component once at the top of your application.

```js
import { CssBaseline } from '@auth0/cosmos';

const App = () => {
return (
<>

{/* The rest of your application */}
>
)
};
```

2. Include and render them alongside your React components:

```js
import { Button } from '@auth0/cosmos'

const Actions = () => (


Hello Word!



Cosmos Documentation


)
```

To learn more about the components and the props they offer, check the [Cosmos documentation](https://auth0-cosmos.now.sh/). Pick a component from the sidebar to find examples and configuration options.

 
 

## Contribute

There's a lot to write here, we maintain it in our docs: [Contribution guidelines](https://auth0-cosmos.now.sh/#/contribution-guide)

 
 

## Feedback

Issues or feature requests can be created on our [GitHub page](https://github.com/auth0/cosmos/issues) or on [Slack](https://auth0.slack.com/messages/C5ZK0DD8X) (internal). You can use the [playground](https://auth0-cosmos.now.sh/#/playground) to test and share code, report bugs and ask for feedback.

## Thanks

Chromatic

Thanks to [Chromatic](https://www.chromatic.com/) for providing the visual testing platform that helps us review UI changes and catch visual regressions.

BrowserStack Logo

Thanks to [BrowserStack](https://www.browserstack.com/) for providing the infrastructure that allows us to test in real browsers.

Circle CI Logo

Thanks to [Circle CI](https://www.circleci.com/) for providing the infrastructure for our Continuous Integration needs.