Skip to content

Commit 5d363c7

Browse files
authored
Restore polyfill-theme.ts
1 parent 572cdd1 commit 5d363c7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/components/src/utils/polyfill-theme.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,15 @@ const guessType = theme => {
237237
return 'dark';
238238
};
239239

240-
const lighten = (color, value) => Color(color).lighten(value).hex();
241-
242-
const darken = (color, value) => Color(color).darken(value).hex();
240+
const lighten = (color, value) =>
241+
Color(color)
242+
.lighten(value)
243+
.hex();
244+
245+
const darken = (color, value) =>
246+
Color(color)
247+
.darken(value)
248+
.hex();
243249

244250
const withContrast = (color, background, type, contrastType = 'text') => {
245251
const contrastRatio = { text: 4.5, icon: 1.6 };

0 commit comments

Comments
 (0)