Vivid Midnight
Publisher: gibiThemes 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 |
|---|---|---|
| keyword.operator.assignment, keyword.operator.comparison.perl, keyword.operator.class, keyword.operator.key, keyword.operator.string, keyword.operator.type.annotation, storage.type.function.arrow | #5e7380 | — |
| support.type.primitive | — | italic |
| entity.name.function.preprocessor, meta.preprocessor.macro, storage.modifier.import, storage.type.generic, keyword.operator.dereference.java, meta.preprocessor.haskell, meta.group.js | #cccccc | — |
| comment, punctuation.definition.comment, string.quoted.docstring, string.quoted.docstring punctuation | #5e7380 | — |
| string, keyword.other.sql, keyword.other.DML | #FFD866 | — |
| string.regexp | #FFD866 | — |
| string.regexp.quoted.single.python punctuation.definition.string, string.regexp punctuation.parenthesis, string.regexp punctuation.definition, string.regexp variable, string.regexp variable punctuation.definition.variable, string.regexp constant, string.regexp keyword.operator, string.regexp keyword.control, string.regexp.compile.perl, string.regexp.replace.perl | #ff8d21 | — |
| constant, support.constant | #2BE98a | — |
| entity.name.variable.property, keyword, meta.preprocessor, constant.other.symbol.prolog, support.function.be.latex, support.function.general.tex, support.function.section.latex, punctuation.dollar.js | #F92572 | — |
| storage, entity.name.type.go, entity.name.type.namespace.php, meta.import.scala, punctuation.separator.inheritance.php, storage.type.js, support.other.module.haskell, support.other.namespace.use.php, variable.other.constant.ruby | #ff8d21 | — |
| keyword.type, support.type, keyword.control.def.ruby, keyword.declaration.scala, keyword.declaration.stable.scala, keyword.declaration.volatile.scala, keyword.other.fn.rust, keyword.other.rust, meta.structure.dictionary.key.json | #2be98a | — |
| variable, punctuation.definition.variable, support.variable, support.type.property-name.json, entity.other.attribute-name, meta.property-name.css, meta.object-literal.key, entity.name.label | #a9df3f | — |
| variable.language.this | #AE81FF | italic |
| string.quoted variable, string.quoted punctuation.definition.variable, string.quoted constant.character.escape, string.quoted constant.character.format.placeholder.other | #ff8d21 | — |
| entity.name.type.class, support.class, entity.name.class, support.other.namespace, support.other.namespace.php punctuation.separator.inheritance.php, entity.other.inherited-class | #AE81FF | — |
| punctuation, meta.brace.round, meta.brace.square, source.perl, meta.property-list.scss | #5e7380 | — |
| entity.name.tag | #f92672 | — |
| support.type.property-name.css | #49E0FD | — |
| meta.property-value.css support.constant | #AE81FF | — |
| entity.name.function, variable.function, meta.function-call, support.function, variable.other.makefile, variable.other.prolog, entity.name.type, meta.interface.ts entity.other.inherited-class.ts | #49E0FD | — |
| markup.heading | #f92672 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.quote, markup.raw.block | #696d70 | — |
| markup.inline | #ae81ff | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #49e0fd | — |
| beginning.punctuation.definition.list.markdown, punctuation.definition.list_item.markdown, punctuation.definition.list.markdown, punctuation.definition.heading.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.bold.begin.markdown, punctuation.definition.bold.end.markdown, punctuation.definition.italic.begin.markdown, punctuation.definition.italic.end.markdown, punctuation.definition.heading.begin.markdown, punctuation.definition.heading.end.markdown, punctuation.definition.raw.begin.markdown, punctuation.definition.raw.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.raw.markdown, markup.underline.link.image.markdown, markup.underline.link.markdown | #696d70 | — |
| markup.inline, markup.raw.inline | #ae81ff | — |
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}!`;
}