Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. iOS
  3. FlatUIColors

FlatUIColors

MITSwift

A Swift library providing Flat UI color palette helpers for iOS and macOS development.

GitHubGitHub
163 stars24 forks0 contributors

What is FlatUIColors?

FlatUIColors is a Swift library that provides a collection of predefined colors from the Flat UI palette for iOS and macOS development. It solves the problem of manually defining and maintaining consistent Flat design colors in Swift projects by offering easy-to-use static methods that return platform-appropriate color objects.

Target Audience

iOS and macOS developers building applications with a Flat UI design aesthetic who want quick access to standardized colors.

Value Proposition

Developers choose FlatUIColors for its simplicity, platform-awareness, and time-saving convenience over manually defining Flat UI colors, ensuring design consistency with minimal code.

Overview

Flat UI color palette helpers written in Swift.

Use Cases

Best For

  • Adding Flat UI colors to iOS apps with Swift
  • Ensuring color consistency in macOS applications
  • Quick prototyping with predefined design system colors
  • Avoiding manual color hex code management
  • Building apps following Flat design principles
  • Supporting both iOS and macOS with a single color library

Not Ideal For

  • Projects requiring dynamic color theming or semantic color systems beyond Flat UI
  • Apps built with cross-platform frameworks like Flutter or React Native that need ecosystem-agnostic color libraries
  • Teams preferring Swift Package Manager over CocoaPods for dependency management
  • Design systems needing built-in dark mode variants or accessibility-focused color adjustments

Pros & Cons

Pros

Predefined Flat Palette

Includes over 40 named colors from the Flat UI design system, such as turquoise and sunflower, eliminating manual hex code definitions as listed in the README.

Platform-Aware Implementation

Uses OSColor typealias to automatically return UIColor for iOS and NSColor for macOS, ensuring cross-platform compatibility shown in the usage examples.

Alpha Transparency Support

Offers an optional alpha parameter in color functions, allowing easy transparency adjustments without extra code, as demonstrated with FlatUIColors.emerald(0.25).

Clean Static API

Colors are accessed via static methods on the FlatUIColors struct, providing a type-safe and intuitive interface for developers, per the key features.

Cons

Limited to Flat UI

Only supports the Flat UI color palette, making it unsuitable for projects requiring other design systems like Material Design or custom color schemes.

Static Color Definitions

Colors are hardcoded and cannot be easily extended or customized, restricting flexibility for advanced theming or color manipulation.

Dependency on CocoaPods

Installation requires CocoaPods as stated in the README, which may not align with projects using alternative package managers like Swift Package Manager.

Frequently Asked Questions

Quick Stats

Stars163
Forks24
Contributors0
Open Issues1
Last commit7 years ago
CreatedSince 2014

Tags

#ios#app-development#flat-ui#ui-design#cocoapods#color-palette#swift#macos

Built With

S
Swift

Included in

iOS51.7k
Auto-fetched 10 hours ago

Related Projects

HueHue

:art: Hue is the all-in-one coloring utility that you'll ever need.

Stars3,554
Forks223
Last commit3 years ago
ColoursColours

A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.

Stars3,084
Forks297
Last commit7 years ago
DynamicColorDynamicColor

Yet another extension to manipulate colors easily in Swift and SwiftUI

Stars3,083
Forks146
Last commit2 years ago
UIColor-Hex-SwiftUIColor-Hex-Swift

Convenience methods for creating color using RGBA hex string.

Stars1,243
Forks142
Last commit2 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub