Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 973 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 973 Bytes

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.