Foundation maps a palette to components and helpers: primary, secondary, success, warning, alert. Apply them to buttons, callouts, and label badges for status chips.
Using palette classes
button primary/button hollow secondarycallout success— bordered message bandslabel alert— compact counts and stateshas-tip— tooltips (needs Foundation JS)
Do not rely on color alone for meaning—add text labels and review CSS color and contrast. Customize palette variables in Sass when brand colors diverge from Zurb defaults.
Important interview questions and answers
- Q: primary vs secondary in Foundation?
A: Semantic roles in the design system—primary for main CTAs, secondary for alternate actions; exact hex values come from Sass settings. - Q: label vs badge?
A: Foundation useslabelfor small inline status chips; similar role to Bootstrap badges.
Self-check
- Which classes style a hollow warning button?
- When is a
labelbetter than a fullcallout?