Dark Mode Lover
Publisher: LovervoidThemes in package: 2
Dark Mode Lover is a theme for Visual Studio Code. It offers a balanced contrast and broad language support, making it a great choice for developers who prefer dark themes.
Dark Mode Lover is a theme for Visual Studio Code. It offers a balanced contrast and broad language support, making it a great choice for developers who prefer dark themes.
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 |
|---|---|---|
| comment.line, comment.block | #586 | |
| comment.block.documentation, comment.block.javadoc, comment.block.html, punctuation.definition.comment.documentation | #fff9 | italic |
| storage.type.class.jsdoc, keyword.other.documentation, entity.name.type.instance.jsdoc, variable.other.jsdoc | #3c65d4 | — |
| comment.block.documentation entity.name.tag, comment.block.documentation punctuation.definition.tag | #8cf | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #e67 | |
| constant.language | #F90 | italic |
| constant.other, support.constant | #F90 | — |
| constant.character.escape | #6de | — |
| string, string.quoted, string.template | #9c6 | |
| string.regexp | #6de | — |
| string.url, string.other.link | #6de | underline |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type | #ec6 | — |
| storage.type.primitive, keyword.type, support.type.primitive | #F90 | — |
| meta.type.annotation, support.type.builtin | #ec6 | — |
| entity.name.tag | #e67 | — |
| entity.other.attribute-name | #F90 | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx | #fac | — |
| support.type.property-name, support.type.property-name.css | #e67 | — |
| entity.name.function, entity.name.function.member, meta.definition.function entity.name.function, meta.definition.method entity.name.function | #6bf | bold |
| meta.function-call.generic, entity.name.function.call, support.function | #6bf | — |
| support.function.builtin, support.function.console, support.function.dom | #6de | — |
| entity.name.function.constructor, meta.function-call.constructor | #ec6 | bold |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow | #d7a | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #d7a | italic |
| keyword, keyword.other | #d7a | italic |
| storage.type, storage.type.class, storage.type.function | #d7a | — |
| storage.modifier, storage.modifier.access, storage.modifier.static, storage.modifier.async, storage.modifier.const, storage.modifier.readonly | #d7a | italic |
| keyword.operator.new, keyword.operator.expression.typeof, keyword.operator.expression.instanceof | #d7a | — |
| keyword.operator | #47b | |
| variable, variable.other, variable.other.readwrite | #a86 | — |
| variable.other.property, variable.object.property, variable.other.object | #fec | — |
| variable.parameter | #F90 | italic |
| variable.other.enummember | #d86 | — |
| variable.language.this, variable.language.self, variable.parameter.function.language.special.self, variable.parameter.function.language.special.cls | #e67 | italic |
| variable.language.super | #fac | italic |
| markup.heading, entity.name.section | #e67 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.underline.link | #6de | underline |
| markup.raw, markup.inline.raw | #9c6 | — |
| markup.inserted | #9c6 | — |
| markup.deleted | #f88 | — |
| markup.quote | #9c6 | — |
| punctuation.definition.list.begin.markdown, punctuation.definition.list.end.markdown | #e67 | — |
| meta.brace, punctuation.accessor, punctuation.definition.block, punctuation.definition.tag, punctuation.definition.binding-pattern, punctuation.definition.parameters | #abb2bf | |
| punctuation.definition.string | #516b3f | |
| punctuation.definition.comment | #45496099 | |
| punctuation.separator.comma, punctuation.terminator.statement, punctuation.separator.semicolon | #454960 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #e67 | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #daf | italic |
| entity.name.namespace, entity.name.module, storage.modifier.namespace, support.other.namespace, meta.import variable.other.readwrite, variable.other.readwrite.alias, variable.language.import-export | #8cf | — |
| invalid, invalid.illegal | #e76 | — |
| invalid.deprecated | #fff3 | strikethrough |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit | #9db | — |
| keyword.other.important, entity.other.attribute-name.pseudo-class, support.function.misc.css | #fc6 | — |
| keyword.query.linq, keyword.query.from, keyword.query.where, keyword.query.select | #8cf | italic |
| keyword.control.await, storage.modifier.async | — | italic |
| meta.attribute, entity.name.type.attribute | #9db | — |
| keyword.other.sql, constant.other.database-name, constant.other.table-name | #9bf | — |
| support.function.magic, support.variable.magic | #cae | bold |
| keyword.preprocessor.region, meta.preprocessor.region, keyword.control.region, keyword.control.directive.region | #9c6 | — |
| meta.preprocessor.region string, comment.line.region, meta.toc-list.region.name | #8cf | bold |
| punctuation.definition.annotation, storage.modifier.import, storage.modifier.package, storage.type.annotation, storage.type.generic, storage.type.java | #ec6 | — |
| meta.object-literal.key | #e67 | — |
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}!`;
}