Orchid Theme
Publisher: CryptoDev369Themes in package: 1
This is the Unofficial Orchid Theme for VS Code
This is the Unofficial Orchid Theme for VS Code
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 |
|---|---|---|
| support.class.php, support.other.namespace.php, entity.name.type.namespace.php, entity.name.type.class.php, meta.class.php, punctuation.section.array.begin.php, punctuation.section.array.end.php, keyword.operator.return-value.php, entity.name.tag.localname.xml | #fff | — |
| comment.line.double-slash.php, comment.block.documentation.phpdoc.php, comment.block.documentation.js, comment.line.double-slash.js, comment.line.double-slash.rust, comment.line.number-sign.php, comment.line.double-dash.sql.sqlite, source.sql.sqlite, comment.block.php, comment.block.blade, punctuation.definition.comment.begin.blade, punctuation.definition.comment.end.blade, comment.block.js, comment.line.number-sign.ruby | #8781a2 | — |
| meta.class.body.php, variable.language.*.php, keyword.control.at-rule.media.css, support.type.property-name.php, support.type.property-name.css, variable.other.constant.js, variable.other.readwrite.js, variable.other.rust, variable.other.bare, variable.language.this.js | #ffd06b | — |
| keyword.other.use.php, storage.modifier.php, storage.type.function.php, storage.type.class.php, keyword.control.return.php, keyword.operator.class.php, keyword.operator.key.php, keyword.other.namespace.php, storage.modifier.extends.php, keyword.other.class.php, punctuation.definition.tag.begin.html, entity.other.attribute-name.html, punctuation.definition.tag.end.html, punctuation.separator.key-value.html, keyword.control.default.js, storage.type.class.js, storage.modifier.js, keyword.control.flow.js, keyword.operator.assignment.js, punctuation.accessor.js, storage.type.js, entity.name.function.macro.rust, storage.type.rust, storage.modifier.mut.rust, source.css, keyword.other.type.php, keyword.operator.nullable-type.php, keyword.operator.logical.php, keyword.operator.assignment.equal.rust, keyword.control.rust, keyword.control.if.php, keyword.control.else.php, keyword.control.conditional.js, keyword.control.switch.php, keyword.control.case.php, keyword.control.break.php, keyword.control.default.php, keyword.control.while.php, keyword.control.do.php, keyword.control.for.php, keyword.control.foreach.php, variable.other.rust, keyword.other.sql.sqlite, keyword.operator.assignment.php, keyword.operator.comparison.php, keyword.operator.increment-decrement.php, log.date, keyword.other.definition.ini, support.type.property-name.json, variable.other.env, entity.name.tag.yaml, punctuation.definition.tag.xml, meta.tag.xml, entity.other.attribute-name.localname.xml, entity.other.attribute-name.xml, meta.tag.preprocessor.xml, keyword.operator.comparison.ruby | #82d4f7 | — |
| entity.name.function.js, entity.name.function.php, keyword.other.fn.rust, entity.name.function.rust, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css, entity.name.function.sql.sqlite, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, keyword.blade | #cd82c7 | — |
| variable.other.property.php | #b288ff | — |
| string.quoted.single.php, string.quoted.double.php, string.quoted.double.html, string.template.js, string.quoted.single.js, string.quoted.double.js, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js, string.quoted.single.css, string.quoted.double.css, string.quoted.single.json, string.quoted.double.json, string.quoted.double.rust, log.constant, string.quoted.double.ini, source.ini, source.env, string.unquoted.plain.out.yaml, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, string.quoted.single.xml, string.quoted.double.xml, variable.other.constant.ruby | #4bef96 | — |
| punctuation.definition.begin.bracket.curly.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.separator.delimiter.php, keyword.operator.ternary.php, punctuation.terminator.expression.php, punctuation.separator.comma.js, meta.brace.square.js, punctuation.definition.block.js, punctuation.separator.key-value.css, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.semi.rust, keyword.operator.return-value.php, punctuation.terminator.statement.php, source.sql.sqlite, text.log, punctuation.definition.comment.begin.blade, punctuation.definition.comment.end.blade | #d2cdea | — |
| constant.numeric.decimal.php, support.constant.property-value.css, constant.numeric.decimal.js, constant.numeric.sql.sqlite, constant.numeric.integer.yaml, constant.language.boolean.yaml | #b288ff | — |
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}!`;
}