Best VSCode Theme
Publisher: BestVSCodeThemeThemes in package: 1
A meticulously crafted theme that combines aesthetic beauty with optimal readability. Perfect for long coding sessions with enhanced semantic highlighting.
A meticulously crafted theme that combines aesthetic beauty with optimal readability. Perfect for long coding sessions with enhanced semantic highlighting.
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, string meta.image.inline.markdown | #bcc5d9 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #ff7a8f | — |
| comment, punctuation.definition.comment | #8B9FD9 | italic |
| keyword.other.phpdoc.php, meta.other.type.phpdoc.php, storage.type.class.phpdoc.php | #FF47F7 | bold |
| meta.other.type.phpdoc.php, keyword.other.type.php, storage.type.php, meta.phpdoc.type.php | #00FF9D | bold |
| variable.other.phpdoc.php | #ff7a8f | — |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language | #ffad61 | — |
| entity.name, meta.export.default, meta.definition.variable | #ffd175 | — |
| variable.parameter.function, meta.parameter | #bcc5d9 | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #36f9f6 | bold |
| entity.other.attribute-name | #ffcc44 | italic |
| string.quoted.double.html, string.quoted.single.html | #9dff8d | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #f19fff | — |
| variable, variable.other, variable.other.readwrite, variable.other.php, variable.other.js, variable.other.ts, variable.other.python, variable.parameter, meta.definition.variable, variable.other.php, punctuation.definition.variable.php, variable.other.readwrite.js, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.parameter.function.language.python, variable.parameter.function.python, meta.definition.variable variable.other, meta.definition.variable.name | #66D9FF | — |
| variable.other.constant.property | #ffad61 | — |
| meta.object-literal.key | #3deefc | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #3deefc | — |
| string, punctuation.definition.string, support.constant.property-value.string, meta.embedded.line.php string | #7eefa9 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #ff7a8f | — |
| reset, constant.language.boolean, constant.language.null, constant.language.undefined, meta.structure.dictionary.json support.type.property-name.json | #ffad61 | bold |
| support.type.property-name, meta.object-literal.key | #3deefc | — |
| meta.object.member, variable.other.readwrite.js, variable.other.property.js | #bcc5d9 | — |
| entity.name.function, meta.function-call, variable.function, support.function, support.constant.handlebars, source.powershell variable.other.member, meta.function-call.php, entity.name.function.php, variable.language.super | #3deefc | bold |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class | #42e8b4 | bold |
| storage.type.php, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #42e8b4 | bold |
| meta.method.body.php, meta.method.identifier.php, meta.method.php | #bcc5d9 | — |
| meta.class-method.php entity.name.function.php, meta.class-method.php meta.function-call.php | #3deefc | — |
| keyword.operator, keyword.operator.expression, keyword.operator.new, keyword.operator.logical | #ff85ff | bold |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.import | #ff47f7 | bold |
| constant.numeric, constant.character.numeric | #ffad61 | — |
| variable.other.dollar.only.js, variable.other.object.dollar.only.js, variable.other.object.property.js, entity.name.type.module.js, variable.import.parameter.js | #ff7a8f | — |
| support.constant, keyword.other.special-method | #3deefc | — |
| storage, storage.type, support.type.primitive | #ff80ff | bold |
| meta.structure.dictionary.json support.type.property-name.json | #3deefc | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #7eefa9 | — |
| meta.diff, meta.diff.header | #d580ff | — |
| source.ruby variable.other.readwrite | #ff7a8f | — |
| source.css entity.name.tag | #5f7ce2 | bold |
| source.css support.type, source.css entity.other.attribute-name | #ffd175 | — |
| source.css entity.other.attribute-name.id, source.css entity.other.attribute-name.class | #ffad61 | bold |
| source.css support.constant.property-value | #7eefa9 | — |
| punctuation.separator.key-value.html, punctuation.separator.key-value.css, punctuation.separator.key-value.js | #bcc5d9 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #ff7a8f | bold |
| punctuation.definition.variable.php | #ff7a8f | — |
| variable.other.php, variable.other.property.php | #ff7a8f | — |
| support.class.php, meta.function-call.php, meta.function-call.static.php, meta.function-call.object.php | #3deefc | — |
| keyword.other.namespace.php | #d580ff | bold |
| variable.language.this.php | #ffd175 | bold |
| constant.language.php | #ffad61 | bold |
| support.function.magic.php | #fc85ff | bold |
| punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.storage-type.begin.bracket.round.php, punctuation.definition.storage-type.end.bracket.round.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.begin.bracket.square.php, punctuation.definition.end.bracket.square.php, punctuation.definition.array.begin.php, punctuation.definition.array.end.php | #8cc1ff | — |
| markup.heading, markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #FF47F7 | bold |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.link.inline.markdown, meta.image.inline.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #3deefc | — |
| markup.bold.markdown, punctuation.definition.bold.markdown | #00FFDD | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | #FF66C4 | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown, markup.raw.block.markdown | #7eefa9 | — |
| punctuation.definition.list.begin.markdown, markup.list.unnumbered.markdown, markup.list.numbered.markdown | #ffad61 | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | #00FF9D | italic |
| meta.separator.markdown, punctuation.definition.constant.markdown | #36F9F6 | — |
| fenced_code.block.language.markdown | #FF47F7 | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.instanceof | #ff85ff | bold |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.trycatch | #ff47f7 | bold |
| storage, storage.type, storage.modifier, storage.type.class, storage.type.function, storage.type.interface, storage.modifier.async, support.type.primitive | #ff80ff | bold |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #f2c86d | — |
| variable.other.readwrite, variable.other.readwrite.ts | #ff917e | — |
| keyword.operator.type.annotation, meta.type.annotation | #ba75e8 | — |
| meta.type.parameters, meta.type.annotation entity.name.type | #7efbcb | — |
| constant.language.boolean.true, constant.language.boolean.false, constant.language.null, constant.language.undefined | #f7916b | bold |
| storage.type.function.arrow | #fc85ff | bold |
| entity.name.type.class.ts, entity.name.type.class.tsx | #3cffc3 | bold |
| entity.other.inherited-class.ts, entity.other.inherited-class.tsx | #84ffd7 | bold |
| meta.decorator.ts, meta.decorator.tsx | #ffd659 | — |
| meta.field.declaration.ts, meta.field.declaration.tsx, variable.object.property.ts, variable.object.property.tsx | #ffb86c | — |
| keyword.control.export.ts, keyword.control.import.ts | #ff9ceb | bold |
| keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.conditional.ts, keyword.control.conditional.tsx | #bd93f9 | bold |
| entity.name.function.ts, entity.name.function.tsx, meta.definition.method.ts | #29edff | bold |
| string.template | #9dff8d | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #ff9ceb | — |
| text.html | #ffffff | — |
| text.html.derivative | #ffffff | — |
| entity.name.function, meta.function-call, support.function, entity.name.function.php, entity.name.function.ts, entity.name.function.tsx | #3deefc | bold |
| entity.name.type.class, entity.name.class, entity.name.type.class.ts, entity.name.type.class.tsx, support.class.php | #42e8b4 | bold |
| keyword.control.flow, keyword.control.return, keyword.control.throw, keyword.control.try, keyword.control.catch | #ff47f7 | bold |
| storage.type.class, storage.type.interface, storage.type.enum | #ff80ff | bold |
| entity.name.tag.html, entity.name.tag.structure.any.html | #36f9f6 | bold |
| entity.name.tag.css, source.css entity.name.tag, source.scss entity.name.tag | #5f7ce2 | bold |
| entity.name.function, meta.function-call, support.function, variable.function, *.function, *.function-call, *.method, support.function.*, meta.function.*, meta.method.* | #3deefc | bold |
| variable, variable.other, variable.parameter, meta.definition.variable, *.variable, variable.*, support.variable.* | #ff7a8f | — |
| entity.name.type, entity.name.class, support.class, support.type, *.class, *.type, *.interface | #42e8b4 | bold |
| keyword.control, keyword.control.* | #ff47f7 | bold |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type.function.arrow | #ff85ff | bold |
| constant, constant.language, variable.other.constant, support.constant | #ffad61 | bold |
| string, string.quoted, string.template | #7eefa9 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #f2c86d | — |
| variable, variable.other, variable.parameter, variable.other.readwrite, variable.other.php, punctuation.definition.variable.php, variable.other.js, variable.other.ts, variable.other.python | #66D9FF | — |
| entity.name.function, meta.function-call, support.function, variable.function | #00FFDD | bold |
| keyword, keyword.control, storage.type, storage.modifier | #FF47F7 | bold |
| string, string.quoted, string.template | #7eefa9 | — |
| entity.name.type, entity.name.class, support.class, support.type | #00FF9D | bold |
| constant, variable.other.constant, support.constant, variable.other.enummember | #ffad61 | bold |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.type.property-name | #FF66C4 | — |
| keyword.operator, keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison | #36F9F6 | 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}!`;
}