@editora/themes 1.0.3 → 1.0.4

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.
package/src/index.css CHANGED
@@ -190,15 +190,14 @@
190
190
  line-height: 1;
191
191
  }
192
192
 
193
- .rte-toolbar-button svg {
193
+ .rte-toolbar-button svg,
194
+ .editora-toolbar-button svg,
195
+ .editora-toolbar-icon svg {
194
196
  flex-shrink: 0;
195
- fill: currentColor;
196
- stroke: currentColor;
197
197
  width: 20px;
198
198
  height: 20px;
199
- }
200
-
201
- .rte-toolbar-button svg path {
199
+ display: block;
200
+ color: currentColor;
202
201
  fill: currentColor;
203
202
  }
204
203
 
@@ -206,9 +205,8 @@
206
205
  opacity: 0.9;
207
206
  }
208
207
 
209
- .rte-toolbar-button[data-active="true"] svg {
210
- fill: var(--rte-color-text-inverse);
211
- stroke: var(--rte-color-text-inverse);
208
+ :is(.rte-toolbar-button[data-active="true"], .editora-toolbar-button.active) svg {
209
+ color: var(--rte-color-text-inverse);
212
210
  }
213
211
 
214
212
  .rte-toolbar-button:hover {
@@ -321,7 +319,8 @@
321
319
  }
322
320
 
323
321
  /* Placeholder Styles */
324
- .rte-content:empty:before {
322
+ .rte-content:empty:before,
323
+ .rte-content.rte-content-empty:before {
325
324
  content: attr(data-placeholder);
326
325
  color: var(--rte-color-text-muted);
327
326
  pointer-events: none;
@@ -0,0 +1,212 @@
1
+ /* Rich Text Editor - Acme Theme */
2
+
3
+ :is([data-theme="acme"], .editora-theme-acme) {
4
+ /* Colors */
5
+ --rte-color-primary: #0f766e;
6
+ --rte-color-primary-hover: #0d5f59;
7
+ --rte-color-secondary: #5b6478;
8
+ --rte-color-success: #15803d;
9
+ --rte-color-danger: #b91c1c;
10
+ --rte-color-warning: #b45309;
11
+ --rte-color-info: #0f766e;
12
+
13
+ /* Text Colors */
14
+ --rte-color-text-primary: #0f172a;
15
+ --rte-color-text-secondary: #334155;
16
+ --rte-color-text-muted: #64748b;
17
+ --rte-color-text-inverse: #ffffff;
18
+
19
+ /* Background Colors */
20
+ --rte-color-bg-primary: #f8fafc;
21
+ --rte-color-bg-secondary: #eef2f7;
22
+ --rte-color-bg-tertiary: #e2e8f0;
23
+ --rte-color-bg-hover: #e6edf6;
24
+ --rte-color-bg-active: #dbe7f2;
25
+
26
+ /* Border Colors */
27
+ --rte-color-border: #cbd5e1;
28
+ --rte-color-border-light: #dbe3ee;
29
+ --rte-color-border-focus: #0f766e;
30
+
31
+ /* Shadows */
32
+ --rte-shadow-sm: 0 1px 2px rgba(2, 8, 20, 0.08);
33
+ --rte-shadow: 0 6px 16px rgba(2, 8, 20, 0.08);
34
+ --rte-shadow-lg: 0 14px 28px rgba(2, 8, 20, 0.14);
35
+ }
36
+
37
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-editor, .editora-editor) {
38
+ background: linear-gradient(180deg, #fbfdff 0%, #f5f8fc 100%);
39
+ border-color: var(--rte-color-border);
40
+ color: var(--rte-color-text-primary);
41
+ }
42
+
43
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-toolbar, .editora-toolbar) {
44
+ background: linear-gradient(180deg, #eef4fb 0%, #e8f0f9 100%);
45
+ border-color: var(--rte-color-border);
46
+ }
47
+
48
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-toolbar-button, .editora-toolbar-button) {
49
+ background: linear-gradient(180deg, #fefefe 0%, #f4f8fc 100%);
50
+ border-color: var(--rte-color-border);
51
+ color: var(--rte-color-text-secondary);
52
+ box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
53
+ }
54
+
55
+ :is([data-theme="acme"], .editora-theme-acme)
56
+ :is(.rte-toolbar-button, .editora-toolbar-button):hover {
57
+ background: linear-gradient(180deg, #f5faf9 0%, #e9f5f4 100%);
58
+ border-color: #a7cfc8;
59
+ color: #115e59;
60
+ }
61
+
62
+ :is([data-theme="acme"], .editora-theme-acme)
63
+ :is(.rte-toolbar-button, .editora-toolbar-button):active,
64
+ :is([data-theme="acme"], .editora-theme-acme)
65
+ :is(.rte-toolbar-button, .editora-toolbar-button)[data-active="true"],
66
+ :is([data-theme="acme"], .editora-theme-acme)
67
+ :is(.rte-toolbar-button, .editora-toolbar-button).active {
68
+ background: linear-gradient(180deg, #ccfbf1 0%, #b7f3e7 100%);
69
+ border-color: #64c9b4;
70
+ color: #0f4f4a;
71
+ }
72
+
73
+ :is([data-theme="acme"], .editora-theme-acme)
74
+ :is(.rte-toolbar-button, .editora-toolbar-button):disabled {
75
+ background: #e2e8f0;
76
+ color: #94a3b8;
77
+ border-color: #cbd5e1;
78
+ }
79
+
80
+ :is([data-theme="acme"], .editora-theme-acme)
81
+ :is(.rte-toolbar-input, .editora-toolbar-input, .editora-toolbar-input.font-size) {
82
+ background: #ffffff;
83
+ color: var(--rte-color-text-primary);
84
+ border-color: var(--rte-color-border);
85
+ caret-color: var(--rte-color-text-primary);
86
+ }
87
+
88
+ :is([data-theme="acme"], .editora-theme-acme)
89
+ :is(.rte-toolbar-input, .editora-toolbar-input, .editora-toolbar-input.font-size)::placeholder {
90
+ color: var(--rte-color-text-muted);
91
+ }
92
+
93
+ :is([data-theme="acme"], .editora-theme-acme)
94
+ :is(.rte-toolbar-dropdown-menu, .editora-toolbar-dropdown-menu) {
95
+ background: #ffffff;
96
+ border-color: var(--rte-color-border);
97
+ box-shadow: 0 10px 26px rgba(15, 23, 42, 0.15);
98
+ }
99
+
100
+ :is([data-theme="acme"], .editora-theme-acme)
101
+ :is(.rte-toolbar-dropdown-item, .editora-toolbar-dropdown-item) {
102
+ color: var(--rte-color-text-secondary);
103
+ }
104
+
105
+ :is([data-theme="acme"], .editora-theme-acme)
106
+ :is(.rte-toolbar-dropdown-item, .editora-toolbar-dropdown-item):hover {
107
+ background: #f0f8f6;
108
+ color: #0f4f4a;
109
+ }
110
+
111
+ :is([data-theme="acme"], .editora-theme-acme)
112
+ :is(.rte-toolbar-more-button, .editora-toolbar-more-button) {
113
+ background: linear-gradient(180deg, #fefefe 0%, #f4f8fc 100%);
114
+ border-color: var(--rte-color-border);
115
+ color: var(--rte-color-text-secondary);
116
+ }
117
+
118
+ :is([data-theme="acme"], .editora-theme-acme)
119
+ :is(.rte-toolbar-more-button, .editora-toolbar-more-button):hover {
120
+ background: linear-gradient(180deg, #f5faf9 0%, #e9f5f4 100%);
121
+ border-color: #a7cfc8;
122
+ }
123
+
124
+ :is([data-theme="acme"], .editora-theme-acme)
125
+ :is(.rte-toolbar-more-button, .editora-toolbar-more-button).active {
126
+ background: linear-gradient(180deg, #ccfbf1 0%, #b7f3e7 100%);
127
+ border-color: #64c9b4;
128
+ color: #0f4f4a;
129
+ }
130
+
131
+ :is([data-theme="acme"], .editora-theme-acme) .rte-toolbar-expanded-row {
132
+ background: #edf4fa;
133
+ border-color: var(--rte-color-border);
134
+ }
135
+
136
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-content, .editora-content) {
137
+ color: var(--rte-color-text-primary);
138
+ background: #fdfefe;
139
+ border-color: var(--rte-color-border) !important;
140
+ }
141
+
142
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-content, .editora-content) blockquote {
143
+ border-left-color: #14b8a6;
144
+ background: #f0fdfa;
145
+ color: #0f4f4a;
146
+ }
147
+
148
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-content, .editora-content) code {
149
+ background: #f1f5f9;
150
+ color: #0f172a;
151
+ }
152
+
153
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-content, .editora-content) :is(a, .rte-link) {
154
+ color: #0f766e;
155
+ }
156
+
157
+ :is([data-theme="acme"], .editora-theme-acme)
158
+ :is(.rte-content, .editora-content)
159
+ :is(a, .rte-link):hover {
160
+ color: #0d5f59;
161
+ }
162
+
163
+ :is([data-theme="acme"], .editora-theme-acme) :is(.rte-content, .editora-content) ::selection {
164
+ background: rgba(20, 184, 166, 0.24);
165
+ }
166
+
167
+ :is([data-theme="acme"], .editora-theme-acme)
168
+ :is(.rte-content:empty::before, .rte-content.rte-content-empty::before, .editora-content:empty::before) {
169
+ color: #7f8ea3;
170
+ }
171
+
172
+ :is([data-theme="acme"], .editora-theme-acme) .editora-statusbar {
173
+ background: #eff5fb;
174
+ color: #3b4b61;
175
+ border-top-color: var(--rte-color-border);
176
+ }
177
+
178
+ :is([data-theme="acme"], .editora-theme-acme) .editora-statusbar-separator {
179
+ color: #a1afc2;
180
+ }
181
+
182
+ :is([data-theme="acme"], .editora-theme-acme) .rte-inline-menu {
183
+ background: #ffffff;
184
+ border-color: var(--rte-color-border);
185
+ box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
186
+ }
187
+
188
+ :is([data-theme="acme"], .editora-theme-acme) .rte-inline-menu-item {
189
+ color: #334155;
190
+ }
191
+
192
+ :is([data-theme="acme"], .editora-theme-acme) .rte-inline-menu-item:hover {
193
+ background: #f0f8f6;
194
+ color: #0f4f4a;
195
+ }
196
+
197
+ :is([data-theme="acme"], .editora-theme-acme) .floating-toolbar {
198
+ --rte-floating-toolbar-bg: #ffffff;
199
+ --rte-floating-toolbar-border: #c3d3e5;
200
+ --rte-floating-toolbar-text: #334155;
201
+ --rte-floating-toolbar-hover-bg: #ecf8f5;
202
+ --rte-floating-toolbar-hover-text: #0f4f4a;
203
+ --rte-floating-toolbar-active-bg: #dff7f1;
204
+ --rte-floating-toolbar-separator: #d4e1ee;
205
+ --rte-floating-toolbar-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
206
+ }
207
+
208
+ :is([data-theme="acme"], .editora-theme-acme) .editora-floating-toolbar {
209
+ background: #ffffff;
210
+ border-color: var(--rte-color-border);
211
+ box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
212
+ }