-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: define $todoist-colors map and use that
- Loading branch information
1 parent
407b4f7
commit ce8e619
Showing
6 changed files
with
81 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$todoist-colors: ( | ||
"berry-red": #b8256f, | ||
"red": #db4035, | ||
"orange": #ff9933, | ||
"yellow": #fad000, | ||
"olive-green": #afb83b, | ||
"lime-green": #7ecc49, | ||
"green": #299438, | ||
"mint-green": #6accbc, | ||
"teal": #158fad, | ||
"sky-blue": #14aaf5, | ||
"light-blue": #96c3eb, | ||
"blue": #4073ff, | ||
"grape": #884dff, | ||
"violet": #af38eb, | ||
"lavender": #eb96eb, | ||
"magenta": #e05194, | ||
"salmon": #ff8d85, | ||
"charcoal": #808080, | ||
"grey": #b8b8b8, | ||
"taupe": #ccac93, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
@import "colors"; | ||
|
||
body { | ||
@each $name, $color in $todoist-colors { | ||
--todoist-#{$name}: #{$color}; | ||
} | ||
} | ||
|
||
.theme-dark { | ||
--todoist-p1-border: #ff7066; | ||
--todoist-p1-border-hover: #ff706680; | ||
--todoist-p1-background: rgba(255, 112, 102, 0.1); | ||
|
||
--todoist-p2-border: #ff9a14; | ||
--todoist-p2-border-hover: #ff9a1480; | ||
--todoist-p2-background: rgba(255, 154, 20, 0.1); | ||
|
||
--todoist-p3-border: #5297ff; | ||
--todoist-p3-border-hover: #5297ff80; | ||
--todoist-p3-background: rgba(82, 151, 255, 0.1); | ||
|
||
--todoist-p4-border: var(--color-base-50); | ||
--todoist-p4-border-hover: var(--color-base-50); | ||
--todoist-p4-background: unset; | ||
|
||
--todoist-task-separator-color: var(--color-base-30); | ||
} | ||
|
||
.theme-light { | ||
--todoist-p1-border: #d1453b; | ||
--todoist-p1-border-hover: #d1453b80; | ||
--todoist-p1-background: rgba(209, 69, 59, 0.1); | ||
|
||
--todoist-p2-border: #eb8909; | ||
--todoist-p2-border-hover: #eb890980; | ||
--todoist-p2-background: rgba(235, 137, 9, 0.1); | ||
|
||
--todoist-p3-border: #246fe0; | ||
--todoist-p3-border-hover: #246fe080; | ||
--todoist-p3-background: rgba(36, 111, 224, 0.1); | ||
|
||
--todoist-p4-border: var(--color-base-50); | ||
--todoist-p4-border-hover: var(--color-base-50); | ||
--todoist-p4-background: unset; | ||
|
||
--todoist-task-separator-color: var(--color-base-25); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.