Garnish

screenshot of Garnish

Garnish helps you pick the ideal colors for text and UI elements in light and dark themes, ensuring ideal contrast and visual harmony based on luminance and brightness

Overview

Garnish is a powerful Swift package designed to enhance your application's visual design by providing intelligent color utilities focused on accessibility and contrast optimization. With its robust features, Garnish ensures that your colors not only look good but also meet the essential standards for accessibility compliance. It is particularly beneficial for developers looking to maintain visual harmony across different themes and user interfaces.

By leveraging advanced color analysis and real-time recommendations, Garnish aims to make color selection seamless and efficient. Whether you are building an app with light and dark themes or simply want to optimize your color palette for better readability, Garnish has you covered.

Features

  • Auto Contrast: Automatically generates readable text colors from any background, ensuring clarity and legibility.
  • Color Math: Offers precise calculations of luminance, brightness, and contrast ratios aligned with WCAG standards.
  • Color Analysis: Classifies colors as light or dark and validates their compliance with accessibility requirements.
  • Accessibility & WCAG Compliance: Built-in standards ensure your color choices are accessible to all users.
  • Dynamic Color Adaptation: Colors that adapt beautifully between light and dark themes enhance user experience.
  • Smart Color Generation: Create contrasting shades and optimized color combinations to elevate your app's design.
  • Real-time Recommendations: Get instant feedback on contrast calculations and color choices to prioritize accessibility.
  • Documentation & Playground Demos: Comprehensive documentation and demo apps enable easy exploration of Garnish's features in action.