Material Theme Kit
Publisher: MicrosoftThemes in package: 3
Material themes for VS Code. Based on the TextMate themes.
Material themes for VS Code. Based on the TextMate themes.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #90A4AE | — |
| variable.parameter.function | #afb8b8ff | — |
| comment, punctuation.definition.comment | #B0BEC5 | — |
| text, source | #8796b0ff | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #99b89dff | — |
| none | #99b89dff | — |
| keyword.operator | #39ADB5 | — |
| keyword | #945eb8ff | — |
| variable | #FF5370 | — |
| entity.name.function, meta.require, support.function.any-method, meta.function-call, support.function, keyword.other.special-method, meta.block-level, meta.function-call.method.with-arguments variable.function | #6182b8ff | — |
| support.class, entity.name.class, entity.name.type.class, variable.language.this.js | #EBB060 | — |
| meta.class | #b8b8b8ff | — |
| keyword.other.special-method | #6182b8ff | — |
| storage | #945eb8ff | — |
| support.function, keyword.operator, constant.other.color, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, meta.function-call meta.function-call.arguments variable.parameter.function, text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #3fb3a8ff | — |
| string, constant.other.symbol, entity.other.inherited-class | #91b859ff | — |
| constant.numeric | #E53935 | — |
| none | #E53935 | — |
| meta.function-call meta.function-call.arguments | #C3E88D | — |
| none | #E53935 | — |
| constant | #FF9900 | — |
| entity.name.tag | #FF5370 | — |
| entity.other.attribute-name | #FFA000 | — |
| entity.other.attribute-name.id | #7C4DFF | — |
| meta.selector | #945eb8ff | — |
| none | #E53935 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #4f99b8ff | |
| keyword.other.unit | #E53935 | — |
| markup.bold, punctuation.definition.bold | #E8BB66 | bold |
| markup.italic, punctuation.definition.italic | #945eb8ff | italic |
| markup.raw.inline | #B8D337 | — |
| string.other.link, punctuation.definition.string.end.markdown | #FF5370 | — |
| meta.link | #E53935 | — |
| markup.list | #FF5370 | — |
| markup.quote | #E53935 | — |
| meta.separator | #99b89dff | — |
| markup.inserted | #FFC000 | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #945eb8ff | — |
| constant.other.color, meta.property-value support.constant.named-color.css | #A2C35F | — |
| string.regexp | #3fb3a8ff | — |
| constant.character.escape | #E53935 | — |
| punctuation.section.embedded, variable.interpolation | #b81511ff | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| sublimelinter.annotations | #811625ff | — |
| sublimelinter.outline.illegal | #FFFFFF | — |
| sublimelinter.underline.illegal | #FFFFFF | — |
| sublimelinter.outline.warning | #FFFFFF | — |
| sublimelinter.underline.warning | — | — |
| sublimelinter.outline.violation | #FFFFFF | — |
| sublimelinter.underline.violation | #FFFFFF | — |
| sublimelinter.mark.error | #b84224ff | — |
| sublimelinter.mark.warning | #b89617ff | — |
| sublimelinter.gutter-mark | #b8b8b8ff | — |
| markup.deleted.git_gutter | #EC5F67 | — |
| markup.changed.git_gutter | #FFCF1B | — |
| markup.inserted.git_gutter | #C3E88D | — |
| markup.ignored.git_gutter | #546E7A | — |
| comment.line.double-slash punctuation.definition.comment, meta.structure.array comment.block.json punctuation.definition.comment | #E1E4E6 | — |
| text.find-in-files entity.name.filename.find-in-files | #b8aa6fff | — |
| support.type.property-name | #3fb3a8ff | — |
| meta.property-list meta.property-name | #3fb3a8ff | — |
| source.css keyword.other.unit, source.less keyword.other.unit, source.scss keyword.other.unit, source.sass keyword.other.unit | #FB8C00 | — |
| entity.other.less.mixin | #7c4dff | — |
| source.less parameter.less variable.parameter.misc.css | #7986CB | — |
| source.less meta.property-value.css string.quoted.double.css comment markup.raw | #C3E88D | — |
| constant.other.color.rgb-value punctuation.definition.constant | #E53935 | — |
| meta.attribute-selector string.unquoted.attribute-value | #91b859ff | — |
| meta.attribute-selector entity.other.attribute-name.attribute | #E53935 | — |
| source.gulpfile.js meta.group.braces.round meta.group.braces.curly meta.group.braces.round meta.function-call.with-arguments.js variable.function.js, source.gulpfile.js meta.group.braces.round meta.group.braces.curly variable.function.js | #7986CB | — |
| meta.function-call support.type | #FFEB95 | — |
| source.python meta.function-call.arguments.python | #7986CB | — |
| embedding.php entity.name.tag | #90A4AE | — |
| source.go meta.function-call.go | #90A4AE | — |
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}!`;
}