Material Facebook Theme
Publisher: rmargantiThemes in package: 2
Visual Studio Code theme combining Material editor theme and Facebook syntax highlighting
Visual Studio Code theme combining Material editor theme and Facebook syntax highlighting
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 |
|---|---|---|
| — | #C3CEE3 | — |
| comment | #7081BE | — |
| comment.block.preprocessor | #7081BE | regular |
| comment.documentation, comment.block.documentation | #7081BE | regular |
| invalid.illegal | #E889B5 | — |
| keyword, storage | #FFFFFF | bold |
| keyword.operator | #E4EAF0 | bold |
| constant.language, support.constant | #E4EAF0 | bold |
| storage.type, support.type | #d3afc5 | italic |
| entity.other.attribute-name | #90D6CD | — |
| variable.other | #8DC4F0 | — |
| variable.language | #B3B2A2 | — |
| entity.name.type, entity.other.inherited-class, support.class | #E3C78A | — |
| variable.other.constant | #18C9C9 | — |
| constant.character.entity | #d67c9b | — |
| entity.name.exception | #d67c9b | — |
| entity.name.function, support.function, keyword.other.name-of-parameter | #8be9ee | — |
| entity.name.section | #dabc83 | — |
| entity.name.tag | #8db3ff | — |
| punctuation.definition.tag | #5768b0 | — |
| variable.parameter, support.variable | #18C9C9 | italic |
| constant.numeric, constant.other | #18C9C9 | — |
| string - string source, constant.character | #D5D5CA | — |
| string.regexp | #18C9C9 | — |
| constant.other.symbol | #ABD683 | — |
| markup.deleted | #CDBBD6 | — |
| markup.italic | — | italic |
| markup.error | #DF7788 | — |
| markup.heading.1 | #CC7093 | — |
| markup.inserted | — | — |
| markup.output, markup.raw | #89CEDD | — |
| markup.prompt | #555555 | — |
| markup.bold | — | bold |
| markup.heading | #C97595 | — |
| markup.traceback | #89CEDD | — |
| markup.underline | — | underline |
| meta.diff.range, meta.diff.index, meta.separator | #8DA6EA | — |
| meta.diff.header.from-file | #E889B5 | — |
| meta.diff.header.to-file | #B0F7C3 | — |
| meta.link | #92A3E0 | |
| support.type.property-name | #C3CEE3 | — |
| support.constant.property-value, support.constant.font-name | #C3CEE3 | |
| constant.other.unit, keyword.other.unit | #18C9C9 | |
| keyword.control.untitled, entity.other.attribute-name | #96fbff | — |
| keyword.control.at-rule | #E3C78A | — |
| keyword.control.mixin-shorthand | #dde9ff | |
| variable.parameter.url.sass | #C3CEE3 | normal |
| meta.brace.round.coffee | #798194 | — |
| entity.name.section.markdown | #71baff | — |
| punctuation.definition.heading | #4a72ae | — |
| markup.heading.1 punctuation.definition.heading | #ff0000 | — |
| punctuation.definition.list_item | #646877 | — |
| string.other.link.title | #C3CEE3 | — |
| string.raw.inline.markdown | #cec8d7 | — |
| punctuation.definition.raw.markdown | #5d606e | — |
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}!`;
}