purple cat theme
Publisher: paumadiThemes in package: 1
just another theme
just another theme
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 |
|---|---|---|
| entity.name.tag, meta.tag | #FF77AA | bold |
| entity.other.attribute-name, attribute.name | #4AAFD1 | — |
| string.quoted.double, string.quoted.single | #C5A7C3 | — |
| variable, meta.jsx.children.js | #72C376 | italic |
| keyword.operator, punctuation.definition.string | #65DBFF | — |
| comment | #6D6F7C | italic |
| source.css entity.name.tag, source.css support.type.property-name, source.css keyword.control.at-rule | #4AAFD1 | — |
| source.css support.constant.property-value, source.css constant.other.color.rgb-value, source.css constant.other.unit | #72C376 | — |
| source.json constant.language, source.json support.type.property-name | #FF77AA | — |
| source.json string.quoted.double.json | #C5A7C3 | — |
| source.json punctuation.separator.key-value | #65DBFF | — |
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}!`;
}