Colors
Foundation CSS provides a comprehensive set of color utility classes for text, backgrounds, and borders. All colors are designed with accessibility in mind and follow semantic naming conventions.
Text Colors
#Use text color classes to apply colors to text elements. All classes support hover and focus states.
Background Colors
#Use background color classes to apply colors to background elements. Perfect for cards, alerts, and section backgrounds.
Border Colors
#Use border color classes to apply colors to border elements. Great for form inputs, cards, and dividers.
Interactive States
#
All color classes support hover and focus states using the h:
and
f:
prefixes.
Semantic Usage
#Use colors semantically to convey meaning and provide clear visual feedback to users.
Best Practices
#Customization
#CSS Variables
All colors are exposed as CSS custom properties for use in custom components:
SCSS Variables (Build-time)
Override SCSS variables before importing to customize your theme: