monokai-darker
Publisher: bouscaaThemes in package: 1
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 | #8C8C8C | — |
| string | #FFEE99 | — |
| constant.numeric | #FF80F4 | — |
| constant.language | #FF80F4 | — |
| constant.character, constant.other | #FF80F4 | — |
| variable | — | |
| keyword | #F92672 | — |
| storage | #F92672 | |
| storage.type | #66D9EF | italic |
| entity.name.class | #A6E22E | underline |
| entity.other.inherited-class | #A6E22E | italic underline |
| entity.name.function | #A6E22E | |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type, support.class | #66D9EF | italic |
| support.other.variable | — | |
| support.other.namespace, entity.name.type.namespace | #FFB2F9 | — |
| support.other.namespace.use-as.php | #66D9EF | — |
| variable.language.namespace.php | #D66990 | — |
| punctuation.separator.inheritance.php | #F92672 | — |
| support.function.misc.css, support.constant.property-value.css, support.constant.font-name.css | #FFEE99 | — |
| meta.tag.template.value.twig, meta.tag.template.block.twig | #CD5AC5 | — |
| keyword.control.twig | #E05D8C | — |
| variable.other.twig | #E5A5E0 | — |
| variable.other.property.twig | #FFE1FC | — |
| constant.language.twig | #FFD2A6 | — |
| constant.numeric.twig | #FFD0FB | — |
| support.function.twig | #90E7F7 | — |
| meta.function-call.other.twig | #FAB85A | — |
| meta.function-call.twig | #FAB85A | — |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| text source | — | — |
| meta.diff, meta.diff.header | #E0EDDD | bold |
| markup.deleted | #D3201F | |
| markup.changed | #BF3904 | |
| markup.inserted | #60cf30 | — |
| meta.diff, meta.diff.range | #3bc0f0 | — |
| markup.heading.markdown, markup.heading.1.markdown, markup.heading.2.markdown | #A6E22E | — |
| markup.bold.markdown | #F8F8F2 | bold |
| markup.italic.markdown | #F8F8F2 | italic |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.raw.markdown | #D3201F | — |
| markup.list.unnumbered.markdown | #FF80F4 | — |
| markup.list.numbered.markdown | #FF80F4 | — |
| markup.raw.block.markdown, markup.raw.inline.markdown | #FFEE99 | — |
| markup.quote.markdown, punctuation.definition.blockquote.markdown | #6C71C4 | — |
| meta.separator.markdown | #FF80F4 | — |
| meta.image.inline.markdown, markup.underline.link.markdown | #8C8C8C | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #A6E22E | — |
| punctuation.definition.link.markdown | #8C8C8C | — |
| punctuation.definition.metadata.markdown | #8C8C8C | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.constant.markdown | #8C8C8C | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #F8F8F2 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}