knowledge_cards that can be embedded in your application. Each knowledge_card entry includes:
embed_url: An iframe URL for embedding the interactive card
image_url: A link to a static image of the card
Dynamic Sizing
Tako Knowledge Cards vary in size. Some interactive elements will change the card’s dimensions. The iframe emits aresize event when the card is resized, allowing you to adjust the size in your application.
Example Dynamic Resizing Script
Example Dynamic Resizing Script
Static Images
For cases where you need a static representation, you can use the image_url to download and embed a static image of the card in your application.
Switch between dark and light mode
You can make your card dark themed by adding?dark_mode=true or light mode by explicitly adding ?dark_mode=false to the embed url
dark_mode=true
dark_mode=false
Automatically match the viewer’s theme
Rather than hardcoding the theme, you can detect the viewer’s color mode at runtime and setdark_mode accordingly. The pattern is always the same: compute whether the viewer is in dark mode, append ?dark_mode=true or ?dark_mode=false to the embed URL, and re-apply when the preference changes.
Follow the viewer’s OS / browser preference
Use the prefers-color-scheme media query. This works anywhere, with no knowledge of the host page, and updates live if the viewer switches their system theme.
dark class on <html>), key off that instead and use a MutationObserver to react when it changes.
Setting an iframe’s
src reloads the card. If your page lets viewers toggle the theme frequently, debounce the handler so the card isn’t reloaded on every rapid change.Glanceable mode
Add?glanceable=true to an embed URL to render a simplified, glanceable version of the card. Glanceable mode is designed for contexts where the user has limited attention and needs to absorb the key information at a glance — for example, on a vehicle display, a smartwatch, or a TV dashboard.
In glanceable mode the card:
- Enlarges typography — headlines, metrics, axis labels, and table text are scaled up for readability from a distance.
- Hides interactive chrome — search boxes, selectors, tabs, show/hide toggles, thumbs up/down, and the footer are removed, leaving only the content.
- Trims content to the essentials — tables cap to their top rows, charts drop tooltips and animations and use thicker lines and fewer axis ticks, and supported cards (stocks, sports schedules, prediction markets, game scores) render a focused summary layout.
glanceable=true
Glanceable mode can be combined with
?dark_mode=true (or false) — for example ?glanceable=true&dark_mode=true.