minimalistic-dark-theme
Publisher: LerskkThemes in package: 1
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 | #5B525A | — |
| storage | #FF7A70 | — |
| keyword | #FF7A70 | — |
| source | #E5DFEC | — |
| variable.other.constant.js | #E4A267 | — |
| string | #A5D6FF | — |
| constant.numeric | #A5D6FF | — |
| entity.name.function | #82C9C0 | — |
| support.type.primitive.ts | #9CAFE7 | — |
| entity.name.type.interface, entity.name.type.alias.ts | #9CAFE7 | — |
| entity.name.type.class.js, entity.name.type.class.ts | #C9BC82 | — |
| punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison | #e06c75 | — |
| punctuation.separator.period.python,punctuation.separator.element.python,punctuation.parenthesis.begin.python,punctuation.parenthesis.end.python | #d4d4d4 | — |
| support.function.std.rust | #61afef | — |
| entity.name.lifetime.rust | #e5c07b | — |
| support.constant.edge | #c678dd | — |
| markup.changed.diff | #e5c07b | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #61afef | — |
| markup.inserted.diff | #98c379 | — |
| markup.deleted.diff | #e06c75 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #d19a66 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #d19a66 | — |
| punctuation.separator.list.comma.css | #d4d4d4 | — |
| support.constant.color.w3c-standard-color-name.css | #d19a66 | — |
| punctuation.separator.delimiter | #d4d4d4 | — |
| punctuation.separator.c,punctuation.separator.cpp | #c678dd | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python | #d4d4d4 | — |
| meta.function-call.generic.python | #61afef | — |
| entity.name.namespace | #e5c07b | — |
| token.package | #d4d4d4 | — |
| support.function | #56b6c2 | — |
| meta.tag | #d4d4d4 | — |
| constant.other.symbol | #56b6c2 | — |
| constant | #d19a66 | — |
| punctuation.definition.constant | #d19a66 | — |
| entity.name.tag | #f38ba8 | — |
| entity.other.attribute-name | #89B4FA | — |
| entity.other.attribute-name.id | #61afef | — |
| meta.selector | #c678dd | — |
| markup.heading | #e06c75 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #61afef | — |
| markup.bold,todo.bold | #d19a66 | — |
| punctuation.definition.bold | #e5c07b | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #c678dd | — |
| emphasis md | #c678dd | — |
| entity.name.section.markdown | #e06c75 | — |
| punctuation.definition.heading.markdown | #e06c75 | — |
| punctuation.definition.list.begin.markdown | #e06c75 | — |
| markup.heading.setext | #d4d4d4 | — |
| punctuation.definition.bold.markdown | #d19a66 | — |
| markup.inline.raw.markdown | #98c379 | — |
| punctuation.definition.list.markdown | #e06c75 | — |
| beginning.punctuation.definition.list.markdown | #e06c75 | — |
| punctuation.definition.metadata.markdown | #e06c75 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #c678dd | — |
| constant.character.escape | #56b6c2 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #c678dd | — |
| invalid.illegal | #ffffff | — |
| invalid.illegal.bad-ampersand.html | #d4d4d4 | — |
| invalid.broken | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| invalid.unimplemented | #ffffff | — |
| punctuation.section.array.begin.php | #d4d4d4 | — |
| punctuation.section.array.end.php | #d4d4d4 | — |
| function.parameter | #cdd6f4 | — |
| function.brace | #d4d4d4 | — |
| function.parameter.ruby, function.parameter.cs | #d4d4d4 | — |
| constant.language.symbol.ruby | #56b6c2 | — |
| rgb-value | #56b6c2 | — |
| inline-color-decoration rgb-value | #d19a66 | — |
| less rgb-value | #d19a66 | — |
| selector.sass | #e06c75 | — |
| block.scope.end,block.scope.begin | #d4d4d4 | — |
| token.info-token | #61afef | — |
| token.warn-token | #d19a66 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #c678dd | — |
| entity.name.package.go | #e5c07b | — |
| support.constant.elm | #d19a66 | — |
| punctuation.quasi.element | #c678dd | — |
| constant.character.entity | #e06c75 | — |
| entity.global.clojure | #e5c07b | — |
| meta.symbol.clojure | #e06c75 | — |
| meta.scope.prerequisites.makefile | #e06c75 | — |
| meta.method.groovy | #61afef | — |
| invalid.xi | #d4d4d4 | — |
| constant.character.xi | #61afef | — |
| accent.xi | #61afef | — |
| wikiword.xi | #d19a66 | — |
| constant.other.color.rgb-value.xi | #ffffff | — |
| punctuation.definition.tag.xi | #7f848e | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #e5c07b | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #e06c75 | — |
| meta.brace.square | #d4d4d4 | — |
| markup.quote.markdown | #7f848e | — |
| punctuation.definition.block.sequence.item.yaml | #d4d4d4 | — |
| constant.language.symbol.elixir | #56b6c2 | — |
| markup.italic.markdown | — | italic |
| support.function.racket | #89dceb | — |
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}!`;
}