Midnight Coven: Gothic Theme Collection
Publisher: DiyllanThemes in package: 21
A collection of dark, gothic-inspired themes for nocturnal coders
A collection of dark, gothic-inspired themes for nocturnal coders
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 |
|---|---|---|
| support.type.property-name.json | #f5f5f0 | — |
| comment, punctuation.definition.comment | #8b7355 | italic |
| string, constant.other.symbol | #b5e07a | — |
| string.regexp | #d16969 | — |
| constant.numeric | #b5cea8 | — |
| constant.language | #569cd6 | — |
| constant.character, constant.escape | #4fc1ff | — |
| variable | #f5f5f0 | — |
| variable.parameter, variable.other | #f5f5f0 | — |
| keyword, keyword.control, keyword.operator, storage.modifier | #569cd6 | — |
| keyword.operator | #d4d4d4 | — |
| entity.name.function, meta.function-call, support.function | #dcdcaa | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type | #4ec9b0 | — |
| storage.type | #569cd6 | — |
| entity.name.tag, punctuation.definition.tag | #569cd6 | — |
| entity.other.attribute-name | #9cdcfe | — |
| support.type.property-name.css | #9cdcfe | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #d7ba7d | — |
| variable.import.parameter.js, variable.other.class.js | #f5f5f0 | — |
| keyword.other.special-method | #dcdcaa | — |
| meta.block variable.other | #f5f5f0 | — |
| support.other.variable | #f5f5f0 | — |
| punctuation.definition.parameters.begin.bracket.round.scss | #d4d4d4 | — |
| string.quoted.template | #ce9178 | — |
| meta.template.expression | #d4d4d4 | — |
| entity.name.tag.yaml | #f5f5f0 | — |
| source.yaml string.unquoted | #d4d4d4 | — |
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}!`;
}