Update dark, light themes.

This commit is contained in:
Nate Butler
2022-04-03 21:15:14 -04:00
parent 2d51b103d2
commit b6f85e4895
7 changed files with 230 additions and 160 deletions
+79 -51
View File
@@ -18,7 +18,7 @@
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#2db4f3", "color": "#1096d3",
"weight": "bold", "weight": "bold",
"size": 14 "size": 14
} }
@@ -38,7 +38,7 @@
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#2db4f3", "color": "#1096d3",
"weight": "bold", "weight": "bold",
"size": 14 "size": 14
}, },
@@ -70,8 +70,8 @@
"size": 14 "size": 14
}, },
"selection": { "selection": {
"cursor": "#4287f6", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#103063"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -111,8 +111,8 @@
"background": "#1c1c1c", "background": "#1c1c1c",
"icon_close": "#555555", "icon_close": "#555555",
"icon_close_active": "#ffffff", "icon_close_active": "#ffffff",
"icon_conflict": "#f7b241", "icon_conflict": "#f6a724",
"icon_dirty": "#4287f6", "icon_dirty": "#135acd",
"icon_width": 8, "icon_width": 8,
"spacing": 10, "spacing": 10,
"text": { "text": {
@@ -137,8 +137,8 @@
"background": "#000000", "background": "#000000",
"icon_close": "#555555", "icon_close": "#555555",
"icon_close_active": "#ffffff", "icon_close_active": "#ffffff",
"icon_conflict": "#f7b241", "icon_conflict": "#f6a724",
"icon_dirty": "#4287f6", "icon_dirty": "#135acd",
"icon_width": 8, "icon_width": 8,
"spacing": 10, "spacing": 10,
"text": { "text": {
@@ -289,7 +289,7 @@
}, },
"outdated_warning": { "outdated_warning": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f8c570", "color": "#f7bb57",
"size": 13 "size": 13
} }
}, },
@@ -297,7 +297,7 @@
"height": 34, "height": 34,
"background": "#000000", "background": "#000000",
"border": { "border": {
"color": "#070707", "color": "#151515",
"width": 1, "width": 1,
"bottom": true "bottom": true
}, },
@@ -325,54 +325,54 @@
} }
}, },
"editor": { "editor": {
"text_color": "#f1f1f1", "text_color": "#d5d5d5",
"background": "#000000", "background": "#000000",
"active_line_background": "#0e0e0e", "active_line_background": "#0e0e0e",
"code_actions_indicator": "#9c9c9c", "code_actions_indicator": "#9c9c9c",
"diff_background_deleted": "#f78c8c", "diff_background_deleted": "#f15656",
"diff_background_inserted": "#22c55e", "diff_background_inserted": "#1b9447",
"document_highlight_read_background": "#777af4", "document_highlight_read_background": "#2b2b2b",
"document_highlight_write_background": "#777af4", "document_highlight_write_background": "#2b2b2b",
"error_color": "#f78c8c", "error_color": "#f15656",
"gutter_background": "#000000", "gutter_background": "#000000",
"gutter_padding_factor": 2.5, "gutter_padding_factor": 3.5,
"highlighted_line_background": "#070707", "highlighted_line_background": "#070707",
"line_number": "#636363", "line_number": "#636363",
"line_number_active": "#ffffff", "line_number_active": "#ffffff",
"rename_fade": 0.6, "rename_fade": 0.6,
"unnecessary_code_fade": 0.5, "unnecessary_code_fade": 0.5,
"selection": { "selection": {
"cursor": "#4287f6", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#103063"
}, },
"guest_selections": [ "guest_selections": [
{ {
"cursor": "#87d116", "cursor": "#79ba16",
"selection": "#dbf9ac" "selection": "#38530f"
}, },
{ {
"cursor": "#777af4", "cursor": "#484bed",
"selection": "#d4d5fd" "selection": "#121269"
}, },
{ {
"cursor": "#f98a3d", "cursor": "#ee670a",
"selection": "#fde0cd" "selection": "#5d2f0e"
}, },
{ {
"cursor": "#b671f8", "cursor": "#993bf3",
"selection": "#e9d4fd" "selection": "#3e1169"
}, },
{ {
"cursor": "#16ddc7", "cursor": "#16d6c1",
"selection": "#b4faf2" "selection": "#0e4f48"
}, },
{ {
"cursor": "#f58ac0", "cursor": "#ef59a3",
"selection": "#fcd4e8" "selection": "#fbc6e1"
}, },
{ {
"cursor": "#f6bc09", "cursor": "#f7bf17",
"selection": "#fceabc" "selection": "#fce9b7"
} }
], ],
"autocomplete": { "autocomplete": {
@@ -406,7 +406,7 @@
"left": -14 "left": -14
}, },
"match_highlight": { "match_highlight": {
"color": "#59c3f5", "color": "#4f8ff7",
"weight": "normal" "weight": "normal"
}, },
"selected_item": { "selected_item": {
@@ -481,12 +481,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f78c8c", "color": "#f15656",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f78c8c", "color": "#f15656",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -504,12 +504,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f8c570", "color": "#f7bb57",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f8c570", "color": "#f7bb57",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -527,12 +527,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -550,12 +550,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -653,7 +653,35 @@
} }
} }
}, },
"syntax": {} "syntax": {
"keyword": "#4f8ff7",
"function": "#f9da82",
"string": "#f99d5f",
"type": "#3eeeda",
"number": "#aeef4b",
"comment": "#aaaaaa",
"property": "#4f8ff7",
"variant": "#53c1f5",
"constant": "#d5d5d5",
"title": {
"color": "#de900c",
"weight": "bold"
},
"emphasis": "#1096d3",
"emphasis_strong": {
"color": "#1096d3",
"weight": "bold"
},
"link_uri": {
"color": "#79ba16",
"underline": true
},
"link_text": {
"color": "#ee670a",
"italic": true
},
"list_marker": "#20b0f2"
}
}, },
"project_diagnostics": { "project_diagnostics": {
"tab_icon_spacing": 4, "tab_icon_spacing": 4,
@@ -929,8 +957,8 @@
"size": 14 "size": 14
}, },
"selection": { "selection": {
"cursor": "#4287f6", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#103063"
}, },
"border": { "border": {
"color": "#151515", "color": "#151515",
@@ -1067,7 +1095,7 @@
} }
}, },
"search": { "search": {
"match_background": "#87d116", "match_background": "#0a2633",
"tab_icon_spacing": 4, "tab_icon_spacing": 4,
"tab_icon_width": 14, "tab_icon_width": 14,
"active_hovered_option_button": { "active_hovered_option_button": {
@@ -1123,8 +1151,8 @@
"size": 16 "size": 16
}, },
"selection": { "selection": {
"cursor": "#4287f6", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#103063"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -1177,8 +1205,8 @@
"size": 16 "size": 16
}, },
"selection": { "selection": {
"cursor": "#4287f6", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#103063"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -1186,7 +1214,7 @@
"size": 16 "size": 16
}, },
"border": { "border": {
"color": "#f47171", "color": "#eb2d2d",
"width": 1 "width": 1
}, },
"margin": { "margin": {
+85 -57
View File
@@ -18,7 +18,7 @@
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"weight": "bold", "weight": "bold",
"size": 14 "size": 14
} }
@@ -38,7 +38,7 @@
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"weight": "bold", "weight": "bold",
"size": 14 "size": 14
}, },
@@ -70,8 +70,8 @@
"size": 14 "size": 14
}, },
"selection": { "selection": {
"cursor": "#6099f7", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#c5dafc"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -111,8 +111,8 @@
"background": "#f1f1f1", "background": "#f1f1f1",
"icon_close": "#555555", "icon_close": "#555555",
"icon_close_active": "#000000", "icon_close_active": "#000000",
"icon_conflict": "#f6bc09", "icon_conflict": "#f7bf17",
"icon_dirty": "#4287f6", "icon_dirty": "#135acd",
"icon_width": 8, "icon_width": 8,
"spacing": 10, "spacing": 10,
"text": { "text": {
@@ -137,8 +137,8 @@
"background": "#ffffff", "background": "#ffffff",
"icon_close": "#555555", "icon_close": "#555555",
"icon_close_active": "#000000", "icon_close_active": "#000000",
"icon_conflict": "#f6bc09", "icon_conflict": "#f7bf17",
"icon_dirty": "#4287f6", "icon_dirty": "#135acd",
"icon_width": 8, "icon_width": 8,
"spacing": 10, "spacing": 10,
"text": { "text": {
@@ -289,7 +289,7 @@
}, },
"outdated_warning": { "outdated_warning": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#e5af09", "color": "#d3a20b",
"size": 13 "size": 13
} }
}, },
@@ -297,7 +297,7 @@
"height": 34, "height": 34,
"background": "#ffffff", "background": "#ffffff",
"border": { "border": {
"color": "#c6c6c6", "color": "#e3e3e3",
"width": 1, "width": 1,
"bottom": true "bottom": true
}, },
@@ -327,52 +327,52 @@
"editor": { "editor": {
"text_color": "#2b2b2b", "text_color": "#2b2b2b",
"background": "#ffffff", "background": "#ffffff",
"active_line_background": "#e3e3e3", "active_line_background": "#f1f1f1",
"code_actions_indicator": "#717171", "code_actions_indicator": "#717171",
"diff_background_deleted": "#fdd4d4", "diff_background_deleted": "#fcc6c6",
"diff_background_inserted": "#befad2", "diff_background_inserted": "#b7f9ce",
"document_highlight_read_background": "#e3e3e3", "document_highlight_read_background": "#f1f1f1",
"document_highlight_write_background": "#e3e3e3", "document_highlight_write_background": "#f1f1f1",
"error_color": "#f47171", "error_color": "#eb2d2d",
"gutter_background": "#ffffff", "gutter_background": "#ffffff",
"gutter_padding_factor": 2.5, "gutter_padding_factor": 3.5,
"highlighted_line_background": "#e3e3e3", "highlighted_line_background": "#f1f1f1",
"line_number": "#808080", "line_number": "#aaaaaa",
"line_number_active": "#000000", "line_number_active": "#000000",
"rename_fade": 0.6, "rename_fade": 0.6,
"unnecessary_code_fade": 0.5, "unnecessary_code_fade": 0.5,
"selection": { "selection": {
"cursor": "#6099f7", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#c5dafc"
}, },
"guest_selections": [ "guest_selections": [
{ {
"cursor": "#87d116", "cursor": "#79ba16",
"selection": "#dbf9ac" "selection": "#dffab5"
}, },
{ {
"cursor": "#777af4", "cursor": "#484bed",
"selection": "#d4d5fd" "selection": "#cdcdfc"
}, },
{ {
"cursor": "#f98a3d", "cursor": "#ee670a",
"selection": "#fde0cd" "selection": "#fcd6bd"
}, },
{ {
"cursor": "#b671f8", "cursor": "#993bf3",
"selection": "#e9d4fd" "selection": "#e4cbfc"
}, },
{ {
"cursor": "#16ddc7", "cursor": "#16d6c1",
"selection": "#b4faf2" "selection": "#b1faf2"
}, },
{ {
"cursor": "#f58ac0", "cursor": "#ef59a3",
"selection": "#fcd4e8" "selection": "#fbc6e1"
}, },
{ {
"cursor": "#f6bc09", "cursor": "#f7bf17",
"selection": "#fceabc" "selection": "#fce9b7"
} }
], ],
"autocomplete": { "autocomplete": {
@@ -400,13 +400,13 @@
"right": 6, "right": 6,
"top": 2 "top": 2
}, },
"background": "#f1f1f1" "background": "#f8f8f8"
}, },
"margin": { "margin": {
"left": -14 "left": -14
}, },
"match_highlight": { "match_highlight": {
"color": "#59c3f5", "color": "#103063",
"weight": "normal" "weight": "normal"
}, },
"selected_item": { "selected_item": {
@@ -417,7 +417,7 @@
"right": 6, "right": 6,
"top": 2 "top": 2
}, },
"background": "#e3e3e3" "background": "#f1f1f1"
} }
}, },
"diagnostic_header": { "diagnostic_header": {
@@ -453,7 +453,7 @@
} }
}, },
"diagnostic_path_header": { "diagnostic_path_header": {
"background": "#e3e3e3", "background": "#f1f1f1",
"text_scale_factor": 0.857, "text_scale_factor": 0.857,
"filename": { "filename": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -481,12 +481,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f47171", "color": "#eb2d2d",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#f47171", "color": "#eb2d2d",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -504,12 +504,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#e5af09", "color": "#d3a20b",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#e5af09", "color": "#d3a20b",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -527,12 +527,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -550,12 +550,12 @@
"message": { "message": {
"text": { "text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14 "size": 14
}, },
"highlight_text": { "highlight_text": {
"family": "Zed Sans", "family": "Zed Sans",
"color": "#6099f7", "color": "#2472f2",
"size": 14, "size": 14,
"weight": "bold" "weight": "bold"
} }
@@ -653,7 +653,35 @@
} }
} }
}, },
"syntax": {} "syntax": {
"keyword": "#103063",
"function": "#1b9447",
"string": "#bb550e",
"type": "#138a7d",
"number": "#14a898",
"comment": "#555555",
"property": "#134697",
"variant": "#1179a8",
"constant": "#393939",
"title": {
"color": "#1096d3",
"weight": "bold"
},
"emphasis": "#2472f2",
"emphasis_strong": {
"color": "#2472f2",
"weight": "bold"
},
"link_uri": {
"color": "#14a898",
"underline": true
},
"link_text": {
"color": "#ee670a",
"italic": true
},
"list_marker": "#20b0f2"
}
}, },
"project_diagnostics": { "project_diagnostics": {
"tab_icon_spacing": 4, "tab_icon_spacing": 4,
@@ -929,8 +957,8 @@
"size": 14 "size": 14
}, },
"selection": { "selection": {
"cursor": "#6099f7", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#c5dafc"
}, },
"border": { "border": {
"color": "#e3e3e3", "color": "#e3e3e3",
@@ -1022,7 +1050,7 @@
"padding": { "padding": {
"left": 8 "left": 8
}, },
"background": "#e3e3e3", "background": "#f1f1f1",
"corner_radius": 6 "corner_radius": 6
}, },
"unshared_project": { "unshared_project": {
@@ -1062,7 +1090,7 @@
"padding": { "padding": {
"left": 8 "left": 8
}, },
"background": "#e3e3e3", "background": "#f1f1f1",
"corner_radius": 6 "corner_radius": 6
} }
}, },
@@ -1123,8 +1151,8 @@
"size": 16 "size": 16
}, },
"selection": { "selection": {
"cursor": "#6099f7", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#c5dafc"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -1177,8 +1205,8 @@
"size": 16 "size": 16
}, },
"selection": { "selection": {
"cursor": "#6099f7", "cursor": "#2472f2",
"selection": "#d0e2fd" "selection": "#c5dafc"
}, },
"text": { "text": {
"family": "Zed Mono", "family": "Zed Mono",
@@ -1186,7 +1214,7 @@
"size": 16 "size": 16
}, },
"border": { "border": {
"color": "#fbbdbd", "color": "#f9a0a0",
"width": 1 "width": 1
}, },
"margin": { "margin": {
+17 -3
View File
@@ -49,7 +49,7 @@ export default function editor(theme: Theme) {
documentHighlightWriteBackground: theme.editor.highlight.occurrence.value, documentHighlightWriteBackground: theme.editor.highlight.occurrence.value,
errorColor: theme.textColor.error.value, errorColor: theme.textColor.error.value,
gutterBackground: backgroundColor(theme, 500), gutterBackground: backgroundColor(theme, 500),
gutterPaddingFactor: 2.5, gutterPaddingFactor: 3.5,
highlightedLineBackground: theme.editor.line.highlighted.value, highlightedLineBackground: theme.editor.line.highlighted.value,
lineNumber: theme.editor.gutter.primary.value, lineNumber: theme.editor.gutter.primary.value,
lineNumberActive: theme.editor.gutter.active.value, lineNumberActive: theme.editor.gutter.active.value,
@@ -129,7 +129,21 @@ export default function editor(theme: Theme) {
invalidInformationDiagnostic: diagnostic(theme, "muted"), invalidInformationDiagnostic: diagnostic(theme, "muted"),
invalidWarningDiagnostic: diagnostic(theme, "muted"), invalidWarningDiagnostic: diagnostic(theme, "muted"),
syntax: { syntax: {
keyword: theme.syntax.keyword.color.value,
} function: theme.syntax.function.color.value,
string: theme.syntax.string.color.value,
type: theme.syntax.type.color.value,
number: theme.syntax.number.color.value,
comment: theme.syntax.comment.color.value,
property: theme.syntax.property.color.value,
variant: theme.syntax.variant.color.value,
constant: theme.syntax.constant.color.value,
title: { color: theme.syntax.title.color.value, weight: "bold" },
emphasis: theme.textColor.feature.value,
"emphasis.strong": { color: theme.textColor.feature.value, weight: "bold" },
link_uri: { color: theme.syntax.linkUrl.color.value, underline: true },
link_text: { color: theme.syntax.linkText.color.value, italic: true },
list_marker: theme.syntax.listMarker.color.value,
},
}; };
} }
+1 -1
View File
@@ -135,7 +135,7 @@ export default function workspace(theme: Theme) {
toolbar: { toolbar: {
height: 34, height: 34,
background: backgroundColor(theme, 500), background: backgroundColor(theme, 500),
border: border(theme, "primary", { bottom: true }), border: border(theme, "secondary", { bottom: true }),
itemSpacing: 8, itemSpacing: 8,
padding: { left: 16, right: 8, top: 4, bottom: 4 }, padding: { left: 16, right: 8, top: 4, bottom: 4 },
}, },
+26 -26
View File
@@ -88,39 +88,39 @@ const iconColor = {
const player = { const player = {
1: { 1: {
baseColor: colors.blue[600], baseColor: colors.blue[500],
cursorColor: colors.blue[600], cursorColor: colors.blue[500],
selectionColor: colors.blue[100], selectionColor: colors.blue[800],
borderColor: colors.blue[600], borderColor: colors.blue[800],
}, },
2: { 2: {
baseColor: colors.lime[500], baseColor: colors.lime[500],
cursorColor: colors.lime[500], cursorColor: colors.lime[500],
selectionColor: colors.lime[100], selectionColor: colors.lime[800],
borderColor: colors.lime[500], borderColor: colors.lime[500],
}, },
3: { 3: {
baseColor: colors.indigo[500], baseColor: colors.indigo[500],
cursorColor: colors.indigo[500], cursorColor: colors.indigo[500],
selectionColor: colors.indigo[100], selectionColor: colors.indigo[800],
borderColor: colors.indigo[500], borderColor: colors.indigo[500],
}, },
4: { 4: {
baseColor: colors.orange[500], baseColor: colors.orange[500],
cursorColor: colors.orange[500], cursorColor: colors.orange[500],
selectionColor: colors.orange[100], selectionColor: colors.orange[800],
borderColor: colors.orange[500], borderColor: colors.orange[500],
}, },
5: { 5: {
baseColor: colors.purple[500], baseColor: colors.purple[500],
cursorColor: colors.purple[500], cursorColor: colors.purple[500],
selectionColor: colors.purple[100], selectionColor: colors.purple[800],
borderColor: colors.purple[500], borderColor: colors.purple[500],
}, },
6: { 6: {
baseColor: colors.teal[400], baseColor: colors.teal[400],
cursorColor: colors.teal[400], cursorColor: colors.teal[400],
selectionColor: colors.teal[100], selectionColor: colors.teal[800],
borderColor: colors.teal[400], borderColor: colors.teal[400],
}, },
7: { 7: {
@@ -151,11 +151,11 @@ const editor = {
}, },
highlight: { highlight: {
selection: player[1].selectionColor, selection: player[1].selectionColor,
occurrence: colors.indigo[500], // TODO: Why does indigo[500], indigo[100], and indigo[900] all give me the same color? @kethku occurrence: colors.neutral[750],
activeOccurrence: colors.indigo[400], // TODO: We don't seem to be using this right now in rust activeOccurrence: colors.neutral[700],
matchingBracket: backgroundColor[500].active, matchingBracket: backgroundColor[500].active,
match: colors.lime[500], match: colors.sky[900],
activeMatch: colors.lime[400], activeMatch: colors.sky[800],
related: backgroundColor[500].focused, related: backgroundColor[500].focused,
}, },
gutter: { gutter: {
@@ -166,15 +166,15 @@ const editor = {
const syntax: Syntax = { const syntax: Syntax = {
primary: { primary: {
color: textColor.primary, color: colors.neutral[150],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
comment: { comment: {
color: colors.lime[200], color: colors.neutral[300],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
punctuation: { punctuation: {
color: textColor.primary, color: colors.neutral[200],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
constant: { constant: {
@@ -182,7 +182,7 @@ const syntax: Syntax = {
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
keyword: { keyword: {
color: colors.sky[400], color: colors.blue[400],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
function: { function: {
@@ -194,19 +194,19 @@ const syntax: Syntax = {
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
variant: { variant: {
color: colors.teal[300],
weight: fontWeights.normal,
},
property: {
color: colors.sky[300], color: colors.sky[300],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
property: {
color: colors.blue[400],
weight: fontWeights.normal,
},
enum: { enum: {
color: colors.sky[400], color: colors.orange[500],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
operator: { operator: {
color: colors.sky[400], color: colors.orange[500],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
string: { string: {
@@ -214,11 +214,11 @@ const syntax: Syntax = {
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
number: { number: {
color: colors.neutral[150], color: colors.lime[300],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
boolean: { boolean: {
color: colors.neutral[150], color: colors.lime[300],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
predictive: { predictive: {
@@ -226,7 +226,7 @@ const syntax: Syntax = {
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
title: { title: {
color: colors.sky[500], color: colors.amber[500],
weight: fontWeights.bold, weight: fontWeights.bold,
}, },
emphasis: { emphasis: {
+19 -19
View File
@@ -18,9 +18,9 @@ const backgroundColor = {
}, },
500: { 500: {
base: colors.neutral[0], base: colors.neutral[0],
hovered: colors.neutral[50], hovered: colors.neutral[25],
active: colors.neutral[100], active: colors.neutral[50],
focused: colors.neutral[50], focused: colors.neutral[75],
}, },
ok: { ok: {
base: colors.green[100], base: colors.green[100],
@@ -159,66 +159,66 @@ const editor = {
related: colors.neutral[0], related: colors.neutral[0],
}, },
gutter: { gutter: {
primary: textColor.muted, primary: colors.neutral[300],
active: textColor.active, active: textColor.active,
}, },
}; };
const syntax: Syntax = { const syntax: Syntax = {
primary: { primary: {
color: textColor.primary, color: colors.neutral[750],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
comment: { comment: {
color: colors.lime[200], color: colors.neutral[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
punctuation: { punctuation: {
color: textColor.primary, color: colors.neutral[700],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
constant: { constant: {
color: colors.neutral[150], color: colors.neutral[700],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
keyword: { keyword: {
color: colors.sky[400], color: colors.blue[800],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
function: { function: {
color: colors.yellow[200], color: colors.green[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
type: { type: {
color: colors.teal[300], color: colors.teal[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
variant: { variant: {
color: colors.teal[300], color: colors.sky[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
property: { property: {
color: colors.sky[300], color: colors.blue[700],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
enum: { enum: {
color: colors.sky[400], color: colors.orange[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
operator: { operator: {
color: colors.sky[400], color: colors.orange[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
string: { string: {
color: colors.orange[300], color: colors.orange[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
number: { number: {
color: colors.neutral[150], color: colors.teal[500],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
boolean: { boolean: {
color: colors.neutral[150], color: colors.amber[600],
weight: fontWeights.normal, weight: fontWeights.normal,
}, },
predictive: { predictive: {
@@ -238,7 +238,7 @@ const syntax: Syntax = {
weight: fontWeights.bold, weight: fontWeights.bold,
}, },
linkUrl: { linkUrl: {
color: colors.lime[500], color: colors.teal[500],
weight: fontWeights.normal, weight: fontWeights.normal,
// TODO: add underline // TODO: add underline
}, },
+3 -3
View File
@@ -17,14 +17,14 @@ export function colorRamp(
} else { } else {
let hue = Math.round(chroma(color).hsl()[0]); let hue = Math.round(chroma(color).hsl()[0]);
let startColor = chroma.hsl(hue, 0.88, 0.96); let startColor = chroma.hsl(hue, 0.88, 0.96);
let endColor = chroma.hsl(hue, 0.68, 0.32); let endColor = chroma.hsl(hue, 0.68, 0.12);
scale = chroma scale = chroma
.scale([startColor, color, endColor]) .scale([startColor, color, endColor])
.domain([0, 0.5, 1]) .domain([0, 0.5, 1])
.mode("hsl") .mode("hsl")
.gamma(1) .gamma(1)
.correctLightness(true) // .correctLightness(true)
.padding([0, 0.15]); .padding([0, 0]);
} }
const ramp: ColorRamp = {}; const ramp: ColorRamp = {};