Mozhu, in the public Xishu IME design system, is a dark palette. Open its color table and the green is not one general value. The button fill, the selected-candidate background, and status text each have a role. Understanding that division is more useful for an input interface than memorizing one handsome hexadecimal number.
Candidate-window text is layered by lightness first
In this design master, the candidate-window background is #101318, the primary text is #F3F5F8, and the secondary text is #9AA2AE. Body text and supporting information form a hierarchy by lightness first. Green is then used to mark an action and the selected state. If every piece of text uses the same loud color, the candidate, the code note, and the current choice sit on one layer.
Two greens, each with its own text color
| Role | Value in Mozhu | Text that goes with it |
|---|---|---|
| Emphasized button fill | #22C55E |
#000000 |
| Selected-candidate background | #15803D |
#FFFFFF |
| Candidate-window background | #101318 |
Primary text #F3F5F8 |
The two greens differ in lightness, and the text changes with them. The brighter #22C55E takes black text. The deeper #15803D takes white text. The theme table defines fill and text as a pair. When you change one, check the other. If the selected background is swapped for the button green while the white text stays, the light-dark relation of type and ground has changed.
Fill and text in the light jade theme
The light “jade” theme in the same table shows the division again. The emphasized fill is still #22C55E, and the readable emphasized text uses the deeper #0F6A3F. The design system separates accent from accentText, so a large fill and small type can be adjusted on their own.
When you make the look of a candidate window, this real case gives three relations to check: an ordinary candidate and its supporting note, the selected item and the ones not selected, and the button fill and the button text. Make those three clear at the real type size, and then adjust corner radius, spacing, and other decoration. This article is about how the public design master organizes color. Using the scheme in a native input method still has to be checked in a real window.
Sources: XSIME design-system notes; Mozhu theme colors.