kuro
Publisher: orhantugrulThemes in package: 1
A minimal, elegant, and modern VS Code theme inspired by sleek aesthetic
A minimal, elegant, and modern VS Code theme inspired by sleek aesthetic
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 | #5a5a5a | italic |
| string, string.quoted, string.template | #a8a8a8 | — |
| punctuation.definition.string | #7a7a7a | — |
| constant.numeric, constant.language.boolean, constant.language.null, constant.language.undefined | #c2c2c2 | — |
| variable, variable.other.readwrite, variable.other.object | #e0e0e0 | — |
| variable.parameter, meta.parameters variable | #b8b8b8 | — |
| variable.other.constant, variable.other.enummember | #d0d0d0 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage.type, storage.modifier | #ffffff | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.relational | #909090 | — |
| punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.section | #707070 | — |
| entity.name.function, support.function, meta.function-call.generic | #f5f5f5 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #d8d8d8 | — |
| entity.name.tag, meta.tag.sgml.doctype | #f0f0f0 | — |
| entity.other.attribute-name | #b0b0b0 | — |
| support.constant, constant.other, variable.language.this, variable.language.super | #c8c8c8 | — |
| entity.name.namespace, entity.name.scope-resolution | #d4d4d4 | — |
| support.type.property-name, meta.object-literal.key | #bcbcbc | — |
| invalid, invalid.illegal | #ff6467 | — |
| invalid.deprecated | #ff6467 | strikethrough |
| markup.heading | #ffffff | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline | — | underline |
| markup.deleted | #ff6467 | — |
| markup.inserted | #fafafa | — |
| meta.diff.header | #5a5a5a | — |
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}!`;
}