@cmsgov/design-system
TypeScript icon, indicating that this package has built-in type declarations

10.0.0 • Public • Published

This package contains the following design system assets:

  • Base styles
  • Utility classes
  • Sass/CSS and React components
  • Responsive flexbox grid framework
  • Fonts and images
  • Sass mixins and variables

Installation

npm install --save @cmsgov/design-system

Usage

The source files included are written in Sass (.scss). You can add your node_modules directory to your Sass includePaths and import the file like this:

@import '@cmsgov/design-system/dist/scss/index';

or import the transpiled CSS:

@import '@cmsgov/design-system/dist/css/index';

Please view the documentation site for additional information.

Examples

Examples of the design system in use can be found in the examples directory on GitHub.

Bugs and contributions

Please submit an issue on GitHub for any bugs or feature requests.

You can also read our CONTRIBUTING.md document to learn about setting up a local development environment, contributing to the design system, and our coding guidelines.

File Structure

The design system follows a variation of ITCSS (Inverted Triangle architecture for CSS). The goal is to write CSS in specificity order.

└── @cmsgov/design-system/dist
    ├── components/
    │   └── index.js        Compiled JS entry point (CommmonJS)
    ├── css/
    │   └── index.css       Compiled CSS entry point
    ├── esnext/
    │   └── index.esm.js    Compiled JS entry point (ES Module)
    ├── fonts/
    ├── images/
    ├── scss/
    │   ├── base/           Base styles, HTML element selectors
    │   ├── components/     Component styles
    │   ├── settings/       Variables, mixins, and functions
    │   ├── utilities/      Utility classes for individual CSS properties
    │   └── index.scss      Precompiled SCSS entry point
    └── types/              Typescript definition files

/@cmsgov/design-system/

    Package Sidebar

    Install

    npm i @cmsgov/design-system

    Weekly Downloads

    1,509

    Version

    10.0.0

    License

    SEE LICENSE IN LICENSE.md

    Unpacked Size

    9.43 MB

    Total Files

    1122

    Last publish

    Collaborators

    • azizakmeer
    • unhook4801
    • adilenghel
    • sugunasureshnandhu
    • nominaman83
    • grooveisall
    • kramersb
    • tarikuzz
    • joshua.ewing-sb
    • ksvs
    • ddhecker
    • trzash-6891
    • noor1027
    • cruddyshad0w
    • rtdiggstown
    • rodmunoz
    • sb_kmr
    • sivasrinisb
    • daniel-thomson-sb
    • walber.gonzalez
    • davidberry_sb
    • shawn.mathew
    • gokhale
    • petemckinneysb
    • sarah-adhocteam
    • cms-cis-qpp
    • bijujoseph
    • aaronmanne
    • branon.barrett
    • kyleapfel
    • cagedcrown
    • boristotle
    • chetanmunegowda
    • suchint.nagra
    • cmsds
    • scoringengine
    • djacksonsb
    • seesleestak
    • nicholascgates
    • pwolfertadhoc
    • ni.chia
    • clkawell
    • dlomax30
    • kimadhoc
    • alunpm
    • frederick.huang
    • tgroshsb
    • pstancic
    • john-manack
    • timwtoysb
    • sdbaradhoc