npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@citizensadvice/cads-system

v0.0.5

Published

![npm (scoped)](https://img.shields.io/npm/v/@citizensadvice/cads-system.svg)

Downloads

20

Readme

Citizens Advice Design System

npm (scoped)

Component type

  • System

Dependencies:

| Name | Type | Description | | --------------------------------------------- | ------- | --------------------------------------------------------- | | @citizensadvice/cads-support | support | System-wide global variables and functions | | @citizensadvice/cads-interactive-block | support | Mixins for handling interactive element (buttons, inputs) | | @citizensadvice/cads-typography | generic | Generic typographic styling | | @citizensadvice/cads-links | generic | Generic links styles | | @citizensadvice/cads-tables | generic | Generic table styling | | @citizensadvice/cads-wrapper | object | Component for container elements at a set width | | @citizensadvice/cads-grid | object | Custom grid system | | @citizensadvice/cads-list | object | Component for creating lists | | @citizensadvice/cads-global-header | module | System-wide global header | | @citizensadvice/cads-global-footer | module | System-wide global footer | | @citizensadvice/cads-buttons | module | Custom button components | | @citizensadvice/cads-button-container | module | Component for holding buttons | | @citizensadvice/cads-blockquote | module | Custom styles for blockquotes | | @citizensadvice/cads-section-nav | module | Side navigation component styling | | @citizensadvice/cads-form-fieldsets | module | Custom styling for form elements | | @citizensadvice/cads-form-inputs | module | Custom styling for form elements | | @citizensadvice/cads-form-labels | module | Custom styling for form elements | | @citizensadvice/cads-form-textareas | module | Custom styling for form elements | | @citizensadvice/cads-form-selects | module | Custom styling for form elements | | @citizensadvice/cads-form-radios-checkboxes | module | Custom styling for form elements | | @citizensadvice/cads-icons | utility | Icon system | | @citizensadvice/cads-line-limit | utility | Helper classes for limiting line length | | @citizensadvice/cads-positioning | utility | Helper classes for positioning elements | | @citizensadvice/cads-spacing | utility | Helper classes for spacing elements correctly | | @citizensadvice/cads-charwidth | utility | Helper 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.

| Category | Description | | ------------- | --------------------------------------------------------------- | | SUPPORT | global variables, config switches, default mixins and functions | | GENERIC | ground-zero styles (Normalize.css, resets, box-sizing) | | ELEMENTS | unclassed HTML elements (type selectors) | | OBJECTS | cosmetic-free design patterns | | MODULES | designed modules, chunks of UI | | UTILITIES | helpers 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.