Skip to content

Commit ea381c5

Browse files
author
Simon
committed
adjust darkmode colors
1 parent 91d7dc5 commit ea381c5

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "directus-extension-editorjs2",
3-
"version": "1.5.3",
3+
"version": "1.5.5",
44
"author": {
55
"name": "Simon Hausdorf"
66
},

src/editorjs-ui.css

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai+Looped:wght@400;600&display=swap');
22
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Thai:wght@600&display=swap');
33

4+
.dark .ce-toolbar__plus, .dark .ce-toolbar__settings-btn { color: rgb(201, 209, 217); }
5+
6+
.dark .ce-popover__item-label, .dark .ce-conversion-toolbar__tools {
7+
color: #21262e;
8+
}
9+
410
.codex-editor .ce-block .ce-paragraph {
5-
color: rgb(25, 27, 30);
611
font-size: 1.25rem;
712
font-weight: 400;
813
line-height: 1.8;
914
margin-bottom: 1.2em;
1015
}
1116

12-
.dark .codex-editor .cdx-quote__text, .dark ce-header, .dark .codex-editor .ce-block .ce-paragraph, .codex-editor .ce-block h2, .codex-editor .ce-block h3, .codex-editor .ce-block h4, .codex-editor .ce-block .image-tool__caption {
13-
color: rgb(201, 209, 217);
14-
}
1517

1618
.codex-editor li {
17-
color: rgb(25, 27, 30);
1819
font-size: 1.25rem;
1920
font-weight: 400;
2021
margin-bottom: 1.2em;
2122
margin-left: 30px;
2223
}
2324

2425
.codex-editor .cdx-quote__text {
25-
color: rgb(25, 27, 30);
2626
font-size: 1.25rem;
2727
font-weight: 400;
2828
line-height: 1.8;
@@ -34,7 +34,6 @@
3434
}
3535

3636
.codex-editor .ce-block blockquote {
37-
color: rgb(25, 27, 30);
3837
font-size: 1.25rem;
3938
font-weight: 400;
4039
line-height: 1.8;
@@ -43,13 +42,20 @@
4342

4443
.codex-editor .ce-block h2 {
4544
font-family: 'IBM Plex Sans Thai', sans-serif;
46-
color: rgb(17, 24, 39);
4745
margin-top: 2.5rem;
4846
margin-bottom: 1.5rem;
4947
font-size: 28px;
5048
font-weight: 600;
5149
}
5250

51+
.codex-editor .ce-block h3 {
52+
font-family: 'IBM Plex Sans Thai', sans-serif;
53+
margin-top: 2.5rem;
54+
margin-bottom: 1.5rem;
55+
font-size: 20px;
56+
font-weight: 600;
57+
}
58+
5359
.codex-editor .ce-block .ce-delimiter {
5460
margin-top: 52px;
5561
margin-bottom: 56px;
@@ -101,7 +107,6 @@
101107
display: block;
102108
margin-top: 0.25rem;
103109
text-align: center;
104-
color: rgb(25, 27, 30);
105110
font-size: 1.25rem;
106111
font-weight: 400;
107112
}

src/get-tools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function getTools(
3737
shortcut: 'CMD+SHIFT+H',
3838
inlineToolbar: true,
3939
config: {
40-
levels: [2],
40+
levels: [2, 3],
4141
defaultLevel: 2,
4242
},
4343
},

0 commit comments

Comments
 (0)