-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add markdown monospace theme (#15)
- Loading branch information
1 parent
877f394
commit fa4ee29
Showing
8 changed files
with
65 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
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,20 @@ | ||
# Monospace font for Standard Notes markdown editors | ||
|
||
(This theme used to live in https://github.com/DanielNetoP/markdown-monospace) | ||
|
||
This theme is toggable on top of other themes, it simply adds the monospace font family to the editors. | ||
|
||
Instead, it adds a Monospace font to use in the following editors: | ||
- Basic Markdown | ||
- Minimal Markdown | ||
- Markdown | ||
|
||
## Preview | ||
**Toggle theme:** | ||
![Example of the theme toggle](examples/preview.png) | ||
|
||
**Before:** | ||
![Example of the before theme](examples/before.png) | ||
|
||
**After:** | ||
![Example of the after theme](examples/after.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 @@ | ||
{ | ||
"name": "@standardnotes/markdown-monospace", | ||
"version": "1.0.0", | ||
"main": "dist/dist.css", | ||
"author": "DanielNetoP", | ||
"description": "Ability to toggle monospace font for Markdown, Minimal Markdown, and Basic Markdown plugins.", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sn": { | ||
"name": "Markdown Monospace", | ||
"content_type": "SN|Theme", | ||
"area": "themes", | ||
"main": "dist/dist.css", | ||
"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,9 @@ | ||
.CodeMirror-code, | ||
#editor, | ||
.CodeMirror .CodeMirror-code .cm-comment { | ||
font-family: var(--sn-stylekit-monospace-font) !important; | ||
} | ||
|
||
.CodeMirror .CodeMirror-code .cm-comment { | ||
font-size: 100% !important; | ||
} |
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