-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add super colors theme toggle (#28)
* add super colors theme toggle * changed link color * updated yarn.lock --------- Co-authored-by: marcaux <contact@marcaux.de>
- Loading branch information
Showing
8 changed files
with
133 additions
and
0 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
Empty file.
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,5 @@ | ||
# Change Log | ||
|
||
# 1.0.0 (2024-02-26) | ||
|
||
- init |
Empty file.
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,2 @@ | ||
# Super Colors | ||
|
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,25 @@ | ||
{ | ||
"name": "@standardnotes/super-colors", | ||
"version": "1.0.0", | ||
"main": "dist/dist.css", | ||
"author": "Marco Laux", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sn": { | ||
"name": "Super Colors", | ||
"content_type": "SN|Theme", | ||
"description": "Theme agnostic toggle to colorize different elements of the Super Editor", | ||
"area": "themes", | ||
"main": "dist/dist.css", | ||
"layerable": true, | ||
"showInGallery": true | ||
}, | ||
"scripts": { | ||
"build": "webpack --entry ./src/main.scss --config ../theme.webpack.config.js", | ||
"test": "echo \"Error: no test specified\" && exit 0" | ||
}, | ||
"devDependencies": { | ||
"webpack": "*" | ||
} | ||
} |
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,89 @@ | ||
body { // add another element to make sure the hiearchy is higher | ||
.Lexical__h1, | ||
.Lexical__h2, | ||
.Lexical__h3, | ||
.Lexical__h4, | ||
.Lexical__h5 { | ||
color: var(--sn-stylekit-accessory-tint-color-3); | ||
} | ||
|
||
.Lexical__textBold{ | ||
color: var(--sn-stylekit-accessory-tint-color-2); | ||
} | ||
|
||
.Lexical__textItalic { | ||
color: var(--sn-stylekit-accessory-tint-color-5); | ||
} | ||
|
||
.Lexical__link { | ||
color: var(--sn-stylekit-accessory-tint-color-4); | ||
} | ||
|
||
.Lexical__ul, | ||
.Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-1); | ||
|
||
> .Lexical__ul, | ||
> .Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-2); | ||
|
||
> .Lexical__ul, | ||
> .Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-3); | ||
|
||
> .Lexical__ul, | ||
> .Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-4); | ||
|
||
> .Lexical__ul, | ||
> .Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-5); | ||
|
||
> .Lexical__ul, | ||
> .Lexical__ol { | ||
> li { | ||
color: var(--sn-stylekit-accessory-tint-color-6); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.Lexical__code { | ||
.Lexical__tokenSelector { | ||
color: var(--sn-stylekit-accessory-tint-color-5); | ||
} | ||
|
||
.Lexical__tokenProperty { | ||
color: var(--sn-stylekit-accessory-tint-color-6); | ||
} | ||
|
||
.Lexical__tokenFunction { | ||
color: var(--sn-stylekit-accessory-tint-color-5); | ||
} | ||
|
||
.Lexical__tokenVariable { | ||
color: var(--sn-stylekit-accessory-tint-color-2); | ||
} | ||
|
||
.Lexical__tokenAttr { | ||
color: var(--sn-stylekit-accessory-tint-color-4); | ||
} | ||
|
||
.Lexical__tokenOperator { | ||
color: var(--sn-stylekit-accessory-tint-color-2); | ||
} | ||
} | ||
} |
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