Skip to content

Commit 509a131

Browse files
committed
Migrate example Sass colors to color.adjust
1 parent 4ca60e6 commit 509a131

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/main.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@use "sass:color";
2+
13
@import "../node_modules/normalize.css";
24
@import "../node_modules/draft-js-emoji-plugin/lib/plugin.css";
35

@@ -27,9 +29,9 @@ $FONT_SIZE_TEXT: 1rem;
2729
$draftail-editor-chrome: $GREY_333;
2830
$draftail-editor-chrome-text: $WHITE;
2931
$draftail-editor-chrome-active: $WHITE;
30-
$draftail-editor-chrome-accent: lighten(
32+
$draftail-editor-chrome-accent: color.adjust(
3133
$color: $draftail-editor-chrome,
32-
$amount: 20%,
34+
$lightness: 20%,
3335
);
3436

3537
$draftail-editor-font-family: $FONT_FAMILY_SANS;

0 commit comments

Comments
 (0)