Tsoding Theme (2021)
Publisher: Colin MinniefieldThemes in package: 2
A C/C++ color theme based on the Tsoding's code editor color theme from 2021 (from Emacs).
A C/C++ color theme based on the Tsoding's code editor color theme from 2021 (from Emacs).
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 |
|---|---|---|
| , string.json, string.json punctuation, meta.template.expression, source.coffee.embedded, keyword.key.toml, entity.name.tag.yaml | #BBBBBB | — |
| comment, comment punctuation, comment storage | #555555 | — |
| keyword, keyword.operator, keyword.control, storage, storage.type, support.type.primitive, support.type.builtin, constant.language.false.cpp, constant.language.true.cpp, constant.language.nullptr.cpp | #EAE2B9 | — |
| comment | #7D9C89 | — |
| keyword.control.directive, entity.other.attribute-name.pragma.preprocessor.cpp, punctuation.definition.directive | #99bde8 | — |
| punctuation.definition.comment | #7D9C89 | — |
| string, punctuation.definition.string.begin, punctuation.separator.continuation, punctuation.definition.string.end, constant.other.placeholder, constant.character.escape.cpp | #BD9393 | — |
| meta.embedded.assembly | #BD9393 | — |
| keyword.operator | #bbbbbb | — |
| meta.brace, keyword.operator.type.annotation | #BFC5BF | — |
| punctuation.separator.namespace | #919191 | — |
| storage.type.built-in.cpp | #bbbbbb | — |
| constant, constant.numeric, constant.other, keyword.other.unit, keyword.other.unit.px, keyword.other.unit.percentage | #bbbbbb | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}