Skip to content

avdyushin/FlatUIColor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UIColor extension

Includes some Flat UI color schemes

This extension brings some convenience initializers into UIColor object and useful methods and calculated variables.

Create color with CSS hex string

let red = UIColor(string: "#FF0000")

Create color with hex integer representation

let green = UIColor(hex: 0x00FF00)

Convert color to hex integer representation

let hex = UIColor.blue.asInt
// hex = 255

Convert color to CSS hex string representation

let string = UIColor.yellow.asHexString
// string = "#ffff00"

Make color lighter

let lightOrange = UIColor.orange.lighterColor
// "#ff9f3f"

Make color darker

let darkOrange = UIColor.orange.darkerColor
// "#bf5f00"

Flat UI colors

let greenSea = UIColor.flatGreenSea
let veryBerry = UIColor.flatVeryBerry

Usage

Add UIColor.swift into your project

Links

http://flatuicolors.com/

About

Flat UIColor swift extenstion

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages