Material Syntax - Dark
Publisher: woodywoodstaThemes in package: 1
A clean, practical and darkened material design syntax theme for Visual Studio Code.
A clean, practical and darkened material design syntax theme for Visual Studio Code.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #D4D4D4 | — |
| comment | #5A5A5A | — |
| string | #91B859 | — |
| constant.numeric | #F77669 | — |
| constant.language | #F77669 | — |
| constant.character, constant.other | #F77669 | — |
| variable | #B2CCD6 | |
| keyword | #C792EA | — |
| storage | #C792EA | — |
| storage.type | #C792EA | — |
| entity.name.class | #FFCB6B | — |
| entity.other.inherited-class | #91B859 | — |
| entity.name.function | #82AAFF | |
| variable.parameter | — | |
| entity.name.tag | #FF5370 | |
| entity.other.attribute-name | #FFCB6B | |
| support.function | #82AAFF | |
| support.constant | #89DDFF | |
| support.type, support.class | #FFCB6B | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| markup.quote | #F77669 | — |
| markup.bold, markup.italic | #F77669 | — |
| markup.inline.raw | #F1E655 | |
| markup.heading.setext | #ddbb88 | |
| meta.toc-list.id, meta.attribute-with-value.id punctuation.definition.string.begin.html, meta.attribute-with-value.id punctuation.definition.string.end.html | #7DC9E3 | — |
| meta.property-name, support.type.property-name | #80CBC4 | — |
| keyword.other.unit | #FFEB95 | — |
| variable.language.this.js | #FFCB6B | — |
| support.type | #FFEB95 | — |
| variable.css | #B7E1DF | — |
| meta.selector | #FFCB6B | — |
| support.type.property-name.variable | #CEF2EF | — |
| string.quoted | #B0CD89 | — |
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}!`;
}