Skip to content

Commit

Permalink
Merge pull request #88 from echoriiku/add-rose-pine-theme
Browse files Browse the repository at this point in the history
feat: add Rosé Pine Dawn theme
  • Loading branch information
revsuine authored Jul 28, 2024
2 parents 0e06854 + 02af488 commit 6c0c8b6
Show file tree
Hide file tree
Showing 2 changed files with 337 additions and 0 deletions.
192 changes: 192 additions & 0 deletions themes/rose-pine-dawn/v1/code-block.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,192 @@
/**
* Rosé Pine Dawn by Riiku
* Licenced under the GPL v3
*/

pre[class*="language-"] {
--base: #faf4ed;
--surface: #f2e9de;
--overlay: #e4dfde;
--muted: #9893a5;
--subtle: #797593;
--text: #575279;
--love: #eb6f92;
--gold: #f6c177;
--rose: #b4637a;
--pine: #286983;
--foam: #56949f;
--iris: #907aa9;
--highlight-low: #dfdad9;
--highlight-med: #dcd7ca;
--highlight-high: #cecacd;
}

code[class*="language-"],
pre[class*="language-"] {
background: var(--base);
color: var(--text);
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
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;
}

code[class*="language-"]::-moz-selection,
code[class*="language-"] ::-moz-selection,
pre[class*="language-"]::-moz-selection,
pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::selection,
code[class*="language-"] ::selection,
pre[class*="language-"]::selection,
pre[class*="language-"] ::selection {
background: var(--highlight-med);
}

pre[class*="language-"] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
border-radius: unset;
}

:not(pre) > code[class*="language-"] {
padding: 0.1em;
border-radius: unset;
white-space: normal;
}

.token.comment,
.token.prolog,
.token.cdata,
.token.doctype {
color: var(--muted);
}

.token.punctuation {
color: var(--subtle);
}

.token.entity {
color: var(--pine);
}

.token.boolean {
color: var(--rose);
}

.token.attr-name {
color: var(--foam);
}

.token.class-name {
color: var(--text);
}

.token.constant {
color: var(--love);
font-style: italic;
}

.token.number {
color: var(--foam);
}

.token.atrule {
color: var(--love);
}

.token.keyword {
color: var(--pine);
}

.token.property {
color: var(--foam);
}

.token.tag {
color: var(--foam);
}

.token.symbol {
color: unset;
}

.token.deleted {
color: var(--love);
}

.token.important {
color: var(--love);
}

.token.selector {
color: var(--rose);
}

.token.string {
color: var(--gold);
}

.token.char {
color: var(--gold);
}

.token.builtin {
color: var(--love);
}

.token.inserted {
color: var(--foam);
}

.token.regex {
color: var(--gold);
}

.token.attr-value {
color: var(--gold);
}

.token.variable {
color: var(--text);
}

.token.operator {
color: var(--subtle);
}

.token.function {
color: var(--rose);
font-style: italic;
}

.token.url {
color: var(--iris);
}

.token.bold {
font-weight: bold;
}

.token.italic {
font-style: italic;
}

.token.entity {
cursor: help;
}

.token.namespace {
opacity: 0.7;
}
145 changes: 145 additions & 0 deletions themes/rose-pine-dawn/v1/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
{
"$schema": "https://raw.githubusercontent.com/streetwriters/notesnook-themes/main/schemas/v1.schema.json",
"name": "Rosé Pine Dawn",
"id": "rose-pine-dawn",
"version": 1,
"license": "GPL-3.0-or-later",
"homepage": "https://notesnook.com",
"description": "Rosé Pine Dawn variant",
"colorScheme": "light",
"compatibilityVersion": 1,
"authors": [
{
"name": "riiku",
"url": "https://tech.lgbt/@riiku"
}
],
"scopes": {
"base": {
"primary": {
"accent": "#b4637a",
"paragraph": "#575279",
"background": "#faf4ed",
"border": "#faf4ed",
"heading": "#575279",
"icon": "#b4637a",
"separator": "#f2e9de",
"placeholder": "#9893a5",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
},
"secondary": {
"accent": "#b4637a",
"paragraph": "#575279",
"background": "#f2e9de",
"border": "#9893a5",
"heading": "#575279",
"icon": "#575279",
"separator": "#9893a5",
"placeholder": "#9893a5",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
},
"disabled": {
"accent": "#b4637a",
"paragraph": "#575279",
"background": "#9893a5",
"border": "#9893a5",
"heading": "#575279",
"icon": "#575279",
"separator": "#9893a5",
"placeholder": "#575279",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
},
"selected": {
"accent": "#b4637a",
"paragraph": "#575279",
"background": "#dcd7ca",
"border": "#b4637a",
"heading": "#575279",
"icon": "#b4637a",
"separator": "#9893a5",
"placeholder": "#9893a5",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
},
"error": {
"accent": "#eb6f92",
"paragraph": "#eb6f92",
"background": "#f2e9de",
"border": "#9893a5",
"heading": "#eb6f92",
"icon": "#eb6f92",
"separator": "#9893a5",
"placeholder": "#9893a5",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
},
"success": {
"accent": "#286983",
"paragraph": "#286983",
"background": "#f2e9de",
"border": "#9893a5",
"heading": "#286983",
"icon": "#286983",
"separator": "#9893a5",
"placeholder": "#9893a5",
"hover": "#e4dfde",
"accentForeground": "#faf4ed",
"backdrop": "#faf4ed99"
}
},
"statusBar": {
"primary": {
"paragraph": "#575279",
"background": "#e4dfde",
"separator": "#e4dfde"
}
},
"list": {
"primary": {
"paragraph": "#575279",
"background": "#f2e9de",
"hover": "#e4dfde"
},
"secondary": {
"paragraph": "#575279"
}
},
"editor": {
"primary": {
"background": "#e4dfde",
"border": "#9893a5"
},
"secondary": {
"paragraph": "#9893a5",
"border": "#faf4ed"
}
},
"editorToolbar": {
"primary": {
"background": "#f2e9de",
"hover": "#9893a533"
},
"secondary": {
"background": "#9893a533"
}
},
"navigationMenu": {
"primary": {
"background": "#faf4ed"
}
},
"sheet": {
"selected": {
"paragraph": "#286983"
}
}
}
}

0 comments on commit 6c0c8b6

Please # to comment.