GithubHelp home page GithubHelp logo

photon-colors's Introduction

Photon Colors

The standard set of colours for projects that want to harmonize with Firefox’s new Photon design language.

Use

Develop

The Photon Colors can be installed via npm.

$ npm install photon-colors

CSS

@import url('photon-colors.css');

.class_name {
  color: var(--blue-60);
}

Sass

@import "photon-colors.scss";

.class_name {
  color: $blue-60;
}

Less

@import (reference) "photon-colors.less";

.class_name {
  color: @blue-60;
}

JavaScript

import photon from 'photon-colors.js';

document.getElementById(id).style.color = photon.BLUE_60;

XML

Download and paste photon-colors.android.xml to your Android project. Then:

<item android:color="@color/blue_60" />

Swift

Download and paste photon-colors.android.swift to your Swift project. Then:

UIColor.Photon.Blue60

Apps

Sketch

  1. Install Sketch Palettes plugin
  2. Download photon-colors.sketchpalette
  3. From Sketch.app Menu Bar Menus select
  4. Plugins > Sketch Palettes > Load Palette
  5. Select photon-colors.sketchpalette
  6. Select load method to Document Presets or Global Presents

GIMP

  1. Download photon-colors.gpl
  2. From GIMP Menu Bar Menus select
  3. Windows > Dockable Dialogs > Palettes
  4. From Tab Menu select
  5. Palettes Menu > Import Palette... > Select Source > Palette file
  6. Select photon-colors.gpl

LibreOffice

  1. Download photon-colors.soc
  2. From LibreOffice Menu Bar Menus select
  3. Format > Page... > Area > Color > Load Color List
  4. Select photon-colors.soc

Contribute

Open an issue or submit a pull request.

Get started

$ git clone [email protected]:FirefoxUX/photon-colors.git
$ cd photon-colors
$ npm install

Add or change color

  1. Edit ./photon-colors.json
  2. In the terminal, run npm run build

Add file type

  1. Edit ./build.js
  2. In the terminal, run npm run build

photon-colors's People

Contributors

aminalhazwani avatar bwinton avatar ericawright avatar garvankeeley avatar julienw avatar vanillajonathan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

photon-colors's Issues

Ship photon-colors.css with Firefox

Originally created by vanillajonathan on Oct 25, 2017

Ship the photon-colors.css style sheet with Firefox, reachable through the chrome:// URI.

This allows Firefox to internally make use of the design tokens.
It also allows third-party WebExtension developers to reference the style sheet directly without redundantly bundling the style sheet with every WebExtension.

Devtools color: "Blue 30" #75baff

Heads up: we added --blue-30: #75baff; to the DevTools color palette.
(Looks like I'm the one who came up with this shade. I think I tried to extrapolate from existing values.)

It's used in the dark theme for:

  • "Checked" or "active" icons
  • Some link text

And in the light theme for:

  • A border in Console shown when navigating between pages (with "Persist Logs" checked).

We can tweak the value in DevTools if you want to make an "official" Blue 30 value.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.