Tropical Time
Publisher: Jack JiangThemes in package: 4
A sensual, tropical-inspired color theme for developers.
A sensual, tropical-inspired color theme for developers.
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, string.quoted.docstring | #646464 | italic |
| constant | #9d37b3 | — |
| entity | #227601 | |
| keyword | #c31636 | — |
| storage | #0e5ed8 | — |
| string | #875f02 | — |
| support | #067277 | — |
| variable | #212121 | — |
| invalid | — | strikethrough |
| entity.other.inherited-class | #227601 | italic |
| string.quoted source | #875f02 | |
| string constant | #9d37b3 | — |
| string.regexp | #0e5ed8 | — |
| string variable | #212121 | — |
| support.function | #0e5ed8 | |
| support.constant | #227601 | |
| other.preprocessor.c | #0e5ed8 | — |
| other.preprocessor.c entity | #227601 | — |
| punctuation.separator.key-value.js | #9d37b3 | — |
| meta.object-literal.key.js | #875f02 | — |
| entity.name.tag | #c31636 | — |
| entity.other.attribute-name | #227601 | — |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #212121 | — |
| meta.selector.css entity.name.tag | #227601 | — |
| meta.selector.css entity.other.attribute-name.id | #227601 | — |
| meta.selector.css entity.other.attribute-name.class | #227601 | — |
| support.type.property-name.css | #0e5ed8 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #227601 | italic |
| meta.preprocessor.at-rule keyword.control.at-rule | #875f02 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #c31636 | — |
| meta.constructor.argument.css | #c31636 | — |
| meta.diff, meta.diff.header | #212121 | italic |
| markup.deleted | #c31636 | — |
| markup.changed | #875f02 | — |
| markup.inserted | #227601 | — |
| entity.other.attribute-name.id.html | #227601 | — |
| entity.other.attribute-name.html | #227601 | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #212121 | — |
| keyword.control.at-rule.import.css | #875f02 | — |
| variable.other.less | #212121 | — |
| entity.other.less.mixin | #9d37b3 | — |
| source.css.less keyword.unit.css | #0e5ed8 | — |
| entity.other.attribute-name.angular.html, source.angular.embedded.html | #c31636 | — |
| constant.character.entity.html | #0e5ed8 | — |
| variable.other.readwrite.instance.coffee | #875f02 | — |
| meta.brace.round.coffee, meta.brace.square.coffee | #875f02 | — |
| punctuation.section.embedded.coffee | #067277 | — |
| variable.assignment.coffee variable.assignment.coffee | #212121 | — |
| meta.delimiter.method.period.coffee | #0e5ed8 | — |
| meta.brace.curly.coffee | #227601 | — |
| meta.tag.sgml.doctype.xml, declaration.sgml.html declaration.doctype, declaration.sgml.html declaration.doctype entity, declaration.sgml.html declaration.doctype string, declaration.xml-processing, declaration.xml-processing entity, declaration.xml-processing string, doctype | #0e5ed8 | — |
| punctuation.definition.heading.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #875f02 | — |
| markup.heading.markdown entity.name.section.markdown | #9d37b3 | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.strikethrough.markdown | — | strikethrough |
| string.other.link.title.markdown | #0e5ed8 | — |
| markup.underline.link.markdown | #646464 | underline |
| comment, string.quoted.docstring | #646464 | italic |
| constant | #9d37b3 | — |
| entity | #227601 | |
| keyword | #c31636 | — |
| storage | #0e5ed8 | — |
| string | #875f02 | — |
| support | #067277 | — |
| variable | #212121 | — |
| invalid | — | strikethrough |
| entity.other.inherited-class | #227601 | italic |
| string.quoted source | #875f02 | |
| string constant | #9d37b3 | — |
| string.regexp | #0e5ed8 | — |
| string variable | #212121 | — |
| support.function | #0e5ed8 | |
| support.constant | #227601 | |
| other.preprocessor.c | #0e5ed8 | — |
| other.preprocessor.c entity | #227601 | — |
| punctuation.separator.key-value.js | #9d37b3 | — |
| meta.object-literal.key.js | #875f02 | — |
| entity.name.tag | #c31636 | — |
| entity.other.attribute-name | #227601 | — |
| declaration.tag, declaration.tag entity, meta.tag, meta.tag entity | #212121 | — |
| meta.selector.css entity.name.tag | #227601 | — |
| meta.selector.css entity.other.attribute-name.id | #227601 | — |
| meta.selector.css entity.other.attribute-name.class | #227601 | — |
| support.type.property-name.css | #0e5ed8 | |
| meta.property-group support.constant.property-value.css, meta.property-value support.constant.property-value.css | #227601 | italic |
| meta.preprocessor.at-rule keyword.control.at-rule | #875f02 | — |
| meta.property-value support.constant.named-color.css, meta.property-value constant | #c31636 | — |
| meta.constructor.argument.css | #c31636 | — |
| meta.diff, meta.diff.header | #212121 | italic |
| markup.deleted | #c31636 | — |
| markup.changed | #875f02 | — |
| markup.inserted | #227601 | — |
| entity.other.attribute-name.id.html | #227601 | — |
| entity.other.attribute-name.html | #227601 | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #212121 | — |
| keyword.control.at-rule.import.css | #875f02 | — |
| variable.other.less | #212121 | — |
| entity.other.less.mixin | #9d37b3 | — |
| source.css.less keyword.unit.css | #0e5ed8 | — |
| entity.other.attribute-name.angular.html, source.angular.embedded.html | #c31636 | — |
| constant.character.entity.html | #0e5ed8 | — |
| variable.other.readwrite.instance.coffee | #875f02 | — |
| meta.brace.round.coffee, meta.brace.square.coffee | #875f02 | — |
| punctuation.section.embedded.coffee | #067277 | — |
| variable.assignment.coffee variable.assignment.coffee | #212121 | — |
| meta.delimiter.method.period.coffee | #0e5ed8 | — |
| meta.brace.curly.coffee | #227601 | — |
| meta.tag.sgml.doctype.xml, declaration.sgml.html declaration.doctype, declaration.sgml.html declaration.doctype entity, declaration.sgml.html declaration.doctype string, declaration.xml-processing, declaration.xml-processing entity, declaration.xml-processing string, doctype | #0e5ed8 | — |
| punctuation.definition.heading.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #875f02 | — |
| markup.heading.markdown entity.name.section.markdown | #9d37b3 | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.strikethrough.markdown | — | strikethrough |
| string.other.link.title.markdown | #0e5ed8 | — |
| markup.underline.link.markdown | #646464 | 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}!`;
}