Ghost Design System - React Components library
Demo
Available components:
- Atoms:
- Molecules:
- Organisms:
- Templates:
Usage
- Run the command:
npm install ghost-design-system
- Define the set of colors by copying the file: ~ghost-design-system/dist/assets/_colors.scss)
$chalk: rgb(228, 228, 228);
$charcoal: rgb(51, 51, 51);
$pebble: rgb(117, 117, 117);
$silver: rgb(196, 196, 196);
$smoke: rgb(248, 248, 248);
$white: rgb(255, 255, 255);
$scooter: rgb(38, 186, 212);
$buttercup: rgb(244, 174, 38);
$cerulean: rgb(1, 82, 129);
$cinnabar: rgb(232, 61, 71);
$fern: rgb(92, 184, 92);
$sky: rgb(16, 156, 241);
$tangerine: rgb(229, 114, 0);
$error: rgb(255, 52, 24);
$primary: $scooter;
$secondary: $pebble;
$tertiary: $charcoal;
$fontfamily: 'Montserrat', sans-serif;
- Create your
index.scss
file:
@import 'colors.scss';
@import '~ghost-design-system/dist/assets/_global.scss';
@import '~ghost-design-system/dist/assets/_general.scss';
- Load the required icon set, for example in your
index.tsx
:
import { loadIcons } from 'ghost-design-system';
loadIcons();
- You should be ready to use any of the components of the library.
References
This react components library uses the following:
Peer dependencies:
Dev dependencies:
To go further