LAZY Theme
Publisher: geraneThemes in package: 1
LAZY Theme ported from the LAZY TextMate Theme
LAZY Theme ported from the LAZY TextMate Theme
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #000000 | — |
| comment | #8C868F | |
| constant | #3B5BB5 | |
| entity | #3B5BB5 | |
| text.tex.latex entity | #D62A28 | |
| keyword, storage | #FF7800 | |
| string, meta.verbatim | #409B1C | |
| support | #3B5BB5 | |
| variable | — | |
| invalid.deprecated | #990000 | italic |
| invalid.illegal | #F8F8F8 | — |
| entity.other.inherited-class | #3B5BB5 | italic |
| string constant.other.placeholder | #671EBB | |
| meta.function-call.py | #3E4558 | |
| meta.tag, meta.tag entity | #3A4A64 | — |
| keyword.type.variant | #7F90AA | |
| source.ocaml keyword.operator | #000000 | — |
| source.ocaml keyword.operator.symbol.infix | #3B5BB5 | |
| source.ocaml keyword.operator.symbol.prefix | #3B5BB5 | — |
| source.ocaml keyword.operator.symbol.infix.floating-point | — | underline |
| source.ocaml keyword.operator.symbol.prefix.floating-point | — | underline |
| source.ocaml constant.numeric.floating-point | — | underline |
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}!`;
}