Skip to content

dan-hart/DHFlatUIColors

Repository files navigation

DHFlatUIColors

An easy way to access Flat UI Colors in Swift.

About

This Swift package provides access to Flat UI Colors, making it simple to use them in your Swift projects.

Note: I did not create these colors; this package simply provides an easy way to access them in Swift. All credit for the colors goes to Flat UI Colors.

Installation

Add DHFlatUIColors to your project using Swift Package Manager.

Usage

import DHFlatUIColors

// Access a specific color
let colorInfo = DHFlatUIColors.RussianPalette.appleValley.info
let color = colorInfo.color
let hex = colorInfo.hex
let name = colorInfo.name

// Iterate over all palettes and colors
for palette in DHFlatUIColors.Palette.allCases {
    print("Palette: \(palette.name)")
    for colorInfo in palette.colors {
        print("Color Name: \(colorInfo.name), Hex: \(colorInfo.hex)")
    }
}

License

This project is licensed under the MIT License.

About

Swift Package for Colors on flatuicolors.com

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages