@visual-framework/vf-utility-classes

2.0.0 • Public • Published

Utility Classes

npm version

About

Utility Classes provide the building blocks for layout and handle a range common use cases that help us avoid writing custom styles. When we need to add some margin or padding, rather than adding a new selector specific to that use case, we can use utilities. This helps us reduce the number of unique property-value pairs, and helps us keep more consistent styles across the site.

  • Utility Classes are designed to do one job well and one job only, are immutable, and on occasion are an acceptable approach to overriding component styles.
  • Utility Classes should clearly describe the job they do.
  • Utility Classes are to be namespaced with vf-u-

Install

This component is distributed with npm. After installing npm, you can install the vf-utility-classes with this command.

$ yarn add --dev @visual-framework/vf-utility-classes

The source files included are written in Sass(scss). You can point your Sass include-path at your node_modules directory and import it like this.

@import "@visual-framework/vf-utility-classes/index.scss";

Make sure you import Sass requirements along with the modules.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @visual-framework/vf-utility-classes

      Weekly Downloads

      371

      Version

      2.0.0

      License

      Apache 2.0

      Unpacked Size

      134 kB

      Total Files

      28

      Last publish

      Collaborators

      • bhushan-ebi
      • pacope92
      • ebiwebdev
      • sandykadam
      • khawkins98