Skip to content

Commit 896fa49

Browse files
committed
text correction using default variant description
1 parent 17612af commit 896fa49

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

packages/uui-css/lib/custom-properties.story.ts

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ export const InterfaceColors = () => {
115115
<h4>Text and interactables</h4>
116116
<ul>
117117
<li>
118-
<b>Text</b> - Used for most text, or icons appearing together with
119-
text
118+
<b>Text</b> - Use it for text, icons or other elements that needs to
119+
standout from the base of the element
120120
</li>
121121
<li>
122122
<b>Interactable</b> - Used when the text or icon is interactable, such
@@ -127,29 +127,30 @@ export const InterfaceColors = () => {
127127
<h4>States</h4>
128128
<ul>
129129
<li>
130-
<b>Selected</b> - Used to highlight the text or background color of
131-
items that are currently selected.
130+
<b>Selected</b> - Use to highlight text or background when a component
131+
is in the 'selected' stated.
132132
</li>
133133
<li>
134-
<b>Current</b> - Only used to show navigation. Example: Background or
135-
text color of the current tab or breadcrumb.
134+
<b>Current</b> - Use to highlight text or background when a component
135+
is in the 'current' stated, only used by navigation items to indicate
136+
the current location.
136137
</li>
137-
<li><b>Disabled</b> - For elements that are disabled.</li>
138+
<li><b>Disabled</b> - Use for displaying disabled state.</li>
138139
</ul>
139140
140141
<h4>Borders and dividers</h4>
141142
<ul>
142-
<li><b>Border</b> - Used when an element needs a border around it</li>
143+
<li><b>Border</b> - Use for component borders</li>
143144
<li>
144-
<b>Divider</b> - For elements that needs to be visually separated.
145-
Example: a list of items
145+
<b>Divider</b> - Used for thin border that provides a visual
146+
separation. Example: a list of items
146147
</li>
147148
</ul>
148149
149150
<h4>Misc</h4>
150151
<ul>
151-
<li><b>Surface</b> - The main background color for elements</li>
152-
<li><b>Background</b> - The main background color of the app</li>
152+
<li><b>Surface</b> - The general background color for elements</li>
153+
<li><b>Background</b> - The general background color of the app</li>
153154
<li><b>Header</b> - Background color of the header of the app</li>
154155
<li>
155156
<b>Focus</b> - Color for the focus outline on inputs, buttons, links
@@ -160,16 +161,20 @@ export const InterfaceColors = () => {
160161
<h4>Color variants</h4>
161162
<p>Each color can come in additional variants:</p>
162163
<ul>
164+
<li>
165+
<b>Default</b> - Each color comes in a default variant, meaning no
166+
variant-name prepended to the variable-name.
167+
</li>
163168
<li>
164169
<b>Contrast</b> - This color will stand out and be readable with the
165-
main color as it's background. Mostly used for text and icons.
170+
default variant as it's background. Mostly used for text and icons.
166171
</li>
167172
<li>
168173
<b>Standalone</b> - This color will have a higher contrast to the
169-
surface color than it's main variant. Example: if the surface color is
170-
light, the standalone variant will be a darker variant of the main
171-
color. Often used when thin or smaller items has to stand out on the
172-
surface backgrounds. Items such as: text, icons and border.
174+
background than it's default variant. Example: if the background is
175+
light, the standalone variant will be a darker variant of the default
176+
variant. Often used when thin or smaller items has to stand out on the
177+
background. Useful for items such as: text, icons and border.
173178
</li>
174179
<li>
175180
<b>Emphasis</b> - Used when you want to emphasize an element, make it

0 commit comments

Comments
 (0)