Wise Owl Material Theme
Publisher: WaseemAkhterThemes in package: 4
A custom theme combining Night Owl background colors with Material foreground colors
A custom theme combining Night Owl background colors with Material foreground colors
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 |
|---|---|---|
| comment | #00ff00 | italic |
| string | #ffff00 | — |
| constant.numeric | #ff6b6b | — |
| constant.language | #ff1493 | — |
| constant.character, constant.other | #ff1493 | — |
| variable | — | |
| keyword | #00ffff | — |
| storage | #00ffff | — |
| storage.type | #00ffff | — |
| entity.name.class | #ffff00 | underline bold |
| entity.other.inherited-class | #00ff7f | italic underline bold |
| entity.name.function | #00bfff | bold |
| variable.parameter | #ff6b6b | italic bold |
| entity.name.tag | #ff1493 | bold |
| entity.name.tag.html.h1, entity.name.tag.html.h2, entity.name.tag.html.h3, entity.name.tag.html.h4, entity.name.tag.html.h5, entity.name.tag.html.h6 | #ffffff | bold |
| entity.other.attribute-name | #ffff00 | bold |
| entity.other.attribute-name.html.className, entity.other.attribute-name.jsx, support.other.attribute-name.jsx, meta.attribute.jsx | #ffff00 | bold |
| support.function | #00ff7f | bold |
| support.constant | #00ff7f | bold |
| support.type, support.class | #00ffff | italic bold |
| support.other.variable | — | |
| invalid | #ff0000 | bold |
| invalid.deprecated | #ff00ff | bold |
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}!`;
}