Proper Dark Theme
Publisher: amelinium23Themes in package: 1
A visually appealing and easy-on-the-eyes dark theme for developers, designed to reduce eye strain and improve code readability during long coding sessions.
A visually appealing and easy-on-the-eyes dark theme for developers, designed to reduce eye strain and improve code readability during long coding sessions.
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, punctuation.definition.comment, string.comment | #8b949e | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #7cb6f8 | — |
| entity.name, meta.export.default, meta.definition.variable, variable.parameter.js, variable.parameter | #ffa657 | — |
| variable.parameter.function, meta.jsx.children, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #e5e9ed | — |
| entity.name.function | #d2a8ff | — |
| entity.name.tag, support.class.component | #7ee787 | — |
| keyword | #ff7b72 | — |
| storage, storage.type | #ff7b72 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #e1e4e8 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #a5d6ff | — |
| support | #78b4e9 | — |
| meta.property-name | #b2dbff | — |
| variable.other | #c9d1d9 | — |
| invalid.broken | #ffa198 | italic |
| invalid.deprecated | #ffa198 | italic |
| invalid.illegal | #ffa198 | italic |
| invalid.unimplemented | #ffa198 | italic |
| message.error | #ffa198 | — |
| string source | #c9d1d9 | — |
| string variable | #c7e6ff | — |
| source.regexp, string.regexp | #a5d6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #a5d6ff | — |
| string.regexp constant.character.escape | #7ee787 | bold |
| support.constant | #bfdef8 | — |
| support.variable | #79c0ff | — |
| meta.module-reference | #79c0ff | — |
| punctuation.definition.list.begin.markdown | #ffa657 | — |
| markup.heading, markup.heading entity.name | #79c0ff | bold |
| markup.quote | #7ee787 | — |
| markup.italic | #c9d1d9 | italic |
| markup.bold | #c9d1d9 | bold |
| storage.type.java, variable.other.object.java | #28b7ff | — |
| markup.raw | #79c0ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ffa198 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #7ee787 | — |
| markup.changed, punctuation.definition.changed | #ffa657 | — |
| punctuation.definition.comment, comment.block.documentation | #a3a3a3 | — |
| markup.ignored, markup.untracked | #414344 | — |
| meta.diff.range | #d2a8ff | bold |
| meta.diff.header | #79c0ff | — |
| meta.separator | #79c0ff | bold |
| meta.output | #79c0ff | — |
| brackethighlighter.unmatched | #ffa198 | — |
| constant.other.reference.link, string.other.link | #93c5fd | underline |
| variable.object.property | #79c0ff | — |
| string.quoted.double | #90cafa | — |
| entity.other, entity.other.attribute-name, entity.other.attribute-name.js.jsx, entity.other.attribute-name.ts.tsx | #75b1ff | — |
| punctuation.definition.tag | #ebf1f2 | — |
| source.ignore | #d6d6d6 | — |
| support.type.property-name | #6A9FE6 | — |
| text.html.jinja, html.other, meta.tag.metadata.title.start.html, meta.tag.metadata.title.end.html | #ebebeb | — |
| meta.block.js.jsx, meta.block.ts.tsx | #79C0FF | — |
| meta.embedded.expression | #FFA657 | — |
| variable.other.property, variable.other, punctuation.definition.decorator.python | #64b4ff | — |
| string.quoted.docstring.multi.python, source.python | #A5D6FF | — |
| support.type.python, entity.name.type.class | #d2a8ff | — |
| meta.function.parameters.python, punctuation.section.function.begin, punctuation.separator.annotation.result | #FFA657 | — |
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}!`;
}