Awesome Laaatte Theme
Publisher: LaaatteThemes in package: 1
직접 만든 라이트 테마. 요소별 색상 구분 확실하게.
직접 만든 라이트 테마. 요소별 색상 구분 확실하게.
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, punctuation.definition.comment | #8A90A8 | italic |
| comment.documentation, comment.block.documentation | #136A45 | italic |
| keyword, keyword.control, keyword.other | #0C5FA8 | — |
| storage, storage.type | #6842B0 | — |
| storage.modifier | #A03880 | — |
| keyword.operator | #7040B8 | — |
| support.type, entity.name.type | #0A5E78 | — |
| entity.name.class, entity.other.inherited-class, support.class | #5930A0 | bold |
| entity.name.function, support.function | #B83060 | — |
| variable.parameter | #2A6E18 | italic |
| variable, variable.other, variable.other.readwrite, variable.other.object, variable.other.constant, support.variable, entity.name.variable | #A04208 | — |
| constant.language, support.constant, variable.language | #0A7272 | — |
| constant.numeric, constant.character, constant | #8A6000 | — |
| string | #1A7840 | — |
| constant.character.escape | #A03880 | — |
| string.regexp | #A03880 | — |
| constant.other.symbol | #1A7840 | — |
| punctuation | #5A6280 | — |
| invalid.illegal | #7E1919 | — |
| meta.tag, punctuation.definition.tag | #5A6280 | — |
| entity.name.tag | #0C5FA8 | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name | #2A6E18 | italic |
| constant.character.entity, punctuation.definition.entity | #8A6000 | — |
| meta.selector, entity.name.tag.css | #5930A0 | — |
| meta.property-name, support.type.property-name | #0A5E78 | — |
| meta.property-value, support.constant.property-value | #1A7840 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json string | #0C5FA8 | — |
| markup.heading | #0C5FA8 | bold |
| markup.bold | #0C5FA8 | bold |
| markup.italic | #2E3037 | italic |
| markup.inline.raw | #832508 | — |
| meta.link | #1A7840 | — |
| markup.list | #0A5E78 | — |
| markup.quote | #8A90A8 | italic |
| meta.diff.range, meta.diff.index, meta.separator | #5A6280 | — |
| markup.inserted | #13694D | — |
| markup.deleted | #7E1919 | — |
| markup.changed | #255A61 | — |
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}!`;
}