@sendgrid/design-primitives

1.3.5 • Public • Published

SendGrid Design Primitives

Global design primitives/tokens to be used across SendGrid's products, stored as json data.

Packages

Current Usage

This package is currently being used for Style Guide and SendGrid.design.

Installation

npm install @sendgrid/design-primitives --save

Usage

Sass:

@import '@sendgrid/design-primitives/tokens/sg-style-guide/scss/base.scss';

.my-selector {
  color: $color-slate-20;
}

CSS:

@import '@sendgrid/design-primitives/tokens/sg-style-guide/css/base.css';

.my-selector {
  color: var(--color-slate-20);
}

JavaScript (ES6):

// Individual tokens
import { colfax } from '@sendgrid/design-primitives/tokens/sg-style-guide/es6/base.es6';

console.log(colfax);

// Token category
import { colors } from '@sendgrid/design-primitives/tokens/sg-style-guide/es6/base.es6';

console.log(colors.colorCodePurple);

// All tokens
import * as tokens from '@sendgrid/design-primitives/tokens/sg-style-guide/es6/base.es6';

JavaScript (CommonJS):

// Individual tokens
import { colfax } from '@sendgrid/design-primitives/tokens/sg-style-guide/common/base.common';

console.log(colfax);

// Token category
import { colors } from '@sendgrid/design-primitives/tokens/sg-style-guide/common/base.common';

console.log(colors.colorCodePurple);

// All tokens
import * as tokens from '@sendgrid/design-primitives/tokens/sg-style-guide/common/base.common';

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.3.52latest
1.3.0-beta.30beta

Version History

VersionDownloads (Last 7 Days)Published
1.3.52
1.3.41
1.3.31
1.3.21
1.3.11
1.3.01
1.3.0-beta.30
1.3.0-beta.20
1.3.0-beta.10
1.3.0-beta.00
1.2.21
1.2.11
1.2.01
1.1.51
1.1.41
1.1.31
1.1.21
1.1.11
1.1.01
1.0.01

Package Sidebar

Install

npm i @sendgrid/design-primitives

Weekly Downloads

17

Version

1.3.5

License

ISC

Unpacked Size

533 kB

Total Files

120

Last publish

Collaborators

  • twilio-dx
  • sendgrid-bk
  • thinkingserious
  • stevekinney
  • twilio-ci