Material Darker Theme
Publisher: janttoThemes in package: 1
A modified and updated Material Theme Neutral with darker colors
A modified and updated Material Theme Neutral with darker colors
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #B2CCD6 | — |
| comment | #455B66 | — |
| string | #C3E88D | — |
| constant.numeric | #F77669 | — |
| constant.language | #F77669 | — |
| constant.character, constant.other | #F77669 | — |
| variable | #FA6981 | |
| keyword | #82AAFF | — |
| storage | #FFCB6B | |
| storage.type | #FFCB6B | — |
| entity.name.class | #FFCB6B | — |
| entity.other.inherited-class | #C3E88D | — |
| entity.name.function | #82AAFF | |
| variable.parameter | #FD971F | — |
| entity.name.tag | #FA6981 | |
| entity.other.attribute-name | #FFCB6B | |
| support.function | #BD8BDF | |
| support.constant | #F77669 | |
| support.type, support.class | #7FCAC3 | — |
| support.other.variable | #3E9DB5 | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
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}!`;
}