Skip to content

Commit d1b3ed7

Browse files
committed
doc: update example & online editing theme. #30
1 parent 777f0b6 commit d1b3ed7

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

core/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const object = {
147147
const customTheme = {
148148
'--w-rjv-font-family': 'monospace',
149149
'--w-rjv-color': '#9cdcfe',
150+
'--w-rjv-key-number': '#268bd2',
150151
'--w-rjv-key-string': '#9cdcfe',
151152
'--w-rjv-background-color': '#1e1e1e',
152153
'--w-rjv-line-color': '#36334280',
@@ -160,6 +161,7 @@ const customTheme = {
160161
'--w-rjv-curlybraces-color': '#d4d4d4',
161162
'--w-rjv-colon-color': '#d4d4d4',
162163
'--w-rjv-brackets-color': '#d4d4d4',
164+
'--w-rjv-ellipsis-color': '#cb4b16',
163165
'--w-rjv-quotes-color': 'var(--w-rjv-key-string)',
164166
'--w-rjv-quotes-string-color': 'var(--w-rjv-type-string-color)',
165167

@@ -217,6 +219,7 @@ const object = {
217219
}
218220
const customTheme = {
219221
'--w-rjv-color': '#9cdcfe',
222+
'--w-rjv-key-number': '#268bd2',
220223
'--w-rjv-key-string': '#9cdcfe',
221224
'--w-rjv-background-color': '#1e1e1e',
222225
'--w-rjv-line-color': '#36334280',
@@ -230,6 +233,7 @@ const customTheme = {
230233
'--w-rjv-curlybraces-color': '#d4d4d4',
231234
'--w-rjv-colon-color': '#d4d4d4',
232235
'--w-rjv-brackets-color': '#d4d4d4',
236+
'--w-rjv-ellipsis-color': '#cb4b16',
233237
'--w-rjv-quotes-color': '#9cdcfe',
234238
'--w-rjv-quotes-string-color': '#ce9178',
235239

@@ -291,9 +295,11 @@ export default function Demo() {
291295
</div>
292296
</div>
293297
</div>
294-
<pre style={{ padding: 10 }}>
298+
<div>
295299
Copy the theme configuration below into your project.
296-
<JsonView value={theme} displayDataTypes={false} />
300+
</div>
301+
<pre style={{ padding: 10 }}>
302+
{JSON.stringify(theme, null, 2)}
297303
</pre>
298304
</React.Fragment>
299305
);

0 commit comments

Comments
 (0)