Material UI
Publisher: nxt3Themes in package: 1
VS Code theme ported from material-design-syntax on Atom
VS Code theme ported from material-design-syntax on Atom
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, unused.comment, wildcard.comment | #78909c | italic |
| comment.block.documentation.js storage.type.class.doc, comment.block.documentation.js storage.type.class.jsdoc | #78909c | bold italic |
| storage, storage.modifier, source.ts storage.type, meta.var.expr storage.type, meta.method.declaration meta.var.expr storage.type, meta.class meta.method.declaration meta.var.expr storage.type, meta.arrow storage.type.function.arrow, keyword.other.special-method, punctuation.definition.heading, punctuation.definition.identity, support.function.any-method, entity.name.section, entity.other.attribute-name.id, meta.attribute.id.html entity.other.attribute-name.html, meta.require, markup.heading, markup.punctuation.definition.heading, variable.other.readwrite.alias.ts, meta.structure.dictionary.json string.quoted.double.json, meta.path.search punctuation.separator | #64b5f6 | — |
| meta.path.basename.search, meta.class meta.method.declaration storage.type.property | #64b5f6 | bold |
| meta.class meta.method.declaration storage.type | #64b5f6 | bold underline |
| variable, entity.other.inherited-class, constant.language.json, support.property-name.css, constant.numeric.css | #ffffff | — |
| entity.name.function, entity.name.type.class, entity.name.type.interface | #ffffff | bold |
| meta.arrow variable.parameter | #FFFFFF | italic |
| meta.method.declaration meta.definition.method entity.name.function, meta.function meta.definition.function entity.name.function | #FFFFFF | bold underline |
| keyword.control, keyword.operator, constant.other.symbol, markup.raw.inline, markup.heading, markup.inserted, punctuation.method-parameters.begin.java, punctuation.method-parameters.end.java | #00e676 | — |
| keyword.operator.type.annotation, storage.type.annotation, punctuation.definition.separator.list.comma, punctuation.definition.separator.delimiter, source.ts storage.type.class, source.ts storage.type.interface, meta.structure.dictionary.value.json string.quoted.double.json punctuation.definition.string.begin.json, meta.structure.dictionary.value.json string.quoted.double.json punctuation.definition.string.end.json, meta.resultLinePrefix.lineNumber.search, meta.resultLinePrefix.matchLinePrefix.search punctuation.separator | #cfd8dc | — |
| string, constant, keyword.other.unit, punctuation.definition.string, punctuation.definition.variable, punctuation.definition.parameters, entity.other.attribute-name, meta.link, markup.quote | #fff176 | — |
| markup.bold | #fff176 | bold |
| storage.type.primitive, variable.interpolation, string.other.link, support.type.primitive, meta.object-literal.key, markup.deleted, markup.list, storage.type.primitive.ts, meta.structure.dictionary.value.json meta.structure.array.json string.quoted.double.json | #ef5350 | — |
| storage.type, entity.name.type | #ef5350 | bold |
| entity.name.tag | #ef5350 | underline |
| variable.language | #ec407a | — |
| keyword, meta.selector, markup.changed, meta.tag.doctype.html | #b388ff | — |
| punctuation.definition.italic, markup.italic | #b388ff | italic |
| variable.object, variable.other.object.ts, variable.other.object.property.ts, meta.attribute.class.html entity.other.attribute-name.html, meta.path.dirname.search | #8c9eff | — |
| constant.character.escape, constant.other.color, string.regexp, punctuation.definition.array, punctuation.definition.template-expression, support.function, meta.brace.round, meta.brace.square, meta.brace.curly, meta.separator.key-value, meta.attribute.unrecognized entity.other.attribute-name.html, entity.other.attribute-name.html, source.css punctuation.delimiter | #26c6da | — |
| source.css keyword.other.unit | #1de9b6 | — |
| constant.language.null, constant.language.undefined, punctuation.definition.bold, support.class, support.type.builtin | #ff8a65 | — |
| meta.separator, variable.parameter.function, variable.object.property.ts | #eeeeee | — |
| storage.type.class.todo, storage.type.class.fixme, storage.type.class.changed, storage.type.class.xxx, storage.type.class.idea, storage.type.class.hack, storage.type.class.note, storage.type.class.review, storage.type.class.nb, storage.type.class.bug, storage.type.class.question, storage.type.class.combak, storage.type.class.temp, storage.type.class.debug, storage.type.class.optimize | #ff4081 | bold italic |
| invalid.illegal, invalid.illegal.scss | #ef5350 | — |
| #eeeeee | — |
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}!`;
}