Classical Dark Theme
Publisher: minkul alamThemes in package: 1
A simple dark theme for Visual Studio Code inspired by the classic color scheme.
A simple dark theme for Visual Studio Code inspired by the classic color scheme.
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, variable.legacy.builtin.python | #BCBEC4 | — |
| emphasis | — | italic |
| strong | — | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| comment | #878C94 | — |
| comment.block.documentation, comment.line.documentation | #878C94 | — |
| keyword.other.documentation, punctuation.definition.block.tag.jsdoc, storage.type.class.jsdoc | #878C94 | — |
| keyword | #CF8E6D | — |
| storage | #CF8E6D | — |
| storage.type | #CF8E6D | — |
| storage.modifier, keyword.operator.noexcept | #CF8E6D | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | #C77DBB | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #CF8E6D | — |
| keyword.operator | #BCBEC4 | — |
| keyword.other.unit | #2AACB8 | — |
| constant.language | #CF8E6D | — |
| constant.numeric, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #2AACB8 | — |
| variable.other.enummember | #C77DBB | — |
| variable.other.constant | #BCBEC4 | — |
| constant.character, constant.other.option | #CF8E6D | — |
| constant.character.escape | #CF8E6D | — |
| constant.regexp | #42C3D4 | — |
| constant.other.placeholder | #CF8E6D | — |
| string, meta.embedded.assembly | #6AAB73 | — |
| string.tag | #6AAB73 | — |
| string.value | #6AAB73 | — |
| string.regexp | #42C3D4 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #CF8E6D | — |
| meta.template.expression | #BCBEC4 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #CF8E6D | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #56A8F5 | — |
| meta.preprocessor, entity.name.function.preprocessor | #CF8E6D | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, 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 | #3FC0A0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby | #3FC0A0 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #BCBEC4 | — |
| meta.attribute.python, meta.indexed-name.python | #BCBEC4 | — |
| meta.object-literal.key, variable.other.property, variable.other.object.property, variable.other.object.access, variable.other.member, support.variable.property, support.variable.property.dom | #C77DBB | — |
| support.type.property-name.json, support.type.property-name.json.comments, entity.name.tag.yaml, entity.name.tag.toml, meta.structure.dictionary.key.python | #BCBEC4 | — |
| variable.language, variable.parameter.function.language.python, variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #CF8E6D | — |
| support.type.vendored.property-name, support.type.property-name, source.css variable, source.coffee.embedded | #BCBEC4 | — |
| meta.decorator, punctuation.decorator, storage.type.annotation, storage.type.annotation.java, meta.declaration.annotation.java, meta.function.decorator.python, entity.name.function.decorator, entity.name.function.decorator.python, support.attribute.builtin, meta.attribute.cs | #B3AE60 | — |
| entity.name.tag | #D5B778 | — |
| entity.other.attribute-name | #BCBEC4 | — |
| support.class.component, support.class.component.jsx, support.class.component.tsx, meta.tag.attributes.jsx entity.other.attribute-name, meta.tag.attributes.tsx entity.other.attribute-name | #9C9CFF | — |
| entity.name.tag.css, entity.name.tag.less | #D5B778 | — |
| entity.other.attribute-name.class.css, source.css entity.other.attribute-name.class, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent.less, source.css entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #D5B778 | — |
| punctuation.definition.tag | #80858C | — |
| 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 | #6AAB73 | — |
| meta.preprocessor.string | #6AAB73 | — |
| meta.preprocessor.numeric | #2AACB8 | — |
| variable.function, entity.name.function.call, meta.function-call entity.name.function, meta.function-call.generic.python entity.name.function | #56A8F5 | — |
| support.function.builtin, support.function.builtin.python, support.function.magic.python, support.function.kernel.ruby, support.function.builtin.shell | #56A8F5 | — |
| variable.parameter, variable.parameter.function, variable.parameter.function-call, meta.function.parameters variable | #BCBEC4 | — |
| variable.other.readwrite.instance.ruby, variable.other.readwrite.class.ruby, variable.other.constant.ruby | #BCBEC4 | — |
| variable.other.php, punctuation.definition.variable.php | #BCBEC4 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #3FC0A0 | — |
| constant.other.enum.java | #C77DBB | — |
| storage.type.primitive.cpp, storage.type.built-in.cpp, storage.type.built-in.primitive.cpp, support.type.built-in.cpp, support.type.built-in.primitive.cpp | #3FC0A0 | — |
| entity.name.type.template.cpp, entity.name.type.parameter.cpp, storage.type.template.cpp | #3FC0A0 | — |
| keyword.control.satisfies.ts, keyword.control.satisfies.tsx | #CF8E6D | — |
| entity.tag.directive.yaml, punctuation.definition.directive.begin.yaml | #B3AE60 | — |
| storage.type.tag-handle.yaml, entity.name.type.tag.yaml | #3FC0A0 | — |
| entity.name.section.toml, entity.name.table.toml, entity.other.attribute-name.table.toml | #BCBEC4 | — |
| constant.other.time.datetime.offset.toml, constant.other.time.datetime.local.toml, constant.other.time.date.toml, constant.other.time.time.toml | #2AACB8 | — |
| entity.name.tag.namespace.xml, entity.other.attribute-name.namespace.xml, entity.name.tag.namespace | #3FC0A0 | — |
| meta.mapping.key.json5, string.unquoted.key.json5, entity.name.tag.json5 | #BCBEC4 | — |
| entity.name.section.group-title.ini, entity.name.section.ini, keyword.other.definition.ini, variable.other.key.env, entity.name.tag.env, support.type.property-name.ini | #BCBEC4 | — |
| markup.heading | #56A8F5 | bold |
| markup.bold | #56A8F5 | bold |
| markup.italic | #C77DBB | italic |
| header | #56A8F5 | — |
| punctuation.definition.quote.begin.markdown | #878C94 | — |
| punctuation.definition.list.begin.markdown | #548AF7 | — |
| markup.inline.raw | #6AAB73 | — |
| markup.inserted | #6AAB73 | — |
| markup.deleted | #E47474 | — |
| markup.changed | #CF8E6D | — |
| string.other.link.title.markdown, markup.underline.link.markdown | #6B9BFA | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #6AAB73 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #42C3D4 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #56A8F5 | — |
| keyword.operator.quantifier.regexp | #B3AE60 | — |
| meta.diff.header | #CF8E6D | — |
| support.function.git-rebase | #56A8F5 | — |
| constant.sha.git-rebase | #2AACB8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #BCBEC4 | — |
| entity.name.label | #32B8AF | — |
| invalid | #FA6F7C | — |
| invalid.deprecated | #BCBEC4 | strikethrough |
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}!`;
}