Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
/**
* Do not edit directly
* This file is generated from the token sources under style-definitions/.
*
* How to edit these values:
* Edit the corresponding token file under the style-definitions directory
* in the Owncast web project.
*/
:root {
--link-color: var(--theme-color-action);
--link-hover-color: var(--theme-color-action-hover);
--modal-header-bg: var(--theme-color-components-modal-header-background);
--modal-content-bg: var(--theme-color-components-modal-content-background);
--alert-error-bg-color: var(--theme-color-palette-4);
--alert-error-border-color: var(--theme-color-palette-error);
--popover-background: var(--theme-color-components-menu-background);
--tag-default-color: var(--theme-color-action);
--border-radius-base: var(--theme-rounded-corners);
--background-color-light: var(--theme-color-background-main);
--modal-close-color: var(--theme-color-components-modal-header-text);
--primary-color: #6544e9; /** Text link/secondary light text */
--primary-color-hover: #2386e2; /** Fun color 1 */
--primary-color-active: #7a5cf3; /** Text link hover */
--primary-1: #6544e9; /** Text link/secondary light text */
--primary-2: #2386e2; /** Fun color 1 */
--primary-3: #7a5cf3; /** Text link hover */
--primary-4: #da9eff; /** Fun color 2 */
--primary-5: #6544e9; /** Text link/secondary light text */
--primary-6: #2386e2; /** Fun color 1 */
--primary-7: #7a5cf3; /** Text link hover */
--primary-8: #da9eff; /** Fun color 2 */
--component-background: #e2e8f0; /** Light primary */
--body-background: #e2e8f0; /** Light primary */
--theme-rounded-corners: 9px; /** How much corners are rounded in places in the UI. */
--theme-unknown-1: green; /** This should never be used and it means something is wrong. */
--theme-unknown-2: red; /** This should never be used and it means something is wrong. */
--theme-text-body-font-family: var(
--font-owncast-body
); /** The font family used for the body text. */
--theme-text-display-font-family: var(
--font-owncast-display
); /** The font family used for the display/header text. */
--theme-color-users-0: var(--color-owncast-user-0);
--theme-color-users-1: var(--color-owncast-user-1);
--theme-color-users-2: var(--color-owncast-user-2);
--theme-color-users-3: var(--color-owncast-user-3);
--theme-color-users-4: var(--color-owncast-user-4);
--theme-color-users-5: var(--color-owncast-user-5);
--theme-color-users-6: var(--color-owncast-user-6);
--theme-color-users-7: var(--color-owncast-user-7);
--theme-color-palette-0: var(--color-owncast-palette-0); /** Dark primary */
--theme-color-palette-1: var(--color-owncast-palette-1); /** Dark secondary */
--theme-color-palette-2: var(--color-owncast-palette-2); /** Dark alternate */
--theme-color-palette-3: var(--color-owncast-palette-3); /** Light primary */
--theme-color-palette-4: var(--color-owncast-palette-4); /** Light secondary */
--theme-color-palette-5: var(--color-owncast-palette-5); /** Light alternate */
--theme-color-palette-6: var(--color-owncast-palette-6); /** Text link/secondary light text */
--theme-color-palette-7: var(--color-owncast-palette-7); /** Text link hover */
--theme-color-palette-8: var(--color-owncast-palette-8); /** Disabled background */
--theme-color-palette-9: var(--color-owncast-palette-9); /** Neutral dark */
--theme-color-palette-10: var(--color-owncast-palette-10); /** Neutral gray light */
--theme-color-palette-11: var(--color-owncast-palette-11); /** Fun color 1 */
--theme-color-palette-12: var(--color-owncast-palette-12); /** Fun color 2 */
--theme-color-palette-13: var(--color-owncast-palette-13); /** Fun color 3 */
--theme-color-palette-14: var(--color-owncast-palette-14); /** Light background */
--theme-color-palette-15: var(--color-owncast-palette-15); /** Lighter background */
--theme-color-palette-error: var(--color-owncast-palette-error); /** Error */
--theme-color-palette-warning: var(--color-owncast-palette-warning); /** Warning */
--theme-color-background-main: var(--theme-color-palette-3); /** Light primary */
--theme-color-background-light: var(--theme-color-palette-3); /** Light primary */
--theme-color-background-header: var(--theme-color-palette-0); /** Dark primary */
--theme-color-background-secondary: var(--theme-color-palette-1); /** Dark secondary */
--theme-color-action: var(--theme-color-palette-6); /** Text link/secondary light text */
--theme-color-action-hover: var(--theme-color-palette-7); /** Text link hover */
--theme-color-action-disabled: var(--theme-color-palette-8); /** Disabled background */
--theme-color-error: var(--theme-color-palette-error); /** Error */
--theme-color-warning: var(--theme-color-palette-warning); /** Warning */
--theme-color-components-text-on-light: var(--theme-color-palette-0); /** Dark primary */
--theme-color-components-text-on-dark: var(--theme-color-palette-3); /** Light primary */
--theme-color-components-primary-button-background: var(
--theme-color-action
); /** Text link/secondary light text */
--theme-color-components-primary-button-background-disabled: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-primary-button-text: var(--theme-color-palette-4); /** Light secondary */
--theme-color-components-primary-button-text-disabled: var(
--theme-color-palette-10
); /** Neutral gray light */
--theme-color-components-primary-button-border: var(
--theme-color-action
); /** Text link/secondary light text */
--theme-color-components-primary-button-border-disabled: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-secondary-button-background: var(
--theme-color-palette-4
); /** Light secondary */
--theme-color-components-secondary-button-background-disabled: transparent;
--theme-color-components-secondary-button-text: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-secondary-button-text-disabled: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-secondary-button-border: var(
--theme-color-action
); /** Text link/secondary light text */
--theme-color-components-secondary-button-border-disabled: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-chat-background: var(--theme-color-palette-1); /** Dark secondary */
--theme-color-components-chat-text: var(--theme-color-palette-15); /** Lighter background */
--theme-color-components-content-background: var(
--theme-color-palette-15
); /** Lighter background */
--theme-color-components-modal-header-background: var(
--theme-color-background-secondary
); /** Dark secondary */
--theme-color-components-modal-header-text: var(
--theme-color-components-text-on-dark
); /** Light primary */
--theme-color-components-modal-content-background: var(
--theme-color-components-content-background
); /** Lighter background */
--theme-color-components-modal-content-text: var(
--theme-color-components-text-on-light
); /** Dark primary */
--theme-color-components-menu-background: var(--theme-color-palette-3); /** Light primary */
--theme-color-components-menu-item-text: var(--theme-color-palette-0); /** Dark primary */
--theme-color-components-menu-item-bg: transparent;
--theme-color-components-menu-item-hover-bg: rgba(0, 0, 0, 0.05);
--theme-color-components-menu-item-focus-bg: rgba(0, 0, 0, 0.1);
--theme-color-components-form-field-background: var(
--theme-color-palette-4
); /** Light secondary */
--theme-color-components-form-field-placeholder: var(
--theme-color-action-disabled
); /** Disabled background */
--theme-color-components-form-field-text: var(--theme-color-palette-0); /** Dark primary */
--theme-color-components-form-field-border: var(--theme-color-palette-0); /** Dark primary */
--theme-color-components-video-background: var(--theme-color-palette-2); /** Dark alternate */
--theme-color-components-video-live-indicator: var(
--theme-color-action
); /** The Live dot indicator in the control bar of the video player */
--theme-color-components-video-status-bar-background: var(
--theme-color-palette-2
); /** The background color of the video status bar */
--theme-color-components-video-status-bar-foreground: var(
--theme-color-palette-4
); /** The foreground color of the video status bar */
--color-unknown: #7a5cf3;
--color-unknown-2: #fffffe;
--color-owncast-user-0: #ff717b;
--color-owncast-user-1: #f4e413;
--color-owncast-user-2: #b99c45;
--color-owncast-user-3: #58f40b;
--color-owncast-user-4: #0bf4f4;
--color-owncast-user-5: #16a8f7;
--color-owncast-user-6: #9a92ff;
--color-owncast-user-7: #ff53ff;
--color-owncast-palette-0: #12161d; /** Dark primary */
--color-owncast-palette-1: #2d3748; /** Dark secondary */
--color-owncast-palette-2: #000000; /** Dark alternate */
--color-owncast-palette-3: #e2e8f0; /** Light primary */
--color-owncast-palette-4: #ffffff; /** Light secondary */
--color-owncast-palette-5: #c3dafe; /** Light alternate */
--color-owncast-palette-6: #6544e9; /** Text link/secondary light text */
--color-owncast-palette-7: #7a5cf3; /** Text link hover */
--color-owncast-palette-8: #b6b3c6; /** Disabled background */
--color-owncast-palette-9: #39373d; /** Neutral dark */
--color-owncast-palette-10: #5d5f72; /** Neutral gray light */
--color-owncast-palette-11: #2386e2; /** Fun color 1 */
--color-owncast-palette-12: #da9eff; /** Fun color 2 */
--color-owncast-palette-13: #42bea6; /** Fun color 3 */
--color-owncast-palette-14: #f0f3f8; /** Light background */
--color-owncast-palette-15: #eff1f4; /** Lighter background */
--color-owncast-palette-error: #ff4b39; /** Error */
--color-owncast-palette-warning: #ffc655; /** Warning */
--font-owncast-body:
'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
--font-owncast-display:
'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji';
}
/*
* plugin-elements.css — hand-authored element baseline for plugin content.
*
* This is appended (by build.sh) to the generated :root token block to form
* the served plugin.css. It styles plain HTML elements (no AntD class names)
* with the Owncast theme tokens so a plugin author's semantic HTML adopts
* the native look with no CSS of their own. It only ever *references*
* tokens — never hard-codes values — so the generated :root defaults (and
* the admin's appearanceVariables/customStyles layered on top) flow through.
*
* Scope is deliberately narrow: typography, links, forms, buttons, tables,
* cards. Not a UI kit — just "this looks like it belongs". Plugins remain
* free to add their own styles on top.
*
* Note on fonts: the generated :root above already defines
* --font-owncast-body/-display (the theme font tokens reference them), so
* plugin content gets the right family. The web-font files themselves
* aren't loaded inside a frame, so text falls back to the system fonts in
* those stacks — acceptable, and the same as the prior admin stylesheet.
*/
/* Transparent so the host panel/page paints the background and the plugin
* content reads as part of the page rather than a boxed-in white pane. The
* viewer frame sits on the soft content panel; the admin frame sits on the
* admin page background. Keeping this in the stylesheet (rather than only the
* viewer's JS) means the admin frame blends in too. */
html,
body {
margin: 0;
padding: 0;
background: transparent;
color: var(--theme-color-components-text-on-light);
font-family: var(--theme-text-body-font-family);
font-size: 14px;
line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--theme-text-display-font-family);
color: var(--theme-color-components-text-on-light);
margin: 0 0 12px;
font-weight: 600;
line-height: 1.25;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 17px;
}
h4 {
font-size: 15px;
}
p {
margin: 0 0 12px;
}
a {
color: var(--theme-color-action);
text-decoration: none;
}
a:hover {
color: var(--theme-color-action-hover);
text-decoration: underline;
}
hr {
border: 0;
border-top: 1px solid var(--theme-color-palette-8);
margin: 16px 0;
}
code,
pre,
kbd,
samp {
font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
font-size: 0.9em;
background: var(--theme-color-palette-14);
border-radius: 4px;
}
code {
padding: 1px 4px;
}
pre {
padding: 8px 12px;
overflow-x: auto;
line-height: 1.4;
}
pre code {
padding: 0;
background: transparent;
}
/* Forms — give plain inputs the same boxed look AntD uses, without the
* .ant-input class machinery. label/input pairs work in any layout. */
form {
display: flex;
flex-direction: column;
gap: 12px;
max-width: 520px;
}
label {
display: flex;
flex-direction: column;
gap: 4px;
font-weight: 500;
color: var(--theme-color-components-text-on-light);
}
/* Inputs: only target form fields, not button-like inputs. */
input:not(
[type='button'],
[type='submit'],
[type='reset'],
[type='checkbox'],
[type='radio'],
[type='range'],
[type='color']
),
textarea,
select {
font-family: inherit;
font-size: 14px;
color: var(--theme-color-components-form-field-text);
background: var(--theme-color-components-form-field-background);
border: 1px solid var(--theme-color-components-form-field-border);
border-radius: var(--theme-rounded-corners);
padding: 6px 10px;
outline: none;
transition:
border-color 120ms ease,
box-shadow 120ms ease;
width: 100%;
box-sizing: border-box;
}
input:not(
[type='button'],
[type='submit'],
[type='reset'],
[type='checkbox'],
[type='radio'],
[type='range'],
[type='color']
):focus,
textarea:focus,
select:focus {
border-color: var(--theme-color-action);
box-shadow: 0 0 0 2px rgb(101 68 233 / 15%);
}
input::placeholder,
textarea::placeholder {
color: var(--theme-color-components-form-field-placeholder);
}
input:disabled,
textarea:disabled,
select:disabled {
background: var(--theme-color-palette-14);
cursor: not-allowed;
}
textarea {
min-height: 80px;
resize: vertical;
}
/* Buttons — primary look, plus a secondary outline variant authors opt
* into with class="secondary". Mirrors AntD's primary/default split. */
button,
input[type='submit'],
input[type='button'],
input[type='reset'] {
font-family: inherit;
font-size: 14px;
font-weight: 500;
line-height: 1;
padding: 8px 16px;
border-radius: var(--theme-rounded-corners);
border: 1px solid var(--theme-color-components-primary-button-border);
background: var(--theme-color-components-primary-button-background);
color: var(--theme-color-components-primary-button-text);
cursor: pointer;
transition:
background 120ms ease,
border-color 120ms ease;
}
button:hover,
input[type='submit']:hover,
input[type='button']:hover {
background: var(--theme-color-action-hover);
border-color: var(--theme-color-action-hover);
}
button:disabled,
input[type='submit']:disabled,
input[type='button']:disabled {
background: var(--theme-color-components-primary-button-background-disabled);
border-color: var(--theme-color-components-primary-button-border-disabled);
color: var(--theme-color-components-primary-button-text-disabled);
cursor: not-allowed;
}
button.secondary,
input[type='reset'] {
background: var(--theme-color-components-secondary-button-background);
color: var(--theme-color-components-secondary-button-text);
border-color: var(--theme-color-components-secondary-button-border);
}
button.secondary:hover,
input[type='reset']:hover {
background: var(--theme-color-action-hover);
color: var(--theme-color-components-primary-button-text);
}
/* Tables — minimal, readable. Card-toned background (not opaque white) so
* tables sit on the panel the way native content does. */
table {
border-collapse: collapse;
width: 100%;
background: var(--theme-color-background-main);
border: 1px solid rgb(0 0 0 / 12%);
border-radius: var(--theme-rounded-corners);
overflow: hidden;
}
th,
td {
text-align: left;
padding: 8px 12px;
border-bottom: 1px solid var(--theme-color-palette-14);
}
th {
background: var(--theme-color-palette-14);
font-weight: 600;
color: var(--theme-color-components-text-on-light);
}
tr:last-child td {
border-bottom: none;
}
/* Sectioning content sits flush on the host panel, exactly like native tab
* content (the About tab, etc.) does. No card chrome: a plugin that wraps its
* markup in a <section>/<article> shouldn't pick up a stray colored box with a
* border and a second layer of padding nested inside the panel. Just vertical
* rhythm between blocks. */
section,
article {
margin: 0 0 16px;
}
/* <fieldset> is a genuine form-grouping element, so keep it as a light bordered
* box — but transparent, so it groups without painting its own panel color. */
fieldset {
background: transparent;
border: 1px solid rgb(0 0 0 / 12%);
border-radius: var(--theme-rounded-corners);
padding: 16px;
margin: 0 0 16px;
}
fieldset legend {
font-weight: 600;
padding: 0 6px;
}
.muted {
color: var(--theme-color-palette-10);
}
/* ---------------------------------------------------------------------------
* Opt-in helper classes.
*
* The element baseline above already makes plain semantic HTML look native, so
* a plugin needs none of these. They exist for authors who want the native
* building blocks — a card surface, a responsive card grid, pill tags, simple
* layout — without hand-copying theme values. Everything references theme
* tokens, so it re-themes along with the host. Documented at
* https://owncast.online/docs/plugins/ui.
* ------------------------------------------------------------------------ */
/* Card — the native card surface (the same look as the followers and featured
* streams cards). Opt in with class="card"; a plain <section>/<article> stays
* flush on the panel by design. */
.card {
background: var(--theme-color-background-main);
border: 1px solid rgb(0 0 0 / 12%);
border-radius: var(--theme-rounded-corners);
padding: 16px;
}
/* Add "interactive" to a clickable card for the native hover lift. */
.card.interactive {
cursor: pointer;
transition:
transform 120ms ease,
box-shadow 120ms ease;
}
.card.interactive:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}
/* Responsive card grid, mirroring the native followers/streams layout: fills
* as many ~260px columns as fit and collapses to one column on a narrow
* frame. Drop .card children straight in. */
.card-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}
/* Pill tag/badge, matching the tags on the native stream cards. */
.tag {
display: inline-block;
height: 20px;
padding: 0 8px;
font-size: 11px;
line-height: 20px;
color: var(--theme-color-components-text-on-dark);
background: var(--theme-color-palette-10);
border-radius: 10px;
}
/* Layout — a vertical stack and a horizontal row, each with a sensible gap.
* Compose them for most plugin layouts without writing flexbox by hand. */
.stack {
display: flex;
flex-direction: column;
gap: 12px;
}
.row {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}