Function Signature
Description
Filters and returns all font pairings that include the specified mood tag. Each pairing can have multiple mood tags, and this function returns all pairings where the specified mood appears in themood array.
Mood tags describe the aesthetic feeling and personality of a font pairing, such as “minimal”, “professional”, “playful”, “elegant”, etc.
Parameters
The mood tag to filter by. Common mood values include:
"minimal"- Clean, uncluttered aesthetic"professional"- Business-appropriate and formal"nordic"- Scandinavian-inspired simplicity"structured"- Organized and geometric"playful"- Fun and creative"elegant"- Refined and sophisticated
Return Value
An array of font pairings that contain the specified mood tag. Returns an empty array if no pairings match the mood.Each
PairingData object contains:Usage Examples
Example Response
Notes
Multiple Moods: Each pairing can have multiple mood tags. A pairing tagged with
["minimal", "nordic"] will be returned when searching for either “minimal” or “nordic”.Performance: This function filters the entire pairings array on each call. For frequently accessed mood filters in production, consider caching the results.
Related Functions
getAllPairings- Get all available pairingsgetPairing- Get a specific pairing by namegetPairingsByCategory- Filter by font categorygetAllMoods- Get all available mood tags (see lib/pairings.ts:47)