Add ColorFYI entity cards, comparison tables, glossary terms, interactive tools, and inline elements to any website with a single line of HTML. No build tools. No dependencies. Live data from the ColorFYI database.
Entity Card Preview
Two lines of HTML. That's all it takes.
Select a widget type to preview. Every widget includes Shadow DOM isolation and a "Powered by ColorFYI" backlink.
Widget preview loads from live API
Widget preview loads from live API
Configure widgets with data-* attributes.
| Attribute | Values | Default | Description |
|---|---|---|---|
| data-colorfyi | entity, compare, glossary, guide, search, tooltip, [tools] | required | Widget type to render |
| data-slug | any slug | — | Entity slug from the ColorFYI database |
| data-theme | light, dark, sepia, auto | light | Visual theme (auto follows OS preference) |
| data-styleVariant | modern, minimal | modern | Widget design style |
| data-size | default, compact, large | default | Widget size |
| data-slugs | slug-a,slug-b | — | Comma-separated slugs for compare widget |
| data-placeholder | any string | Search... | Search box placeholder text |
2 design styles × 4 themes. Mix and match to fit your site.
Clean lines, rounded corners, accent gradients. Ideal for product pages and marketing sites. Default style.
Subtle borders, flat design, no gradients. Ideal for documentation and reference sites.
Set explicitly or use auto to follow the visitor's OS preference (prefers-color-scheme).
Warm paper-tone background. Perfect for design blogs, typography articles, and creative content.
Multiple delivery options to fit your workflow.
Global CDN, auto-updates with npm. Recommended for most use cases.
<script src="https://cdn.jsdelivr.net/npm/colorfyi-embed@1/dist/embed.min.js"></script>
For Webpack, Vite, Rollup bundlers.
npm install colorfyi-embed // In your JS/TS: import 'colorfyi-embed';
Lock to a specific version for production stability.
<script src="https://cdn.jsdelivr.net/npm/colorfyi-embed@1.0.0/dist/embed.min.js"></script>
Part of FYIPedia — open-source developer tools for design, typography, characters, and visual encoding.
| Site | Domain | Package |
|---|---|---|
| ColorFYI | colorfyi.com | npm |
| FontFYI | fontfyi.com | npm |
| EmojiFYI | emojifyi.com | npm |
| SymbolFYI | symbolfyi.com | npm |
| UnicodeFYI | unicodefyi.com | npm |