Monocai Dark Theme
Publisher: Phil CraigThemes in package: 3
A dark theme inspired by Monokai Pro Spectrum for IntelliJ, which I had tweaked to my liking for Java and Go development.
A dark theme inspired by Monokai Pro Spectrum for IntelliJ, which I had tweaked to my liking for Java and Go development.
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 |
|---|---|---|
| constant.character, constant.other | #f69763 | — |
| — | #e5e3ec | — |
| variable.other.object.property.java | #f69763 | — |
| variable.other.enummember | #f69763 | — |
| variable.other.object.java | #f7f2ff | — |
| comment | #68666b | — |
| string | #fce35b | — |
| constant.numeric | #96be78 | — |
| constant.language | #96be78 | — |
| variable.language.this.java | #fc618c | — |
| variable.language.java | #fc618c | — |
| variable.other.definition.java | #6ebe7f | — |
| meta.definition.variable.java | #6ebe7f | — |
| variable | #f7f2ff | |
| storage.modifier.import.java | #5ad4e5 | — |
| storage.modifier.package.java | #5ad4e5 | — |
| meta.import.java entity.name.package.java | #5ad4e5 | — |
| meta.import.java entity.name.package | #5ad4e5 | — |
| meta.import.java entity.name.type.class.java | #6ebe7f | — |
| meta.import.java entity.name.class.java | #6ebe7f | — |
| keyword.control.import.java | #fc618c | — |
| keyword.other.import.java | #fc618c | — |
| entity.name.package.java | #5ad4e5 | — |
| entity.name.type.class.java | #6ebe7f | — |
| meta.import.java variable.other.readwrite.java, meta.import.java variable.other.java | #5ad4e5 | — |
| meta.import.java entity.name.type.java | #6ebe7f | — |
| meta.import.java support.type.java | #6ebe7f | — |
| keyword | #fc618c | — |
| storage | #fc618c | |
| storage.type.annotation.java | #6ebe7f | — |
| meta.declaration.annotation.java | #6ebe7f | — |
| storage.type.primitive.java | #fc618c | — |
| storage.type | #5ad4e5 | italic |
| entity.name.class | #6ebe7f | underline |
| entity.other.inherited-class | #5ad4e5 | italic underline |
| entity.name.function | #6ebe7f | |
| variable.parameter | #f7f2ff | italic |
| entity.name.tag | #ff9696 | |
| entity.other.attribute-name | #5ad4e5 | |
| support.function | #6ebe7f | |
| support.constant | #f69763 | |
| support.type, support.class | #5ad4e5 | italic |
| support.other.variable | — | |
| invalid | #fc618c | |
| invalid.deprecated | #afb9c3 | — |
| meta.diff, meta.diff.header | #555555 | — |
| markup.deleted | #ff9696 | — |
| markup.inserted | #96be78 | — |
| markup.changed | #ffc86e | — |
| markup.quote | #fce35b | — |
| markup.list | #96be78 | — |
| markup.italic | #5ad4e5 | italic |
| markup.bold | #5ad4e5 | — |
| markup.inline.raw | #96be78 | |
| markup.heading | #50b4be | — |
| markup.heading.setext | #50b4be | |
| markup.underline.link | #5ad4e5 | — |
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}!`;
}