Typography
Ekanos pairs Figtree (body) with Bricolage Grotesque (headings). This package only names them in--font-sans / --font-heading, followed by a system fallback stack; no webfont is bundled or fetched.
Load from Google Fonts
Add to your HTML<head>:
Load from your CDN
Host the font files yourself and define them in your CSS:Use system fonts
If you don’t load Figtree and Bricolage Grotesque, components still render in your platform’s UI font (the fallback stack includesui-sans-serif, -apple-system, Segoe UI, Roboto, and system-ui).
Icons (Font Awesome)
Icon renders Font Awesome markup (<i class="fa-solid fa-house">). The package ships no icon font, because Ekanos uses Font Awesome Pro under a commercial licence, so you must supply one.
name is a Font Awesome class string:
If you have Font Awesome Pro
Load your own Pro CSS (or kit) and every icon renders exactly as it does in Ekanos.If you use Font Awesome Free
-
Install:
-
Load the stylesheet:
-
Override the style (Free has no
fa-lightorfa-duotone):Free shipsfa-solid,fa-regular, andfa-brands. Settingvalue="solid"rewrites every icon’s style class tofa-solid(brand icons are left alone). This matters because an unrecognised name falls back tofa-light fa-shapes, and Free has nofa-lightfamily. Accepted values:solid,regular,light,duotone, ornull.
Which icons are available in Free?
Free is missing many Pro glyphs. The package carries the list of names Font Awesome Free 7.3.1 ships, and in developmentIcon, resolveIcon, and renderIcon warn once per distinct name that is not in it (see Icon warnings below).
Fallback behavior
The package CSS draws two placeholders so a missing icon is visible rather than blank:- No Font Awesome CSS loaded: each icon renders a placeholder box (
□). Set--ekanos-icon-fallbackto change it, or--ekanos-icon-fallback: ''to switch it off. - Font Awesome loaded, glyph not in it (a Pro-only glyph under Free): the icon falls back to a question mark,
--ekanos-icon-fa-fallback(default'\f059',fa-circle-question).
Icon sizing
Icons size byfont-size, not width/height. Icon derives font-size from the first h-* / w-* / size-* class:
Icon resolution
UseresolveIcon() and renderIcon() to work with icons programmatically:
IconStyleOverrideProvider.
Icon warnings
In development,Icon, resolveIcon, and renderIcon console.warn once per distinct resolved value that Font Awesome Free does not ship:
process.env.NODE_ENV is 'production', it is skipped.
Common icon names
These glyph names are in the package’s Font Awesome Free list:Troubleshooting
Icons render as placeholder box (□)
No Font Awesome CSS loaded. Load@fortawesome/fontawesome-free/css/all.min.css or your Font Awesome Pro kit.
Icons render as circle question mark (?)
Font Awesome is loaded, but the glyph isn’t in it (often a Pro-only glyph under Free). Check the spelling and the development console warning.Fonts look like system defaults
Figtree and Bricolage Grotesque aren’t loading. Load them from Google Fonts or your CDN.Some icons appear but others are boxes
You’re likely using Font Awesome Free with icons in a family it lacks (fa-light or fa-duotone). Wrap the tree in <IconStyleOverrideProvider value="solid"> to force a family Free has, or replace missing names with available ones.