Styles

Version 1.4.1 · plug-in API >=1.14 <2.0

PublishedHow to add it
On this page

Styles: For developers

How Styles is built, for anyone who wants to change it or make one like it. It is MIT, by TheMightyTRexUK, and works with plug-in API >=1.14 <2.0.

Its files

How it works

  • It has no container ("containers": []) and asks only for appearance:styles. Starboard reads the styles list in its manifest and writes the CSS itself.
  • Each style has an id, a name, a description, a corner radius, a font, a shadow, and a light and a dark set of colours, such as bg, surface, text, accent and focus.
  • Starboard checks every colour pair against WCAG 2.2: 4.5:1 for text, and 3:1 for edges and the focus ring. A style that fails cannot be added.
  • The six newest styles use the style settings from plug-in API 1.2 for cards, buttons, borders, tabs, the header, the side menu and chips.

Change it

  1. Edit starboard-plugin.json.
  2. Test it: run python3 -m starboard.plugin_tester path/to/styles from Starboard's folder, or go to Settings, then Plug-ins, then Test a plug-in.

Find out more

This page on GitHub, where the help is written.