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

@episource/signet-tokens

v0.0.7

Published

A style dictionary of tokens packaged with Epi Design System. The design tokens are available to use on frontend applications built on any programing language. This is a synchronization between Figma token & our developers

Downloads

295

Readme

Episource Design System Tokens

At Episource, we believe in DRY - Do Not Repeat Yourself! Yes, we do not encourage using HEXADECIMAL values for colors, font size, and spacing when they can be represented as a token variable.

What is a Design Token?

A token is a visible or tangible representation of a fact, quality, feeling, etc. A design token is a variable-name-spacing used to represent actual values such as color hexadecimal values. For example, color #fff can be represented as epi-white.

Token Design System Tokens

This dictionary uses design tokens to define styles once and use those styles on any platform or language. It provides a single place to create and edit your styles and exports these tokens to all the places you need - iOS, Android, CSS, JS, HTML, sketch files, style documentation, etc.

How to install

  1. Install as an independent package.

    Install this design token as a standalone.

    npm install @episource/signet-tokens

How to use the tokens

Very easy! Import the token CSS or JS file into your application, then call the tokens! Check the token files under the @episource/signet-tokens/dist/{product} to import the token file you need.

  • JavaScript

    import * as tokens from '@episource/signet-tokens/dist/analyst/tokens'
    
    backgroundColor: tokens.PrimaryMain;
    
    
    <span style={{ display: 'inline-block', width: '12px',  height: '12px', backgroundColor: tokens.PrimaryMain }}></span>
    
  • TypeScript

    
    import * as tokens from '@episource/signet-tokens/dist/analyst/tokens'
    
    backgroundColor: tokens.PrimaryMain;
    
    <span style={{ display: 'inline-block', width: '12px',  height: '12px', backgroundColor: tokens.PrimaryMain }}></span>
  • CSS

    @import url('@episource/signet-tokens/dist/analyst/tokens.css');
    
    or
    
    @import url('~@episource/signet-tokens/dist/analyst/tokens.css');
    
    
    .parent-container{
        background: var(--primary-main)
    }
    /* The value of --primary-main should be #883907 */
  • SCSS

    @import url('@episource/signet-tokens/dist/analyst/token.scss');
    
     or
    
    @import url('~@episource/signet-tokens/dist/analyst/token.scss');
      
    
    .parent-container{
        background: $primary-main;
    }
    /* The value of --primary-main should be #883907 */
  • LESS

    @import url('@episource/signet-tokens/dist/analyst/token.less');
    
    or
    
    @import url('~@episource/signet-tokens/dist/analyst/token.less');
    
    .parent-container{
        background: @primary-main;
    }
    /* The value of --primary-main should be #883907 */

Compatible Episource Products

All Episource products are supported under the /dist folder.

  • analyst, coder, episource, and submitter.

To add new products, contact the design team, or scroll down to contributing section.

NOTE: The Figma file must first be updated to generate the correct token for the new product, then it /template/$themes.json must be updated for the build process to be successful.

Compatible Token Files

The following versions are available:

  • JavaScript (tokens.es6.js)
  • TypeScript (tokens.d.ts)
  • SCSS (tokens.scss)
  • LESS (tokens.less)
  • CSS (tokens.css)