Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

8.2 KB
Raw Blame
# These are the variables used in the user interface.
# They can be overwritten to customize the look and feel.
# We should write some documentation on how to do that when the time comes.
# The fewer there are the easier it'll be easier to customize and document.

theme:
  rounded-corners:
    value: 9px
    comment: 'How much corners are rounded in places in the UI.'
  unknown-1:
    value: 'green'
    comment: 'This should never be used and it means something is wrong.'
  unknown-2:
    value: 'red'
    comment: 'This should never be used and it means something is wrong.'
  text-body-font-family:
    value: 'var(--font-owncast-body)'
    comment: 'The font family used for the body text.'
  text-display-font-family:
    value: 'var(--font-owncast-display)'
    comment: 'The font family used for the display/header text.'

  color:
    users:
      comment: 'Colors used to display chat users.'
      0:
        value: 'var(--color-owncast-user-0)'
      1:
        value: 'var(--color-owncast-user-1)'
      2:
        value: 'var(--color-owncast-user-2)'
      3:
        value: 'var(--color-owncast-user-3)'
      4:
        value: 'var(--color-owncast-user-4)'
      5:
        value: 'var(--color-owncast-user-5)'
      6:
        value: 'var(--color-owncast-user-6)'
      7:
        value: 'var(--color-owncast-user-7)'

    palette:
      comment: 'Colors used in the user interface for the default theme.'
      0:
        value: 'var(--color-owncast-palette-0)'
        comment: 'Dark primary'
      1:
        value: 'var(--color-owncast-palette-1)'
        comment: 'Dark secondary'
      2:
        value: 'var(--color-owncast-palette-2)'
        comment: 'Dark alternate'
      3:
        value: 'var(--color-owncast-palette-3)'
        comment: 'Light primary'
      4:
        value: 'var(--color-owncast-palette-4)'
        comment: 'Light secondary'
      5:
        value: 'var(--color-owncast-palette-5)'
        comment: 'Light alternate'
      6:
        value: 'var(--color-owncast-palette-6)'
        comment: 'Text link/secondary light text'
      7:
        value: 'var(--color-owncast-palette-7)'
        comment: 'Text link hover'
      8:
        value: 'var(--color-owncast-palette-8)'
        comment: 'Disabled background'
      9:
        value: 'var(--color-owncast-palette-9)'
        comment: 'Neutral dark'
      10:
        value: 'var(--color-owncast-palette-10)'
        comment: 'Neutral gray light'
      11:
        value: 'var(--color-owncast-palette-11)'
        comment: 'Fun color 1'
      12:
        value: 'var(--color-owncast-palette-12)'
        comment: 'Fun color 2'
      13:
        value: 'var(--color-owncast-palette-13)'
        comment: 'Fun color 3'
      14:
        value: 'var(--color-owncast-palette-14)'
        comment: 'Light background'
      15:
        value: 'var(--color-owncast-palette-15)'
        comment: 'Lighter background'
      error:
        value: 'var(--color-owncast-palette-error)'
        comment: 'Error'
      warning:
        value: 'var(--color-owncast-palette-warning)'
        comment: 'Warning'

    background:
      main:
        value: 'var(--theme-color-palette-3)'
        comment: 'Light primary'
      light:
        value: 'var(--theme-color-palette-3)'
        comment: 'Light primary'
      header:
        value: 'var(--theme-color-palette-0)'
        comment: 'Dark primary'
      # Secondary dark surface, a lighter dark blue than the near-black
      # header/footer. Used by surfaces that sit on top of the page rather than
      # framing it, such as the modal header.
      secondary:
        value: 'var(--theme-color-palette-1)'
        comment: 'Dark secondary'

    action:
      value: 'var(--theme-color-palette-6)'
      comment: 'Text link/secondary light text'
    action-hover:
      value: 'var(--theme-color-palette-7)'
      comment: 'Text link hover'
    action-disabled:
      value: 'var(--theme-color-palette-8)'
      comment: 'Disabled background'

    error:
      value: 'var(--theme-color-palette-error)'
      comment: 'Error'
    warning:
      value: 'var(--theme-color-palette-warning)'
      comment: 'Warning'

    components:
      text-on-light:
        value: 'var(--theme-color-palette-0)'
        comment: 'Dark primary'
      text-on-dark:
        value: 'var(--theme-color-palette-3)'
        comment: 'Light primary'

      primary-button:
        background:
          value: 'var(--theme-color-action)'
          comment: 'Text link/secondary light text'
        background-disabled:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'
        text:
          value: 'var(--theme-color-palette-4)'
          comment: 'Light secondary'
        text-disabled:
          value: 'var(--theme-color-palette-10)'
          comment: 'Neutral gray light'
        border:
          value: 'var(--theme-color-action)'
          comment: 'Text link/secondary light text'
        border-disabled:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'

      secondary-button:
        background:
          value: 'var(--theme-color-palette-4)'
          comment: 'Light secondary'
        background-disabled:
          value: 'transparent'
        text:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'
        text-disabled:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'
        border:
          value: 'var(--theme-color-action)'
          comment: 'Text link/secondary light text'
        border-disabled:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'

      chat:
        background:
          value: 'var(--theme-color-palette-1)'
          comment: 'Dark secondary'
        text:
          value: 'var(--theme-color-palette-15)'
          comment: 'Lighter background'

      content:
        background:
          value: 'var(--theme-color-palette-15)'
          comment: 'Lighter background'

      # Modal colors follow the admin-configurable theme rather than fixed
      # palette entries so modals respect a custom appearance. The header is the
      # secondary dark surface (a dark blue, distinct from the near-black page
      # header/footer) and the body mirrors the page content area, including
      # their respective text colors.
      modal:
        header:
          background:
            value: 'var(--theme-color-background-secondary)'
            comment: 'Dark secondary'
          text:
            value: 'var(--theme-color-components-text-on-dark)'
            comment: 'Light primary'
        content:
          background:
            value: 'var(--theme-color-components-content-background)'
            comment: 'Lighter background'
          text:
            value: 'var(--theme-color-components-text-on-light)'
            comment: 'Dark primary'

      menu:
        background:
          value: 'var(--theme-color-palette-3)'
          comment: 'Light primary'
        item:
          text:
            value: 'var(--theme-color-palette-0)'
            comment: 'Dark primary'
          bg:
            value: 'transparent'
          hover-bg:
            value: 'rgba(0, 0, 0, 0.05)'
          focus-bg:
            value: 'rgba(0, 0, 0, 0.1)'

      form-field:
        background:
          value: 'var(--theme-color-palette-4)'
          comment: 'Light secondary'
        placeholder:
          value: 'var(--theme-color-action-disabled)'
          comment: 'Disabled background'
        text:
          value: 'var(--theme-color-palette-0)'
          comment: 'Dark primary'
        border:
          value: 'var(--theme-color-palette-0)'
          comment: 'Dark primary'

      video:
        background:
          value: 'var(--theme-color-palette-2)'
          comment: 'Dark alternate'
        live-indicator:
          value: 'var(--theme-color-action)'
          comment: 'The Live dot indicator in the control bar of the video player'
        status-bar:
          background:
            value: 'var(--theme-color-palette-2)'
            comment: 'The background color of the video status bar'
          foreground:
            value: 'var(--theme-color-palette-4)'
            comment: 'The foreground color of the video status bar'