MonoCraft
Publisher: cdzttThemes in package: 1
Dark color theme and Chinese / English translator
Dark color theme and Chinese / English translator
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 | #656262 | — |
| source, source.css, variable.other, variable.language, string.unquoted, meta.embedded, meta.brace, meta.delimiter, meta.property-value.css, punctuation.separator, punctuation.terminator, punctuation.destructuring, text.html.markdown, text.html.derivative, JSXNested, text.html.vue-html, support.type.property-name | #ccc8c8 | — |
| keyword, keyword.other, storage.type, storage.type.rust, storage.modifier, meta.brace.square, punctuation.brackets.square.rust, punctuation.definition.binding-pattern.array, keyword.operator.new, keyword.control.module, keyword.control.unit.css, keyword.control.anchor.regexp, keyword.control.import, keyword.control.from, keyword.operator.existential, keyword.operator.typeof, keyword.control.export, keyword.control.as, keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.nullcoalesce, keyword.operator.c, keyword.operator.sizeof | #969036 | — |
| keyword.operator.ternary, keyword.operator.borrow.and.rust, keyword.generator.asterisk | #d1c11a | — |
| keyword.control, keyword.operator.of, keyword.operator.in, keyword.operator.expression.of | #a87bc8 | — |
| keyword.operator, punctuation.brackets.curly.rust, punctuation.brackets.round.rust, punctuation.brackets.angle.rust, punctuation.section, punctuation.bracket, punctuation.definition.parameters, punctuation.definition.template-expression, punctuation.accessor, meta.brace.curly, meta.brace.round, meta.function.js, meta.function.method, meta.method-call.with-arguments, entity.quasi.element.js, punctuation.definition.arguments, punctuation.parenthesis, punctuation.definition.begin.bracket, punctuation.definition.end.bracket, meta.function.arrow.js, punctuation.separator.key-value, meta.delimiter.comma.js, punctuation.terminator.rule, punctuation.definition.tag, punctuation.definition.entity, punctuation.definition.block, meta.method-call.without-arguments, punctuation.definition.interpolation, punctuation.quasi.element, punctuation.definition.typeparameters, punctuation.terminator.statement, storage.type.class.jsdoc, entity.name.type.instance.jsdoc, variable.other.jsdoc, source.css-ignored-vscode, source.js-ignored-vscode, punctuation.definition.binding-pattern.object, punctuation.separator.namespace, punctuation.separator.pointer-access.c, variable.other.enummember.c, punctuation.separator.delimiter.c, punctuation.separator.dot-access.c | #979494 | — |
| string, punctuation.definition.string, punctuation.definition.quasi, string.quoted.double.json | #b68f65 | — |
| constant.numeric | #e9842b | — |
| support.constant, constant.language, constant.character, constant.other | #a26025 | — |
| entity.name.function, meta.function-call.generic, support.function | #7bc9df | — |
| entity.name.function.preprocessor.c | #8ca9b1 | — |
| support.type, entity.name.type, entity.name.namespace, entity.name.scope-resolution, variable.language.this | #6969b3 | — |
| entity.name.tag | #6fa42d | — |
| support.class, entity.name.class, variable.other.class | #148b5a | — |
| entity.other.attribute-name, punctuation.attribute-shorthand, punctuation.section.embedded, punctuation.definition.interpolation.begin.html, punctuation.definition.interpolation.end.html | #4b89c6 | — |
| invalid | #F44747 | — |
| invalid.deprecated | #F44747 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #dd83d5 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #e9842b | — |
| constant.numeric.line-number.find-in-files - match | #6969b3A0 | — |
| entity.name.filename.find-in-files | #e9842b | — |
| markup.quote | #dd83d5 | — |
| markup.list | #e9842b | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #e9842b | — |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #e2e22e | — |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown, string.other.link.description.markdown | #AE81FF | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #e9842b | — |
| markup.italic.markdown | — | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #ccc8c8 | — |
| punctuation.definition.list.begin.markdown | #A6E22E | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| markup.fenced_code.block.markdown | #6fa42d | — |
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}!`;
}