Osmium material ui
Publisher: stickycubeThemes in package: 2
Yet another neutral material theme
Yet another neutral material theme
Full workbench mockup using this variant's colors and tokenColors.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #EEEEEE | — |
| comment | #78909C | bold |
| string | #FFC107 | bold |
| constant.numeric | #FFB300 | bold |
| constant.language |
TypeScript sample highlighted with this variant's colors and tokenColors.
| bold |
| constant.character, constant.other | #B388FF | bold |
| variable | #B388FF | — |
| keyword | #4DB6AC | bold italic |
| storage | #26A69A | bold |
| storage.type | #26A69A | bold |
| entity.name.class | #B388FF | — |
| entity.other.inherited-class | #B388FF | italic |
| entity.name.function | #03A9F4 |
| variable.parameter | #FFFFFF | italic |
| entity.name.tag | #FF5722 |
| entity.other.attribute-name | #B2FF59 |
| support.function | #00BCD4 | — |
| support.constant | #00BCD4 | — |
| support.type, support.class | #00BCD4 | — |
| support.other.variable | #00BCD4 | — |
| invalid | #B0BEC5 | underline italic |
| invalid.deprecated | #B0BEC5 | underline italic |
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}!`;
}