dark-rotor theme
Publisher: rotorsoftThemes in package: 5
A tranquil dark theme
A tranquil 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 |
|---|---|---|
| meta.definition.function, meta.definition.variable entity.name.function, meta.function.python entity.name.function.python, meta.function.python support.function | #fe7734 | |
| meta.function-call | #b06845 | |
| comment, comment keyword, comment markup.underline.link, comment string, comment punctuation.definition, comment punctuation, comment text | #49495a | italic |
| variable, variable.other, variable.parameter, comment variable, support.variable, string constant.other.placeholder, constant.other.color, meta.object-literal.key | #8686cb | |
| entity.name.function.operator, keyword, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression, keyword.other.template, keyword.other.substitution, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment, storage.modifier, storage.type, variable.language, constant.language, support.class, support.type, meta.brackets entity.name.function.operator, meta.tag, meta.brace, constant.other.color, storage.type.function.arrow | #5b5b7b | |
| punctuation, punctuation.definition, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, punctuation.separator, punctuation.terminator | #49495a | |
| constant, constant.numeric, constant.language, constant.character.escape, entity.name.operator.custom-literal, string.quoted, string.template, string.quoted.docstring, string.quoted.docstring punctuation.definition | #7272a1 | |
| constant.other, constant.other.caps, constant.other.property, constant.other.color, constant.character.escape, constant.other.character-class.escape, entity.name.constant, support.type.property-name, string.quoted.double.json | #7272a1 | |
| invalid, invalid.illegal | #e06c75 | |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #5b5b7b | |
| comment entity.name.type, comment storage.type, entity.name.class, entity.name.namespace, entity.name.type, entity.name.type.class, entity.name.type.namespace, entity.other.inherited-class, entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix.css, entity.other.attribute-name.parent-selector-suffix.css punctuation.definition.entity.css, entity.other.attribute-name.css, meta.class, source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #bebeef | |
| entity.name.tag, string.regexp, meta.tag.sgml, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #49495a | |
| *url*, *link*, *uri* | — | underline |
| markup.heading | — | bold |
| markup.italic, markup.quote | — | italic |
| markup.bold, markup.bold string | — | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | — | bold italic |
| markup.underline | — | underline |
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}!`;
}