Villain MF DOOM Theme
Publisher: lordcarbinThemes in package: 1
A gritty, dark, villainous VS Code theme inspired by MF DOOM’s mask and mystique.
A gritty, dark, villainous VS Code theme inspired by MF DOOM’s mask and mystique.
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #5e5eff | — |
| comment | #808080 | — |
| constant.language | #8abeb7 | — |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #b5cea8 | — |
| constant.regexp | #ff79c6 | — |
| entity.name.tag | #a9a1e1 | — |
| entity.name.tag.css | #d7ba7d | — |
| entity.other.attribute-name | #9cdcfe | — |
| source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name | #d7ba7d | — |
| invalid | #d72638 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #a074c4 | — |
| markup.italic | — | italic |
| markup.inserted | #98c379 | — |
| markup.deleted | #d72638 | — |
| markup.changed | #a074c4 | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #6b6b6b | — |
| meta.preprocessor | #a074c4 | — |
| meta.preprocessor.string | #ce9178 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| storage | #a074c4 | — |
| storage.type | #a074c4 | — |
| storage.modifier | #a074c4 | — |
| string | #98c379 | — |
| string.tag | #98c379 | — |
| string.value | #98c379 | — |
| string.regexp | #ff5555 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #a074c4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #d4d4d4 | — |
| keyword | #a074c4 | — |
| keyword.control | #c586c0 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #c586c0 | — |
| keyword.other.unit | #b5cea8 | — |
| support.function.git-rebase | #d4d4d4 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language.this | #a074c4 | — |
| entity.name.function, support.function, support.constant.handlebars | #e0c87a | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, source.cs storage.type | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control | #c586c0 | — |
| variable, meta.definition.variable.name, support.variable | #9CDCFE | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #9CDCFE | — |
| 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 | #CE9178 | — |
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}!`;
}