The standard set of colours for projects that want to harmonize with Firefox’s new Photon design language.
The Photon Colors can be installed via npm.
$ npm install photon-colors
@import url('photon-colors.css');
.class_name {
color: var(--blue-60);
}
@import "photon-colors.scss";
.class_name {
color: $blue-60;
}
@import (reference) "photon-colors.less";
.class_name {
color: @blue-60;
}
import photon from 'photon-colors.js';
document.getElementById(id).style.color = photon.BLUE_60;
Download and paste photon-colors.android.xml to your Android project. Then:
<item android:color="@color/blue_60" />
Download and paste photon-colors.android.swift to your Swift project. Then:
UIColor.Photon.Blue60
- Install Sketch Palettes plugin
- Download photon-colors.sketchpalette
- From Sketch.app Menu Bar Menus select
- Plugins > Sketch Palettes > Load Palette
- Select photon-colors.sketchpalette
- Select load method to Document Presets or Global Presents
- Download photon-colors.gpl
- From GIMP Menu Bar Menus select
- Windows > Dockable Dialogs > Palettes
- From Tab Menu select
- Palettes Menu > Import Palette... > Select Source > Palette file
- Select photon-colors.gpl
- Download photon-colors.soc
- From LibreOffice Menu Bar Menus select
- Format > Page... > Area > Color > Load Color List
- Select photon-colors.soc
Open an issue or submit a pull request.
$ git clone [email protected]:FirefoxUX/photon-colors.git
$ cd photon-colors
$ npm install
- Edit
./photon-colors.json
- In the terminal, run
npm run build
- Edit
./build.js
- In the terminal, run
npm run build