Skip to content

Commit 677148e

Browse files
committed
Update code syntax and console colors
1 parent ad77cd8 commit 677148e

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

client/styles/components/_console-feed.scss

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ $CONSOLE_FEED_LIGHT_STYLES: (
1717
LOG_DEBUG_COLOR: '#0071AD',
1818
LOG_DEBUG_BACKGROUND: '#D6F1FF',
1919
LOG_DEBUG_BORDER: '#C2EBFF',
20-
LOG_COLOR: '#4D4D4D'
20+
LOG_COLOR: '#4D4D4D',
21+
ARROW_COLOR: '#666',
22+
OBJECT_VALUE_STRING_COLOR: '#D81B18',
23+
OBJECT_VALUE_NULL_COLOR: '#666',
24+
OBJECT_VALUE_UNDEFINED_COLOR: '#666',
2125
);
2226

2327
$CONSOLE_FEED_DARK_STYLES: (
@@ -47,21 +51,22 @@ $CONSOLE_FEED_DARK_STYLES: (
4751
TABLE_TH_HOVER_COLOR: 'grey',
4852
TABLE_SORT_ICON_COLOR: 'grey',
4953
TABLE_DATA_BACKGROUND_IMAGE: 'grey',
50-
TABLE_DATA_BACKGROUND_SIZE: 'grey'
54+
TABLE_DATA_BACKGROUND_SIZE: 'grey',
55+
ARROW_COLOR: '#D9D9D9'
5156
);
5257

5358
$CONSOLE_FEED_CONTRAST_STYLES: (
5459
BASE_BACKGROUND_COLOR: '',
5560
BASE_COLOR: 'white',
5661
OBJECT_NAME_COLOR: 'white',
57-
OBJECT_VALUE_NULL_COLOR: 'hsl(230, 100%, 80%)',
58-
OBJECT_VALUE_UNDEFINED_COLOR: 'hsl(230, 100%, 80%)',
59-
OBJECT_VALUE_REGEXP_COLOR: 'hsl(230, 100%, 80%)',
60-
OBJECT_VALUE_STRING_COLOR: 'hsl(230, 100%, 80%)',
61-
OBJECT_VALUE_SYMBOL_COLOR: 'hsl(230, 100%, 80%)',
62-
OBJECT_VALUE_NUMBER_COLOR: 'hsl(230, 100%, 80%)',
63-
OBJECT_VALUE_BOOLEAN_COLOR: 'hsl(230, 100%, 80%)',
64-
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: 'hsl(230, 100%, 80%)',
62+
OBJECT_VALUE_NULL_COLOR: '#B3BEFF',
63+
OBJECT_VALUE_UNDEFINED_COLOR: '#B3BEFF',
64+
OBJECT_VALUE_REGEXP_COLOR: '#B3BEFF',
65+
OBJECT_VALUE_STRING_COLOR: '#B3BEFF',
66+
OBJECT_VALUE_SYMBOL_COLOR: '#B3BEFF',
67+
OBJECT_VALUE_NUMBER_COLOR: '#B3BEFF',
68+
OBJECT_VALUE_BOOLEAN_COLOR: '#B3BEFF',
69+
OBJECT_VALUE_FUNCTION_KEYWORD_COLOR: '#B3BEFF',
6570
LOG_ERROR_BACKGROUND: '#1F0000',
6671
LOG_ERROR_COLOR: '#EA7B7D',
6772
LOG_WARN_BACKGROUND: 'hsl(50, 100%, 10%)',
@@ -77,5 +82,6 @@ $CONSOLE_FEED_CONTRAST_STYLES: (
7782
TABLE_TH_HOVER_COLOR: 'grey',
7883
TABLE_SORT_ICON_COLOR: 'grey',
7984
TABLE_DATA_BACKGROUND_IMAGE: 'grey',
80-
TABLE_DATA_BACKGROUND_SIZE: 'grey'
85+
TABLE_DATA_BACKGROUND_SIZE: 'grey',
86+
ARROW_COLOR: '#D9D9D9'
8187
);

client/styles/components/_editor.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pre.CodeMirror-line {
5252
}
5353

5454
.CodeMirror-gutter-elt:not(.CodeMirror-linenumber) {
55-
opacity: 0.3;
55+
opacity: 0.2;
5656
width: #{49 / $base-font-size}rem !important;
5757
height: 100%;
5858
left: 49px !important;

client/styles/components/_p5-contrast-codemirror-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ $p5-contrast-activeline: #999999;
8484
}
8585

8686
.cm-s-p5-contrast .CodeMirror-activeline-background {
87-
background-color: #404040;
87+
background-color: $dark;
8888
}
8989

9090
.cm-s-p5-contrast .CodeMirror-activeline-gutter {
91-
background-color: #454545;
92-
border-right: 1px solid #949494;
91+
background-color: $dark;
92+
border-right: 1px solid $middle-dark;
9393
}
9494

9595
.cm-s-p5-contrast .cm-error {

client/styles/components/_p5-dark-codemirror-theme.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ $p5-dark-error: #df3a3d;
8989
}
9090

9191
.cm-s-p5-dark .CodeMirror-activeline-background {
92-
background-color: #404040;
92+
background-color: $dark;
9393
}
9494

9595
.cm-s-p5-dark .CodeMirror-activeline-gutter {
96-
background-color: #454545;
97-
border-right: 1px solid #949494;
96+
background-color: $dark;
97+
border-right: 1px solid $middle-dark;
9898
}
9999

100100
.cm-s-p5-dark span.CodeMirror-matchingbracket {

client/styles/components/_p5-light-codemirror-theme.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
$p5-light-lightbrown: #7a5a3a;
1414
$p5-light-brown: #704F21;
1515
$p5-light-black: #333333;
16-
$p5-light-pink: #be3652;
16+
$p5-light-pink: #CA445F;
1717
$p5-light-gray: #666;
1818
$p5-light-lightblue: #007bbb;
1919
$p5-light-darkblue: #306bb4;
2020
$p5-light-white: #FDFDFD;
21-
$p5-light-orange: #EE9900;
21+
$p5-light-orange: #9E6700;
2222
$p5-light-lightgray: #E0D7D1;
2323
$p5-light-darkgray: #666666;
2424
$p5-light-green: #008007;
@@ -86,11 +86,12 @@ $p5-light-activeline: rgb(207, 207, 207);
8686
}
8787

8888
.cm-s-p5-light .CodeMirror-activeline-background {
89-
background-color: #F3F3F3;
89+
background-color: $light;
9090
}
9191

9292
.cm-s-p5-light .CodeMirror-activeline-gutter {
93-
background-color: #ECECEC;
93+
background-color: $light;
94+
border-right: 1px solid $medium-light;
9495
}
9596

9697
.cm-s-p5-light .cm-error {

0 commit comments

Comments
 (0)