Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cmsgov/design-system-core

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cmsgov/design-system-core

Core CSS and React components

  • 1.0.0-alpha.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
570
decreased by-70.89%
Maintainers
1
Weekly downloads
 
Created
Source

CMSGov Design System

A UI component library and styleguide that is living, tested, importable, and iterable. The goal is to promote consistency across agency websites, speed up productivity, and serve as a future-friendly foundation.

Installation

You can download a .zip of the design system directly from GitHub's Releases page, however we suggest using a package manager like NPM or Yarn to install the design system package if you're working on a real world project. This way you can easily update the package when there's a new release.

Important: The NPM package is currently a private package. In order to install it you must have access to the package.

npm login
npm install --save @cmsgov/design-system-core

or if you're using Yarn:

yarn login
yarn add @cmsgov/design-system-core

Usage

Source files can be imported from the src directory. Transpiled files can be found in the dist directory.

Import all Sass styles:

@import 'node_modules/@cmsgov/design-system-core/src/index';

Link to transpiled CSS:

<link rel="stylesheet" src="node_modules/@cmsgov/design-system-core/dist/index.css" />

Import JSX component:

import {Button} from '@cmsgov/design-system-core';
...
<Button>Foo</Button>;

Apply base-level of styles and use a utility class:

<html>
<head>
    <link rel="stylesheet" src="node_modules/@cmsgov/design-system-core/dist/index.css" />
</head>
<body class="ds-base">
    <h1 class="ds-u-font-size--title">Hello world</h1>
</body>
</html>

Directory reference

├── dist                Transpiled CSS and fonts
└── src                 Sass and JSX
    ├── base            Base HTML styles (scoped to .ds-base)
    ├── components      Sass and React components
    │   ├── Button
    │   └── etc...
    ├── fonts
    ├── generics        Far reaching selectors
    ├── layouts         Structural patterns; No cosmetics.
    ├── settings        Globally-available settings and config options
    ├── tools           Helper functions and public mixins
    ├── utilities       Functional CSS classes to apply individual traits
    └── vendor          Third-party libraries

FAQs

Package last updated on 08 Mar 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc