Skip to content

Commit 89672fe

Browse files
committed
cleanup
1 parent 8198d78 commit 89672fe

File tree

6 files changed

+5
-435
lines changed

6 files changed

+5
-435
lines changed

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

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ UUI - Mapping-level or specific component name - State - Name - Part - Overwrite
33
*/
44

55
@import './custom-properties/sizes.css';
6-
@import './custom-properties/colors.css';
7-
/* @import './custom-properties/palette.css'; */
86
@import './custom-properties/shadow.css';
9-
10-
/* @import './custom-properties/interface.css'; */
11-
/* @import './custom-properties/interface-look.css'; */
12-
/* TODO implement themes */
13-
/* @import './custom-properties/themes/darkmode.css';
14-
@import './custom-properties/themes/highcontrast.css'; */
7+
@import './custom-properties/palette.css';
8+
@import './custom-properties/colors.css';

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

Lines changed: 3 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -85,96 +85,6 @@ const propertySizeTemplate = (property: any) => html` <uui-table-row>
8585
</uui-table-cell>
8686
</uui-table-row>`;
8787

88-
export const Looks = () => html` <h2>Looks</h2>
89-
<p>
90-
These are used to overwrite selected interface properties to get a specific
91-
look.
92-
</p>
93-
94-
<h3>Primary Look</h3>
95-
<uui-table @click=${copyToClipboard}>
96-
<uui-table-head>
97-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
98-
<uui-table-head-cell>Value</uui-table-head-cell>
99-
<uui-table-head-cell>Example</uui-table-head-cell>
100-
</uui-table-head>
101-
${properties
102-
.filter(property => property.key.includes('look-primary'))
103-
.map(property => propertyColorTemplate(property))}
104-
</uui-table>
105-
106-
<h3>Secondary Look</h3>
107-
<uui-table>
108-
<uui-table-head>
109-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
110-
<uui-table-head-cell>Value</uui-table-head-cell>
111-
<uui-table-head-cell>Example</uui-table-head-cell>
112-
</uui-table-head>
113-
${properties
114-
.filter(property => property.key.includes('look-secondary'))
115-
.map(property => propertyColorTemplate(property))}
116-
</uui-table>
117-
118-
<h3>Positive Look</h3>
119-
<uui-table>
120-
<uui-table-head>
121-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
122-
<uui-table-head-cell>Value</uui-table-head-cell>
123-
<uui-table-head-cell>Example</uui-table-head-cell>
124-
</uui-table-head>
125-
${properties
126-
.filter(property => property.key.includes('look-positive'))
127-
.map(property => propertyColorTemplate(property))}
128-
</uui-table>
129-
130-
<h3>Warning Look</h3>
131-
<uui-table>
132-
<uui-table-head>
133-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
134-
<uui-table-head-cell>Value</uui-table-head-cell>
135-
<uui-table-head-cell>Example</uui-table-head-cell>
136-
</uui-table-head>
137-
${properties
138-
.filter(property => property.key.includes('look-warning'))
139-
.map(property => propertyColorTemplate(property))}
140-
</uui-table>
141-
142-
<h3>Danger Look</h3>
143-
<uui-table>
144-
<uui-table-head>
145-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
146-
<uui-table-head-cell>Value</uui-table-head-cell>
147-
<uui-table-head-cell>Example</uui-table-head-cell>
148-
</uui-table-head>
149-
${properties
150-
.filter(property => property.key.includes('look-danger'))
151-
.map(property => propertyColorTemplate(property))}
152-
</uui-table>
153-
154-
<h3>Placeholder Look</h3>
155-
<uui-table>
156-
<uui-table-head>
157-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
158-
<uui-table-head-cell>Value</uui-table-head-cell>
159-
<uui-table-head-cell>Example</uui-table-head-cell>
160-
</uui-table-head>
161-
${properties
162-
.filter(property => property.key.includes('look-placeholder'))
163-
.map(property => propertyColorTemplate(property))}
164-
</uui-table>
165-
166-
<h3>OutLine Look</h3>
167-
<uui-table>
168-
<uui-table-head>
169-
<uui-table-head-cell>Custom property name</uui-table-head-cell>
170-
<uui-table-head-cell>Value</uui-table-head-cell>
171-
<uui-table-head-cell>Example</uui-table-head-cell>
172-
</uui-table-head>
173-
${properties
174-
.filter(property => property.key.includes('look-outline'))
175-
.map(property => propertyColorTemplate(property))}
176-
</uui-table>`;
177-
17888
export const InterfaceColors = () => html`
17989
<p>
18090
THe UI Library components use predefined custom properties.If you want your
@@ -189,12 +99,12 @@ export const InterfaceColors = () => html`
18999
<uui-table-head-cell>Example</uui-table-head-cell>
190100
</uui-table-head>
191101
${properties
192-
.filter(property => property.key.includes('interface'))
102+
.filter(property => property.key.includes('color'))
193103
.map(property => propertyColorTemplate(property))}
194104
</uui-table>
195105
`;
196106

197-
export const BrandColors = () => html`<h2>Colors</h2>
107+
export const BrandPalette = () => html`<h2>Colors</h2>
198108
<p>
199109
We provide all the Umbraco Identity colors as css custom properties, but we
200110
do not recommend using those directly. All interface should be based on
@@ -208,7 +118,7 @@ export const BrandColors = () => html`<h2>Colors</h2>
208118
<uui-table-head-cell>Example</uui-table-head-cell>
209119
</uui-table-head>
210120
${properties
211-
.filter(property => property.key.includes('color'))
121+
.filter(property => property.key.includes('palette'))
212122
.map(property => propertyColorTemplate(property))}
213123
</uui-table>`;
214124

packages/uui-css/lib/custom-properties/interface-look.css

Lines changed: 0 additions & 120 deletions
This file was deleted.

packages/uui-css/lib/custom-properties/interface.css

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)