terminal.ts

 1import Theme from "../themes/common/theme";
 2
 3export default function terminal(theme: Theme) {
 4  return {
 5    black: theme.ramps.neutral(0).hex(),
 6    red: theme.ramps.red(0.5).hex(),
 7    green: theme.ramps.green(0.5).hex(),
 8    yellow: theme.ramps.yellow(0.5).hex(),
 9    blue: theme.ramps.blue(0.5).hex(),
10    magenta: theme.ramps.magenta(0.5).hex(),
11    cyan: theme.ramps.cyan(0.5).hex(),
12    white: theme.ramps.neutral(7).hex(),
13    brightBlack: theme.ramps.neutral(2).hex(),
14    brightRed: theme.ramps.red(0.25).hex(),
15    brightGreen: theme.ramps.green(0.25).hex(),
16    brightYellow: theme.ramps.yellow(0.25).hex(),
17    brightBlue: theme.ramps.blue(0.25).hex(),
18    brightMagenta: theme.ramps.magenta(0.25).hex(),
19    brightCyan: theme.ramps.cyan(0.25).hex(),
20    brightWhite: theme.ramps.neutral(7).hex(),
21    foreground: theme.ramps.neutral(7).hex(),
22    background: theme.ramps.neutral(0).hex(),
23    cursor: theme.ramps.neutral(7).hex(),
24    dimBlack: theme.ramps.neutral(7).hex(),
25    dimRed: theme.ramps.red(0.75).hex(),
26    dimGreen: theme.ramps.green(0.75).hex(),
27    dimYellow: theme.ramps.yellow(0.75).hex(),
28    dimBlue: theme.ramps.blue(0.75).hex(),
29    dimMagenta: theme.ramps.magenta(0.75).hex(),
30    dimCyan: theme.ramps.cyan(0.75).hex(),
31    dimWhite: theme.ramps.neutral(5).hex(),
32    brightForeground: theme.ramps.neutral(7).hex(),
33    dimForeground: theme.ramps.neutral(0).hex(),
34  };
35}