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 forappearance:styles. Starboard reads thestyleslist in its manifest and writes the CSS itself. - Each style has an
id, aname, adescription, a cornerradius, afont, ashadow, and alightand adarkset of colours, such asbg,surface,text,accentandfocus. - 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
- Edit
starboard-plugin.json. - Test it: run
python3 -m starboard.plugin_tester path/to/stylesfrom 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.