OwnShip Guide

Custom Themes

OwnShip's three built-in themes — Light, Dark, and Sepia — cover most sites. For full color control, place a _theme.css file next to index.php. OwnShip loads it automatically after the built-in styles, no configuration needed.

How it works

_theme.css uses standard CSS to override any of OwnShip's color variables for any or all of the three themes. Be as sparse or as complete as you like — anything you don't override inherits from the built-in theme.

/* _theme.css — override only what you need */
[data-theme="light"] {
  --heading: #1a3a6b;
  --link:    #1a3a6b;
}

The three selectors are [data-theme="light"], [data-theme="dark"], and [data-theme="sepia"].

Available variables

VariableControls
--bgPage background
--bg-navNav pane background
--bg-codeCode block background
--borderBorders and dividers
--textBody text
--text-mutedSecondary text
--headingHeading color (h1–h6)
--linkLink color
--link-hoverLink hover color
--active-bgNav item highlight background
--activeNav active item text color
--head-bgHeader and footer background

Notes