MagicUser
Publisher: Bernardo PiresThemes in package: 60
MagicUser themes. Contains 60 themes for your VS Code editor. Semantic highlighting (light/dark themes).
MagicUser themes. Contains 60 themes for your VS Code editor. Semantic highlighting (light/dark themes).
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 |
|---|---|---|
| markup.bold, markup.deleted.git_gutter, markup.heading | — | bold |
| comment, entity.other.inherited-class.python, entity.other.inherited-class.ruby, markup.italic, string.quoted.docstring.multi.python | — | italic |
| markup.strikethrough | — | strikethrough |
| *url*, *link*, *uri* | — | underline |
| constant.other.class.php, constant.other.php, entity, entity.name.variable, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, markup.deleted.diff, markup.inserted.diff, markup.list, markup.quote, meta.attribute.python, meta.definition.variable.js.jsx, meta.diff.header.from-file, meta.diff.header.to-file, meta.embedded, meta.function-call.arguments.python, meta.function-call.c, meta.indexed-name.python, meta.jsx.children, meta.separator, meta.var.expr.js, source.groovy.embedded, source.php.embedded.line, source.php, storage.modifier.import.java, storage.modifier.package.java, string meta.image.inline.markdown, variable.other.property.js, variable.other.object.property.js, variable.other.constant.js.jsx, variable.parameter.js.jsx, variable.parameter, variable | #d8d8d8c8 | — |
| entity.name.function, keyword.control.import.include.php, keyword.other.special-method, meta.function-call, meta.include.php, support.function | #48e148c8 | — |
| comment, string.quoted.docstring.multi.python, token.info-token | #a3a3a3c8 | — |
| entity.name.namespace, entity.name.type.namespace.cs, markup.bold, markup.italic, markup.underline.link.markdown, markup.underline, meta.at-rule.header.css, meta.embedded.assembly, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, string.template.js, string | #00d8ffc8 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #00c3ffc8 | — |
| support.variable | #8282ffc8 | — |
| variable.other.object.cs, variable.other.object.java, variable.other.object.js, variable.other.object.ts | #00a3ffc8 | — |
| heading.1.markdown entity.name.section.markdown, heading.2.markdown entity.name.section.markdown, heading.3.markdown entity.name.section.markdown, heading.4.markdown entity.name.section.markdown, heading.5.markdown entity.name.section.markdown, heading.6.markdown entity.name.section.markdown, punctuation.definition.variable.php, support.type.property-name, support.type.vendored.property-name.css, variable.language.special.self.python, variable.language.this.js, variable.language.this.php, variable.language.this.ts, variable.other.global.php, variable.other.global.safer.php, variable.other.php, variable.parameter.function.language.special.self.python | #0097ffc8 | — |
| constant.character, constant.language, constant.numeric, constant.other.placeholder.c, entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.name.type, entity.name, entity.other.inherited-class.python, entity.other.inherited-class.ruby, constant.language.python, markup.inline.raw, storage.type.java, support.class.component.js.jsx, support.class, support.constant, support.type, variable.language.wildcard.java | #ffa300c8 | — |
| constant.other.color, keyword.other.unit | #00a3a3c8 | — |
| support.variable.magic.python | #ff00b3c8 | bold |
| punctuation.definition.block.js.jsx, entity.name.tag.js.jsx, meta.tag.without-attributes.js.jsx, keyword.other.important.css | #f100f1c8 | — |
| declaration.tag, entity.name.tag.css, entity.name.tag.html, entity.name.tag, entity.other.inherited-class, keyword.control, keyword.operator.alignas, keyword.operator.alignof, keyword.operator.assignment.python, keyword.operator.cast, keyword.operator.class.php, keyword.operator.class, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.new, keyword.operator.sizeof, keyword.operator.typeid, keyword.operator.wordlike, keyword.operator, keyword.other.special-method.dockerfile, keyword, markup.deleted.git_gutter, markup.heading, meta.tag, punctuation.accessor.cs, punctuation.accessor.js, punctuation.accessor.ts, punctuation.definition.link.description.begin.markdown, punctuation.definition.link.description.end.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.metadata.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.section.case-statement.js, punctuation.definition.section.case-statement.ts, punctuation.definition.tag, punctuation.section.class.begin.python, punctuation.section.function.begin.python, punctuation.separator.key-value.html, punctuation.separator, punctuation.terminator, storage.type, storage, string.other.link, support.other.variable | #d372ffc8 | — |
| variable.css, variable.argument.css, variable.scss, meta.definition.variable.scss | #f18282c8 | — |
| entity.other.attribute-name | #ffa3a3c8 | — |
| variable.parameter.keyframe-list.css | #00c8c8c8 | — |
| string.regexp | #cbff88c8 | — |
| constant.character.escape, entity.other.attribute-name.placeholder.css | #b9c455c8 | — |
| support.type.primitive.ts | #00a3a3c8 | |
| invalid, token.error-token | #ff4848c8 | — |
| invalid.deprecated | #ff4888c8 | bold underline |
| source.json meta.structure.dictionary.json support.type.property-name.json | #d8d8d8c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f1a3ffc8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffa348c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #ffd372c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f1f188c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #a3a3ffc8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #78ff78c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #48d3d3c8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f1f1f1c8 | — |
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}!`;
}