0.0.5 • Published 7 years ago

@citizensadvice/cads-system v0.0.5

Weekly downloads
3
License
MIT
Repository
-
Last release
7 years ago

Citizens Advice Design System

npm (scoped)

Component type

  • System

Dependencies:

NameTypeDescription
@citizensadvice/cads-supportsupportSystem-wide global variables and functions
@citizensadvice/cads-interactive-blocksupportMixins for handling interactive element (buttons, inputs)
@citizensadvice/cads-typographygenericGeneric typographic styling
@citizensadvice/cads-linksgenericGeneric links styles
@citizensadvice/cads-tablesgenericGeneric table styling
@citizensadvice/cads-wrapperobjectComponent for container elements at a set width
@citizensadvice/cads-gridobjectCustom grid system
@citizensadvice/cads-listobjectComponent for creating lists
@citizensadvice/cads-global-headermoduleSystem-wide global header
@citizensadvice/cads-global-footermoduleSystem-wide global footer
@citizensadvice/cads-buttonsmoduleCustom button components
@citizensadvice/cads-button-containermoduleComponent for holding buttons
@citizensadvice/cads-blockquotemoduleCustom styles for blockquotes
@citizensadvice/cads-section-navmoduleSide navigation component styling
@citizensadvice/cads-form-fieldsetsmoduleCustom styling for form elements
@citizensadvice/cads-form-inputsmoduleCustom styling for form elements
@citizensadvice/cads-form-labelsmoduleCustom styling for form elements
@citizensadvice/cads-form-textareasmoduleCustom styling for form elements
@citizensadvice/cads-form-selectsmoduleCustom styling for form elements
@citizensadvice/cads-form-radios-checkboxesmoduleCustom styling for form elements
@citizensadvice/cads-iconsutilityIcon system
@citizensadvice/cads-line-limitutilityHelper classes for limiting line length
@citizensadvice/cads-positioningutilityHelper classes for positioning elements
@citizensadvice/cads-spacingutilityHelper classes for spacing elements correctly
@citizensadvice/cads-charwidthutilityHelper classes for setting character limits on elements

Installation

$ npm install @citizensadvice/cads-system
@import "@citizensadvice/cads-system/index.scss";

You can also make use of the unpkg service, try adding the link below to the head of your HTML file <link src="https://unpkg.com/@citizensadvice/cads-system@latest/build/cads.system.css" />

Implementation

The Citizens Advice design system is a framework and set of tools to help designers and developers build digital products easily.

The system for scalable styling we've adpoted is in between a methodolgy known as "ITCSS" and "BEM".

These methodologies have afforded us the ability to build upon base styles in a more "Object Oriented" fashion which ultimately helps when building larger scalable applications.

CategoryDescription
SUPPORTglobal variables, config switches, default mixins and functions
GENERICground-zero styles (Normalize.css, resets, box-sizing)
ELEMENTSunclassed HTML elements (type selectors)
OBJECTScosmetic-free design patterns
MODULESdesigned modules, chunks of UI
UTILITIEShelpers and overrides

The basic idea is that each category builds on the last and uses the natural cascade of CSS in a constructive and safe way, meaning should you need to remove something then it's isolated and simple without potentially breaking large parts of the UI.