Elren's OP VSCode Color Theme
Publisher: Elren77Themes in package: 1
Random color theme for C++/C/Rust/MIPS asm (and java for university course purposes)
Random color theme for C++/C/Rust/MIPS asm (and java for university course purposes)
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 |
|---|---|---|
| invalid.deprecated | #C3FF00 | — |
| variable, variable.other.object.java | #ffffff | italic bold |
| string constant.other.placeholder, entity.name.function, punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | — | italic |
| punctuation.definition.interpolation.end.bracket.curly.scss, punctuation.definition.interpolation.begin.bracket.curly.scss | #475D00 | — |
| constant.other.php | #C3FF00 | — |
| constant.other.color | #697C6B | — |
| invalid, invalid.illegal | #00FFD5 | — |
| Keyword, Storage | — | italic |
| constant.other.color, keyword.other.template, keyword.other.substitution, entity.name.tag.reference.scss | #A7A8AF | — |
| punctuation.definition, punctuation.definition.tag, punctuation, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.section.embedded | #ffffff | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.name.type.module.js | #FFFFFF | — |
| keyword.control.at-rule, punctuation.terminator.rule.css, keyword.control.operator, punctuation.definition.entity.css, keyword.operator.assignment.js, punctuation.separator.comma.js, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.binding-pattern.object.js | #486057 | — |
| string.quoted.single.scss | #A7A8AF | — |
| keyword.control | — | bold |
| comment.line.scss, comment.line.double-slash.js, punctuation.definition.comment.scss, punctuation.definition.comment.js, punctuation.definition.comment.html, punctuation.definition.comment.documentation.cpp, punctuation.definition.comment.java, comment.block.html | #72737b | bold |
| text.html.derivative | #A7A8AF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #486057 | — |
| entity.name.tag.html | — | bold |
| variable.parameter.js, variable.parameter.keyframe-list.css | #ffffff | — |
| variable.other.object.js, storage.type.js, string.other.link.title.markdown, variable.other.readwrite.js, variable.other.property.js | #FFFFFF | |
| string.quoted.double.html, variable.other.constant.js, variable.other.object.property.js, string.quoted.double.json, markup.fenced_code.block.markdown, markup.inline.raw.string.markdown, variable.function, keyword.other.special-method, markup.bold, markup.bold.markdown, markup.italic.markdown, variable.function.constructor, entity.name.tag.other.html, entity.name.tag.block.any.html, source.sass keyword.control | #94e1a5 | — |
| meta.attribute.rust, entity.name.function, meta.class-method.js entity.name.function.js, support.function | #ffc0ff | — |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #CAD2C5 | — |
| support.other.variable, string.other.link, markup.table | #546e65 | — |
| entity.name.function.preprocessor.cpp, entity.name.function.preprocessor.c, storage.type, storage.modifier, keyword.other | #aafffe | — |
| entity.name, constant.numeric, constant.language, constant.character, constant.escape, keyword.other.unit, punctuation.separator.key-value.html | #fffec0 | — |
| variable.parameter.function.language.special, variable.parameter | #ffffff | — |
| constant.other.symbol, constant.other.key, entity.other.inherited-class, keyword.other.unit, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #475D00 | |
| keyword.operator.new.cpp, keyword.control, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types, entity.other.attribute-name.html | #e1ff00 | — |
| support.type | #B2CCD6 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #FFFFFF | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #b7ff00 | — |
| entity.name.method.js, tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #84A98C | italic |
| entity.other.attribute-name | #e1FF00 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class, entity.other.attribute-name.pseudo-class, entity.name.tag.css, keyword.control.conditional.js, support.constant, entity.other.attribute-name.html, string.quoted.single.js, storage.type.function.js, meta.object-literal.key | #486057 | — |
| source.scss keyword.control | #C3FF00 | — |
| markup.inserted | #475D00 | — |
| markup.deleted | #00FFD5 | — |
| markup.changed | #C3FF00 | — |
| string.regexp | #CAD2C5 | — |
| constant.character.escape | #CAD2C5 | — |
| *url*, *link*, *uri* | — | underline |
| source.js constant.other.object.key.js string.unquoted.label.js | #486057 | italic |
| support.type.property-name.json | #486057 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #ffffff | — |
| text.html.markdown markup.inline.raw.markdown | #C3FF00 | — |
| text.html.markdown markup.inline.raw.markdown, punctuation.definition.raw.markdown | #FFFFFF50 | — |
| text.html.markdown meta.dummy.line-break | — | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown, entity.name.section.markdown | #FFFFFF | bold |
| markup.underline | #84A98C | underline |
| markup.strike | — | |
| markup.quote punctuation.definition.blockquote.markdown | #FFFFFF50 | — |
| markup.quote | — | italic |
| string.other.link.description.title.markdown | #C3FF00 | — |
| constant.other.reference.link.markdown | #C3FF00 | — |
| markup.raw.block | #C3FF00 | — |
| punctuation.definition.raw.markdown, punctuation.definition.markdown | #CAD2C5 | — |
| variable.language.fenced.markdown | #FFFFFF | — |
| meta.separator | #A7A8AF | bold |
| token.info-token | #FFFFFF | — |
| token.warn-token | #C3FF00 | — |
| token.error-token | #FF293B | — |
| token.debug-token | #CAD2C5 | — |
| hi, comment.line.double-slash.rust, comment.line.double-slash.cpp, comment.line.double-slash.c, comment.line.double-slash.java, comment.line.number-sign.mips, punctuation.definition.comment.java, punctuation.definition.comment.c, punctuation.definition.comment.cpp, punctuation.definition.comment.mips, punctuation.definition.string.end.json.comments, comment.block.cpp, comment.block.c, comment.block, comment.block.rust, punctuation.definition.comment.begin.c, punctuation.definition.comment.end.c, punctuation.definition.comment.begin.cpp, punctuation.definition.comment.end.cpp, punctuation.definition.comment.python, comment.line.number-sign.python, punctuation.definition.comment.systemverilog, comment.line.double-slash.systemverilog | #486057 | — |
| storage.modifier.array.bracket.square.c, punctuation.terminator.statement.cpp, punctuation.semi.rust, punctuation.separator.delimiter.comma.cpp, keyword.operator.namespace.rust, punctuation.comma | #ffffff | — |
| punctuation.definition.directive.c, punctuation.definition.directive.cpp | #ff00e6 | bold |
| keyword.control.directive.include.c, keyword.control.directive.include.cpp, keyword.control.directive.define.cpp, keyword.control.directive.define.c, keyword.other.import.java | #ff00e6 | |
| string, string.quoted.other.lt-gt.include.cpp, punctuation.definition.string.begin.c, punctuation.definition.string.end.c, punctuation.definition.string.begin.cpp, punctuation.definition.string.end.cpp, punctuation.definition.string.begin.java, punctuation.definition.string.end.java, punctuation.definition.string.rust, storage.modifier.import.java, meta.use.rust | #f5ff8d | — |
| constant.character.escape | #bbbea0 | bold |
| entity.name.namespace.rust, entity.name.namespace.cpp | #0095b3 | — |
| entity.name.type.cpp, entity.name.type.struct.cpp, variable.language.this.cpp, entity.name.type.class.java, entity.other.inherited-class.java, entity.name.type.struct.rust | #6f46c9 | bold |
| meta.interpolation.rust | #ffffff | italic |
| punctuation.definition.interpolation.rust, punctuation.separator.dot-access.cpp, punctuation.separator.java, punctuation.definition.variable.mips | #FF0000 | |
| keyword, storage.modifier.reference.cpp | #FF0000 | — |
| keyword.operator.wordlike.cpp, keyword.operator.cast.static_cast.cpp, entity.name.type.class.templated.cpp | #859400 | — |
| storage.modifier, storage.modifier.specifier.const.cpp, storage.type.class.cpp, storage.type.modifier.access.control.private.cpp, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.public.cpp, meta.block.c | #03b2d5 | bold |
| entity.name.function.operator.cpp, entity.name.function.operator.member.cpp | #ff1f5b | bold |
| variable.other.object.property.java | #d8dac4 | italic |
| source.mips, source.cpp, source.c, source.rust, source.java, source.python, source.verilog, source.systemverilog | #FFFFFF | — |
| string constant.other.placeholder, meta.fstring.python, constant.other.net.systemverilog | #ffffe1 | — |
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}!`;
}