@paprika/stylers
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

@paprika/stylers

Description

The stylers package is a companion for the tokens package, they are both implementations of the Starling Design System for use in styling user interfaces. The stylers are more than just simple values however, they are helper functions and bundles of CSS rules.

Installation

yarn add @paprika/stylers

or with npm:

npm install @paprika/stylers

Usage

stylers are intended for use internally and externally.

Internally, when contributors create Paprika components, and externally, when application developers consume Paprika to create user interfaces with the Starling Design System.

Consumers

Typically consumers will be using tokens with Sass. They can be included in any Sass file with:

@import "@paprika/stylers/lib/helpers.scss";

Then you should be able to use Sass functions like font-size() and spacer() as well as mixins like @include truncate-text; and @include focus-ring(true).

Contributors

For scalability, in implementation of the stylers is split into:

  • includes.js and formIncludes.js (for bundles of styling rules)
  • helpers.js (functions that take an input and generate a value or styling rule/rules).

Links

Readme

Keywords

none

Package Sidebar

Install

npm i @paprika/stylers

Weekly Downloads

4,477

Version

1.1.10

License

MIT

Unpacked Size

65.5 kB

Total Files

28

Last publish

Collaborators

  • vkhimich
  • mikrotron
  • jamiek-galvanize
  • allison_cc