Monokai Rose
Publisher: David FedericoThemes in package: 1
A beautiful dark theme that brings warmth and elegance to your VS Code experience with a sophisticated rose and purple color palette.
A beautiful dark theme that brings warmth and elegance to your VS Code experience with a sophisticated rose and purple color palette.
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 | #A68FB3 | italic |
| keyword, storage.type, storage.modifier | #E1B8E4 | bold |
| constant.numeric, constant.language | #E6B89C | — |
| string, punctuation.definition.string | #C8E6C8 | — |
| string.template, punctuation.definition.string.template | #B8E6C8 | — |
| meta.template.expression, punctuation.definition.template-expression | #E6B89C | — |
| variable, variable.other, variable.language, variable.argument | #E8E4F0 | — |
| entity.name.function, entity.name.method | #D580E6 | bold |
| variable.function, meta.function-call | #A1C4E6 | |
| support.function | #A1C4E6 | italic |
| entity.name.type, support.type, entity.other.inherited-class | #A1C4E6 | bold |
| storage.modifier.import, storage.modifier.export | #E1B8E4 | bold |
| punctuation.separator, punctuation.terminator | #C4A1D6 | — |
| punctuation.definition.parameters, meta.brace.round | #D4A1D6 | — |
| punctuation.definition.array, meta.brace.square | #A1C4D6 | — |
| punctuation.definition.block, meta.brace.curly | #C4A1D6 | — |
| constant, constant.character.escape | #E1B8E4 | bold |
| keyword.operator, keyword.separator | #C4A1D6 | — |
| entity.name.variable | #E8E4F0 | — |
| invalid, invalid.deprecated | #E6A3C7 | — |
| support.type.property-name.css, meta.property-name.css, support.type.property-name.scss, meta.property-name.scss | #7BB7F0 | bold |
| support.constant.property-value.css, meta.property-value.css, constant.numeric.css, support.constant.property-value.scss, meta.property-value.scss | #E6B89C | — |
| keyword.control.at-rule.css, keyword.control.at-rule.scss, punctuation.definition.keyword.css, punctuation.definition.keyword.scss | #8FBC8F | bold |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #D580E6 | |
| keyword.other.unit.css, keyword.other.unit.scss | #DDB26F | — |
| support.function.css, support.function.scss | #A1C4E6 | italic |
| entity.other.attribute-name.class.css | #B8D4E6 | — |
| entity.name.tag, punctuation.definition.tag | #A1C4E6 | bold |
| entity.other.attribute-name | #C4A1D6 | italic |
| string.quoted.double.html, string.quoted.single.html | #C8E6C8 | — |
| constant.character.entity.html | #E6B89C | — |
| meta.object-literal.key, meta.object-literal.key.js, meta.object-literal.key.ts, variable.other.object.property | #B8D4E6 | — |
| variable.other.constant.js, variable.other.constant.ts | #E6B89C | bold |
| punctuation.decorator, meta.decorator | #DDB26F | — |
| support.type.property-name.json | #A1C4E6 | — |
| markup.heading, markup.bold | #E1B8E4 | bold |
| markup.italic | #D580E6 | italic |
| markup.underline.link | #A1C4E6 | underline |
| markup.inline.raw, markup.fenced_code.block | #E6B89C | |
| markup.quote | #A68FB3 | italic |
| support.function.builtin.python | #A1C4E6 | italic |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #DDB26F | — |
| string.quoted.docstring | #A68FB3 | italic |
| string.regexp | #DDB26F | — |
| constant.character.escape | #E6B89C | bold |
| punctuation.definition.string | #C8E6C8 | — |
| entity.name.tag | #A1C4E6 | — |
| entity.other.attribute-name | #C4A1D6 | — |
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}!`;
}