Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kapishdima/fonttrio/llms.txt
Use this file to discover all available pages before exploring further.
getAllMoods
Returns an array of all unique mood tags used across all font pairings in the registry.Function Signature
lib/pairings.ts
Returns
Array of all unique mood tags across all pairings
Description
ThegetAllMoods() function extracts and returns all unique mood values from the mood arrays of every pairing in the registry. This is useful for building filter UIs, discovering available mood categories, or analyzing the collection.
Usage Examples
Basic Usage
Build a Filter UI
Count Pairings Per Mood
Generate Mood Tag Cloud
Validate Mood Input
Common Mood Tags
The registry includes moods such as:- Style:
minimal,modern,clean,brutalist,nordic - Tone:
editorial,literary,professional,friendly,playful - Usage:
structured,systematic,versatile,readable - Character:
bold,impactful,sophisticated,warm,distinctive
The exact list of moods may change as new pairings are added to the registry. Always call
getAllMoods() to get the current list.Related Functions
getPairingsByMood
Filter pairings by a specific mood tag
getAllPairings
Get all available pairings
Notes
- Moods are extracted from the
moodarray field of each pairing - The function deduplicates moods automatically using a Set
- Returns an array of strings in no particular order
- Empty array is returned only if no pairings exist (should never happen in production)
- Performance: O(n × m) where n is number of pairings and m is average moods per pairing
Source Reference
Implementation:lib/pairings.ts:47-51