A Swift package that provides intelligent color utilities for accessibility, contrast optimization, and visual harmony.
Garnish is a comprehensive Swift package that provides intelligent color utilities for accessibility, contrast optimization, and visual harmony.
Ensure your colors meet accessibility requirements:
- Contrast Optimization - Generate colors that meet WCAG accessibility standards
- Dynamic Color Adaptation - Colors that work beautifully in light and dark themes
- Mathematical Color Analysis - Precise luminance, brightness, and contrast calculations
- Smart Color Generation - Create contrasting shades and optimized color combinations
- Real-time contrast calculations and accessibility-first color recommendations
- Font weight optimization for improved readability
📖 Complete Documentation available in the Garnish Wiki
Garnish comes with a bundled demo app that lets you explore Garnish in action. Open the Xcode workspace, select the GarnishPlayground target, and press Run to try it out.
Explore the core color utilities with interactive demos for Core API (monochromatic and bi-chromatic contrast generation), Math Utilities (luminance calculations and contrast ratios), Color Extensions (brightness adjustment and hex conversion), Font Weight optimization, and Accessibility compliance checking with WCAG standards.
This project is released under the MIT License. See LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request! See CONTRIBUTING.md for guidelines.
If you like this project, please consider giving it a ⭐️
- here, obviously.
- Threads
- Bluesky
- Join the Discord
Built with 🍏🎨🌈 by Aether