Skip to content

fix(ui): themeable .kino root backdrop (--kino-bg) - #32

Merged
karngyan merged 1 commit into
mainfrom
fix/themeable-root-bg
Jul 22, 2026
Merged

fix(ui): themeable .kino root backdrop (--kino-bg)#32
karngyan merged 1 commit into
mainfrom
fix/themeable-root-bg

Conversation

@karngyan

Copy link
Copy Markdown
Collaborator

What

The .kino root was hardcoded background: black. That backdrop shows before the media (or a scenes iframe) paints, so a player embedded over a light-theme page flashes black on load, with no way to override it.

Exposes it as a --kino-bg token (default black), alongside the other overridable --kino-* visual tokens. Consumers can theme it via their own stylesheet or the theme prop (e.g. --kino-bg: transparent).

Compatibility

Default is black, so every existing player renders identically. Patch release (changeset included).

Notes

The karnstack app already ships an app-side override for the scenes stage (karnstack#143); this makes it a first-class kino primitive for any consumer.

The root was hardcoded background: black, which flashes through before
the media/stage paints. Hosts embedding the player over a light surface
had no way to override it. Expose --kino-bg (default black, so existing
players are unchanged); consumers can set it via their stylesheet or the
theme prop.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
kino 7fbb908 Commit Preview URL

Branch Preview URL
Jul 22 2026, 08:33 PM

@karngyan
karngyan merged commit 5fc31bf into main Jul 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant