Microsoft Graph Theme
Publisher: Joe MartellaThemes in package: 1
A Microsoft Graph theme for VS Code.
A Microsoft Graph theme for VS Code.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #ffffff | — |
| comment, comment punctuation | #9683A1 | |
| comment.block.preprocessor | #9683A1 | |
| invalid.deprecated | — | italic underline |
| invalid.illegal | #060d31 | |
| keyword.operator | #7FD079 | |
| keyword, storage | #9e79d0 | |
| storage.type, support.type | #B6E0F4 | |
| entity.name.function, support.function, entity | #9e79d0 | |
| entity.name.type, entity.other.inherited-class, support.class | #6DC2E9 | bold |
| entity.name.exception | #06cdcd | — |
| entity.name.section, entity.name.section.markdown | #cccccc | bold |
| constant.numeric, constant | #CA79D0 | |
| punctuation | #6DC2E9 | |
| constant.character, string | #4398f0 | |
| string punctuation | #1965b3 | |
| constant.character.escape | — | bold |
| constant.other.symbol | — | bold |
| string source, text source | #bcbcbc | — |
| meta.tag.sgml.doctype | #808080 | |
| , text.html.markdown meta.disable-markdown entity.name.tag, , text.html.markdown meta.disable-markdown meta.tag, , text.html.markdown meta.disable-markdown meta.tag punctuation.definition.tag, , text.html.markdown meta.disable-markdown meta.tag string.quoted meta.string-contents, , text.html.markdown meta.disable-markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown meta.disable-markdown meta.tag entity.other.attribute-name, , text.html.markdown meta.paragraph.markdown entity.name.tag, , text.html.markdown meta.paragraph.markdown meta.tag, , text.html.markdown meta.paragraph.markdown meta.tag punctuation.definition.tag, , text.html.markdown meta.paragraph.markdown meta.tag string.quoted meta.string-contents, , text.html.markdown meta.paragraph.markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown meta.paragraph.markdown meta.tag entity.other.attribute-name, , text.html.markdown markup.list entity.name.tag, , text.html.markdown markup.list meta.tag, , text.html.markdown markup.list meta.tag punctuation.definition.tag, , text.html.markdown markup.list meta.tag string.quoted meta.string-contents, , text.html.markdown markup.list meta.tag string.quoted punctuation.definition.string, , text.html.markdown markup.list meta.tag entity.other.attribute-name, | #555555 | — |
| source.smarty.embedded.html | #888888 | — |
| meta.tag string punctuation, punctuation.definition.entity.html | #6e5330 | — |
| punctuation.definition.tag | #6e5330 | — |
| constant.character.entity | #926730 | — |
| entity.other.attribute-name, text.html.markdown meta.disable-markdown meta.tag.block.any.html string.quoted.double.html, text.html.markdown meta.disable-markdown meta.tag.block.any.html string.quoted.double.html punctuation.definition | #666666 | |
| meta.tag string.quoted, meta.tag string.quoted constant.character.entity | #926730 | — |
| markup.italic, markup.italic.markdown | #888888 | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #cccccc | — |
| punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.constant.markdown, punctuation.separator.key-value.markdown, punctuation.definition.constant.begin.markdown, punctuation.definition.constant.end.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown, punctuation.definition.heading.markdown | #555555 | — |
| , markup.list.unnumbered.markdown, , markup.list.unnumbered.markdown meta.paragraph.list.markdown, , markup.list.numbered.markdown, , markup.list.numbered.markdown meta.paragraph.list.markdown, | #6DC2E9 | — |
| , markup.list.unnumbered.markdown punctuation.definition.list_item.markdown, , markup.list.numbered.markdown punctuation.definition.list_item.markdown, | #6DC2E9 | — |
| markup.output, markup.raw | #808080 | — |
| markup.prompt | #aaaaaa | — |
| markup.heading | — | bold |
| markup.bold_italic, markup.bold_italic.markdown | #aaaaaa | bold italic |
| markup.bold, markup.bold.markdown | #aaaaaa | bold |
| , markup.strikethrough, , markup.strikethrough.markdown, , markup.strikethrough constant.other.reference.link.markdown, , markup.strikethrough entity.name.tag, , markup.strikethrough markup.bold, , markup.strikethrough markup.bold.markdown, , markup.strikethrough markup.italic, , markup.strikethrough markup.italic.markdown, , markup.strikethrough markup.raw.inline.markdown, , markup.strikethrough markup.underline.link.image.markdown, , markup.strikethrough markup.underline.link.markdown, , markup.strikethrough meta.link.inet.markdown markup.underline.link.markdown, , markup.strikethrough meta.link.email.lt-gt.markdown markup.underline.link.markdown, , markup.strikethrough punctuation.definition.bold.markdown, , markup.strikethrough punctuation.definition.italic.markdown, , markup.strikethrough punctuation.definition.constant.begin.markdown, , markup.strikethrough punctuation.definition.constant.end.markdown, , markup.strikethrough punctuation.definition.constant.markdown, , markup.strikethrough punctuation.definition.metadata.markdown, , markup.strikethrough punctuation.definition.raw.markdown, , markup.strikethrough punctuation.definition.strikethrough.markdown, , markup.strikethrough punctuation.definition.string.begin.markdown, , markup.strikethrough punctuation.definition.string.end.markdown, , markup.strikethrough punctuation.definition.tag.begin.html, , markup.strikethrough punctuation.definition.tag.end.html, , markup.strikethrough string.other.link.description.markdown, , markup.strikethrough string.other.link.description.title.markdown, , markup.strikethrough string.other.link.title.markdown, | #313131 | — |
| , markup.strikethrough markup.kbd.content, , markup.strikethrough markup.kbd.content.markdown, | #484848 | — |
| markup.kbd.content.markdown | #ECECEC | — |
| markup.traceback | #06cdcd | — |
| markup.underline, markup.underline.link.markdown, constant.other.reference.link.markdown, meta.image.reference.markdown | #555555 | — |
| , meta.link.inet.markdown markup.underline.link.markdown, , meta.link.email.lt-gt.markdown markup.underline.link.markdown, | #bbbb77 | — |
| meta.diff.range, meta.diff.index, meta.separator | #bcbcbc | |
| meta.diff.header.from-file | #bcbcbc | — |
| meta.diff.header.to-file | #bcbcbc | — |
| meta.header.multimarkdown, keyword.other.multimarkdown, string.unquoted.multimarkdown, punctuation.separator.key-value.multimarkdown | #444444 | — |
| meta.separator.markdown | #555555 | — |
| markup.quote.markdown | #666666 | — |
| , text.html.markdown markup.quote.markdown entity.name.tag, , text.html.markdown markup.quote.markdown meta.tag, , text.html.markdown markup.quote.markdown meta.tag punctuation.definition.tag, , text.html.markdown markup.quote.markdown meta.tag string.quoted meta.string-contents, , text.html.markdown markup.quote.markdown meta.tag string.quoted punctuation.definition.string, , text.html.markdown markup.quote.markdown meta.tag entity.other.attribute-name, | #313131 | — |
| text.html.markdown markup.quote.markdown markup.kbd.content.markdown | #8e8e8e | — |
| , text.html.markdown markup.quote.markdown markup.bold, , text.html.markdown markup.quote.markdown markup.bold.markdown, | #666666 | — |
| punctuation.definition.blockquote.markdown | #3E3E3E | — |
| markup.raw.block.markdown | #aaaaaa | — |
| markup.raw.inline.markdown | — | — |
| block_cursor | #dedede | — |
| entity.name.class | — | — |
| wordhighlight | #dedede | — |
| brackethighlighter.default | #dedede | — |
| markup.deleted.git_gutter | #F92672 | — |
| markup.inserted.git_gutter | #A6E22E | — |
| markup.changed.git_gutter | #967EFB | — |
| markup.ignored.git_gutter | #565656 | — |
| markup.untracked.git_gutter | #565656 | — |
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}!`;
}