Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/themeable-root-bg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@karnstack/kino": patch
---

The `.kino` root backdrop is now a `--kino-bg` token (default `black`), so a
host embedding the player over a light page can theme it (e.g. `--kino-bg:
transparent`) instead of flashing black before the media paints. Default is
unchanged, so existing players stay black.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ For deeper control, every visual is driven by CSS custom properties on the `.kin
| Custom property | Default | Role |
| ----------------------- | --------------------------------------------- | --------------------------------------------- |
| `--kino-accent` | `oklch(50.8% 0.118 165.612)` | Accent color (progress, active items, ranges) |
| `--kino-bg` | `black` | Root backdrop behind the media/stage |
| `--kino-radius` | `12px` | Corner radius of glass surfaces |
| `--kino-surface` | `color-mix(in oklab, black 55%, transparent)` | Glass surface fill |
| `--kino-surface-strong` | `color-mix(in oklab, black 70%, transparent)` | Stronger surface (idle play button) |
Expand Down
5 changes: 4 additions & 1 deletion src/styles/kino.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
.kino {
/* theme tokens (overridable via inline style or a theme prop) */
--kino-accent: oklch(50.8% 0.118 165.612);
/* Root backdrop behind the media/stage. Black suits real video; a scenes
host over a light page can override it (e.g. --kino-bg: transparent). */
--kino-bg: black;
--kino-radius: 12px;
--kino-surface: color-mix(in oklab, black 55%, transparent);
--kino-surface-strong: color-mix(in oklab, black 70%, transparent);
Expand All @@ -19,7 +22,7 @@
height: 100%;
color: var(--kino-text);
font-family: ui-sans-serif, system-ui, sans-serif;
background: black;
background: var(--kino-bg);
overflow: hidden;
/* container queries so captions/flash scale with the player, not the page */
container-type: inline-size;
Expand Down
Loading