Skip to content

Commit bbdeebf

Browse files
committed
specify filtering
1 parent fdef8ab commit bbdeebf

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

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

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,27 @@ const propertySizeTemplate = (property: any) => html` <uui-table-row>
8787

8888
export const InterfaceColors = () => {
8989
const base = [
90-
'surface',
91-
'background',
92-
'text',
93-
'color-border',
94-
'divider',
95-
'interactive',
90+
'--uui-color-surface',
91+
'--uui-color-background',
92+
'--uui-color-text',
93+
'--uui-color-color-border',
94+
'--uui-color-divider',
95+
'--uui-color-interactive',
9696
];
97-
const state = ['selected', 'current', 'disabled'];
98-
const color = ['default', 'positive', 'warning', 'danger', 'disabled'];
99-
const universal = ['header', 'focus', 'hover'];
97+
const state = [
98+
'--uui-color-selected',
99+
'--uui-color-current',
100+
'--uui-color-disabled',
101+
'--uui-color-focus',
102+
];
103+
const color = [
104+
'--uui-color-default',
105+
'--uui-color-positive',
106+
'--uui-color-warning',
107+
'--uui-color-danger',
108+
'--uui-color-disabled',
109+
];
110+
const universal = ['--uui-color-header'];
100111

101112
return html`
102113
<article style="max-width:580px;">
@@ -159,12 +170,12 @@ export const InterfaceColors = () => {
159170
</ul>
160171
161172
<h4>Color variants</h4>
162-
<p>Each color can come in additional variants:</p>
173+
<p>
174+
Each color can come in additional variants. What below is refereed to as
175+
the default variant, meaning no variant-name is prepended to the
176+
variable-name:
177+
</p>
163178
<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>
168179
<li>
169180
<b>Contrast</b> - This color will stand out and be readable with the
170181
default variant as it's background. Mostly used for text and icons.

0 commit comments

Comments
 (0)