1 Themes
liquibyte edited this page 2026-11-19 16:23:32 -06:00

Themes

How Skein looks: the color theme of the window, the light or dark Document panel, and the style of the icons. This page says how to choose each, which themes come with Skein, where the theme files are, and what is in one, so that you can change a theme or write your own.

1. Three choices

Choice What it colors Where to choose it
App color theme The window: menus, toolbars, the Project Tree, the Inspector, the Graph, the panel headers, the status bar and every dialog. Settings > Interface > App color theme.
Document panel theme The Document panel and the page of the Inspector's Relationships tab: dark or light. Settings > Interface > Document panel theme.
Icon style Every icon: Outline or Filled. Settings > Interface > Toolbar/menu icon style.

A preview under the theme list shows the chosen theme as a small drawing of the window (a menu bar, a toolbar, the tree with a selected row and a page with a heading and a link) before you apply it. Apply shows the whole window in the new theme and keeps the dialog open; see Settings.

2. The themes that come with Skein

Skein has 14 color themes built in, the same as every program built on its toolkit: Chocolate, Dark (the first theme), Ember, Forest, Gold, Graphite, Light, Midnight, Ocean, Rose, Rust, Slate, Teal and Violet. Each has its own background, text and accent color; the accent is used for the selection, the focus and links.

The theme's tooltips and the colors of selected text are worked out from the theme so that the text stays readable.

3. Where the theme files are

Each theme is a file you can read and change: ~/.config/skein/themes/Name.conf (or $XDG_CONFIG_HOME/skein/themes/ when XDG_CONFIG_HOME is a full path, one that starts with /). At every start Skein writes each built-in theme that is missing from that folder, and it never overwrites a file that is there. So a theme you changed keeps your changes, and a built-in theme you deleted comes back at the next start.

Skein also lists the xtk themes installed for the desktop, in a folder named xtk inside a theme:

  • ~/.themes/Theme/xtk/Name.conf
  • ~/.local/share/themes/Theme/xtk/Name.conf (or $XDG_DATA_HOME/themes/)
  • /usr/share/themes/Theme/xtk/Name.conf

The theme list shows all of them by file name (without .conf), in alphabetical order. A theme file in Skein's own folder wins over a theme of the same name elsewhere. To add a theme, put an xtk theme file in one of these folders and choose it in Settings; a theme made for another xtk program works in Skein too.

Themes from earlier versions of Skein, in ~/.config/skein/themes/app/, are converted once into the new folder, when it has no theme of that name yet; the old folder is left as it was.

4. The theme file

A theme file is a plain text file in sections, with one key = value on each line. A line starting with ; or # is a comment.

[theme]
name = Ocean

[colors]
window = #1E2A33
window-text = #D8E2EA
accent = #3A9AD9

[button]
background = linear-gradient(180deg, #2A3A46, #22303A)
border = #3A4C58

A color can be written in any of the usual forms: #RGB, #RRGGBB, #RRGGBBAA (the last two digits are the opacity), rgb(30, 42, 51), rgba(30, 42, 51, 0.5), or white, black and transparent. Outside [colors], six or eight digits without the # work too. Lines may be of any length.

[colors] holds the roles. Every widget takes its colors from them, so a few roles are enough for a whole theme; a role left out is worked out from the others.

Role What it colors
window, window-text Window and panel backgrounds, and the text on them.
base, base-text Fields: entries, lists, text boxes, and the text in them.
button, button-text Buttons, lists to choose from, tabs and headers, and their text.
border Borders and frames.
accent, accent-text The selection, the focus and checked boxes, and the text on them.
hover What the pointer is over.
active What is pressed or open, and the active tab.
muted Secondary text and icons.
link Links.
valid, invalid A value that checks out, and one that does not (for example a shortcut that two actions share).
tooltip, tooltip-text Tooltips.

Other sections change single keys of one kind of widget: [button], [menu], [menubar], [treeview], [graph], [toolwindow], [statusbar], [scrollbar] and the others. A background there can also be a CSS linear-gradient() or radial-gradient(), and highlight and shade draw a raised edge. The built-in theme files that Skein writes list every such key with its value, so the easiest way to make your own theme is to copy one, give it a new file name and name, and change its colors.

The [graph] section colors the Graph: node-background and node-foreground for a node and its name, edge for the lines, selected-background for the selected object, neighbor-background for the objects linked to it, hub-background for the object with the most links, and focus-border.

[app] holds colors of Skein's own. A Skein theme has accent-hi, a lighter accent.

Skein reads a theme when it starts and when you press OK or Apply in Settings. After you change a theme file, choose the theme in Settings and press Apply to see the change.

5. The Document panel

The Document panel, and the page of the Relationships tab, have a theme of their own, so that you can write on a light page in a dark window or the other way round:

Choice The page
Dark (the first choice) The background of the app theme's panels, with its text color.
Light A near-white page with near-black text.
Theme (match app theme above) Dark when the app theme is dark, Light when it is light.

In all three, headings, links and the focus take the app theme's accent color, and the selection is made from it.

6. The icons

Skein's icons come from the Tabler icon set, in two styles: Outline (the first) and Filled. An icon that has no filled form is drawn as an outline. The style applies to the menus, both toolbars, the Project Tree and the icon picker of Change Icon. Icons take the text color of the theme; in the Project Tree, an icon takes its object's or its type's color. The icons are read from the icons/ folder (see Building and Installing).

7. Known limitations

  • The preview in Settings shows only the main colors of a theme, not its gradients or the keys of its other sections.
  • A changed theme file is not read again by itself; choose the theme and press Apply.
  • The theme list holds at most 64 themes.
  • A theme whose file name is longer than 63 characters cannot be used. Give such a file a shorter name.
  • A theme file with no [colors] roles is not used; Skein uses the built-in theme of that name, or Dark.