Skip to content

Commit 92d8e22

Browse files
committed
Revert "added missing properties to the list and added docs"
This reverts commit ecbe1a8.
1 parent ecbe1a8 commit 92d8e22

File tree

1 file changed

+1
-70
lines changed

1 file changed

+1
-70
lines changed

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

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,7 @@ const propertySizeTemplate = (property: any) => html` <uui-table-row>
8686
</uui-table-row>`;
8787

8888
export const InterfaceColors = () => {
89-
const surface = [
90-
'surface',
91-
'background',
92-
'text',
93-
'color-border',
94-
'divider',
95-
'interactive',
96-
];
89+
const surface = ['surface', 'background', 'text', 'color-border', 'divider'];
9790
const state = ['selected', 'current', 'disabled'];
9891
const color = ['primary', 'positive', 'warning', 'danger', 'disabled'];
9992
const universal = ['header', 'focus', 'hover'];
@@ -105,68 +98,6 @@ export const InterfaceColors = () => {
10598
specific look.
10699
</p>
107100
108-
<h3>Naming convention</h3>
109-
<p>Here's a description and examples of how to use the interface colors.</p>
110-
<h4>Color variants</h4>
111-
<p>Most colors has up to 3 variants.</p>
112-
<ul>
113-
<li>
114-
<b>Contrast</b> - This color will stand out and be readable with the
115-
main color as it's background. Mostly used for text and icons.
116-
</li>
117-
<li>
118-
<b>Standalone</b> - This color will have a higher contrast to the
119-
surface color than it's main variant. Example: if the surface color is
120-
light, the standalone variant will be a darker variant of the main
121-
color. Often used when thin or smaller items has to stand out on the
122-
surface backgrounds. Items such as: text, icons and border.
123-
</li>
124-
<li>
125-
<b>Emphasis</b> - Used when you want to emphasize an element, make it
126-
stand out. Mostly used for hover and focus states.
127-
</li>
128-
</ul>
129-
<h4>Text and interactables</h4>
130-
<ul>
131-
<li>
132-
<b>Text</b> - Used for most text, or icons appearing together with text
133-
</li>
134-
<li>
135-
<b>Interactable</b> - Used when the text or icon is interactable, such
136-
as a link
137-
</li>
138-
</ul>
139-
<h4>States</h4>
140-
<ul>
141-
<li>
142-
<b>Selected</b> - Used to highlight the text or background color of
143-
items that are currently selected.
144-
</li>
145-
<li>
146-
<b>Current</b> - Only used to show navigation. Example: Background or
147-
text color of the current tab or breadcrumb.
148-
</li>
149-
<li><b>Disabled</b> - For elements that are disabled.</li>
150-
</ul>
151-
<h4>Borders and dividers</h4>
152-
<ul>
153-
<li><b>Border</b> - Used when an element needs a border around it</li>
154-
<li>
155-
<b>Divider</b> - For elements that needs to be visually separated.
156-
Example: a list of items
157-
</li>
158-
</ul>
159-
<h4>Misc</h4>
160-
<ul>
161-
<li><b>Surface</b> - The main background color for elements</li>
162-
<li><b>Background</b> - The main background color of the app</li>
163-
<li><b>Header</b> - Background color of the header of the app</li>
164-
<li>
165-
<b>Focus</b> - Color for the focus outline on inputs, buttons, links and
166-
so on
167-
</li>
168-
</ul>
169-
170101
<h3>Surface</h3>
171102
<uui-table @click=${copyToClipboard}>
172103
<uui-table-head>

0 commit comments

Comments
 (0)