ghost-design-system
TypeScript icon, indicating that this package has built-in type declarations

1.4.13 • Public • Published

Ghost Design System - React Components library

Demo

Coverage Status node-current

Available components:

Usage

  1. Run the command:
npm install ghost-design-system
  1. Define the set of colors by copying the file: ~ghost-design-system/dist/assets/_colors.scss)
// Neutral pallet
$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);

// Additional pallet
$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);
$skyhigh: rgb(206 228 255);
$tangerine: rgb(229, 114, 0);

$error: rgb(255, 52, 24);

$primary: $scooter;
$secondary: $pebble;
$tertiary: $charcoal;

$fontfamily: 'Montserrat', sans-serif;
  1. Create your index.scss file:
@import 'colors.scss';
@import '~ghost-design-system/dist/assets/_global.scss';
@import '~ghost-design-system/dist/assets/_general.scss'; // Optional
  1. Load the required icon set, for example in your index.tsx :
import { loadIcons } from 'ghost-design-system';

loadIcons();
  1. 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

Package Sidebar

Install

npm i ghost-design-system

Weekly Downloads

0

Version

1.4.13

License

MIT

Unpacked Size

2.45 MB

Total Files

227

Last publish

Collaborators

  • didideder