From bc002dab968ae1dac8d893250dd91dc2e02f87ee Mon Sep 17 00:00:00 2001 From: c4ssiopei4 Date: Wed, 1 May 2024 00:23:14 +0200 Subject: [PATCH 1/2] add nord theme --- themes/nord/v1/theme.json | 123 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 123 insertions(+) create mode 100644 themes/nord/v1/theme.json diff --git a/themes/nord/v1/theme.json b/themes/nord/v1/theme.json new file mode 100644 index 0000000..e447e6e --- /dev/null +++ b/themes/nord/v1/theme.json @@ -0,0 +1,123 @@ +{ + "$schema": "https://raw.githubusercontent.com/streetwriters/notesnook-themes/main/schemas/v1.schema.json", + "name": "Nord", + "id": "nord", + "version": 1, + "license": "GPL-3.0-or-later", + "homepage": "https://www.nordtheme.com", + "description": "Nordify Notesnook", + "colorScheme": "dark", + "compatibilityVersion": 1, + "authors": [ + { + "name": "Streetwriters", + "email": "support@streetwriters.co", + "url": "https://streetwriters.co" + } + ], + "scopes": { + "base": { + "primary": { + "accent": "#88c0d0", + "paragraph": "#eceff4", + "background": "#2e3440", + "border": "#4c566a", + "heading": "#88c0d0", + "icon": "#eceff4", + "separator": "#4c566a", + "placeholder": "#4c566a", + "hover": "#4c566a", + "accentForeground": "#eceff4", + "backdrop": "#4c566aaa" + }, + "secondary": { + "accent": "#88c0d0", + "paragraph": "#eceff4", + "background": "#3b4252", + "border": "#4c566a", + "heading": "#eceff4", + "icon": "#88c0d0", + "separator": "#2e3440", + "placeholder": "#2e3440", + "hover": "#2e3440", + "accentForeground": "#2e3440", + "backdrop": "#2e3440" + }, + "disabled": { + "accent": "#88c0d0", + "paragraph": "#eceff4", + "background": "#2e3440", + "border": "#4c566a", + "heading": "#eceff4", + "icon": "#4c566a", + "separator": "#2e3440", + "placeholder": "#2e3440", + "hover": "#2e3440", + "accentForeground": "#2e3440", + "backdrop": "#2e3440" + }, + "selected": { + "accent": "#88c0d0", + "paragraph": "#eceff4", + "background": "#4c566a", + "border": "#4c566a", + "heading": "#88c0d0", + "icon": "#88c0d0", + "separator": "#4c566a", + "placeholder": "#4c566a", + "hover": "#4c566a", + "accentForeground": "#4c566a", + "backdrop": "#4c566a" + }, + "error": { + "accent": "#bf616a", + "paragraph": "#bf616a", + "background": "#2e3440", + "border": "#4c566a", + "heading": "#bf616a", + "icon": "#bf616a", + "separator": "#4c566a", + "placeholder": "#4c566a", + "hover": "#4c566a", + "accentForeground": "#eceff4", + "backdrop": "#35353580" + }, + "success": { + "accent": "#a3be8c", + "paragraph": "#a3be8c", + "background": "#2e3440", + "border": "#4c566a", + "heading": "#a3be8c", + "icon": "#a3be8c", + "separator": "#4c566a", + "placeholder": "#4c566a", + "hover": "#4c566a", + "accentForeground": "#eceff4", + "backdrop": "#35353580" + } + }, + "list": { + "selected": { + "background": "#3b4252" + } + }, + "editorToolbar": { + "primary": { + "background": "#3b4252" + } + }, + "navigationMenu": { + "primary": { + "background": "#242933" + }, + "selected": { + "background": "#3b4252" + } + }, + "sheet": { + "selected": { + "paragraph": "#88c0d0" + } + } + } +} From 2752ba8020667fd247fb3ae839a069afdcb2d1b1 Mon Sep 17 00:00:00 2001 From: c4ssiopei4 Date: Wed, 1 May 2024 00:24:52 +0200 Subject: [PATCH 2/2] add nord theme css for code block for nord theme --- themes/nord/v1/code-block.css | 1 + 1 file changed, 1 insertion(+) create mode 100644 themes/nord/v1/code-block.css diff --git a/themes/nord/v1/code-block.css b/themes/nord/v1/code-block.css new file mode 100644 index 0000000..fd46ab0 --- /dev/null +++ b/themes/nord/v1/code-block.css @@ -0,0 +1 @@ +/* Generated with http://k88hudson.github.io/syntax-highlighting-theme-generator/www */ /********************************************************* * General */ pre[class*="language-"], code[class*="language-"] { color: #d8dee9; font-size: 1em; text-shadow: none; font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; direction: ltr; text-align: left; white-space: pre; word-spacing: normal; word-break: normal; line-height: 1.5; -moz-tab-size: 4; -o-tab-size: 4; tab-size: 4; -webkit-hyphens: none; -moz-hyphens: none; -ms-hyphens: none; hyphens: none; } pre[class*="language-"]::selection, code[class*="language-"]::selection, pre[class*="language-"]::mozselection, code[class*="language-"]::mozselection { text-shadow: none; background: none; } @media print { pre[class*="language-"], code[class*="language-"] { text-shadow: none; } } pre[class*="language-"] { padding: 1em; margin: .5em 0; overflow: auto; background: #242933; } :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; color: #d8dee9; background: #242933; } /********************************************************* * Tokens */ .namespace { opacity: .7; } .token.comment, .token.prolog, .token.doctype, .token.cdata { color: #606e87; } .token.punctuation { color: #81a1c1; } .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted { color: #b48ead; } .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted { color: #a2bf8c; } .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string { color: #80a2c1; background: none; } .token.atrule, .token.attr-value, .token.keyword { color: #81a1c1; } .token.function { color: #8fbcbc; } .token.regex, .token.important, .token.variable { color: #ee9900; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } /********************************************************* * Line highlighting */ pre[data-line] { position: relative; } pre[class*="language-"] > code[class*="language-"] { position: relative; z-index: 1; } .line-highlight { position: absolute; left: 0; right: 0; padding: inherit 0; margin-top: 1em; background: #3b4251; box-shadow: inset 5px 0 0 #d8dee9; z-index: 0; pointer-events: none; line-height: inherit; white-space: pre; }