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

@justeat/fozzie-colour-palette

v3.1.0

Published

Brand colour palette for projects at Just Eat

Downloads

48

Readme

Fozzie Colour Palette

npm version Build Status

This module allows projects to import the Just Eat brand colour palette, so that they can always stay up to date with any changes made.

Colours are made available by a number of Sass variables that once the module has been imported can be referenced in a projects Sass files.

Zeplin colour palette

Usage

  1. The easiest way to use fozzie modules in your Sass setup is to use Eyeglass.

If you are using the fozzie gulp build tasks, then Eyeglass is automatically setup ready to use. If not, you can use it in one of the following ways:

  1. Install the fozzie-colour-palette module using NPM or Yarn:

    yarn add @justeat/fozzie-colour-palette
  2. Then within your Sass files, you will need to import this module.

    @import 'fozzie-colour-palette';

You can then use any of the colour variables contained in the module.

It’s recommended that you hook onto and use the variable abstractions such as $color-text and $color-link-default where it makes sense to, rather than directly onto the colour variables. That way your project will require less re-factoring should the colour palette ever get a major overhaul in the future and certain colours get replaced and/or renamed.

Available Colour Schemes

The fozzie-colour-palette allows for the definition of platform specific colour schemes. The colour schemes currently available are:

Just Eat Default Colour Scheme

To apply the default Just Eat colour scheme, simply import this module like so:

  @import 'fozzie-colour-palette';

If you are already importing the base fozzie module there will be no need to import fozzie-colour-palette as this is baked in by default to that module. The default colour scheme will therefore automatically be setup when importing the base fozzie module.

Menulog Colour Scheme

To apply the Menulog colour palette, you need to import the default colour scheme, and then call the applyScheme-menulog mixin, which provides a set of theme overrides.

To do this, define a $theme variable and set it to 'ml'. Then conditionally call the Menulog colour scheme mixin:

  $theme: 'ml';

  @import 'fozzie-colour-palette';

  @if ($theme == 'ml') {
      @include applyScheme-menulog;
  }

If you are using the base fozzie module, simply setting the $theme: 'ml'; before importing the fozzie module will automatically take care of this step for you:

  $theme: 'ml';

  @import 'fozzie'; // this will now load in the fozzie-colour-palette module with Menulog overrides