Light Gray Sky Theme
Publisher: Pradeep Kumar 2053Themes in package: 1
A medium gray theme with bright syntax colors
A medium gray theme with bright syntax 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 | #BEBEBE | — |
| variable, variable.other, variable.parameter, variable.other.readwrite, meta.definition.variable, meta.function-call.arguments | #FFFFFF | — |
| string, string.quoted.single | #90EE90 | — |
| constant.character.escape, constant.character.format | #FFA07A | — |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new | #FFD700 | — |
| entity.name.function, support.function | #DA70D6 | — |
| variable.other.property.python, meta.function-call.python, meta.function-call.generic.python, meta.function-call.python support.function.builtin.python, meta.function-call.python support.module.python | #FFA500 | — |
| entity.name.type.class, entity.name.class, support.class, entity.other.inherited-class | #FF69B4 | — |
| constant.language, support.constant, support.variable.magic, variable.language | #00FFFF | — |
| constant.numeric | #1E90FF | — |
| keyword.operator, punctuation.separator, punctuation.terminator | #FF00FF | — |
| constant.other, variable.other.constant | #F5F5F5 | — |
| support.function, support.class, support.type | #00FFFF | — |
| entity.name.decorator, meta.decorator, punctuation.decorator | #87CEFA | — |
| keyword.control.import, keyword.control.export | #DDA0DD | — |
| meta.fstring.python, constant.character.format.placeholder | #FFA500 | — |
| support.type.python, storage.type.annotation | #98FB98 | — |
| support.module.python | #00FFFF | — |
| meta.member.access.python | #DA70D6 | — |
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}!`;
}