tnnmigga-dark
Publisher: tnnmiggaThemes in package: 2
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 |
|---|---|---|
| — | #dee5e5 | — |
| meta.embedded, source.groovy.embedded | #dee5e5 | — |
| comment | #dee5e5 | — |
| string | #dee5e5 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #f5737d | — |
| meta.template.expression | #dee5e5 | — |
| constant.numeric | #dee5e5 | — |
| constant.character, constant.other | #dee5e5 | — |
| variable | #dee5e5 | — |
| keyword | #f5737d | — |
| storage | #f5737d | — |
| storage.type | #78b6e9 | — |
| entity.name.type, entity.name.class | #e5c07b | — |
| entity.other.inherited-class | #dee5e5 | — |
| entity.name.function | #98c379 | — |
| variable.parameter | #a1a09b | — |
| entity.name.tag | #78b6e9 | — |
| entity.other.attribute-name | #f5737d | — |
| support.function | #78b6e9 | — |
| support.constant | #78b6e9 | — |
| support.type, support.class | #78b6e9 | — |
| support.other.variable | — | |
| invalid | #dee5e5 | |
| invalid.deprecated | #dee5e5 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #f5737d | — |
| markup.inserted | #dee5e5 | — |
| markup.changed | #dee5e5 | — |
| constant.numeric.line-number.find-in-files - match | #dee5e5A0 | — |
| entity.name.filename.find-in-files | #dee5e5 | — |
| markup.quote | #f5737d | — |
| markup.list | #dee5e5 | — |
| markup.bold, markup. | #78b6e9 | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #dee5e5 | — |
| markup.heading.setext | #dee5e5 | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #f5737d | — |
| constant.language | #e5c07b | — |
| constant.character, constant.other | #a1a09b | — |
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}!`;
}