Skip to content

Commit

Permalink
fix: increase selection contrast, close #29
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 3, 2024
1 parent 5e98112 commit ecfd4cb
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"background": {
"activeOnStart": true,
"beginsPattern": "starting",
"endsPattern": "clean exit"
"endsPattern": "finished"
}
},
"label": "npm: dev"
Expand Down
4 changes: 2 additions & 2 deletions extra/xterm-vitesse-black.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"background": "#000",
"foreground": "#dbd7cacc",
"cursor": "#dbd7cacc",
"selectionBackground": "#eeeeee15",
"selectionInactiveBackground": "#eeeeee08",
"selectionBackground": "#eeeeee18",
"selectionInactiveBackground": "#eeeeee10",
"brightBlack": "#777777",
"brightBlue": "#6394bf",
"brightCyan": "#5eaab5",
Expand Down
4 changes: 2 additions & 2 deletions extra/xterm-vitesse-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"background": "#121212",
"foreground": "#dbd7caee",
"cursor": "#dbd7caee",
"selectionBackground": "#eeeeee15",
"selectionInactiveBackground": "#eeeeee08",
"selectionBackground": "#eeeeee18",
"selectionInactiveBackground": "#eeeeee10",
"brightBlack": "#777777",
"brightBlue": "#6394bf",
"brightCyan": "#5eaab5",
Expand Down
4 changes: 2 additions & 2 deletions extra/xterm-vitesse-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"background": "#ffffff",
"foreground": "#393a34",
"cursor": "#393a34",
"selectionBackground": "#22222215",
"selectionInactiveBackground": "#22222208",
"selectionBackground": "#22222218",
"selectionInactiveBackground": "#22222210",
"brightBlack": "#aaaaaa",
"brightBlue": "#296aa3",
"brightCyan": "#2993a3",
Expand Down
6 changes: 3 additions & 3 deletions scripts/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ export const VitesseThemes = {

background: ['#121212', '#ffffff'],
activeBackground: ['#181818', '#f7f7f7'],
selectionBackground: ['#eeeeee15', '#22222215'],
selectionBackgroundActive: ['#eeeeee15', '#22222215'],
selectionBackgroundInActive: ['#eeeeee08', '#22222208'],
selectionBackground: ['#eeeeee18', '#22222218'],
selectionBackgroundActive: ['#eeeeee18', '#22222218'],
selectionBackgroundInActive: ['#eeeeee10', '#22222210'],

// soft overrides
softBackground: ['#222', '#F1F0E9'],
Expand Down
4 changes: 4 additions & 0 deletions scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import fs from 'fs-extra'
import getTheme from './theme'
import { getXtermTheme } from './extra'

console.log('starting')

fs.mkdir('./themes', { recursive: true })
.then(() => Promise.all([
fs.writeJSON(
Expand Down Expand Up @@ -77,3 +79,5 @@ fs.mkdir('./extra', { recursive: true })
{ spaces: 2 },
),
]))

console.log('finished')
10 changes: 5 additions & 5 deletions themes/vitesse-black.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"breadcrumb.foreground": "#959da5",
"breadcrumb.focusForeground": "#dbd7cacc",
"breadcrumb.background": "#121212",
"breadcrumb.activeSelectionForeground": "#eeeeee15",
"breadcrumb.activeSelectionForeground": "#eeeeee18",
"breadcrumbPicker.background": "#000",
"editor.foreground": "#dbd7cacc",
"editor.background": "#000",
Expand All @@ -110,9 +110,9 @@
"editorWhitespace.foreground": "#ffffff15",
"editor.findMatchBackground": "#e6cc7722",
"editor.findMatchHighlightBackground": "#e6cc7744",
"editor.inactiveSelectionBackground": "#eeeeee08",
"editor.selectionBackground": "#eeeeee15",
"editor.selectionHighlightBackground": "#eeeeee08",
"editor.inactiveSelectionBackground": "#eeeeee10",
"editor.selectionBackground": "#eeeeee18",
"editor.selectionHighlightBackground": "#eeeeee10",
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
Expand All @@ -130,7 +130,7 @@
"panelTitle.inactiveForeground": "#959da5",
"panelInput.border": "#2f363d",
"terminal.foreground": "#dbd7cacc",
"terminal.selectionBackground": "#eeeeee15",
"terminal.selectionBackground": "#eeeeee18",
"terminal.ansiBrightBlack": "#777777",
"terminal.ansiBrightBlue": "#6394bf",
"terminal.ansiBrightCyan": "#5eaab5",
Expand Down
10 changes: 5 additions & 5 deletions themes/vitesse-dark-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"breadcrumb.foreground": "#959da5",
"breadcrumb.focusForeground": "#dbd7caee",
"breadcrumb.background": "#292929",
"breadcrumb.activeSelectionForeground": "#eeeeee15",
"breadcrumb.activeSelectionForeground": "#eeeeee18",
"breadcrumbPicker.background": "#222",
"editor.foreground": "#dbd7caee",
"editor.background": "#222",
Expand All @@ -110,9 +110,9 @@
"editorWhitespace.foreground": "#ffffff15",
"editor.findMatchBackground": "#e6cc7722",
"editor.findMatchHighlightBackground": "#e6cc7744",
"editor.inactiveSelectionBackground": "#eeeeee08",
"editor.selectionBackground": "#eeeeee15",
"editor.selectionHighlightBackground": "#eeeeee08",
"editor.inactiveSelectionBackground": "#eeeeee10",
"editor.selectionBackground": "#eeeeee18",
"editor.selectionHighlightBackground": "#eeeeee10",
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
Expand All @@ -130,7 +130,7 @@
"panelTitle.inactiveForeground": "#959da5",
"panelInput.border": "#2f363d",
"terminal.foreground": "#dbd7caee",
"terminal.selectionBackground": "#eeeeee15",
"terminal.selectionBackground": "#eeeeee18",
"terminal.ansiBrightBlack": "#777777",
"terminal.ansiBrightBlue": "#6394bf",
"terminal.ansiBrightCyan": "#5eaab5",
Expand Down
10 changes: 5 additions & 5 deletions themes/vitesse-dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"breadcrumb.foreground": "#959da5",
"breadcrumb.focusForeground": "#dbd7caee",
"breadcrumb.background": "#181818",
"breadcrumb.activeSelectionForeground": "#eeeeee15",
"breadcrumb.activeSelectionForeground": "#eeeeee18",
"breadcrumbPicker.background": "#121212",
"editor.foreground": "#dbd7caee",
"editor.background": "#121212",
Expand All @@ -110,9 +110,9 @@
"editorWhitespace.foreground": "#ffffff15",
"editor.findMatchBackground": "#e6cc7722",
"editor.findMatchHighlightBackground": "#e6cc7744",
"editor.inactiveSelectionBackground": "#eeeeee08",
"editor.selectionBackground": "#eeeeee15",
"editor.selectionHighlightBackground": "#eeeeee08",
"editor.inactiveSelectionBackground": "#eeeeee10",
"editor.selectionBackground": "#eeeeee18",
"editor.selectionHighlightBackground": "#eeeeee10",
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#4d937520",
Expand All @@ -130,7 +130,7 @@
"panelTitle.inactiveForeground": "#959da5",
"panelInput.border": "#2f363d",
"terminal.foreground": "#dbd7caee",
"terminal.selectionBackground": "#eeeeee15",
"terminal.selectionBackground": "#eeeeee18",
"terminal.ansiBrightBlack": "#777777",
"terminal.ansiBrightBlue": "#6394bf",
"terminal.ansiBrightCyan": "#5eaab5",
Expand Down
10 changes: 5 additions & 5 deletions themes/vitesse-light-soft.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"breadcrumb.foreground": "#6a737d",
"breadcrumb.focusForeground": "#393a34",
"breadcrumb.background": "#E7E5DB",
"breadcrumb.activeSelectionForeground": "#22222215",
"breadcrumb.activeSelectionForeground": "#22222218",
"breadcrumbPicker.background": "#F1F0E9",
"editor.foreground": "#393a34",
"editor.background": "#F1F0E9",
Expand All @@ -110,9 +110,9 @@
"editorWhitespace.foreground": "#00000015",
"editor.findMatchBackground": "#e6cc7744",
"editor.findMatchHighlightBackground": "#e6cc7766",
"editor.inactiveSelectionBackground": "#22222208",
"editor.selectionBackground": "#22222215",
"editor.selectionHighlightBackground": "#22222208",
"editor.inactiveSelectionBackground": "#22222210",
"editor.selectionBackground": "#22222218",
"editor.selectionHighlightBackground": "#22222210",
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#1c6b4820",
Expand All @@ -130,7 +130,7 @@
"panelTitle.inactiveForeground": "#6a737d",
"panelInput.border": "#e1e4e8",
"terminal.foreground": "#393a34",
"terminal.selectionBackground": "#22222215",
"terminal.selectionBackground": "#22222218",
"terminal.ansiBrightBlack": "#aaaaaa",
"terminal.ansiBrightBlue": "#296aa3",
"terminal.ansiBrightCyan": "#2993a3",
Expand Down
10 changes: 5 additions & 5 deletions themes/vitesse-light.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"breadcrumb.foreground": "#6a737d",
"breadcrumb.focusForeground": "#393a34",
"breadcrumb.background": "#f7f7f7",
"breadcrumb.activeSelectionForeground": "#22222215",
"breadcrumb.activeSelectionForeground": "#22222218",
"breadcrumbPicker.background": "#ffffff",
"editor.foreground": "#393a34",
"editor.background": "#ffffff",
Expand All @@ -110,9 +110,9 @@
"editorWhitespace.foreground": "#00000015",
"editor.findMatchBackground": "#e6cc7744",
"editor.findMatchHighlightBackground": "#e6cc7766",
"editor.inactiveSelectionBackground": "#22222208",
"editor.selectionBackground": "#22222215",
"editor.selectionHighlightBackground": "#22222208",
"editor.inactiveSelectionBackground": "#22222210",
"editor.selectionBackground": "#22222218",
"editor.selectionHighlightBackground": "#22222210",
"editor.wordHighlightBackground": "#1c6b4805",
"editor.wordHighlightStrongBackground": "#1c6b4810",
"editorBracketMatch.background": "#1c6b4820",
Expand All @@ -130,7 +130,7 @@
"panelTitle.inactiveForeground": "#6a737d",
"panelInput.border": "#e1e4e8",
"terminal.foreground": "#393a34",
"terminal.selectionBackground": "#22222215",
"terminal.selectionBackground": "#22222218",
"terminal.ansiBrightBlack": "#aaaaaa",
"terminal.ansiBrightBlue": "#296aa3",
"terminal.ansiBrightCyan": "#2993a3",
Expand Down

0 comments on commit ecfd4cb

Please sign in to comment.