TubsterDark
Publisher: stoikertyThemes in package: 1
TubsterDark - A tubster theme variant for Visual Studio Code
TubsterDark - A tubster theme variant for Visual Studio Code
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #fdfdfd | — |
| source | — | — |
| comment | #888888 | italic |
| keyword, storage | #EE6633 | |
| entity.name.function |
TypeScript sample highlighted with this variant's colors and tokenColors.
| keyword.other.name-of-parameter.objc | #FFCC44 |
| entity.name | #FFCC44 |
| constant.numeric | #99CC66 |
| variable.language | #ee4433 |
| variable.other | #ffffff |
| constant | #fff |
| variable.other.constant | #CC3333 | — |
| constant.language | #3399CC |
| string | #94d426 |
| support.function | #ee4433 |
| support.type | #6E9CBE | — |
| support.constant | #94d426 | — |
| meta.tag, declaration.tag, entity.name.tag, entity.other.attribute-name | #facc28 |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #519F50 |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
| markup.deleted | #D3201F |
| markup.changed | #BF3904 |
| markup.inserted | #219186 | — |
| text.html.markdown meta.dummy.line-break | #E0EDDD | — |
| text.html.markdown markup.raw.inline | #269186 | — |
| markup.heading | #cb4b16 | bold |
| markup.italic | #839496 | italic |
| markup.bold | #586e75 | bold |
| markup.underline | #839496 | underline |
| markup.quote | #268bd2 | italic |
| markup.list | #657b83 | — |
| markup.raw | #b58900 | — |
| meta.separator | #268bd2 | bold |
| sublimelinter.gutter-mark | #FFFFFF | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.mark.warning | #DDB700 | — |
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}!`;
}
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}!`;
}