Project
colorset_generator
Generates Xcode .xcassets ColorSet JSON files from color palette URLs.
Extracts hex color codes embedded in URLs from palette tools such as:
- Huemint (https://huemint.com)
- RealtimeColors (https://realtimecolors.com)
- Coolors (https://coolors.co)
Any URL that encodes hex codes in its path or query string is supported.
Dark mode variants are automatically calculated by inverting the HSL
lightness of each light color — no manual dark palette needed.
The generated Colors.xcassets folder can be dragged and dropped directly
into Xcode's Assets catalog to use the colors in Swift/SwiftUI projects.
Usage:
colorset_generator "https://huemint.com/brand-2/#palette=2a3031-fafdfc-a19985"
colorset_generator "https://coolors.co/c4f1be-a2c3a4-869d96-525b76-201e50" --output MyPalette.xcassets
colorset_generator "https://www.realtimecolors.com/?colors=14140f-f8f8f6-9a9e79-aec4bd-8ea7ad" --no-dark
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
Development
Licenses
MIT
Dependencies