ThemeDatabase All Themes
Publisher: enes ozturkThemes in package: 21943
One theme database to rule them all. All 22,037 ThemeDatabase themes in one VSIX package.
One theme database to rule them all. All 22,037 ThemeDatabase themes in one VSIX package.
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 | #777B7D | — |
| string | #E47D5C | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #935541 | — |
| constant.numeric | #9268AD | — |
| constant | #9268AD | — |
| keyword.control.flow.js | #ffa726 | — |
| variable.language.this, variable.language.super | #798 | — |
| constant.character, constant.other | #3284D1 | — |
| variable | #DB893D | |
| keyword | #2E9E8D | — |
| storage | #C7A004 | |
| storage.type | #CC6402 | — |
| entity.name.class, meta.class entity.name.type.class | #E8B600 | — |
| entity.other.inherited-class, support, new.expr entity.name.type | #CBB77A | — |
| meta.definition.function, storage.type.function.arrow, meta.method.declaration meta.definition.method entity.name.function, meta.definition.property entity.name.function, meta.definition.variable entity.name.function | #E8B600 | — |
| meta.function-call, meta.function-call support.function | #af9176 | — |
| variable.parameter | — | |
| entity.name.tag | #B5B335 | — |
| entity.name.tag support.class.component | — | |
| entity.other.attribute-name, meta.field.declaration variable.object.property meta.definition.property, meta.object-literal.key | #e76f6f | |
| support.function | #B3A924 | — |
| support.constant | #AD8329 | — |
| support.type, support.class | #B5B335 | — |
| support.other.variable | #9EA344 | |
| invalid | #BDBDBB | |
| invalid.deprecated | #F8F8F0 | — |
| meta.brace.round | #96958F | — |
| meta.brace.square | #6A8068 | — |
| meta.brace.curly, punctuation | #7E866B | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #63857B | — |
| punctuation.terminator | #7A7348 | — |
| punctuation.definition.parameters.end, punctuation.definition.parameters.begin, meta.method.declaration meta.block punctuation.definition.block, meta.class punctuation.definition.block | #C7B87F | — |
| punctuation.definition.tag | #787564 | — |
| meta.delimiter, punctuation.accessor | #8EA38C | — |
| storage.modifier.access-control | #19856C | — |
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}!`;
}