duan-vscode-chester-atom
Publisher: duan-vscode-chester-atomThemes in package: 1
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 |
|---|---|---|
| — | #f8f8f2ff | — |
| comment | #99A9B3 | italic |
| string | #16C98D | — |
| constant.numeric, constant.other | #FFC83F | — |
| constant.language | #FFC83F | — |
| unused.comment | #99A9B3 | — |
| constant.character | #FA5E5B | — |
| variable | #FA5E5B | — |
| keyword | #89BDE4 | — |
| keyword.operator | #89BDE4 | — |
| storage | #FF708E | italic |
| storage.type | #FF708E | italic |
| storage.type.c | #FF708E | |
| entity.name.type.class, meta.class.instance.constructor | #FFC83F | — |
| tab.activeBackground | #2c3643 | — |
| activityBar.background | #242D38 | — |
| activityBar.background | #242D38 | — |
| sideBar.background | #2c3643 | — |
| input.background | #242D38 | — |
| input.border | #37404E | — |
| list.focusBackground | #215D8C | — |
| tab.inactiveBackground | #242D38 | — |
| editorGroupHeader.tabsBackground | #212934 | — |
| titleBar.activeBackground | #242D38 | — |
| statusBar.background | #3b444f | — |
| entity.other.inherited-class | #16C98D | — |
| entity.name.function | #288AD6 | |
| variable.parameter | #FA5E5B | — |
| variable.other | #FA5E5B | — |
| entity.name.tag | #FA5E5B | underline |
| entity.other.attribute-name | #FFC83F | italic |
| entity.other.attribute-name.id.html | #288AD6 | bold |
| support.function | #288AD6 | |
| support.constant | #FA5E5B | |
| support.type, support.class | #FFC83F | italic |
| support.other.variable | #000000 | — |
| support.variable.property.dom.js | #FA5E5B | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #89BDE4 | — |
| invalid | #F8F8F0 | — |
| support.function | #0fd8b9 | — |
| invalid.deprecated | #F8F8F0 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #16c98d | bold |
| beginning.punctuation.definition.quote.markdown | #99A9B3 | — |
| markup.quote.markdown meta.paragraph.markdown | #99A9B3 | italic |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| beginning.punctuation.definition.list.markdown | #fa5e5b | — |
| string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #16c98d | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #8abee5 | — |
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}!`;
}