• Stars
    star
    171
  • Rank 222,266 (Top 5 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flat UI color palette helpers written in Swift.

FlatUIColors (swift)

CocoaPods CocoaPods CocoaPods GitHub tag

install

Make sure you have the latest version of CocoaPods (gem install cocoapods) that has Swift support. At the time of this writing, that would be 0.39.0.

Add to your Podfile:

pod 'FlatUIColors'

And then from the shell:

$ pod install

use

There are a number of static functions defined on the struct FlatUIColors that return UIColor or NSColor objects. The return type of these functions is OSColor, which is a platform-aware typealias.

Just import and use:

import FlatUIColors

let turquoise: NSColor = FlatUIColors.turquoise()

// Optional CGFloat for setting alpha value
let emerald: UIColor = FlatUIColors.emerald(0.25)

The following is a list of all of the static color functions defined on struct FlatUIColors.

public static func turquoise() -> OSColor!
public static func greenSea() -> OSColor!
public static func mediumTurquoise() -> OSColor! 
public static func lightSeaGreen() -> OSColor!
public static func emerald() -> OSColor!
public static func nephritis() -> OSColor!
public static func gossip() -> OSColor!
public static func salem() -> OSColor!
public static func peterRiver() -> OSColor!
public static func belizeHole() -> OSColor!
public static func riptide() -> OSColor!
public static func dodgerBlue() -> OSColor!
public static func amethyst() -> OSColor!
public static func wisteria() -> OSColor!
public static func lightWisteria() -> OSColor!
public static func plum() -> OSColor!
public static func wetAsphalt() -> OSColor!
public static func midnightBlue() -> OSColor!
public static func hoki() -> OSColor!
public static func ebonyClay() -> OSColor!
public static func sunflower() -> OSColor!
public static func tangerine() -> OSColor!
public static func confetti() -> OSColor!
public static func capeHoney() -> OSColor!
public static func carrot() -> OSColor!
public static func pumpkin() -> OSColor!
public static func ecstasy() -> OSColor!
public static func jaffa() -> OSColor!
public static func alizarin() -> OSColor!
public static func pomegranate() -> OSColor!
public static func monza() -> OSColor!
public static func thunderBird() -> OSColor!
public static func clouds() -> OSColor!
public static func silver() -> OSColor!
public static func gallery() -> OSColor!
public static func iron() -> OSColor!
public static func concrete() -> OSColor!
public static func asbestos() -> OSColor!
public static func pumice() -> OSColor!
public static func lynch() -> OSColor!

Colors Palette

contributors / authors

bryn austin bellomy < [email protected] >
aleksandar kex trpeski < [email protected] >
valentine silvansky < silvansky >
morita naoki < [email protected] >
angel vazquez < @avzquez >

More Repositories

1

solidity-auction

A simple auction dApp for Ethereum, written in Solidity.
JavaScript
130
star
2

iOS-DragAndDrop

Versatile, easily configurable drag and drop classes for iPhone and iPad.
Objective-C
115
star
3

Regex

Regex class for Swift. Wraps NSRegularExpression.
Swift
67
star
4

SwiftDataStructures

Basic data structures (OrderedDictionary, Stack, Queue, LinkedList, List) that supplement the Swift stdlib.
Swift
42
star
5

SwiftBitmask

NS_OPTIONS for Swift (type-checked bitmask container). Basically an easier-to-implement RawOptionSet.
Swift
36
star
6

dash-docset-generator

Node.js command line tool that generates Dash docsets from HTML, JSON, YAML, etc.
HTML
35
star
7

ObjC-DesignByContract

A small library of design-by-contract macros for Objective-C, based on code by Nicolas Roard.
Objective-C
23
star
8

SEBeamMeUpScotty

Reactive, super-simple iOS video upload classes for YouTube, Facebook, etc.
Objective-C
22
star
9

iOS-GTLYouTube

Google's Objective-C wrapper for the YouTube API, served up as a CocoaPod. No installation.
Objective-C
18
star
10

BrynKit

Making Obj-C/iOS development a little less excruciating.
Objective-C
16
star
11

GCDThreadsafe

Easy threadsafeing + the performance of Grand Central Dispatch.
Objective-C
15
star
12

iOS-CrackRock

Reactive in-app purchase helpers for brewing that delicious iOS fool-aid
Objective-C
14
star
13

otis

Documentation generator for Javascript, CoffeeScript, C, C++, Objective-C, Ruby, Python, AS3, Java, and everything else ever.
JavaScript
13
star
14

Funky

Functional programming tools and experiments in Swift.
Swift
13
star
15

ObjC-StatelyNotificationRobot

NSNotification wrapper that keeps track of state and notifies new observers of state immediately.
Objective-C
10
star
16

consensys-academy-prediction-market

A prediction market smart contract (Solidity) with a React frontend.
JavaScript
9
star
17

xcode-aqueducts

Xcode port of Aqueducts theme (from Sublime Text 2).
9
star
18

hook.io-zordon

hook.io WAN auto-discovery and connect hook
JavaScript
6
star
19

node-better-buffer

Buffer subclass with some smack-your-head-obvious methods (push, pop, growToAccommodate, clone, dataLength, etc.)
JavaScript
6
star
20

UpdateTimer

Scene update loop timer for SpriteKit, et al. (in Swift)
Swift
5
star
21

hook.io-hookify

Converts regular node.js modules into fault-tolerant, cloud-ready hook.io hooks in 20 lines of code or less.
JavaScript
5
star
22

go-structomancer

Golang struct reflection package
Go
4
star
23

bookmark-manager

JavaScript
2
star
24

DisasterCoin

Hackathon project
JavaScript
2
star
25

SEThuggedOutImageView

A better UIImageView with better animation control, easier gesture handling, and lots of guns.
Objective-C
2
star
26

ReactiveBoxer

Easiest layouts ever via ReactiveCocoa + MGBox2
Objective-C
2
star
27

SESimpleObjectArchiver

Simple classes for [un]serializing objects via NSCoding and saving/loading them to and from disk.
Objective-C
2
star
28

Sublime-Aqueducts

Aqueducts β€” theme for SublimeText 2 + 3.
Swift
2
star
29

EOS-boilerplate

A simple EOS smart contract boilerplate project with a Dockerized dev environment
Python
2
star
30

Entish

Game entity / component system (in Swift).
Swift
2
star
31

switchboard.js

Multi-events for the browser and node.js (i.e., handlers won't trigger until several specified events occur).
JavaScript
2
star
32

iOS-frameworkized-static-libs

Libraries (mainly other people's) that have been converted into .framework files that successfully compile against iOS.
Objective-C
2
star
33

ObjC-DesignByContract-experimental-2.0

Apparently contract programming keeps you from fucking up. Talentless iOS developers, it's your time to shine.
Objective-C
2
star
34

nappy

View formatted node.js api documentation in the cli / terminal
JavaScript
2
star
35

.vim

My .vim
Vim Script
1
star
36

gl4-game

An entity/component game engine in OpenGL 4 and Go.
Go
1
star
37

vim-command-regex

CoffeeScript
1
star
38

hook.io-markdown

1
star
39

hook.io-ranger

Helper hook for hook.io-zordon
JavaScript
1
star
40

SwiftTilemap

SpriteKit tilemap framework that parses TMX files (in Swift).
Swift
1
star
41

d.ts

TypeScript definition files I'm working on.
TypeScript
1
star
42

hook.io-cloudapp

JavaScript
1
star
43

go-rx

A set of basic, common Go concurrency patterns, very loosely adapted to the Rx model
Go
1
star
44

consensys-academy-splitter-remittance

ConsenSys Academy: Splitter + Remittance projects
JavaScript
1
star
45

hook.io-tropo

Hook.io hook for communicating with Tropo (a really rad, really affordable SMS / VoIP gateway)
CoffeeScript
1
star
46

weathernaut

CLI tool for querying the Weather Underground API
CoffeeScript
1
star
47

hook.io-github

Emit info about Github repositories on your hook.io hook cloud!
JavaScript
1
star
48

tsrun

Run Typescript (*.ts) files from the shell without having to pre-compile to Javascript. Useful for quickly writing command-line tools.
JavaScript
1
star