@@ -87,16 +87,27 @@ const propertySizeTemplate = (property: any) => html` <uui-table-row>
87
87
88
88
export const InterfaceColors = ( ) => {
89
89
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' ,
96
96
] ;
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' ] ;
100
111
101
112
return html `
102
113
< article style ="max-width:580px; ">
@@ -159,12 +170,12 @@ export const InterfaceColors = () => {
159
170
</ ul >
160
171
161
172
< 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 >
163
178
< 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 >
168
179
< li >
169
180
< b > Contrast</ b > - This color will stand out and be readable with the
170
181
default variant as it's background. Mostly used for text and icons.
0 commit comments