PluginProbe
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin / 1.1.10
OpenStation: Desktop Windows, Dock & Virtual Desktops for WP Admin v1.1.10
1.1.10 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4 1.1.3 1.1.2 1.1.1 1.1.0 1.0.1 1.0.0 0.9.8 0.9.7 0.9.6 0.9.4 0.9.5 0.9.3 0.9.2 0.9.1 0.9.0 0.8.9 0.8.8 0.8.7 All 34 releases
← All changes | assets/js/widget-starter.css +10 -7 1.1.01.1.10 View file →
@@ -11,21 +11,24 @@
11 11 * or another plugin's widget running on the same page.
12 12 *
13 13 * CSS CUSTOM PROPERTIES
14 14 * ---------------------
15 - * OpenStation sets these variables on the card body element. Using them
16 - * means your widget automatically respects the user's chosen theme
17 - * (light, dark, or any custom accent colour) without any extra code.
15 + * OpenStation declares these variables in the shell palette, so your card
16 + * inherits them. Using them means your widget follows the desktop theme
17 + * and the user's chosen accent without any extra code.
18 18 *
19 19 * --os-ui-color-text Primary text — body copy, headings
20 20 * --os-ui-color-text-subtle Muted text — labels, timestamps, metadata
21 21 * --os-ui-color-border Divider lines and borders
22 - * --os-ui-color-accent Brand blue — use for buttons, highlights, links
22 + * --os-ui-color-accent The user's accent — buttons, highlights, links
23 23 * --os-ui-color-surface The card's glass background (rarely needed)
24 24 *
25 - * Always provide a fallback value as the second argument to var() in case
26 - * the shell loads in an unexpected context:
27 - * color: var(--os-ui-color-text, #1a1a1a);
25 + * The card is a dark glass panel under every theme, so the first four
26 + * resolve to on-dark values. Always provide a fallback as the second
27 + * argument to var() in case the shell loads in an unexpected context —
28 + * and pick a fallback that reads on dark, or the card looks correct
29 + * everywhere except where the palette is missing:
30 + * color: var(--os-ui-color-text, #fff);
28 31 *
29 32 * LAYOUT
30 33 * ------
31 34 * The card body is a block-level element with 12px padding on all sides.