Easy On The Eyes Theme
Publisher: dunkelfalke80Themes in package: 1
Well, duh.
Well, duh.
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, comment.block.documentation, punctuation.definition.comment | #33AA33 | italic |
| constant.numeric, number, constant.numeric.hex, constant.numeric.decimal, constant.numeric.binary, constant.numeric.octal, constant.numeric.float | #E5C100 | — |
| string.quoted.single, string.quoted.double, string.quoted.triple, string.interpolated | #876FA8 | — |
| string | #577386 | — |
| variable.interpolation | #DF3079 | — |
| meta.decorator | #FF6633 | — |
| punctuation.definition.constant.numeric.hex | #E5C100 | — |
| entity.name.class, entity.name.type.class, support.type, support.class, entity.name.type, meta.type.name, storage.type.annotation | #4E90D5 | — |
| entity.name.function, support.function | #67D8EF | — |
| variable, meta.object-literal.key, meta.function-call.arguments | #D0D0D0 | — |
| keyword.operator, keyword.other, keyword | #4E90D5 | — |
| keyword.control, storage.type, keyword, storage.modifier, storage.type.function | #0099FF | — |
| keyword.control.import, keyword.control.from, keyword.control.as, keyword.control.del, keyword.control.global, keyword.control.nonlocal | #33CCFF | — |
| support.function, support.variable, variable.language, support.constant | #67D8EF | — |
| punctuation, punctuation.separator, punctuation.terminator | #FFFFFF | — |
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}!`;
}