Demon Dark Pro
Publisher: mrsiddharthsolankiThemes in package: 2
A sleek, modern dark theme for Visual Studio Code with vibrant syntax highlighting.
A sleek, modern dark theme for Visual Studio Code with vibrant syntax 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 |
|---|---|---|
| comment, punctuation.definition.comment | #999999 | italic |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.other.important | #d32f2f | bold |
| storage.type.js, storage.type.ts, storage.type.tsx, storage.modifier.ts, keyword.declaration | #8e24aa | bold |
| keyword.operator, punctuation.separator, punctuation.terminator | #d32f2f | — |
| string, string.quoted, string.template | #388e3c | — |
| constant.character.escape, string.regexp | #1b5e20 | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined, constant.other, constant.character.escape | #8e24aa | — |
| variable, variable.other, variable.parameter, meta.definition.variable | #2c2c2c | — |
| entity.name.function, meta.function-call, support.function, keyword.other.special-method | #1565c0 | bold |
| entity.name.class, entity.name.type.class, support.class, entity.name.type | #0097a7 | bold |
| entity.name.function.member, meta.method-call, meta.method | #1565c0 | — |
| variable.other.property, variable.other.object.property, meta.property-name | #00838f | — |
| storage.type, entity.name.type, support.type, keyword.type | #5e35b1 | italic |
| entity.name.tag, punctuation.definition.tag | #d32f2f | — |
| entity.other.attribute-name | #f57c00 | — |
| entity.other.attribute-name.class.css | #0097a7 | — |
| entity.other.attribute-name.id.css | #8e24aa | — |
| support.type.property-name.css | #00838f | — |
| support.type.property-name.json | #00838f | — |
| markup.heading, entity.name.section.markdown | #d32f2f | bold |
| markup.bold | #f57c00 | bold |
| markup.italic | #8e24aa | italic |
| markup.inline.raw, markup.fenced_code | #388e3c | — |
| markup.underline.link, string.other.link | #0097a7 | — |
| invalid, invalid.illegal | #d32f2f | bold underline |
| invalid.deprecated | #f57c00 | strikethrough |
| keyword.control.import, keyword.control.export, keyword.control.from | #d32f2f | bold |
| variable.language.this, variable.language.super | #8e24aa | italic |
| meta.decorator, entity.name.function.decorator | #d32f2f | bold |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #d32f2f | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python | #8e24aa | italic |
| support.function.magic.python | #7b1fa2 | bold italic |
| constant.other, constant.language, variable.other.constant | #7b1fa2 | — |
| meta.object-literal.key, string.unquoted.label | #00838f | — |
| support.function.builtin, support.function.console | #1565c0 | italic |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #d32f2f | — |
| string.regexp, string.regexp keyword.operator | #1b5e20 | italic |
| entity.name.tag.jsx, support.class.component.jsx | #0097a7 | bold |
| entity.other.attribute-name.jsx | #f57c00 | italic |
| entity.name.type.interface | #5e35b1 | bold italic |
| entity.name.type.alias | #5e35b1 | italic |
| entity.name.type.parameter | #0097a7 | italic |
| keyword.other.sql, keyword.other.DML.sql | #d32f2f | bold |
| entity.name.tag.yaml | #00838f | — |
| entity.name.section.group-title.ini | #d32f2f | bold |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #d32f2f | — |
| punctuation.section.embedded | #d32f2f | — |
| variable.parameter, meta.function.parameters, variable.parameter.function | #8e24aa | italic |
| variable.other.enummember | #8e24aa | — |
| keyword.type.ts, storage.type.ts, keyword.type.java, keyword.type.cpp | #8e24aa | bold italic |
| punctuation.definition.array, punctuation.definition.collection | #f57c00 | — |
| entity.name.namespace, entity.name.scope-resolution | #0097a7 | italic |
| keyword.control.async, keyword.control.await | #d32f2f | bold italic |
| storage.type.function.arrow | #d32f2f | — |
| keyword.control.flow, keyword.control.loop, keyword.control.conditional | #d32f2f | bold |
| keyword.getter, keyword.setter | #f57c00 | 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}!`;
}