Roteki Theme
Publisher: Marco AurélioThemes in package: 1
A minimalist dark theme with shades of blue and green
A minimalist dark theme with shades of blue and green
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 |
|---|---|---|
| entity.name.variable, keyword.operator.assignment, meta.template, punctuation.accessor, support.constant, variable | #c0c8ce | |
| comment | #3c4349 | italic |
| punctuation.definition.comment | #50575e | |
| string | #9ddef8 | italic |
| punctuation.definition.string | — | |
| constant.language, constant.numeric | #a2ca34 | |
| keyword - keyword.operator, keyword.control, storage | #a2ca34 | italic |
| storage.type | — | bold |
| keyword.operator | #c0c8ce | — |
| entity.name.type, entity.name.class, support.type, support.class | #c0c5ce | bold |
| variable.language.this | #809fb6 | bold |
| punctuation.definition.template-expression, entity.tag.embedded | #bfcfc7 | bold |
| constant.character.escape | — | bold |
| meta.definition.function, meta.definition.method | #32c9e4 | bold |
| storage.type.function.arrow | #32c9e4 | bold |
| meta.function-call | #a2ca34 | italic |
| variable.parameter | #add5e7 | italic |
| keyword.operator.type.annotation, punctuation.definition.parameters, punctuation.definition.seperator, punctuation.separator, punctuation.terminator | #65737e | — |
| token.debug-token | #6874d5 | — |
| token.info-token | #47bacc | — |
| token.warn-token | #77eee8 | — |
| token.error-token | #cc4756 | — |
| emphasis | — | italic |
| strong | — | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline | — | underline |
| markup.heading | #32c9e4 | bold |
| entity.name.section.markdown | #24afc2 | — |
| markup.inline.raw.string.markdown | #dfe1e8 | italic |
| markup.underline.link.markdown | #c0c5ce | bold |
| beginning.punctuation.definition.list.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.raw.markdown | #32c9e4 | bold |
| entity.name.function.c | #a2ca34 | — |
| meta.function-call.c | #ced9df | — |
| support.type.property-name.json | #cad2d8 | — |
| constant.language.json, constant.numeric.json | #a2ca34 | — |
| punctuation.definition.array.begin.json, punctuation.definition.array.end.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json | #b0bdc7 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #b0bdc7 | — |
| entity.name.tag.tsx | #88bb10 | |
| entity.name.tag | #a2ca34 | |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, entity.name.tag.tsx | #88bb10 | — |
| constant.other.groovy | #c0c5ce | bold |
| constant.other.key.groovy | #c0c5ce | italic |
| source.terraform.embedded.source | #65737e | italic |
| entity.other.attribute-name.terraform | #c0c5ce | |
| keyword.other.function.inline.terraform | #09f1e6 | bold |
| keyword.other.section.begin.terraform, keyword.other.section.end.terraform | #32c9e4 | bold |
| entity.name.tag.html | #a2ca34 | bold |
| punctuation.definition.entity.css, support.type.property-name.css | #a7adba | |
| variable | #b2d1d6 | bold |
| support.function.transform.css, support.function.url.css, support.function.misc.css, meta.function.variable.css | #9cd3ec | — |
| entity.other.attribute-name.class.css | #dfe1e8 | bold |
| entity.name.tag.css, entity.name.tag.reference.scss | #79c1cf | bold |
| entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #32c9e4 | — |
| entity.other.attribute-name.pseudo-element.css | #58929e | italic |
| keyword.other.important.css, keyword.other.important.scss | #ff0062 | bold |
| variable.scss | #a2ca34 | bold italic |
| entity.name.tag.yaml | #a7adba |
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}!`;
}