monokai-light
Publisher: Ashley ChenThemes in package: 1
Monokai Light Mode, improved for myself :)
Monokai Light Mode, improved for myself :)
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, string.comment | #9f9f9f | italic |
| comments.block.preprocessor | #9f9f9f | |
| comment.block.documentation, comment.documentation | #50B100 | bold |
| constant, entity.name.constant, variable.other.constant, variable.language | #6c62e0 | — |
| entity, entity.name | #6c62e0 | — |
| variable.parameter.function | #24292e | |
| entity.name.tag | #00B0DE | — |
| keyword | #F92672 | italic |
| keyword.operator | — | |
| storage.type.function.arrow | — | |
| storage, storage.type | #F92672 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #24292e | |
| string, punctuation.definition.string, string punctuation.section.embedded source | #FF9600 | — |
| support | #00B0DE | — |
| support.type.property-name | — | italic |
| meta.property-name | #00B0DE | — |
| variable | #F25A00 | italic |
| variable.other | #24292e | |
| invalid.broken | #000000 | italic |
| invalid.deprecated | #000000 | italic |
| invalid.illegal | #000000 | italic |
| invalid.unimplemented | #000000 | italic |
| carriage-return | #fafbfc | italic underline |
| message.error | #000000 | italic |
| string source | #24292e | |
| string variable | #00B0DE | — |
| source.regexp, string.regexp | #F25A00 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repetition | #F25A00 | — |
| string.regexp constant.character.escape | #00B0DE | bold |
| support.constant | #00B0DE | — |
| support.variable | #00B0DE | — |
| meta.module-reference | #00B0DE | — |
| punctuation.definition.list.begin.markdown | #F25A00 | — |
| markup.heading, markup.heading entity.name | #F92672 | bold |
| markup.quote | #50B100 | — |
| markup.italic | #24292e | italic |
| markup.bold | #24292e | bold |
| markup.raw | #FF9600 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #F92672 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #50B100 | — |
| markup.changed, punctuation.definition.changed | #F25A00 | — |
| meta.diff.range | #6c62e0 | bold |
| meta.diff.header | #00B0DE | — |
| meta.separator | #00B0DE | bold |
| meta.output | #00B0DE | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #586069 | — |
| brackethighlighter.unmatched | #b31d28 | — |
| constant.other.reference.link, string.other.link | #00B0DE | underline |
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}!`;
}