Royal Red Theme
Publisher: AJ-DevThemes in package: 1
Royal Theme inspired by palace with red cushioning and golden artifacts.
Royal Theme inspired by palace with red cushioning and golden artifacts.
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.embedded, source.groovy.embedded, meta.image.inline.markdown | #D4D4D4 | — |
| meta.preprocessor, entity.name.function.preprocessor, meta.diff.header | #569cd6 | — |
| meta.preprocessor.string, meta.embedded.assembly | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| variable, variable.other.constant, variable.other.read-write | #b9b9b9 | — |
| variable.parameter | #858585 | italic |
| variable.other.property | #527466 | — |
| entity.name.function | #fb9c038a | — |
| entity.name.type | #f573ba | — |
| support.type | #f573ba | — |
| support.function | #f573ba | — |
| keyword | #569cd6 | — |
| keyword.control | #00ff6e | — |
| keyword.control.flow | #f573ba | italic |
| constant.language | #569CD6 | — |
| variable.language | #569cd6 | — |
| keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.ternary | #f9a407 | — |
| keyword.operator.assignment, keyword.operator.increment, keyword.operator.decrement | #3ee913 | — |
| keyword.operator.comparison, keyword.operator.relational | #e35c2b | — |
| keyword.operator.logical | #0fd3e9 | — |
| storage.type | #e35c2b | italic |
| storage.type.class | #e9ac13 | italic underline |
| storage.modifier | #569cd6 | — |
| punctuation.terminator | #f573ba | — |
| punctuation.separator | #e9ac13 | — |
| punctuation.support.type.property-name | #527466 | — |
| punctuation.definition.string | #8f4964 | — |
| emphasis | — | italic |
| strong | — | bold |
| constant.regexp | #646695 | — |
| invalid | #f44747 | — |
| constant.character.escape | #696868 | — |
| string | #8f4964 | — |
| constant.numeric | #db4462 | — |
| comment | #444341 | italic |
| keyword.control.directive.include.cpp, keyword.other.using.directive.cpp, keyword.other.typedef.cpp, keyword.control.directive.define.cpp, keyword.control.directive.conditional.ifndef.cpp, keyword.control.directive.pragma.cpp, keyword.control.directive.endif.cpp | #f573ba | — |
| entity.name.namespace.cpp | #00ff6e | — |
| entity.name.function.templated.cpp, punctuation.definition.directive.cpp | #f573ba | — |
| storage.modifier.pointer.cpp | #f9a407 | — |
| keyword.operator.noexcept | #569cd6 | — |
| punctuation.separator.pointer-access.cpp | #FF0000 | — |
| storage.type.modifier.access.control.private.cpp, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.public.cpp, storage.type.modifier.access.control.protected.cpp, storage.type.struct.cpp | #e9ac13 | italic underline |
| punctuation.destructuring.js | #FF0000 | — |
| keyword.operator.spread.js | #f9a407 | — |
| keyword.operator.rest.js | #3ee913 | — |
| storage.type.function.arrow.js | #FF0000 | — |
| constant.numeric.sql | #a676d6 | — |
| comment.line.double-dash.sql | #444341 | — |
| punctuation.definition.comment.sql | #569CD6 | — |
| storage.type.sql | #444341 | — |
| constant.other.database-name.sql | #e8b246 | italic |
| text.variable | #00ff44 | — |
| string.quoted.other.backtick.sql | #49d66a | — |
| string.quoted.none.hjson | #93959a | italic |
| punctuation.separator.dictionary.pair.hjson | #00fff7 | — |
| constant.numeric.hjson | #ff00d0 | — |
| support.type.property-name.json | #527466 | — |
| entity.name.tag, constant.character | #df2d2d | — |
| text.html.derivative | #aecbbb | — |
| entity.other.attribute-name | #f9a407 | italic |
| punctuation.definition.tag, punctuation.definition.tag, punctuation.separator.key-value, punctuation.definition.entity | #f9a407 | — |
| string.quoted.double.html | #527466 | — |
| entity.name.tag.js.jsx | #0768f9 | — |
| meta.jsx.children.js.jsx | #aecbbb | — |
| entity.other.attribute-name.js.jsx | #527466 | italic |
| keyword.operator.assignment.js.jsx | #f9a407 | — |
| support.class.component.js.jsx | #00ff6e | — |
| punctuation.terminator.rule.css, punctuation.separator.key-value.css, punctuation.definition.keyword.css | #f9a407 | — |
| entity.other.attribute-name.class.css | #f99b04 | italic |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #898080 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, source.css.less, entity.other.attribute-name.scss | #d7ba7d | — |
| support.type.property-name.css, support.type.property-name.media.css | #527466 | — |
| support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, meta.property-value.css, support.constant.font-name.css, support.constant.color.w3c-extended-color-name.css | #ff3c00 | italic |
| constant.numeric.css | #8d498f | — |
| keyword.other.unit | #faae96 | — |
| keyword.operator.combinator.css | #00ff51 | — |
| keyword.operator.quantifier.regexp | #db3434 | |
| keyword.control.anchor.regexp | #787272 | |
| punctuation.definition.group.regexp | #f9a407 | — |
| constant.other.character-class.range.regexp, punctuation.definition.character-class.regexp | #8f4964 | italic |
| keyword.operator.or.regexp | #04fbf3 | bold |
| meta.assertion.negative-look-ahead.regexp | #444341 | — |
| meta.assertion.look-ahead.regexp | #aca6a6 | — |
| constant.other.character-class.regexp | #8f4964 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #569cd6 | — |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| markup.underline | — | underline |
| markup.italic | — | italic |
| markup.bold | #569cd6 | bold |
| markup.heading | #569cd6 | bold |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #569cd6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #ce9178 | — |
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}!`;
}