Skip to content

Commit cee668d

Browse files
committed
Dark mode of console using light-dark
1 parent 091fa1e commit cee668d

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/createFormatters.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
const orange = 'light-dark(rgb(232,98,0), rgb(255, 150, 50))';
2+
const purple = 'light-dark( #881391, #D48CE6)';
3+
const gray = 'light-dark(rgb(119,119,119), rgb(201, 201, 201))';
4+
15
const listStyle = {style: 'list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal; position: relative'};
2-
const immutableNameStyle = {style: 'color: rgb(232,98,0); position: relative'};
3-
const keyStyle = {style: 'color: #881391'};
4-
const defaultValueKeyStyle = {style: 'color: #777'};
5-
const alteredValueKeyStyle = {style: 'color: #881391; font-weight: bolder'};
6-
const inlineValuesStyle = {style: 'color: #777; font-style: italic; position: relative'}
7-
const nullStyle = {style: 'color: #777'};
6+
const immutableNameStyle = {
7+
style: `color: ${orange}; position: relative`,
8+
};
9+
const keyStyle = { style: `color: ${purple}` };
10+
const defaultValueKeyStyle = { style: `color: ${gray}` };
11+
const alteredValueKeyStyle = { style: `color: ${purple}; font-weight: bolder` };
12+
const inlineValuesStyle = {
13+
style: `color: ${gray}; font-style: italic; position: relative`,
14+
};
15+
const nullStyle = { style: `color: ${gray}` };
816

917
export default function createFormatter(Immutable) {
1018

0 commit comments

Comments
 (0)