PrettyColors alternatives and similar libraries
Based on the "Colors" category.
Alternatively, view PrettyColors alternatives based on common mentions on social networks and blogs.
-
Chameleon
Color framework for Swift & Objective-C (Gradient colors, hexcode support, colors from images & more). -
SwiftGen-Colors
The Swift code generator for your assets, storyboards, Localizable.strings, โฆ โ Get rid of all String-based APIs! -
Hue
:art: Hue is the all-in-one coloring utility that you'll ever need. -
DynamicColor
Yet another extension to manipulate colors easily in Swift and SwiftUI -
UIColor-Hex-Swift
Convenience methods for creating color using RGBA hex string. -
SwiftHEXColors
HEX color handling as an extension for UIColor. -
Gradients
๐ A curated collection of splendid 180+ gradients made in swift -
ChromaColorPicker
:art: An intuitive iOS color picker built in Swift. -
RandomColorSwift
An attractive color generator for Swift. Ported from randomColor.js. -
UIGradient
A simple and powerful library for using gradient layer, image, color -
FlatUIColors
Flat UI color palette helpers written in Swift. -
HexColor
Utility that lets you define UIColors in Swift as they've meant to be defined: as HEX values -
AEConicalGradient
Conical (angular) gradient for iOS written in Swift -
ImagePalette
Swift/iOS port of Android's Palette https://developer.android.com/reference/android/support/v7/graphics/Palette.html -
CSS3ColorsSwift
A UIColor extension with CSS3 Color names. -
Google Material Color
Google Material Color Palette in Swift -
UIColor-WikiColors
All wikipedia colors implemented as easy to use UIColor extension ๐ -
Colors
A pure Swift library for using ANSI codes. Basically makes command-line coloring and styling very easy!
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of PrettyColors or a related project?
README
PrettyColors
[
](./Package.swift)
[
](./LICENSE.md)
Description
PrettyColors
is a Swift library for styling and coloring text in the Terminal.
The library outputs ANSI escape codes and conforms to ECMA Standard 48.
Example
import PrettyColors
let redText: String = Color.Wrap(foreground: .red).wrap("A red piece of text.")
println(redText)
Color.Wrap(foreground: .yellow, style: .bold)
Color.Wrap(foreground: .green, background: .black, style: .bold, .underlined)
// 8-bit (256) color support
Color.Wrap(foreground: 114)
Color.Wrap(foreground: 114, style: .bold)
More examples can be found in [the tests](./Tests/UnitTests/PrettyColorsTests.swift).
Installation
Carthage
Add the following to your Cartfile:
github "jdhealy/PrettyColors"
CocoaPods
Add the following to your Podfile:
pod 'PrettyColors', :git => 'https://github.com/jdhealy/PrettyColors'
You will also need to make sure you're opting into using frameworks:
use_frameworks!
Then run pod install
with CocoaPods 0.36 or newer.
Inspiration
License
PrettyColors is released under the MIT license. See [LICENSE.md](./LICENSE.md) for details.
*Note that all licence references and agreements mentioned in the PrettyColors README section above
are relevant to that project's source code only.