Scimax for VS Code
Publisher: John KitchinThemes in package: 1
Scientific computing environment inspired by Emacs Scimax - journal, literate programming, org-mode enhancements
Scientific computing environment inspired by Emacs Scimax - journal, literate programming, org-mode enhancements
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment, punctuation.definition.comment | #A0A1A7 | italic |
| string, string.quoted | #008000 | — |
| constant.numeric | #7F7F7F | — |
| constant, constant.language | #D0372D | — |
| keyword, storage.type, storage.modifier | #0000FF | — |
| keyword.control | #0000FF | — |
| keyword.operator | #333333 | — |
| entity.name.function, support.function | #006699 | — |
| entity.name.class, entity.name.type.class, support.class | #6434A3 | bold |
| entity.name.type, support.type | #6434A3 | — |
| variable, variable.other | #BA36A5 | — |
| variable.parameter | #BA36A5 | — |
| variable.other.property, support.variable.property | #333333 | — |
| entity.name.tag | #0000FF | — |
| entity.other.attribute-name | #6434A3 | — |
| punctuation | #333333 | — |
| string.regexp | #D0372D | — |
| constant.character.escape | #D0372D | — |
| invalid, invalid.illegal | #FF0000 | bold underline |
| invalid.deprecated | #333333 | strikethrough |
| heading.1, markup.heading.1, entity.name.section.heading1, entity.name.section.level1, markup.heading.1.org, entity.name.section.org | #3C3C3C | bold |
| heading.2, markup.heading.2, entity.name.section.heading2, entity.name.section.level2, markup.heading.2.org | #123555 | bold |
| heading.3, markup.heading.3, entity.name.section.heading3, entity.name.section.level3, markup.heading.3.org | #005522 | bold |
| heading.4, markup.heading.4, entity.name.section.heading4, entity.name.section.level4, markup.heading.4.org | #EA6300 | bold |
| heading.5, markup.heading.5, entity.name.section.heading5, entity.name.section.level5 | #E3258D | bold |
| heading.6, markup.heading.6, entity.name.section.heading6, entity.name.section.level6 | #0077CC | bold |
| markup.bold, punctuation.definition.bold | — | bold |
| markup.italic, punctuation.definition.italic | — | italic |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.command.content.org | #8B0000 | — |
| markup.command.delimiter.begin.org, markup.command.delimiter.end.org | #CD5C5C | — |
| punctuation.definition.bold.begin.org, punctuation.definition.bold.end.org, punctuation.definition.italic.begin.org, punctuation.definition.italic.end.org, punctuation.definition.underline.begin.org, punctuation.definition.underline.end.org, punctuation.definition.verbatim.begin.org, punctuation.definition.verbatim.end.org, punctuation.definition.raw.begin.org, punctuation.definition.raw.end.org, punctuation.definition.strikethrough.begin.org, punctuation.definition.strikethrough.end.org | #AAAAAA | |
| markup.underline.link, string.other.link, markup.underline.link.org | #006DAF | underline |
| markup.inline.raw, markup.raw, markup.fenced_code, markup.raw.inline, string.other.verbatim.org | #006400 | — |
| markup.quote | #666666 | italic |
| markup.list, punctuation.definition.list | #7F7F7F | — |
| keyword.other.todo.org | #D8ABA7 | bold |
| keyword.other.done.org | #89C58F | bold |
| entity.name.tag.org, meta.tag.org | #8B864E | — |
| meta.property.org, keyword.other.property.org | #6434A3 | — |
| meta.drawer.org, keyword.other.drawer.org | #0000FF | — |
| constant.other.timestamp.org, string.other.timestamp.org | #6434A3 | — |
| meta.block.begin.org, meta.block.end.org, keyword.control.block.org | #000088 | — |
| entity.other.citation.org, variable.other.citation.key.org | #006400 | — |
| markup.underline.link.ref.org, keyword.other.ref.org | #E3258D | — |
| entity.name.label.org | #E3258D | — |
| markup.math.inline.latex.org, markup.math.display.latex.org, markup.math.display.bracket.latex.org, markup.math.inline.paren.latex.org, markup.math.content.org, markup.math.block.latex.org | #3465A4 | — |
| support.type.property-name.json | #006699 | — |
| entity.name.tag.yaml | #006699 | — |
| support.type.property-name.css | #006699 | — |
| support.constant.property-value.css | #6434A3 | — |
| keyword.other.unit.css | #008000 | — |
| variable.language.self, variable.language.this | #0000FF | italic |
| entity.name.function.decorator, meta.decorator | #6434A3 | — |
| string.quoted.docstring | #008000 | italic |
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}