T3 Dark Theme
Publisher: kdinesh24Themes in package: 1
A custom dark theme
A custom dark theme
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 | #6a6572 | italic |
| string | #96d0bb | — |
| keyword | #e07aa4 | bold |
| variable.other, variable.parameter | #E5E5E5 | — |
| constant, support.constant | #e07aa4 | — |
| entity.name.function, support.function | #a692d3 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer | #ffbc9e | — |
| entity.name.type, support.type | #9EE9F7 | — |
| punctuation, punctuation.accessor, punctuation.separator, punctuation.terminator, punctuation.definition | #af99dd | — |
| keyword.operator, operator | #e07aa4 | — |
| storage.type.function, storage.modifier, storage.type.class, storage.type.interface, storage.type.enum | #e07aa4 | — |
| entity.name.type.class | #b5a3e0 | — |
| entity.name.type.interface | #8bc0ae | — |
| entity.name.tag.yaml | #e07aa4 | — |
| entity.name.type.enum | #8bc0ae | — |
| entity.name.method, variable.function | #a692d3 | — |
| support.class | #b5a3e0 | — |
| meta.object-literal.key | #9EE9F7 | — |
| keyword.control | #e07aa4 | bold |
| variable.language | #e07aa4 | italic |
| import, export | #e07aa4 | bold |
| variable.other.readwrite.alias | #E5E5E5 | — |
| variable.other.object, variable.other.property | #E5E5E5 | — |
| storage.modifier.import, storage.modifier.export | #e07aa4 | — |
| entity.name.tag.tsx, entity.name.tag.jsx | #d295cf | — |
| support.class.component.tsx, support.class.component.jsx | #9EE9F7 | — |
| source.css support.constant, meta.property-value.css constant, meta.property-value.css support.constant.property-value | #cc93ca | — |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx, entity.other.attribute-name.html | #FFFFFF | — |
| source.css entity.other.attribute-name.pseudo-element, source.css entity.other.attribute-name.pseudo-class, source.css support.function.misc, meta.selector.css entity.other.pseudo-element.css | #af99dd | — |
| punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx, punctuation.definition.tag.html | #7a7482 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string | #8bc0ae | — |
| meta.block.js, meta.block.ts, meta.block.tsx | — | — |
| entity.name.tag.html | #e07aa4 | — |
| source.css entity.name.tag | #d098cd | — |
| entity.other.attribute-name.html | #D19A66 | — |
| text.html.derivative.js entity.name.tag | #e07aa4 | — |
| source.css property-name | #9EE9F7 | — |
| source.css property-value | #8bc0ae | — |
| source.css selector.pseudo | #e07aa4 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #D19A66 | — |
| source.css support.type.property-name.css, source.css constant.other.color-value, source.css support.constant.color | #bbb0c9 | — |
| entity.name.function.tsx, entity.name.function.jsx | #b5a3e0 | — |
| variable.other.object.property.ts, entity.name.function.ts, support.function.module.ts | #9EE9F7 | — |
| variable.other.readwrite.ts, variable.other.constant.ts | #E5E5E5 | — |
| markup.heading, entity.name.section.markdown | #e07aa4 | bold |
| markup.bold | #E5E5E5 | bold |
| markup.italic | #E5E5E5 | italic |
| support.type.property-name.json, meta.structure.dictionary.key.json | #9EE9F7 | — |
| entity.name.tag.yaml | #e07aa4 | — |
| string.regexp, constant.other.character-class.regexp | #8bc0ae | — |
| keyword.operator.quantifier.regexp | #e07aa4 | — |
| string.template | #8bc0ae | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #af99dd | — |
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}!`;
}