minimalest-dark
Publisher: Filipe SabellaThemes in package: 1
Almost no syntax highlighting, only 3 colours
Almost no syntax highlighting, only 3 colours
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 |
|---|---|---|
| source, constant, entity, entity.name.tag, entity.name, entity.name.class, entity.name.function, entity.name.method, entity.name.type, entity.other, entity.other.attribute-name, entity.name.type, meta.return-type, meta.generic, meta.type, meta.type.annotation, meta.function-call, meta.object-literal.key, support.type, support.type.property-name, support.variable, punctuation, variable, variable.other, meta.function, keyword.operator.type.annotation, source.tsx, meta.parameters.tsx, | #cdcdcd | — |
| keyword, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, meta.preprocessor, constant.language, storage, storage.type, storage.modifier, variable.language, | #787c74 | — |
| constant.numeric, meta.preprocessor.numeric, keyword.other.unit, string, punctuation.definition.string.begin, punctuation.definition.string.end | #64b0b0 | — |
| markup.inserted.diff, meta.diff.header.to-file | #718c00 | — |
| markup.deleted.diff, meta.diff.header.from-file | #c82829 | — |
| meta.diff.header.from-file, meta.diff.header.to-file | #FFFFFF | — |
| meta.diff.range | #3e999f | italic |
| comment, punctuation.definition.comment.tsx | #64b0b0 | — |
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}!`;
}