An easy way to access Flat UI Colors in Swift.
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.
Add DHFlatUIColors
to your project using Swift Package Manager.
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)")
}
}
This project is licensed under the MIT License.