The Meowgorithm Color Scheme
Publisher: meowgorithmThemes in package: 1
Meowgorithm’s personal color scheme
Meowgorithm’s personal color scheme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #C9C9C9 | — |
| comment | #227A57 | — |
| string | #9C7B64 | — |
| constant.numeric | #E65353 | bold |
| constant.language | #45DFED | bold |
| constant.character, constant.other | #E0B14C | — |
| variable | #6BD6BD | |
| keyword | #FF6198 | — |
| storage | #64D565 | |
| storage.type | #64D565 | — |
| entity.name.class | #FFFFFF | underline bold |
| entity.other.inherited-class | #4197E8 | — |
| entity.name.function | #EBA063 | — |
| variable.parameter | #8F7A60 | — |
| entity.name.tag | #FF7FEE | |
| entity.other.attribute-name | #957FEB | |
| support.function | #8D81D1 | — |
| support.constant | #757575 | |
| support.type, support.class | #34C2CF | — |
| support.other.variable | #877FDB | — |
| 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}!`;
}