Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/stellar/stellar-design-system

Components for Stellar’s design system
https://github.com/stellar/stellar-design-system

Last synced: 7 days ago
JSON representation

Components for Stellar’s design system

Awesome Lists containing this project

README

        

# Stellar Design System

Components for Stellar Development Foundation’s design system.

## Usage

Install as a dependency:

```bash
yarn add @stellar/design-system
```

Add the main CSS file to your project (for example, the main index file of your
React project).

```javascript
import "@stellar/design-system/build/styles.min.css";
```

Import Stellar Design System components

```javascript
import { Button, Input } from "@stellar/design-system";
```

Available components can be found
[here](./@stellar/design-system/src/components).

## Development

This repo has two parts to it:

- [Stellar Design System repo](./@stellar/design-system/) - everything for the
design system,
- [Stellar Design System website repo](./@stellar/design-system-website/) -
website for the design system.

This project is tested with
[BrowserStack](https://email.browserstack.com/c/eJwlzE1uwyAURtHV1DOQMf8D1lIB7yNBcewaSNl-LXV8dS6CMNas0imrFwo6abJLDUbCaKE2CCPNt1RpS8KQLQlIq9LCb94W3ivhVS9WGq4PjsEKsZ-TPh2xD8HesR6SPRpwMO3JOefJs3yZPL_Uijvv_Kb9Segvns_38gxZSYKzSaikfIFdBbIUSWFD1NbFZQ9zTp7aOTtaHzH_yxbqL0a8v31g32PjZ3v8AQZ4Rr0).

### Scripts

`build:sds` build Stellar Design System (`sds`) project only

`build:sds-web` build Stellar Design System Website (`sds-web`) project only

`build` build both projects

`start:sds` start `sds` project for local development

`start:sds-web` start `sds-web` project for local development

`clean` delete `node_modules` and `build` directories in the whole repo

**Note** You need to run each `start` command in its own window or tab.