Sharp Monokai Dark Theme
Publisher: Mustafa El-gamlThemes in package: 2
Sharp Monokai dark theme, in two grounds: the original and Black.
Sharp Monokai dark theme, in two grounds: the original and Black.
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 |
|---|---|---|
| — | #F6F6F6 | — |
| comment, string.comment | #5c6370 | italic |
| string | #FFD945 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #FF3F4F | — |
| meta.string.template | #E5A422 | — |
| meta | #f8f8f0 | — |
| constant.numeric | #E373CE | — |
| string.embedded.begin, string.embedded.end | #E373CE | — |
| string.embedded | #98c379 | — |
| constant.language | #E373CE | — |
| constant.character, constant.other | #E373CE | — |
| variable.language | #FF3F4F | italic |
| variable.readwrite, variable.readwrite.other.block | #00a0e4 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #FF3F4F | — |
| keyword.operator | #FF3F4F | — |
| storage | #FF3F4F | italic |
| storage.type | #19D1E5 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #00a0e4 | — |
| meta.block.switch.c, variable.other.object | #00a0e4 | — |
| variable.other.property, variable.other.block | #f8f8f0 | — |
| entity.other.inherited-class | #81F900 | — |
| entity.name.function, support.function | #81F900 | — |
| support.function | #19D1E5 | — |
| variable.parameter | #FF9700 | italic |
| entity.name.function-call | #f8f8f0 | — |
| function.support.builtin, function.support.core | #81F900 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #FF3F4F | — |
| entity.name.tag.class, entity.name.tag.id | #19D1E5 | — |
| entity.other.attribute-name | #81F900 | — |
| support.constant | #19D1E5 | — |
| support.type, support.variable | #19D1E5 | — |
| support.dictionary.json | #19D1E5 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #6AEBF7 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98c379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #e5c07b | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| constant.numeric.css, constant.numeric.scss, constant.numeric.less, constant.numeric.sass | #E373CE | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56b6c2 | — |
| string.detected-link | #00a0e4 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #E542FF | — |
| markup.inserted | #e5c07b | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | |
| markup.underline.link.markdown | #00a0e4 | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #919191 | |
| markup.heading.markdown | #FF3F4F | bold |
| punctuation.definition.heading.markdown | #919191 | |
| markup.quote.markdown | #6FD80D | — |
| meta.separator.markdown | #E542FF | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56b6c2 | — |
| punctuation.definition.list_item.markdown | #ffffff | bold |
| variable.other.jsdoc | #9496a5 | — |
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 |
|---|---|---|
| — | #F6F6F6 | — |
| comment, string.comment | #5c6370 | italic |
| string | #FFD945 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #FF3F4F | — |
| meta.string.template | #E5A422 | — |
| meta | #f8f8f0 | — |
| constant.numeric | #E373CE | — |
| string.embedded.begin, string.embedded.end | #E373CE | — |
| string.embedded | #98c379 | — |
| constant.language | #E373CE | — |
| constant.character, constant.other | #E373CE | — |
| variable.language | #FF3F4F | italic |
| variable.readwrite, variable.readwrite.other.block | #00a0e4 | — |
| keyword, keyword.operator.logical, keyword.operator.constructor | #FF3F4F | — |
| keyword.operator | #FF3F4F | — |
| storage | #FF3F4F | italic |
| storage.type | #19D1E5 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #00a0e4 | — |
| meta.block.switch.c, variable.other.object | #00a0e4 | — |
| variable.other.property, variable.other.block | #f8f8f0 | — |
| entity.other.inherited-class | #81F900 | — |
| entity.name.function, support.function | #81F900 | — |
| support.function | #19D1E5 | — |
| variable.parameter | #FF9700 | italic |
| entity.name.function-call | #f8f8f0 | — |
| function.support.builtin, function.support.core | #81F900 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #FF3F4F | — |
| entity.name.tag.class, entity.name.tag.id | #19D1E5 | — |
| entity.other.attribute-name | #81F900 | — |
| support.constant | #19D1E5 | — |
| support.type, support.variable | #19D1E5 | — |
| support.dictionary.json | #19D1E5 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #6AEBF7 | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #98c379 | — |
| variable.css, variable.scss, variable.less, variable.sass | #56b6c2 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string | #e5c07b | — |
| unit.css, unit.scss, unit.less, unit.sass | #c678dd | — |
| constant.numeric.css, constant.numeric.scss, constant.numeric.less, constant.numeric.sass | #E373CE | — |
| function.css, function.scss, function.less, function.sass | #56b6c2 | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | — |
| invalid.deprecated | #F8F8F0 | — |
| structure.dictionary.property-name.json | #56b6c2 | — |
| string.detected-link | #00a0e4 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #E542FF | — |
| markup.inserted | #e5c07b | — |
| markup.changed | #e5c07b | — |
| constant.numeric.line-number.find-in-files - match | #56b6c2A0 | — |
| entity.name.filename.find-in-files | #e5c07b | — |
| markup.italic, markup.italic.markdown | — | italic |
| punctuation.definition.italic.markdown | #696969 | |
| markup.underline.link.markdown | #00a0e4 | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #919191 | |
| markup.heading.markdown | #FF3F4F | bold |
| punctuation.definition.heading.markdown | #919191 | |
| markup.quote.markdown | #6FD80D | — |
| meta.separator.markdown | #E542FF | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown | #56b6c2 | — |
| punctuation.definition.list_item.markdown | #ffffff | bold |
| variable.other.jsdoc | #9496a5 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php | #FF3F4F | — |
| variable.other.php, variable.other.global.php, variable.other.global.safer.php | #00a0e4 | — |
| punctuation.definition.variable.php, variable.other.php punctuation.definition.variable | #FF3F4F | — |
| variable.language.this.php, variable.language.php, storage.type.php.this, keyword.other.class.php | #FF3F4F | italic |
| support.function.construct.php, support.function.construct.output.php, keyword.control.php | #FF3F4F | italic |
| support.function.php, support.function.array.php, support.function.string.php | #19D1E5 | — |
| entity.name.function.php, meta.function.php entity.name.function | #81F900 | — |
| meta.function-call.php, meta.function-call.object.php, meta.function-call.static.php | #81F900 | — |
| storage.modifier.php, storage.type.modifier.php | #19D1E5 | italic |
| storage.type.php, storage.type.function.php, storage.type.class.php, meta.function.parameters.php storage.type.php, meta.function.return-type.php storage.type.php | #19D1E5 | italic |
| entity.name.type.class.php, entity.name.type.interface.php, entity.name.type.trait.php, entity.name.type.enum.php, support.class.php | #00a0e4 | — |
| entity.other.inherited-class.php, meta.other.inherited-class.php entity.name.type | #81F900 | italic |
| keyword.other.namespace.php, keyword.other.use.php, keyword.other.use-as.php | #FF3F4F | italic |
| entity.name.type.namespace.php, support.other.namespace.php, support.other.namespace.use.php, support.other.namespace.use-as.php | #00a0e4 | — |
| keyword.operator.class.php, keyword.operator.nullsafe.php, punctuation.separator.scope-resolution.php, keyword.operator.scope-resolution.php | #FF3F4F | — |
| variable.other.property.php, meta.function-call.object.php variable.other.property | #f8f8f0 | — |
| constant.other.php, constant.other.class.php, support.constant.core.php, support.constant.std.php, support.constant.ext.php | #E373CE | — |
| constant.language.php | #E373CE | italic |
| variable.other.parameter.php, meta.function.parameters.php variable.other.php | #FF9700 | italic |
| string.unquoted.heredoc.php, string.unquoted.nowdoc.php | #FFD945 | — |
| keyword.operator.heredoc.php, keyword.operator.nowdoc.php, punctuation.definition.string.begin.php, punctuation.definition.string.end.php | #FF3F4F | — |
| string.quoted.double.php variable.other.php, string.unquoted.heredoc.php variable.other.php, meta.string-contents.quoted.double.php variable.other.php | #00a0e4 | — |
| constant.character.escape.php | #E373CE | — |
| meta.attribute.php, support.attribute.php, punctuation.definition.attribute.php | #81F900 | — |
| comment.block.documentation.phpdoc.php, comment.block.documentation.php | #5c6370 | italic |
| keyword.other.phpdoc.php, storage.type.class.phpdoc.php | #81F900 | italic |
| entity.name.type.phpdoc.php, support.class.php.phpdoc, variable.other.phpdoc.php | #19D1E5 | — |
| keyword.operator.logical.php, keyword.operator.comparison.php, keyword.operator.arithmetic.php, keyword.operator.assignment.php, keyword.operator.string.php, keyword.operator.error-control.php | #FF3F4F | — |
| keyword.operator.type.php | #19D1E5 | italic |
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}!`;
}