• Stars
    star
    329
  • Rank 128,030 (Top 3 %)
  • Language
    Objective-C
  • Created about 10 years ago
  • Updated about 10 years ago

Reviews

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

Repository Details

[iOS] Beautiful colors from uiGradients

UIColor+uiGradients

Beautiful colors from http://uigradients.com/

Usage

UIColor *startColor = [UIColor uig_emeraldWaterStartColor];
UIColor *endColor = [UIColor uig_emeraldWaterEndColor];

CAGradientLayer *gradient = [CAGradientLayer layer];
gradient.frame = view.bounds;
gradient.startPoint = CGPointMake(0, 0);
gradient.endPoint = CGPointMake(view.frame.size.width, 0);
gradient.colors = @[(id)[startColor CGColor], (id)[endColor CGColor], nil];

[view.layer insertSublayer:gradient atIndex:0];

You can pick a color from various preset colors!

Installation

pod 'UIColor+uiGradients'

To inspect colors, I recommend to use ColorSense-for-Xcode.

Or see http://uigradients.com/

The list of colors

# pragma mark - Emerald Water

+ (UIColor *)uig_emeraldWaterStartColor;
+ (UIColor *)uig_emeraldWaterEndColor;

# pragma mark - Lemon Twist

+ (UIColor *)uig_lemonTwistStartColor;
+ (UIColor *)uig_lemonTwistEndColor;

# pragma mark - Horizon

+ (UIColor *)uig_horizonStartColor;
+ (UIColor *)uig_horizonEndColor;

# pragma mark - Rose Water

+ (UIColor *)uig_roseWaterStartColor;
+ (UIColor *)uig_roseWaterEndColor;

# pragma mark - Frozen

+ (UIColor *)uig_frozenStartColor;
+ (UIColor *)uig_frozenEndColor;

# pragma mark - Mango Pulp

+ (UIColor *)uig_mangoPulpStartColor;
+ (UIColor *)uig_mangoPulpEndColor;

# pragma mark - Bloody Mary

+ (UIColor *)uig_bloodyMaryStartColor;
+ (UIColor *)uig_bloodyMaryEndColor;

# pragma mark - Aubergine

+ (UIColor *)uig_aubergineStartColor;
+ (UIColor *)uig_aubergineEndColor;

# pragma mark - Aqua Marine

+ (UIColor *)uig_aquaMarineStartColor;
+ (UIColor *)uig_aquaMarineEndColor;

# pragma mark - Sunrise

+ (UIColor *)uig_sunriseStartColor;
+ (UIColor *)uig_sunriseEndColor;

# pragma mark - Purple Paradise

+ (UIColor *)uig_purpleParadiseStartColor;
+ (UIColor *)uig_purpleParadiseEndColor;

# pragma mark - Sea Weed

+ (UIColor *)uig_seaWeedStartColor;
+ (UIColor *)uig_seaWeedEndColor;

# pragma mark - Pinky

+ (UIColor *)uig_pinkyStartColor;
+ (UIColor *)uig_pinkyEndColor;

# pragma mark - Cherry

+ (UIColor *)uig_cherryStartColor;
+ (UIColor *)uig_cherryEndColor;

# pragma mark - Mojito

+ (UIColor *)uig_mojitoStartColor;
+ (UIColor *)uig_mojitoEndColor;

# pragma mark - Juicy Orange

+ (UIColor *)uig_juicyOrangeStartColor;
+ (UIColor *)uig_juicyOrangeEndColor;

# pragma mark - Mirage

+ (UIColor *)uig_mirageStartColor;
+ (UIColor *)uig_mirageEndColor;

# pragma mark - Steel Gray

+ (UIColor *)uig_steelGrayStartColor;
+ (UIColor *)uig_steelGrayEndColor;

# pragma mark - Kashmir

+ (UIColor *)uig_kashmirStartColor;
+ (UIColor *)uig_kashmirEndColor;

# pragma mark - Electric Violet

+ (UIColor *)uig_electricVioletStartColor;
+ (UIColor *)uig_electricVioletEndColor;

# pragma mark - Venice Blue

+ (UIColor *)uig_veniceBlueStartColor;
+ (UIColor *)uig_veniceBlueEndColor;

# pragma mark - Bora Bora

+ (UIColor *)uig_boraBoraStartColor;
+ (UIColor *)uig_boraBoraEndColor;

# pragma mark - Moss

+ (UIColor *)uig_mossStartColor;
+ (UIColor *)uig_mossEndColor;

# pragma mark - Shroom Haze

+ (UIColor *)uig_shroomHazeStartColor;
+ (UIColor *)uig_shroomHazeEndColor;

# pragma mark - Mystic

+ (UIColor *)uig_mysticStartColor;
+ (UIColor *)uig_mysticEndColor;

# pragma mark - Midnight City

+ (UIColor *)uig_midnightCityStartColor;
+ (UIColor *)uig_midnightCityEndColor;

# pragma mark - Sea Blizz

+ (UIColor *)uig_seaBlizzStartColor;
+ (UIColor *)uig_seaBlizzEndColor;

# pragma mark - Opa

+ (UIColor *)uig_opaStartColor;
+ (UIColor *)uig_opaEndColor;

# pragma mark - Titanium

+ (UIColor *)uig_titaniumStartColor;
+ (UIColor *)uig_titaniumEndColor;

# pragma mark - Mantle

+ (UIColor *)uig_mantleStartColor;
+ (UIColor *)uig_mantleEndColor;

# pragma mark - Dracula

+ (UIColor *)uig_draculaStartColor;
+ (UIColor *)uig_draculaEndColor;

# pragma mark - Peach

+ (UIColor *)uig_peachStartColor;
+ (UIColor *)uig_peachEndColor;

# pragma mark - Moonrise

+ (UIColor *)uig_moonriseStartColor;
+ (UIColor *)uig_moonriseEndColor;

# pragma mark - Clouds

+ (UIColor *)uig_cloudsStartColor;
+ (UIColor *)uig_cloudsEndColor;

# pragma mark - Stellar

+ (UIColor *)uig_stellarStartColor;
+ (UIColor *)uig_stellarEndColor;

# pragma mark - Bourbon

+ (UIColor *)uig_bourbonStartColor;
+ (UIColor *)uig_bourbonEndColor;

# pragma mark - Calm Darya

+ (UIColor *)uig_calmDaryaStartColor;
+ (UIColor *)uig_calmDaryaEndColor;

# pragma mark - Influenza

+ (UIColor *)uig_influenzaStartColor;
+ (UIColor *)uig_influenzaEndColor;

# pragma mark - Shrimpy

+ (UIColor *)uig_shrimpyStartColor;
+ (UIColor *)uig_shrimpyEndColor;

# pragma mark - Army

+ (UIColor *)uig_armyStartColor;
+ (UIColor *)uig_armyEndColor;

# pragma mark - Miaka

+ (UIColor *)uig_miakaStartColor;
+ (UIColor *)uig_miakaEndColor;

# pragma mark - Pinot Noir

+ (UIColor *)uig_pinotNoirStartColor;
+ (UIColor *)uig_pinotNoirEndColor;

# pragma mark - Day Tripper

+ (UIColor *)uig_dayTripperStartColor;
+ (UIColor *)uig_dayTripperEndColor;

# pragma mark - Namn

+ (UIColor *)uig_namnStartColor;
+ (UIColor *)uig_namnEndColor;

# pragma mark - Blurry Beach

+ (UIColor *)uig_blurryBeachStartColor;
+ (UIColor *)uig_blurryBeachEndColor;

# pragma mark - Vasily

+ (UIColor *)uig_vasilyStartColor;
+ (UIColor *)uig_vasilyEndColor;

# pragma mark - A Lost Memory

+ (UIColor *)uig_aLostMemoryStartColor;
+ (UIColor *)uig_aLostMemoryEndColor;

# pragma mark - Petrichor

+ (UIColor *)uig_petrichorStartColor;
+ (UIColor *)uig_petrichorEndColor;

# pragma mark - Jonquil

+ (UIColor *)uig_jonquilStartColor;
+ (UIColor *)uig_jonquilEndColor;

# pragma mark - Sirius Tamed

+ (UIColor *)uig_siriusTamedStartColor;
+ (UIColor *)uig_siriusTamedEndColor;

# pragma mark - Kyoto

+ (UIColor *)uig_kyotoStartColor;
+ (UIColor *)uig_kyotoEndColor;

# pragma mark - Misty Meadow

+ (UIColor *)uig_mistyMeadowStartColor;
+ (UIColor *)uig_mistyMeadowEndColor;

# pragma mark - Aqualicious

+ (UIColor *)uig_aqualiciousStartColor;
+ (UIColor *)uig_aqualiciousEndColor;

# pragma mark - Moor

+ (UIColor *)uig_moorStartColor;
+ (UIColor *)uig_moorEndColor;

# pragma mark - Almost

+ (UIColor *)uig_almostStartColor;
+ (UIColor *)uig_almostEndColor;

# pragma mark - Forever Lost

+ (UIColor *)uig_foreverLostStartColor;
+ (UIColor *)uig_foreverLostEndColor;

# pragma mark - Winter

+ (UIColor *)uig_winterStartColor;
+ (UIColor *)uig_winterEndColor;

# pragma mark - Autumn

+ (UIColor *)uig_autumnStartColor;
+ (UIColor *)uig_autumnEndColor;

# pragma mark - Candy

+ (UIColor *)uig_candyStartColor;
+ (UIColor *)uig_candyEndColor;

# pragma mark - Reef

+ (UIColor *)uig_reefStartColor;
+ (UIColor *)uig_reefEndColor;

# pragma mark - The Strain

+ (UIColor *)uig_theStrainStartColor;
+ (UIColor *)uig_theStrainEndColor;

# pragma mark - Dirty Fog

+ (UIColor *)uig_dirtyFogStartColor;
+ (UIColor *)uig_dirtyFogEndColor;

# pragma mark - Earthly

+ (UIColor *)uig_earthlyStartColor;
+ (UIColor *)uig_earthlyEndColor;

# pragma mark - Virgin

+ (UIColor *)uig_virginStartColor;
+ (UIColor *)uig_virginEndColor;

# pragma mark - Ash

+ (UIColor *)uig_ashStartColor;
+ (UIColor *)uig_ashEndColor;

# pragma mark - Shadow Night

+ (UIColor *)uig_shadowNightStartColor;
+ (UIColor *)uig_shadowNightEndColor;

# pragma mark - Cherryblossoms

+ (UIColor *)uig_cherryblossomsStartColor;
+ (UIColor *)uig_cherryblossomsEndColor;

# pragma mark - Parklife

+ (UIColor *)uig_parklifeStartColor;
+ (UIColor *)uig_parklifeEndColor;

# pragma mark - Dance To Forget

+ (UIColor *)uig_danceToForgetStartColor;
+ (UIColor *)uig_danceToForgetEndColor;

# pragma mark - Starfall

+ (UIColor *)uig_starfallStartColor;
+ (UIColor *)uig_starfallEndColor;

# pragma mark - Red Mist

+ (UIColor *)uig_redMistStartColor;
+ (UIColor *)uig_redMistEndColor;

# pragma mark - Teal Love

+ (UIColor *)uig_tealLoveStartColor;
+ (UIColor *)uig_tealLoveEndColor;

# pragma mark - Neon Life

+ (UIColor *)uig_neonLifeStartColor;
+ (UIColor *)uig_neonLifeEndColor;

# pragma mark - Man of Steel

+ (UIColor *)uig_manofSteelStartColor;
+ (UIColor *)uig_manofSteelEndColor;

# pragma mark - Amethyst

+ (UIColor *)uig_amethystStartColor;
+ (UIColor *)uig_amethystEndColor;

# pragma mark - Cheer Up Emo Kid

+ (UIColor *)uig_cheerUpEmoKidStartColor;
+ (UIColor *)uig_cheerUpEmoKidEndColor;

# pragma mark - Shore

+ (UIColor *)uig_shoreStartColor;
+ (UIColor *)uig_shoreEndColor;

# pragma mark - Facebook Messenger

+ (UIColor *)uig_facebookMessengerStartColor;
+ (UIColor *)uig_facebookMessengerEndColor;

# pragma mark - SoundCloud

+ (UIColor *)uig_soundCloudStartColor;
+ (UIColor *)uig_soundCloudEndColor;

# pragma mark - Behongo

+ (UIColor *)uig_behongoStartColor;
+ (UIColor *)uig_behongoEndColor;

Build latest one

Just clone and

curl https://raw.githubusercontent.com/Ghosh/uiGradients/master/gradients.json | ruby parse.rb

LICENSE

I do not claim any rights about the code. See https://github.com/Ghosh/uiGradients for LICENSE information. (uiGradients is MIT License!)

More Repositories

1

KIChameleonView

[iOS] A magical image view! Can be a movie, or an anim gif, or normal png, jpgs.
Objective-C
269
star
2

KIProgressView

[iOS] Medium, YouTube-like Progress View!
Objective-C
148
star
3

KIInPlaceEdit

[iOS] In-place editing for UILabel
Objective-C
121
star
4

android-awesome-libraries

There are many libraries which helps your android development!
108
star
5

Swift-UICollectionView-AFNetworking

Sample Swift Project using UICollectionView + AFNetworking Image and DAPagesContainer
Swift
34
star
6

note

My notes.
22
star
7

FastQR

[iOS] Integrate QR reading feature easily.
Objective-C
18
star
8

middleman-inliner

Provides a helper to inline JS/CSS in Middleman for performance.
Ruby
18
star
9

UIGestureRecognizer-RACExtension

Handle gesture events as ReactiveCocoa signals!
Objective-C
10
star
10

Swift-UICollectionView-WebP

UICollectionView + WebP w/SDWebImage
C
10
star
11

NSMutableData-MultipartFormDataAdditions

Easily build multipart/form-data -formatted data. (which used to post an image.)
Objective-C
7
star
12

KILogInject

[iOS] NSLog() any method without writing NSLog()!
Objective-C
6
star
13

Reachability-RACExtensions

Reachability with ReactiveCocoa!
Objective-C
6
star
14

lambda_kit

A set of helpers (.d.ts, handler driver..) for AWS Lambda development.
JavaScript
6
star
15

ios-awesome-libraries

Also in iOS, there are many awesome libraries!
5
star
16

footprint.js

Buzzfeed's "Pound" re-implementation.
JavaScript
5
star
17

SmoothWebView

Native-like behavior for WKWebView
Swift
4
star
18

cocproxy

A proxy which can stub certain URL to a local file.
Ruby
4
star
19

RemoteConfig

[iOS] Easy remote configuration with Google Spreadsheet.
Objective-C
4
star
20

jsonschema-schema.org

schema.org glossary in JSON Schema
3
star
21

droidgems

An awesome libraries for Android development.
CSS
3
star
22

rbbigquery

[WIP] A Ruby BigQuery client.
Ruby
3
star
23

incam

[iOS] Inline Camera UI. You might not need to open a modal to take a picture.
Objective-C
3
star
24

rbscreenshot

Take a screenshot in one line.
Ruby
2
star
25

jc

peco-like interactive JSON processing.
Go
2
star
26

PushablePusher

PushablePusher adds feature to push events from clients to libPusher.
Objective-C
2
star
27

tweet_collector

Collect tweets.
Ruby
2
star
28

CookieSync

Synchronize cookie without blocking UI using transparent SFSafariViewController
Objective-C
2
star
29

i18nfactory

i18nfactory
1
star
30

TodoFlux

experimental flux todo app
Objective-C
1
star
31

CameraRollCompat-iOS8

[DEPRECATED] Bringing Camera Roll to iOS8, where Camera Roll had been thrown away by Apple in iOS8 :/
Objective-C
1
star
32

QR-ios

QR scanner report.
1
star
33

alice-is-my-wife

An android app to manage my sleep cycle.
1
star
34

AIRLocalizedString

Update i18n texts without compelling users to update the App.
1
star
35

Sample-Annotation-AspectJ

A sample of annotation and AspectJ.
Java
1
star
36

Flux-iOS

[iOS] Fundamental Classes for Flux Architecture on iOS
1
star
37

build-jsonschema-schema.org

schema.org glossary in JSON Schema.
Ruby
1
star
38

template-spring-boot-gae

A bootstrap template for Spring Boot on Google App Engine.
Java
1
star
39

QR-android

QR scanner report for Android
Java
1
star
40

api_design-resources

A list of resources to design good API.
1
star
41

ios-articles

Pragmatic iOS Development knowledges
1
star
42

CloudFlow

[WIP] SQS Powered multi-instance coding made easy.
Ruby
1
star
43

java-modern-libraries

A list of modern Java libraries. (Compiling)
1
star
44

ios-architecture-goodies

Architecturing iOS Apps
1
star
45

WebPushWithPayload

An example project that perform service workers push with variable title, body, icon, url.
JavaScript
1
star