IT-R Color Theme Dark Orange
Publisher: IT-RThemes in package: 1
🌙_🌙_🌙 _ Don't strain your eyes, turn on a subdued color theme. _ 🌙_🌙_🌙
🌙_🌙_🌙 _ Don't strain your eyes, turn on a subdued color 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 |
|---|---|---|
| comment, punctuation.definition.comment | #727881 | italic |
| variable, string constant.other.placeholder | #92acc2 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #e28871 | — |
| keyword, storage.type, storage.modifier | #cac5bb | — |
| entity.name.type.class, entity.name.type.class.js, entity.name.type.class.ts, entity.name.type.class.php, entity.other.inherited-class | #44c493 | — |
| text.html.basic, punctuation.definition.tag.html, entity.name.tag.html | #e68e1a | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #e68e1a | — |
| string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #92acc2 | — |
| entity.other.attribute-name.html, punctuation.separator.key-value.html | #f1c66a | — |
| text.html.derivative, meta.tag.inline.any.html, meta.tag.block.any.html | #eeeeee | — |
| text.html.markdown, punctuation.definition.list.begin.markdown | #d1c4ab | — |
| entity.other.attribute-name.class.css | #92acc2 | — |
| entity.other.attribute-name.id.css | #92acc2 | — |
| entity.name.tag.wildcard.css, meta.selector.css | #92acc2 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.color.w3c-standard-color-name.css, constant.numeric.css, constant.other.color.rgb-value.css, constant.other.color.hex.css, constant.other.color.hsl.css | #e28871 | — |
| string.quoted.double.css, string.quoted.single.css, meta.property-value.css string.quoted, support.function.url.css, meta.function.url.css | #808f9b | — |
| meta.structure.dictionary.json string.quoted.double.json, meta.structure.dictionary.json meta.structure.dictionary.value.json string.quoted.double.json, meta.structure.dictionary.json meta.structure.dictionary.value.json constant.language.json, meta.structure.dictionary.json meta.structure.dictionary.value.json constant.numeric.json | #92acc2 | — |
| markup.heading.markdown, punctuation.definition.heading.markdown, entity.name.section.markdown | #808f9b | bold |
| text.plain, text | #ff6600 | — |
| text.log, source.log | #c6c1bd | — |
| entity.name.function.target.makefile, meta.scope.prerequisites.makefile | #e28871 | — |
| meta.scope.prerequisites.makefile, string.interpolated.makefile | #f1c66a | — |
| comment.block.documentation, comment.block.documentation keyword.other.documentation, comment.line.documentation | #7a7e80 | — |
| comment.block.documentation punctuation.definition.keyword.doxygen, comment.block.documentation keyword.other.documentation.doxygen, comment.block.documentation entity.name.tag.doxygen, comment.block.documentation storage.type.class.doxygen | #788283 | bold |
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}!`;
}