Socket
Socket
Sign inDemoInstall

ghost-design-system

Package Overview
Dependencies
149
Maintainers
1
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ghost-design-system

Ghost design system - React Component Library


Version published
Weekly downloads
5
decreased by-94.32%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.4.13 (2023-03-07)

Bug fixes

  • Hide field max length when the field is in readonly

Readme

Source

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

Keywords

FAQs

Last updated on 07 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc