Typography
Ekanos sets everything in Inter (--font-sans, which --font-heading also uses), and the assistant’s replies in Newsreader (--font-voice). This package only names them, 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 Inter and Newsreader, components still render in your platform’s UI font (the fallback stack includesui-sans-serif, -apple-system, Segoe UI, Roboto, and system-ui).
Icons (Phosphor)
Icon draws a Phosphor icon (MIT). The fonts ship inside @ekanos/ui and styles.css declares them, so there is nothing to install or load. Your bundler must handle .woff2 files referenced from CSS, which Next.js, Vite and webpack 5 do out of the box.
name is a Phosphor icon name, as phosphoricons.com spells it:
"star:fill", and stays filled in every style.
Icon styles
Force every icon below a point into one weight:light, regular, bold, solid (Phosphor’s fill weight), duotone, or null for the default (regular). A browser downloads only the weights a page draws.
Unknown names and Font Awesome values
A name that is not a Phosphor icon drawsshapes, so a typo is visible rather than blank, and ekanos validate warns on it (icons/unknown). A Font Awesome value from before Ekanos moved to Phosphor (fa-house, fa-brands fa-github) still draws its Phosphor equivalent, but ekanos validate warns on it (icons/font-awesome): write the Phosphor name instead. Check a name in code with isRenderableIconName().
Icon sizing
An icon is an<svg>, so it sizes like a lucide icon: 16px by default, or any size class on it, or a component’s [&_svg] rule.
--icon-glyph-size to change the default for every unsized icon inside it.
Icon resolution
UseresolveIcon() and renderIcon() to work with icons programmatically:
IconStyleOverrideProvider.
Common icon names
Troubleshooting
An icon draws as a group of shapes
The name is not a Phosphor icon, so it draws theshapes fallback. Check the spelling against phosphoricons.com; ekanos validate lists every such name.
Icons draw nothing
Your bundler did not emit the icon fonts. Make sure it handles.woff2 files referenced from CSS (esbuild needs --loader:.woff2=file) and that @ekanos/ui/styles.css (or theme.css) is imported.