You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 87cb170
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/theming.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ colours or all 27.
40
40
41
41
| Token | What it paints |
42
42
|---|---|
43
-
|`good`| A reading that moved the way you want (a stat tile's trend arrow) |
43
+
|`good`| A reading that moved the way you want (the value widget's trend arrow) |
44
44
|`bad`| A reading that moved the wrong way |
45
45
|`accent-ink`| Text drawn **on** the accent: filled tiles, chips, badges |
46
46
@@ -117,8 +117,9 @@ adopting it.
117
117
|`.nh-fader__*`| The slider widget's four other styles (gradient, wedge, inset rail, bubble), which keep their own look in every theme on purpose. `.nh-fader__read` is the reading, `__bound` the ends of an inset scale, `__track` and `__fill` the two painted layers |
118
118
|`.nh-log`, `.nh-log__line`, `.nh-log__level`| The log widget's console. The root carries `--lg-warn`, the one colour the tokens do not have (errors use `bad`); `.nh-log__line--warn` and `--error` mark the lines that carry it, `__time`, `__logger` and `__msg` are the columns, and `.nh-log__jump` is the pill that takes the reader back to the newest line |
119
119
|`.nh-switch__track`, `.nh-switch__thumb`| The sliding toggle, which is the button widget drawn in its switch style. `.nh-switch--on` marks the on state, and `.nh-switch__state` is the ON/OFF caption under it |
120
-
|`.nh-value__text`, `.nh-value__unit`| A reading and its unit, set separately |
121
-
|`.nh-stat__value`, `.nh-stat__caption`, `.nh-stat__badge`| The stat tile |
120
+
|`.nh-value__text`, `.nh-value__unit`| A reading and its unit in the value widget's plain style, set separately |
121
+
|`.nh-stat__value`, `.nh-stat__frac`, `.nh-stat__unit`, `.nh-stat__caption`, `.nh-stat__badge`| The reading, its tenths, its unit, the small line under it and the marker beside it. The value widget's other seven styles all draw through these, so one rule reaches every one of them. `.nh-stat` is the stat style's own column, with `--center` and `--right` for its alignment |
122
+
|`.nh-read`, `.nh-read__main`| The root of the six styles added after plain and stat, with `.nh-read--spark` through `--hero` saying which is drawn. `__plot`, `__line` and `__area` are the sparkline, `__track` and `__fill` the bar, `__disc` the split's icon circle, `__pill` the pill. Sizing the reading itself belongs on `.nh-stat__value` above, not here |
122
123
|`.nh-clock__time`, `.nh-clock__date`| The clock |
0 commit comments