Midnight Grove
Publisher: lelaThemes in package: 1
A calm forest-inspired green dark theme for Visual Studio Code.
A calm forest-inspired green dark theme for Visual Studio 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 |
|---|---|---|
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #5BD6D6 | italic |
| markup.deleted.diff | #EF535090 | italic |
| markup.inserted.diff | #8BAF9Bff | italic |
| Global settings | — | — |
| comment, punctuation.definition.comment | #5F7A70 | italic |
| string | #E6B97A | — |
| string.quoted | #E6B97A | — |
| support.constant.math | #F78C6C | — |
| constant.numeric, constant.character.numeric | #F08464 | |
| constant.language, punctuation.definition.constant, variable.other.constant | #2FBF9F | — |
| constant.character, constant.other | #2FBF9F | — |
| constant.character.escape | #F78C6C | — |
| string.regexp, string.regexp keyword.other | #5BD6D6 | — |
| meta.function punctuation.separator.comma | #6E8B80 | — |
| variable | #8BAF9B | — |
| keyword | #7e57c2 | italic |
| punctuation.accessor, punctuation.accessor.js, punctuation.accessor.ts | #E0FBFC80 | — |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #7e57c2 | italic |
| storage.type | #7e57c2 | — |
| storage.type.function.arrow.js | — | |
| entity.name.class, meta.class entity.name.type.class | #ffcb8b | — |
| entity.other.inherited-class | #ffcb8b | — |
| entity.name.function | #2FBF9F | italic |
| punctuation.definition.tag, meta.tag | #5BD6D6 | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #9CCDC6 | |
| entity.other.attribute-name | #8BAF9B | italic |
| entity.name.tag.custom | #5BD6D6 | — |
| support.function, support.constant | #2FBF9F | — |
| support.constant.meta.property-value | #5BD6D6 | — |
| support.type, support.class | #8BAF9B | — |
| support.variable.dom | #8BAF9B | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| keyword.operator | #E0FBFCB3 | |
| keyword.operator.relational | #AFC8C0 | — |
| keyword.operator.assignment | #AFC8C0 | — |
| keyword.operator.arithmetic | #AFC8C0 | — |
| keyword.operator.bitwise | #AFC8C0 | — |
| keyword.operator.increment | #AFC8C0 | — |
| keyword.operator.ternary | #AFC8C0 | — |
| comment.line.double-slash | #637777 | — |
| object | #cdebf7 | — |
| constant.language.null | #F08464 | — |
| meta.brace | #d6deeb | — |
| meta.delimiter.period | #7e57c2 | italic |
| punctuation.definition.string | #E0FBFCB3 | — |
| punctuation.definition.string.begin.markdown | #E0FBFCB3 | — |
| constant.language.boolean | #2FBF9F | — |
| object.comma | #6E8B80 | — |
| variable.parameter.function | #5BD6D6 | |
| support.type.vendor.property-name, support.constant.vendor.property-value, support.type.property-name, meta.property-list entity.name.tag | #7FE0B0 | |
| meta.property-list entity.name.tag.reference | #9CCDC6 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #F78C6C | — |
| constant.other.color | #ecc48d | — |
| keyword.other.unit | #FFEB95 | — |
| meta.selector | #7e57c2 | italic |
| entity.other.attribute-name.id | #7e57c2 | — |
| meta.property-name | #7FE0B0 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #7e57c2 | italic |
| punctuation.definition.parameters | #d9f5dd | — |
| keyword.control.operator | #AFC8C0 | — |
| keyword.operator.logical | #7e57c2 | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #8BAF9B | — |
| variable.other.object.property | #7FE0B0 | italic |
| variable.other.object.js | — | |
| entity.name.function | #2FBF9F | italic |
| variable.language.this.js | #E0FBFC | italic |
| keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #7e57c2 | italic |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts | #7e57c2 | italic |
| support.constant | #2FBF9F | — |
| keyword.other.special-method, keyword.other.new, keyword.other.debugger | #7e57c2 | italic |
| support.function | #2FBF9F | — |
| invalid.broken | #020e14 | — |
| invalid.unimplemented | #ffffff | — |
| invalid.illegal | #ffffff | — |
| variable.language | #E0FBFC | — |
| support.variable.property | #8BAF9B | — |
| variable.function | #2FBF9F | — |
| variable.interpolation | #7e57c2 | — |
| meta.function-call | #2FBF9F | — |
| punctuation.section.embedded | #7e57c2 | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #d6deeb | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #d6deeb | — |
| string.template meta.template.expression | #7e57c2 | — |
| string.template punctuation.definition.string | #d6deeb | — |
| italic | #697098 | italic |
| bold | #d6deeb | bold |
| quote | #697098 | italic |
| raw | #2FBF9F | — |
| variable.assignment.coffee | #31e1eb | — |
| variable.parameter.function.coffee | #d6deeb | — |
| variable.other.readwrite.cs | #d6deeb | — |
| entity.name.type.class.cs, storage.type.cs | #ffcb8b | — |
| entity.name.type.namespace.cs | #B2CCD6 | — |
| string.unquoted.preprocessor.message.cs | #d6deeb | — |
| punctuation.separator.hash.cs, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #ffcb8b | bold |
| variable.other.object.cs | #B2CCD6 | — |
| entity.name.type.enum.cs | #8BAF9B | — |
| string.interpolated.single.dart, string.interpolated.double.dart | #FFCB8B | — |
| support.class.dart | #FFCB8B | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, support.constant.property-value.css | #9CCDC6 | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #5BD6D6 | — |
| keyword.other.unit.css | #E6D37A | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute, variable.other.readwrite.js | #F78C6C | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #2FBF9F | — |
| source.elixir entity.name.function | #8BAF9B | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #2FBF9F | — |
| source.elixir punctuation.definition.string | #8BAF9B | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #8BAF9B | — |
| source.elixir .punctuation.binary.elixir | #7e57c2 | italic |
| constant.keyword.clojure | #5BD6D6 | — |
| source.go meta.function-call.go | #DDDDDD | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #7e57c2 | italic |
| source.go constant.language.go, source.go constant.other.placeholder.go | #ff5874 | — |
| entity.name.function.preprocessor.cpp, entity.scope.name.cpp | #5BD6D6ff | — |
| meta.namespace-block.cpp | #e0dec6 | — |
| storage.type.language.primitive.cpp | #ff5874 | — |
| meta.preprocessor.macro.cpp | #d6deeb | — |
| variable.parameter | #ffcb8b | — |
| variable.other.readwrite.powershell | #2FBF9F | — |
| support.function.powershell | #5BD6D6ff | — |
| entity.other.attribute-name.id.html | #8BAF9B | — |
| punctuation.definition.tag.html | #6fc8c6 | — |
| meta.tag.sgml.doctype.html | #7e57c2 | italic |
| meta.class entity.name.type.class.js | #ffcb8b | — |
| meta.method.declaration storage.type.js | #2FBF9F | — |
| terminator.js | #d6deeb | — |
| meta.js punctuation.definition.js | #d6deeb | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #6E8B80 | — |
| variable.other.jsdoc, variable.other.phpdoc | #8BAF9B | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #d6deeb | — |
| variable.parameter.function.js | #5BD6D6 | — |
| variable.other.object.js, variable.other.object.jsx | #d6deeb | — |
| variable.object.property.js, variable.object.property.jsx | #8BAF9B | — |
| entity.name.type.js, entity.name.type.module.js | #ffcb8b | |
| support.class.js | #8BAF9B | — |
| support.type.property-name.json | #8BAF9B | — |
| support.constant.json | #2FBF9F | — |
| meta.structure.dictionary.value.json string.quoted.double | #ecc48d | — |
| string.quoted.double.json punctuation.definition.string.json | #d6deeb | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #F08464 | — |
| variable.other.ruby | #d6deeb | — |
| entity.name.type.class.ruby | #ecc48d | — |
| constant.language.symbol.hashkey.ruby | #5BD6D6 | — |
| constant.language.symbol.ruby | #5BD6D6 | — |
| entity.name.tag.less | #9CCDC6 | — |
| keyword.other.unit.css | #FFEB95 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #F78C6C | — |
| markup.heading, markup.heading.setext.1, markup.heading.setext.2 | #00C48C | — |
| markup.italic | #7e57c2 | italic |
| markup.bold | #d6deeb | bold |
| markup.quote | #697098 | italic |
| markup.inline.raw | #ecc48d | — |
| markup.underline.link, markup.underline.link.image | #5BD6D6 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #d6deeb | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #AFC8C0 | — |
| punctuation.definition.metadata.markdown | #5BD6D6 | — |
| beginning.punctuation.definition.list.markdown | #AFC8C0 | — |
| markup.inline.raw.string.markdown | #ecc48d | — |
| variable.other.php, variable.other.property.php | #bec5d4 | — |
| support.class.php | #ffcb8b | — |
| meta.function-call.php punctuation | #d6deeb | — |
| variable.other.global.php | #8BAF9B | — |
| variable.other.global.php punctuation.definition.variable | #8BAF9B | — |
| constant.language.python | #ff5874 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #2FBF9F | — |
| meta.function-call.python, meta.function-call.generic.python | #B2CCD6 | — |
| punctuation.python | #d6deeb | — |
| entity.name.function.decorator.python | #8BAF9B | — |
| source.python variable.language.special | #8EACE3 | — |
| keyword.control | #7e57c2 | italic |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #8BAF9B | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #2FBF9F | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #F78C6C | — |
| entity.name.tag.scss, entity.name.tag.sass | #9CCDC6 | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #FFEB95 | — |
| entity.name.type.ts, entity.name.type.tsx | #ffcb8b | — |
| support.class.node.ts, support.class.node.tsx | #8BAF9B | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #ffcb8b | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #d6deeb | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #2FBF9F | — |
| entity.name.tag.yaml | #5BD6D6 | — |
| support.class.component.js, support.class.component.tsx | #ffcb8b | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #d6deeb | — |
| meta.class entity.name.type.class.tsx | #ffcb8b | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #ffcb8b | — |
| meta.class.ts meta.var.expr.ts storage.type.ts, meta.class.tsx meta.var.expr.tsx storage.type.tsx | #7e57c2 | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #2FBF9F | — |
| markup.deleted | #EF5350 | — |
| markup.inserted | #8BAF9B | — |
| markup.underline | — | underline |
| meta.brace, punctuation, keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.relational, keyword.operator.comparison, keyword.operator.ternary | — | |
| variable.other.readwrite.js | #8BAF9B | — |
| entity.name.tag.yaml, meta.key.yaml, string.unquoted.plain.out.yaml entity.name.tag.yaml | #8BAF9B | — |
| string.unquoted.plain.yaml, string.quoted.single.yaml, string.quoted.double.yaml | #E6B97A | — |
| constant.numeric.yaml | #F08464 | — |
| constant.language.boolean.yaml, constant.language.null.yaml | #2FBF9F | — |
| punctuation.separator.key-value.yaml, punctuation.definition.entry.yaml | #d6deeb | — |
| comment.line.number-sign.yaml, punctuation.definition.comment.yaml | #5F7A70 | italic |
| source.ts.embedded.html.vue variable.other.object.ts, source.js.embedded.html.vue variable.other.object.js, source.ts.embedded.html.vue variable, source.js.embedded.html.vue variable | #d6deeb | |
| source.ts.embedded.html.vue variable.other.property.ts, source.js.embedded.html.vue variable.other.property.js | #5BD6D6 | |
| meta.attribute.directive.vue punctuation | #8BAF9B | — |
| keyword.other.DDL.sql, keyword.other.DML.sql, keyword.other.sql, keyword.control.sql | #5BD6D6 | |
| storage.type.sql | #8BAF9B | |
| variable.other.property.js, variable.other.property.vue | #B8D6C7 | italic |
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}!`;
}