Redo Rainbow Theme
Publisher: re-doThemes in package: 1
Vibrant vscode dark theme 🎨
Vibrant vscode dark 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 |
|---|---|---|
| Global settings | #cbcdd2 | — |
| comment | #686b78 | — |
| string | #1f75fe | — |
| string.quoted | #1f75fe | — |
| support.constant.math | #ffc40c | — |
| constant.numeric, constant.character.numeric | #ff7518 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #cbcdd2 | — |
| constant.character, constant.other | #ffc40c | — |
| constant.character.escape | #ff7518 | — |
| string.regexp, string.regexp keyword.other | #1f75fe | — |
| meta.function punctuation.separator.comma | #cbcdd2 | — |
| variable | #ffc40c | — |
| punctuation.accessor, keyword | #0bda51 | — |
| storage | #0bda51 | — |
| storage.type, meta.var.expr storage.type, meta.class meta.method.declaration meta.var.expr storage.type.js | #f51423 | — |
| entity.name.class, meta.class entity.name.type.class | #ffc40c | — |
| entity.other.inherited-class | #1f75fe | — |
| entity.name.function | #ffc40c | — |
| variable.parameter | #1f75fe | — |
| punctuation.definition.tag, meta.tag | #cbcdd2 | — |
| support.class.component, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, meta.tag.tsx, meta.tag.html | #f51423 | — |
| entity.name.tag.tsx, entity.name.tag.js, entity.name.tag | #f51423 | — |
| entity.other.attribute-name | #ffc40c | — |
| entity.name.tag.custom | #ffc40c | — |
| support.function, support.constant | #ffc40c | — |
| support.constant.meta.property-value | #ff7518 | — |
| support.type, support.class | #ffc40c | — |
| support.variable.dom | #ffc40c | — |
| invalid | #cbcdd2 | — |
| invalid.deprecated | #cbcdd2 | — |
| keyword.operator | #0bda51 | — |
| keyword.operator.relational | #0bda51 | — |
| keyword.operator.assignment | #0bda51 | — |
| comment.line.double-slash | #686b78 | — |
| constant.language.null | #ff7518 | — |
| meta.brace | #cbcdd2 | — |
| meta.delimiter.period | #0bda51 | — |
| constant.language.boolean | #ff7518 | — |
| object.comma | #cbcdd2 | — |
| variable.parameter.function | #ff7518 | — |
| support.type.vendored.property-name, support.constant.vendored.property-value, support.type.property-name, meta.property-list entity.name.tag | #1f75fe | — |
| meta.property-list entity.name.tag.reference | #f51423 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #ff7518 | — |
| constant.other.color | #0bda51 | — |
| keyword.other.unit | #0bda51 | — |
| meta.selector | #0bda51 | — |
| entity.other.attribute-name.id | #ffc40c | — |
| meta.property-name | #1f75fe | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #0bda51 | — |
| punctuation.definition.parameters | #cbcdd2 | — |
| keyword.control.operator | #ff7518 | — |
| keyword.operator.logical | #0bda51 | — |
| variable.instance, variable.other.instance, variable.reaedwrite.instance, variable.other.readwrite.instance | #f51423 | — |
| variable.other.property, variable.other.object.property | #ff7518 | — |
| entity.name.function | #ffc40c | — |
| keyword.operator.comparison | #0bda51 | — |
| support.constant, keyword.other.special-method, keyword.other.new | #ff7518 | — |
| support.function | #ff7518 | — |
| invalid.broken | #1b1b1b | — |
| invalid.unimplemented | #cbcdd2 | — |
| invalid.illegal | #cbcdd2 | — |
| variable.language | #f51423 | — |
| support.variable.property | #ff7518 | — |
| variable.function | #ffc40c | — |
| variable.interpolation | #f51423 | — |
| meta.function-call | #ffc40c | — |
| punctuation.section.embedded | #f51423 | — |
| string.template meta.template.expression | #f51423 | — |
| italic | #0bda51 | italic |
| bold | #ffc40c | bold |
| quote | #1f75fe | italic |
| raw | #1f75fe | — |
| variable.assignment.coffee | #ff7518 | — |
| variable.parameter.function.coffee | #cbcdd2 | — |
| variable.assignment.coffee | #ff7518 | — |
| variable.other.readwrite.cs | #cbcdd2 | — |
| entity.name.type.class.cs, storage.type.cs | #ffc40c | — |
| entity.name.type.namespace.cs | #0bda51 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css | #f51423 | — |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #f51423 | — |
| keyword.other.unit.css | #0bda51 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute | #ff7518 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #ffc40c | — |
| source.elixir entity.name.function | #ffc40c | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #ffc40c | — |
| source.elixir punctuation.definition.string | #1f75fe | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #ffc40c | — |
| source.elixir .punctuation.binary.elixir | #0bda51 | — |
| source.go meta.function-call.go | #ffc40c | — |
| entity.other.attribute-name.id.html | #ffc40c | — |
| punctuation.definition.tag.html | #ff7518 | — |
| meta.tag.sgml.doctype.html | #0bda51 | — |
| meta.class entity.name.type.class.js | #ffc40c | — |
| meta.method.declaration storage.type.js | #ffc40c | normal |
| terminator.js | #cbcdd2 | — |
| meta.js punctuation.definition.js | #cbcdd2 | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #cbcdd2 | — |
| variable.other.jsdoc, variable.other.phpdoc | #1f75fe | — |
| variable.other.meta.import.js, meta.import.js variable.other | #cbcdd2 | — |
| variable.parameter.function.js | #1f75fe | — |
| variable.other.readwrite.js | #cbcdd2 | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #cbcdd2 | — |
| variable.js, variable.other.js | #cbcdd2 | — |
| entity.name.type.js, entity.name.type.module.js | #ffc40c | — |
| support.class.js | #cbcdd2 | — |
| support.type.property-name.json | #f51423 | — |
| support.constant.json | #ffc40c | — |
| meta.structure.dictionary.value.json string.quoted.double | #1f75fe | — |
| string.quoted.double.json punctuation.definition.string.json | #1f75fe | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #ff7518 | — |
| variable.other.ruby | #cbcdd2 | — |
| constant.language.symbol.hashkey.ruby | #ff7518 | — |
| entity.name.tag.less | #f51423 | — |
| keyword.other.unit.css | #0bda51 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #ff7518 | — |
| markup.heading.markdown | #ffc40c | — |
| markup.italic.markdown | #0bda51 | italic |
| markup.bold.markdown | #ffc40c | bold |
| markup.quote.markdown | #1f75fe | italic |
| markup.inline.raw.markdown | #1f75fe | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #1f75fe | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #cbcdd2 | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #ffc40c | — |
| punctuation.definition.metadata.markdown | #f51423 | — |
| beginning.punctuation.definition.list.markdown | #ffc40c | — |
| support.class.php | #ffc40c | — |
| meta.function-call.php punctuation | #cbcdd2 | — |
| variable.other.global.php | #ffc40c | — |
| variable.other.global.php punctuation.definition.variable | #ffc40c | — |
| constant.language.python | #ff7518 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #1f75fe | — |
| punctuation.python | #cbcdd2 | — |
| entity.name.function.decorator.python | #ffc40c | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #ffc40c | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #ff7518 | — |
| entity.name.tag.scss, entity.name.tag.sass | #f51423 | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #0bda51 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #cbcdd2 | — |
| entity.name.type.ts, entity.name.type.tsx | #ffc40c | — |
| support.class.node.ts, support.class.node.tsx | #ffc40c | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #cbcdd2 | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block | #cbcdd2 | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #ffc40c | — |
| meta.jsx.children.tsx, meta.tag.js meta.jsx.children.tsx | #cbcdd2 | — |
| entity.name.tag.yaml | #ff7518 | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.operator, keyword.operator.or.regexp, punctuation.definintion.string, punctuation | — | normal |
| meta.import.ts meta.block.ts variable.other.readwrite.alias.ts, meta.import.tsx meta.block.tsx variable.other.readwrite.alias.tsx, meta.import.js variable.other, entity.name.function.ts, entity.name.function.tsx, support.type.primitive, entity.name.tag.yaml, meta.tag.sgml.doctype.html, entity.name.tag.doctype, meta.tag.sgml.doctype, entity.other.attribute-name, entity.name.tag.custom, source.js.jsx keyword.control.flow.js, support.type.property.css, support.function.basic_functions, variable.assignment.coffee, support.function.basic_functions, keyword.operator.expression.typeof, keyword.operator.type.annotation, assignment.coffee, entity.name.type.ts, support.constant.math, meta.object-literal.key, meta.var.expr storage.type, parameter, string, italic, quote, keyword, storage, language, type .function, type.function, storage.type.class, type.var, meta.parameter, variable.parameter, meta.parameters, keyword.control, modifier, this, comment | — | normal |
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}!`;
}