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

@octo-produits-internes/design-system

v1.4.13

Published

Package for implementation of OCTO's design system

Downloads

15

Readme

OCTO Design System

pipeline status

Package for implementation of OCTO's design system.

1. Getting started

With a package manager

  1. Install the package :
yarn add @octo-produits-internes/design-system
  1. Import the design system package in your script :
import { theme } from '@octo-produits-internes/design-system

On a static website

  1. Add the unpkg.com origin to your script-src and font-src CSPs.

  2. Add the package script tag to your HTML page :

<script src="https://unpkg.com/@octo-produits-internes/design-system"></script>
  1. Import the package namespace in your script :
const { theme } = OctoDesignSystem

2. Documentation

Before document loading :

  • a new "octo" CSS class is added with basic styling
  • the following CSS variables become available
    • --octo-marine-[100, 70, 50, 20, or 5]
    • --octo-turquoise-[100, 70, 50, 20, or 5]
    • --octo-cyan-[100, 70, 50, 20, or 5]
    • --octo-green-[100, 70, 50, 20, or 5]
    • --octo-yellow-[100, 70, 50, 20, or 5]
    • --octo-orange-[100, 70, 50, 20, or 5]
    • --octo-red-[100, 70, 50, 20, or 5]
    • --octo-purple-[100, 70, 50, 20, or 5]
    • --octo-white
  • the following fonts become available
    • Outfit

theme

theme.colors

Hash referencing allowed hexadecimal color values. Apart from white, all colors are a hash of tints (100, 70, 50, 20, or 5). Available colors are :

  • marine
  • turquoise
  • green
  • yellow
  • orange
  • red
  • purple
  • white

theme.fonts

Hash referencing all font-family names. Available fonts are :

  • outfit

3. Development

Clone this repository and install all dependencies with yarn install --check-files. Then, the following commands will be usable :

  • yarn start:example: starts a headless server at localhost:8080 to show a use case example (defined in src/main.example.ts)
  • yarn start:example:ssl: same as yarn start:example but the server will serve over HTTPS, as long as you have both certs/octopod-auth.pem and certs/octopod-auth-key.pem
  • yarn reinstall: reinstalls all dependencies in a clean state
  • yarn build: transpiles the project from Typescript to a Javascript module in dist
  • yarn build:pack: same as yarn build but compiles the code and packs it for browser use
  • yarn build:pack:example: same as yarn build:pack but writes the output pack file to example, alongside all the assets and the source map file
  • yarn build:pack:production: same as yarn build:pack but writes the output pack file to dist/packs, alongside the imported assets and without the source map file
  • yarn test: starts tests for the specified file if specified, all files if not
  • yarn test:watch: same as yarn test, but will run in watch mode
  • yarn test:output: same as yarn test, but will output the results in src/config/jest/jest.result.json
  • yarn test:coverage: same as yarn test:output, but will output the coverage in the console and in src/config/jest/coverage/
  • yarn test:coverage:inspect: same as yarn test:coverage, but will start a headless server at localhost:8081 to show coverage results
  • yarn lint:code: lint the specified TS file
  • yarn lint:code:all: same as yarn lint:code, but lints on all TS files
  • yarn lint:style: lint the specified style file
  • yarn lint:style:all: same as yarn lint:style, but lints on all style files

4. License

All rights reserved to OCTO Technology (France). Credit goes to the Produits Internes team. Use for other businesses is strictly prohibited.