Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 637 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 637 Bytes

Backpack Color tokens

Usage

Objective-c

Backpack/Color.h contains our color palette contained in a single class BPKColor.

#import <Backpack/Color.h>

BPKColor.blue500;
BPKColor.gray900;

Combining colours can be done using the following method:

[BPKColor blend:BPKColor.white with:BPKColor.gray900 weight:0.85f];

Swift

Backpack.Color contains our color palette.

import Backpack

Backpack.Color.blue500
Backpack.Color.gray900

Combining colours can be done using the following method:

Color.blend(Color.white, with: Color.gray900, weight: 0.85f)