Mintstream's Theme Package
Publisher: mintstreamThemes in package: 5
개인 취향을 반영한 VSCODE 컬러셋 패키지
개인 취향을 반영한 VSCODE 컬러셋 패키지
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 |
|---|---|---|
| keyword.control, storage.type, storage.modifier, keyword.operator, variable.language.this, variable.language.super | #7FA8E8 | — |
| entity.name.function | #3AC987 | italic bold |
| entity.name.class, support.class.component | #3AC987 | bold |
| constant.numeric, constant.language | #E3C878 | — |
| string, punctuation.definition.string | #A0B3CC | — |
| variable.other.readwrite, variable, variable.parameter | #D4E4E8 | — |
| entity.name.tag, meta.object-literal.key, string.unquoted.label.js, variable.other.object.key.js | #8AABB8 | — |
| variable.object.property, support.variable.property, variable.other.object.property | #A8C5E0 | — |
| entity.name.type, support.type, support.class | #4EC9B0 | — |
| keyword.operator.type, storage.modifier.satisfies | #7FA8E8 | — |
| comment, punctuation.definition.comment | #657B8A | italic |
| invalid, invalid.illegal | #EF5350 | bold underline |
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}!`;
}