@_sh/strapi-plugin-ckeditor 1.1.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/README.md +353 -897
  2. package/admin/src/components/CKEditorIcon.js +46 -0
  3. package/admin/src/components/Input/CKEditor/configs/base.js +628 -0
  4. package/admin/src/components/Input/CKEditor/configs/blockBaloon.js +25 -0
  5. package/admin/src/components/Input/CKEditor/configs/index.js +11 -0
  6. package/admin/src/components/Input/CKEditor/configs/toolbar.js +17 -0
  7. package/admin/src/components/Input/CKEditor/configs/toolbarBaloon.js +17 -0
  8. package/admin/src/components/Input/CKEditor/configuration.js +166 -0
  9. package/admin/src/components/Input/CKEditor/index.js +120 -0
  10. package/admin/src/components/Input/CKEditor/plugins/StrapiMediaLib.js +43 -0
  11. package/admin/src/components/Input/CKEditor/plugins/StrapiUploadAdapter.js +203 -0
  12. package/admin/src/components/Input/CKEditor/plugins/index.js +2 -0
  13. package/admin/src/components/Input/CKEditor/styling.js +16 -0
  14. package/admin/src/components/Input/CKEditor/theme/additional.js +167 -0
  15. package/admin/src/components/Input/CKEditor/theme/common.js +277 -0
  16. package/admin/src/components/Input/CKEditor/theme/dark.js +144 -0
  17. package/admin/src/components/Input/CKEditor/theme/index.js +13 -0
  18. package/admin/src/components/Input/CKEditor/theme/light.js +135 -0
  19. package/admin/src/components/Input/MediaLib/index.js +79 -0
  20. package/admin/src/components/Input/index.js +48 -0
  21. package/admin/src/index.js +107 -15
  22. package/admin/src/utils/getEditorConfig.js +37 -0
  23. package/admin/src/utils/pluginId.js +5 -0
  24. package/package.json +43 -7
  25. package/server/controllers/config.js +8 -12
  26. package/server/index.js +1 -1
  27. package/server/register.js +7 -1
  28. package/server/routes/index.js +5 -6
  29. package/server/services/config.js +5 -12
  30. package/admin/src/components/CKEditor/build/ckeditor.js +0 -7
  31. package/admin/src/components/CKEditor/build/ckeditor.js.map +0 -1
  32. package/admin/src/components/CKEditor/build/translations/af.js +0 -1
  33. package/admin/src/components/CKEditor/build/translations/ar.js +0 -1
  34. package/admin/src/components/CKEditor/build/translations/ast.js +0 -1
  35. package/admin/src/components/CKEditor/build/translations/az.js +0 -1
  36. package/admin/src/components/CKEditor/build/translations/bg.js +0 -1
  37. package/admin/src/components/CKEditor/build/translations/bn.js +0 -1
  38. package/admin/src/components/CKEditor/build/translations/bs.js +0 -1
  39. package/admin/src/components/CKEditor/build/translations/ca.js +0 -1
  40. package/admin/src/components/CKEditor/build/translations/cs.js +0 -1
  41. package/admin/src/components/CKEditor/build/translations/da.js +0 -1
  42. package/admin/src/components/CKEditor/build/translations/de-ch.js +0 -1
  43. package/admin/src/components/CKEditor/build/translations/de.js +0 -1
  44. package/admin/src/components/CKEditor/build/translations/el.js +0 -1
  45. package/admin/src/components/CKEditor/build/translations/en-au.js +0 -1
  46. package/admin/src/components/CKEditor/build/translations/en-gb.js +0 -1
  47. package/admin/src/components/CKEditor/build/translations/eo.js +0 -1
  48. package/admin/src/components/CKEditor/build/translations/es.js +0 -1
  49. package/admin/src/components/CKEditor/build/translations/et.js +0 -1
  50. package/admin/src/components/CKEditor/build/translations/eu.js +0 -1
  51. package/admin/src/components/CKEditor/build/translations/fa.js +0 -1
  52. package/admin/src/components/CKEditor/build/translations/fi.js +0 -1
  53. package/admin/src/components/CKEditor/build/translations/fr.js +0 -1
  54. package/admin/src/components/CKEditor/build/translations/gl.js +0 -1
  55. package/admin/src/components/CKEditor/build/translations/gu.js +0 -1
  56. package/admin/src/components/CKEditor/build/translations/he.js +0 -1
  57. package/admin/src/components/CKEditor/build/translations/hi.js +0 -1
  58. package/admin/src/components/CKEditor/build/translations/hr.js +0 -1
  59. package/admin/src/components/CKEditor/build/translations/hu.js +0 -1
  60. package/admin/src/components/CKEditor/build/translations/id.js +0 -1
  61. package/admin/src/components/CKEditor/build/translations/it.js +0 -1
  62. package/admin/src/components/CKEditor/build/translations/ja.js +0 -1
  63. package/admin/src/components/CKEditor/build/translations/jv.js +0 -1
  64. package/admin/src/components/CKEditor/build/translations/kk.js +0 -1
  65. package/admin/src/components/CKEditor/build/translations/km.js +0 -1
  66. package/admin/src/components/CKEditor/build/translations/kn.js +0 -1
  67. package/admin/src/components/CKEditor/build/translations/ko.js +0 -1
  68. package/admin/src/components/CKEditor/build/translations/ku.js +0 -1
  69. package/admin/src/components/CKEditor/build/translations/lt.js +0 -1
  70. package/admin/src/components/CKEditor/build/translations/lv.js +0 -1
  71. package/admin/src/components/CKEditor/build/translations/ms.js +0 -1
  72. package/admin/src/components/CKEditor/build/translations/nb.js +0 -1
  73. package/admin/src/components/CKEditor/build/translations/ne.js +0 -1
  74. package/admin/src/components/CKEditor/build/translations/nl.js +0 -1
  75. package/admin/src/components/CKEditor/build/translations/no.js +0 -1
  76. package/admin/src/components/CKEditor/build/translations/oc.js +0 -1
  77. package/admin/src/components/CKEditor/build/translations/pl.js +0 -1
  78. package/admin/src/components/CKEditor/build/translations/pt-br.js +0 -1
  79. package/admin/src/components/CKEditor/build/translations/pt.js +0 -1
  80. package/admin/src/components/CKEditor/build/translations/ro.js +0 -1
  81. package/admin/src/components/CKEditor/build/translations/ru.js +0 -1
  82. package/admin/src/components/CKEditor/build/translations/si.js +0 -1
  83. package/admin/src/components/CKEditor/build/translations/sk.js +0 -1
  84. package/admin/src/components/CKEditor/build/translations/sl.js +0 -1
  85. package/admin/src/components/CKEditor/build/translations/sq.js +0 -1
  86. package/admin/src/components/CKEditor/build/translations/sr-latn.js +0 -1
  87. package/admin/src/components/CKEditor/build/translations/sr.js +0 -1
  88. package/admin/src/components/CKEditor/build/translations/sv.js +0 -1
  89. package/admin/src/components/CKEditor/build/translations/th.js +0 -1
  90. package/admin/src/components/CKEditor/build/translations/tk.js +0 -1
  91. package/admin/src/components/CKEditor/build/translations/tr.js +0 -1
  92. package/admin/src/components/CKEditor/build/translations/tt.js +0 -1
  93. package/admin/src/components/CKEditor/build/translations/ug.js +0 -1
  94. package/admin/src/components/CKEditor/build/translations/uk.js +0 -1
  95. package/admin/src/components/CKEditor/build/translations/ur.js +0 -1
  96. package/admin/src/components/CKEditor/build/translations/uz.js +0 -1
  97. package/admin/src/components/CKEditor/build/translations/vi.js +0 -1
  98. package/admin/src/components/CKEditor/build/translations/zh-cn.js +0 -1
  99. package/admin/src/components/CKEditor/build/translations/zh.js +0 -1
  100. package/admin/src/components/CKEditor/index.js +0 -247
  101. package/admin/src/components/CKEditor/styles.js +0 -511
  102. package/admin/src/components/CKEditor/theme.js +0 -313
  103. package/admin/src/components/Initializer/index.js +0 -26
  104. package/admin/src/components/MediaLib/index.js +0 -44
  105. package/admin/src/components/Wysiwyg/index.js +0 -77
  106. package/admin/src/pages/App/index.js +0 -25
  107. package/admin/src/pages/HomePage/index.js +0 -20
  108. package/admin/src/pluginId.js +0 -6
  109. package/admin/src/translations/en.json +0 -1
  110. package/admin/src/translations/fr.json +0 -1
  111. package/admin/src/utils/axiosInstance.js +0 -40
  112. package/admin/src/utils/getTrad.js +0 -5
@@ -0,0 +1,167 @@
1
+ import { css } from "styled-components";
2
+
3
+ export const additional = css`
4
+
5
+ /* --- expanding --- */
6
+
7
+ .ck.ck-editor__main .ck-blurred {
8
+ max-height: 200px;
9
+ }
10
+ .ck.ck-editor__main .ck-focused {
11
+ max-height: 700px;
12
+ }
13
+
14
+
15
+ /* ---- Style feature config ------------------------------------------------------ */
16
+
17
+ :root {
18
+ --ck-georgia-serif-font-stack: Georgia,Times,Times New Roman,serif;
19
+ }
20
+
21
+ .ck-content h1.document-title {
22
+ font-family: var(--ck-georgia-serif-font-stack);
23
+ font-size: 50px;
24
+ font-weight: bold;
25
+ border: 0;
26
+ }
27
+
28
+ .ck-content h2.document-subtitle {
29
+ font-family: var(--ck-georgia-serif-font-stack);
30
+ font-size: 20px;
31
+ font-weight: bold;
32
+ color: #d1d1d1;
33
+ letter-spacing: 10px;
34
+ }
35
+
36
+ .ck-content p.callout {
37
+ --border-color: #e91e1e;
38
+ padding: 1.2em 2em;
39
+ border: 1px solid var(--border-color);
40
+ border-left: 10px solid var(--border-color);
41
+ background: #fff9fb;
42
+ border-radius: 5px;
43
+ margin: 1.5em 2em;
44
+ box-shadow: 5px 5px 0 #ffe6ef;
45
+ }
46
+
47
+ .ck-content blockquote.side-quote {
48
+ font-family: var(--ck-georgia-serif-font-stack);
49
+ font-style: normal;
50
+ float: right;
51
+ width: 35%;
52
+ position: relative;
53
+ border: 0;
54
+ overflow: visible;
55
+ z-index: 1;
56
+ margin-left: 1em;
57
+ }
58
+
59
+ .ck-content blockquote.side-quote::before {
60
+ content: "“";
61
+ position: absolute;
62
+ top: -37px;
63
+ left: -10px;
64
+ display: block;
65
+ font-size: 200px;
66
+ color: #e7e7e7;
67
+ z-index: -1;
68
+ line-height: 1;
69
+ }
70
+
71
+ .ck-content blockquote.side-quote p {
72
+ font-size: 2em;
73
+ line-height: 1;
74
+ }
75
+
76
+ .ck-content blockquote.side-quote p:last-child:not(:first-child) {
77
+ font-size: 1.3em;
78
+ text-align: right;
79
+ color: #555;
80
+ }
81
+
82
+ .ck-content span.needs-clarification {
83
+ outline: 1px dashed #c8a24b;
84
+ background: #ffe19c;
85
+ border-radius: 2px;
86
+ position: relative;
87
+ }
88
+
89
+ .ck-content span.needs-clarification::after {
90
+ content: "?";
91
+ display: inline-block;
92
+ color: #fff;
93
+ background: #3b3b3b;
94
+ font-size: 12px;
95
+ vertical-align: super;
96
+ width: 12px;
97
+ height: 12px;
98
+ line-height: 12px;
99
+ border-radius: 10px;
100
+ text-align: center;
101
+ position: absolute;
102
+ right: -6px;
103
+ top: -6px;
104
+ font-weight: bold;
105
+ letter-spacing: initial;
106
+ }
107
+
108
+ .ck-content span.wide-spacing {
109
+ letter-spacing: 0.3em;
110
+ }
111
+
112
+ .ck-content span.small-caps {
113
+ font-variant: small-caps;
114
+ }
115
+
116
+ .ck-content span.spoiler {
117
+ background: #000;
118
+ color: #000;
119
+ }
120
+
121
+ .ck-content span.spoiler:hover {
122
+ background: #000;
123
+ color: #fff;
124
+ }
125
+
126
+ .ck-content pre.stylish-code {
127
+ border-color: transparent;
128
+ margin-left: 2em;
129
+ margin-right: 2em;
130
+ border-radius: 10px;
131
+ }
132
+
133
+ .ck-content pre.stylish-code::before {
134
+ content: "";
135
+ display: block;
136
+ height: 13px;
137
+ background: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NCAxMyI+CiAgPGNpcmNsZSBjeD0iNi41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiNGMzZCNUMiLz4KICA8Y2lyY2xlIGN4PSIyNi41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiNGOUJFNEQiLz4KICA8Y2lyY2xlIGN4PSI0Ny41IiBjeT0iNi41IiByPSI2LjUiIGZpbGw9IiM1NkM0NTMiLz4KPC9zdmc+Cg==);
138
+ margin-bottom: 8px;
139
+ background-repeat: no-repeat;
140
+ }
141
+
142
+ .ck-content pre.stylish-code-dark,
143
+ .ck-content pre.stylish-code-bright {
144
+ padding: 1em;
145
+ }
146
+
147
+ .ck-content pre.stylish-code-dark {
148
+ background: #272822;
149
+ box-shadow: 5px 5px 0 #0000001f;
150
+ color: white;
151
+ }
152
+
153
+ .ck-content pre.stylish-code-dark code {
154
+ color: white;
155
+ }
156
+
157
+ .ck-content pre.stylish-code-bright {
158
+ background: #dddfe0;
159
+ color: #000;
160
+ box-shadow: 5px 5px 0 #b3b3b3;
161
+ }
162
+
163
+ .ck-content pre.stylish-code-bright code {
164
+ color: #222;
165
+ }
166
+
167
+ `
@@ -0,0 +1,277 @@
1
+ import { css } from "styled-components";
2
+
3
+ export const common = css`
4
+ .ck {
5
+ --ck-color-image-caption-background: hsl(0, 0%, 97%);
6
+ --ck-color-image-caption-text: hsl(0, 0%, 20%);
7
+ --ck-color-mention-background: hsla(341, 100%, 30%, 0.1);
8
+ --ck-color-mention-text: hsl(341, 100%, 30%);
9
+ --ck-color-table-caption-background: hsl(0, 0%, 97%);
10
+ --ck-color-table-caption-text: hsl(0, 0%, 20%);
11
+ --ck-highlight-marker-blue: hsl(201, 97%, 72%);
12
+ --ck-highlight-marker-green: hsl(120, 93%, 68%);
13
+ --ck-highlight-marker-pink: hsl(345, 96%, 73%);
14
+ --ck-highlight-marker-yellow: hsl(60, 97%, 73%);
15
+ --ck-highlight-pen-green: hsl(112, 100%, 27%);
16
+ --ck-highlight-pen-red: hsl(0, 85%, 49%);
17
+ --ck-image-style-spacing: 1.5em;
18
+ --ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);
19
+ --ck-todo-list-checkmark-size: 16px;
20
+ }
21
+
22
+
23
+ .ck.ck-sticky-panel .ck-sticky-panel__content_sticky {
24
+ top: 64px !important;
25
+ }
26
+ .ck.ck-reset.ck-dropdown__panel.ck-dropdown__panel_sw.ck-dropdown__panel-visible {
27
+ border-radius: 4px;
28
+ }
29
+
30
+ .ck-editor__main {
31
+
32
+ --ck-font-face: "Source Sans Pro", system-ui, Roboto, "Helvetica Neue", "Helvetica", Arial, sans-serif;
33
+
34
+ color: var(--ck-color-editor-base-text);
35
+ font-family: var(--ck-font-face);
36
+
37
+ * {
38
+ font: revert;
39
+ margin: revert;
40
+ }
41
+
42
+
43
+ h1 {
44
+ font-size: 2.3em;
45
+ }
46
+
47
+ h2 {
48
+ font-size: 1.84em;
49
+ }
50
+
51
+ h3 {
52
+ font-size: 1.48em;
53
+ }
54
+
55
+ h4 {
56
+ font-size: 1.22em;
57
+ }
58
+
59
+ h5 {
60
+ font-size: 1.06em;
61
+ }
62
+
63
+ h6 {
64
+ font-size: 1em;
65
+ }
66
+
67
+ h1,
68
+ h2,
69
+ h3,
70
+ h4,
71
+ h5,
72
+ h6 {
73
+ line-height: 1.2em;
74
+ padding-top: .8em;
75
+ margin-bottom: .4em
76
+ }
77
+
78
+ blockquote,
79
+ ol,
80
+ p,
81
+ ul {
82
+ font-size: 1em;
83
+ line-height: 1.6em;
84
+ padding-top: .2em;
85
+ margin-bottom: var(--ck-spacing-large)
86
+ }
87
+
88
+ figcaption {
89
+ background-color: var(--ck-color-image-caption-background);
90
+ caption-side: bottom;
91
+ color: var(--ck-color-image-caption-text);
92
+ display: table-caption;
93
+ font-size: 0.75em;
94
+ outline-offset: -1px;
95
+ padding: 0.6em;
96
+ word-break: break-word;
97
+ }
98
+
99
+ a {
100
+ text-decoration: none;
101
+ color: #1b3af2;
102
+ }
103
+
104
+ a:hover {
105
+ text-decoration: underline;
106
+ }
107
+
108
+ .table {
109
+ margin: 0;
110
+ }
111
+
112
+ ul.todo-list {
113
+ list-style: none;
114
+ margin: revert;
115
+ color: revert;
116
+ font-family: revert;
117
+ margin-left: 2rem;
118
+ }
119
+
120
+ ul,
121
+ ol {
122
+ list-style: initial;
123
+ margin-left: 2rem;
124
+ }
125
+
126
+ ol {
127
+ list-style: decimal;
128
+ }
129
+
130
+ sub {
131
+ vertical-align: sub;
132
+ }
133
+
134
+ sup {
135
+ vertical-align: super;
136
+ }
137
+
138
+ .ck.ck-content.ck-editor__editable {
139
+ line-height: initial;
140
+ min-height: 12.5rem;
141
+ border-bottom-left-radius: 0.25rem;
142
+ border-bottom-right-radius: 0.25rem;
143
+ transition-property: border-color, box-shadow, max-height;
144
+ transition-timing-function: ease-in-out;
145
+ transition-duration: 0.5s;
146
+ &.ck-focused:not(.ck-editor__nested-editable) {
147
+ border: 1px solid var(--ck-color-base-border);
148
+ /* border: var(--ck-focus-ring); */
149
+ box-shadow: none;
150
+ transition-property: border-color, box-shadow, max-height;
151
+ transition-timing-function: ease-in-out;
152
+ transition-duration: 0.5s;
153
+ }
154
+ }
155
+
156
+ .ck-focused,
157
+ .ck-blurred {
158
+ overflow-y: auto;
159
+ overflow-x: hidden;
160
+ transition: max-height 0.5s ease-in-out;
161
+ ::-webkit-scrollbar {
162
+ width: 7px;
163
+ }
164
+ ::-webkit-scrollbar-track {
165
+ background: var(--ck-scroll-track-background);
166
+ border: none;
167
+ }
168
+ ::-webkit-scrollbar-thumb {
169
+ transition: background 2s;
170
+ background: var(--ck-scroll-thumb-background);
171
+ border: 1px solid var(--ck-scroll-thumb-border-color);
172
+ }
173
+ ::-webkit-scrollbar-thumb:hover {
174
+ transition: background 2s;
175
+ background: var(--ck-scroll-thumb-hover-background);
176
+ }
177
+ ::-webkit-scrollbar-thumb:active {
178
+ background: var(--ck-scroll-thumb-active-background);
179
+ }
180
+ }
181
+ }
182
+
183
+ .ck .ck-source-editing-area textarea{
184
+ color: var(--ck-color-text);
185
+ background-color: var(--ck-color-base-background);
186
+ border: 1px solid var(--ck-color-base-border) !important;
187
+ box-shadow: none !important;
188
+ }
189
+
190
+ .ck .ck-block-toolbar-button {
191
+ min-width: 0 !important;
192
+ min-height: 0 !important;
193
+ width: 20px !important;
194
+ height: 25px !important;
195
+ margin-left: -2px !important ;
196
+
197
+ & svg {
198
+ color: var(--ck-color-text) !important;
199
+ position: absolute;
200
+ width: 20px;
201
+ height: 20px;
202
+ }
203
+ }
204
+
205
+ .ck-word-count {
206
+ margin-top: 0.3rem;
207
+ display: flex;
208
+ justify-content: end;
209
+ gap: 0.3rem;
210
+ font-size: 0.7rem;
211
+ font-weight: 500;
212
+ text-transform: lowercase;
213
+ /* color: #b3b3c4; */
214
+ }
215
+
216
+ .ck[dir=rtl]{
217
+ .ck-block-toolbar-button {
218
+ margin-left: 2px !important ;
219
+ }
220
+ .ck-color-input{
221
+ margin: 0 8px 8px 0 !important;
222
+ padding: 3px 5px 0 0 !important;
223
+ }
224
+ & + div{
225
+ justify-content: flex-start;
226
+ & > .ck-word-count {
227
+ & > div:first-child{
228
+ order: 2;
229
+ }
230
+ & > div:last-child{
231
+ order: 1;
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+
238
+ .ck .ck-color-input{
239
+ margin: 0 0 8px 8px !important;
240
+ padding: 3px 0 0 5px !important;
241
+ border-radius:0px !important;
242
+ width: 115px !important;
243
+ z-index: 1;
244
+ }
245
+
246
+ .ck .ck-color-picker{
247
+ margin: 0 3px 8px 3px !important;
248
+ border-radius:0px !important;
249
+ width: 80px !important;
250
+ }
251
+
252
+ .ck .ck-color-picker-save{
253
+ margin: 0 0 8px 0 !important;
254
+ border-radius:0px !important;
255
+ width: 50px !important;
256
+ }
257
+
258
+
259
+ .ck.ck-color-ui-dropdown {
260
+ --ck-color-grid-tile-size: 20px;
261
+ }
262
+
263
+ .ck.ck-color-ui-dropdown .ck-color-grid {
264
+ grid-gap: 1px;
265
+ }
266
+
267
+ .ck.ck-color-ui-dropdown .ck-color-grid .ck-button {
268
+ border-radius: 0;
269
+ }
270
+
271
+ .ck.ck-color-ui-dropdown .ck.ck-color-grid .ck-color-grid__tile:hover:not(.ck-disabled),
272
+ .ck.ck-color-ui-dropdown .ck.ck-color-grid .ck-color-grid__tile:focus:not(.ck-disabled) {
273
+ z-index: 1;
274
+ transform: scale(1.3);
275
+ }
276
+
277
+ `;
@@ -0,0 +1,144 @@
1
+ import { css } from "styled-components";
2
+
3
+ export const dark = css`
4
+ :root {
5
+ --ck-color-focus-outer-shadow: rgba(77, 115, 255, 0.2) !important;
6
+ --ck-color-focus-disabled-shadow: rgba(106, 114, 143, 0.4) !important;
7
+ --ck-focus-ring: 1px solid #4945ff !important;
8
+ --ck-color-button-default-hover-background: #262630 !important;
9
+
10
+ .ck .ck-color-picker > svg {
11
+ color: #ffffff !important;
12
+ }
13
+ .ck .ck-color-picker-save {
14
+ & > svg {
15
+ stroke: #ffffff !important;
16
+ }
17
+ & > svg > #primary,
18
+ #primary-2 {
19
+ stroke: #7b79ff !important;
20
+ }
21
+ }
22
+ }
23
+
24
+ .ck {
25
+ --ck-scroll-track-background: #3d3d57;
26
+ --ck-scroll-thumb-background: #181826;
27
+ --ck-scroll-thumb-border-color: rgb(70, 70, 70);
28
+ --ck-scroll-thumb-hover-background: #202033;
29
+ --ck-scroll-thumb-active-background: #2b2b45;
30
+
31
+ --ck-color-editor-base-text: rgb(236, 236, 236);
32
+ /* Overrides the border radius setting in the theme. */
33
+ --ck-border-radius: 4px;
34
+
35
+ /* Helper variables to avoid duplication in the colors. */
36
+ --ck-color-base-border: #4a4a6a;
37
+ --ck-color-base-background: #212134;
38
+ --ck-custom-background: #181826;
39
+ --ck-custom-foreground: #26263b;
40
+ --ck-custom-border: #4a4a6a;
41
+ --ck-custom-white: hsl(0, 0%, 100%);
42
+
43
+ --ck-color-focus-outer-shadow: #212134;
44
+
45
+ --ck-color-base-focus: #bbbaf1;
46
+ --ck-color-base-active: #2e2e5c;
47
+ --ck-color-base-active-focus: #28284d;
48
+ /* -- Overrides generic colors. ------------------------------------------------------------- */
49
+
50
+ --ck-color-base-foreground: var(--ck-custom-background);
51
+ --ck-color-focus-border: #6765bd;
52
+ --ck-color-text: hsl(0, 0%, 93%);
53
+ --ck-color-shadow-drop: hsla(0, 0%, 0%, 0.2);
54
+ --ck-color-shadow-inner: hsla(0, 0%, 0%, 0.1);
55
+
56
+ /* -- Overrides the default .ck-button class colors. ---------------------------------------- */
57
+
58
+ --ck-color-button-default-background: rgb(33, 33, 52);
59
+
60
+ --ck-color-button-default-hover-background: #262630;
61
+ --ck-color-button-default-active-background: #3c3c47;
62
+ --ck-color-button-default-active-shadow: #3c3c47;
63
+ --ck-color-button-default-disabled-background: var(--ck-custom-background);
64
+
65
+ --ck-color-button-on-color: #7b79ff;
66
+ --ck-color-button-on-background: #2b2b36;
67
+ --ck-color-button-on-hover-background: #30303b;
68
+ --ck-color-button-on-active-background: #3c3c47;
69
+ --ck-color-button-on-active-shadow: #3c3c47;
70
+ --ck-color-button-on-disabled-background: var(--ck-custom-foreground);
71
+
72
+ --ck-color-button-action-background: hsl(168, 76%, 42%);
73
+ --ck-color-button-action-hover-background: hsl(168, 76%, 38%);
74
+ --ck-color-button-action-active-background: hsl(168, 76%, 36%);
75
+ --ck-color-button-action-active-shadow: hsl(168, 75%, 34%);
76
+ --ck-color-button-action-disabled-background: hsl(168, 76%, 42%);
77
+ --ck-color-button-action-text: var(--ck-custom-white);
78
+
79
+ --ck-color-button-save: hsl(120, 100%, 46%);
80
+ --ck-color-button-cancel: hsl(15, 100%, 56%);
81
+
82
+ /* -- Overrides the default .ck-dropdown class colors. -------------------------------------- */
83
+
84
+ --ck-color-dropdown-panel-background: var(--ck-custom-background);
85
+ --ck-color-dropdown-panel-border: var(--ck-custom-foreground);
86
+
87
+ /* -- Overrides the default .ck-splitbutton class colors. ----------------------------------- */
88
+
89
+ --ck-color-split-button-hover-background: var(--ck-color-button-default-hover-background);
90
+ --ck-color-split-button-hover-border: var(--ck-custom-foreground);
91
+
92
+ /* -- Overrides the default .ck-input class colors. ----------------------------------------- */
93
+
94
+ --ck-color-input-background: var(--ck-custom-background);
95
+ --ck-color-input-border: hsl(257, 3%, 43%);
96
+ --ck-color-input-text: hsl(0, 0%, 98%);
97
+ --ck-color-input-disabled-background: hsl(255, 4%, 21%);
98
+ --ck-color-input-disabled-border: hsl(250, 3%, 38%);
99
+ --ck-color-input-disabled-text: hsl(0, 0%, 78%);
100
+
101
+ /* -- Overrides the default .ck-labeled-field-view class colors. ---------------------------- */
102
+
103
+ --ck-color-labeled-field-label-background: var(--ck-custom-background);
104
+
105
+ /* -- Overrides the default .ck-list class colors. ------------------------------------------ */
106
+
107
+ --ck-color-list-background: var(--ck-custom-background);
108
+ --ck-color-list-button-hover-background: #121221;
109
+ --ck-color-list-button-on-background: var(--ck-color-base-active);
110
+ --ck-color-list-button-on-background-focus: var(--ck-color-base-active-focus);
111
+ --ck-color-list-button-on-text: #ffffff;
112
+
113
+ /* -- Overrides the default .ck-balloon-panel class colors. --------------------------------- */
114
+
115
+ --ck-color-panel-background: var(--ck-custom-background);
116
+ --ck-color-panel-border: var(--ck-custom-border);
117
+
118
+ /* -- Overrides the default .ck-toolbar class colors. --------------------------------------- */
119
+
120
+ --ck-color-toolbar-background: var(--ck-custom-background);
121
+ --ck-color-toolbar-border: var(--ck-custom-border);
122
+
123
+ /* -- Overrides the default .ck-tooltip class colors. --------------------------------------- */
124
+
125
+ --ck-color-tooltip-background: #3a3955;
126
+ --ck-color-tooltip-text: hsl(0, 0%, 93%);
127
+
128
+ /* -- Overrides the default colors used by the ckeditor5-image package. --------------------- */
129
+
130
+ --ck-color-image-caption-background: hsl(0, 0%, 97%);
131
+ --ck-color-image-caption-text: hsl(0, 0%, 20%);
132
+
133
+ /* -- Overrides the default colors used by the ckeditor5-widget package. -------------------- */
134
+
135
+ --ck-color-widget-blurred-border: #7c7c96;
136
+ --ck-color-widget-hover-border: #666687;
137
+ --ck-color-widget-editable-focus-background: var(--ck-custom-white);
138
+
139
+ /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
140
+
141
+ --ck-color-link-default: hsl(216, 100%, 75%);
142
+ }
143
+
144
+ `;
@@ -0,0 +1,13 @@
1
+ import { common } from './common';
2
+ import { light } from './light';
3
+ import { dark } from './dark';
4
+ import { additional } from './additional';
5
+
6
+ const baseTheme = {
7
+ common: common,
8
+ light: light,
9
+ dark: dark,
10
+ additional: additional
11
+ }
12
+
13
+ export default baseTheme;