Kob Theme
Publisher: thekaroeThemes in package: 3
Three calm color themes for VS Code: Kob Dark, Kob Light and Kob Dim (a soft, low-contrast dark).
Three calm color themes for VS Code: Kob Dark, Kob Light and Kob Dim (a soft, low-contrast dark).
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 | #949bad | italic |
| string, string.template | #a3c48c | — |
| string.regexp | #e0a074 | — |
| constant.character.escape, constant.other.placeholder | #86c5cb | — |
| constant.numeric | #e0a074 | — |
| constant.language, support.constant, constant.other.caps | #e0a074 | — |
| constant.other.color | #e0a074 | — |
| variable | #d7dbe8 | — |
| variable.language, variable.parameter.function.language.special.self.python | #e08a9a | italic |
| variable.parameter, meta.function.parameters variable | #e0a074 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #86c5cb | — |
| variable.other.constant | #d9c08a | — |
| keyword, keyword.control, storage.type, storage.modifier | #b5a1dd | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic | #86c5cb | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, keyword.operator.word | #b5a1dd | — |
| storage.type.function.arrow, keyword.operator.arrow | #86c5cb | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator, punctuation.accessor | #b2b8c9 | — |
| punctuation.definition.template-expression | #b5a1dd | — |
| entity.name.function, support.function, meta.function-call.generic | #8fa8dc | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.namespace, entity.name.module | #d9c08a | — |
| support.type.primitive, support.type.builtin, storage.type.primitive | #86c5cb | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #d9c08a | — |
| entity.name.tag | #e08a9a | — |
| support.class.component | #d9c08a | — |
| punctuation.definition.tag | #b2b8c9 | — |
| entity.other.attribute-name | #e0a074 | italic |
| support.type.property-name.css | #86c5cb | — |
| support.constant.property-value.css, meta.property-value.css | #e0a074 | — |
| keyword.other.unit | #e0a074 | — |
| entity.other.attribute-name.class.css | #d9c08a | — |
| entity.other.attribute-name.id.css | #8fa8dc | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #86c5cb | — |
| variable.css, variable.argument.css | #e08a9a | — |
| support.type.property-name.json | #8fa8dc | — |
| entity.name.tag.yaml | #8fa8dc | — |
| markup.heading, entity.name.section.markdown | #e08a9a | bold |
| markup.bold | #e0a074 | bold |
| markup.italic | #b5a1dd | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #a3c48c | — |
| markup.underline.link, string.other.link | #8fa8dc | — |
| markup.quote | #949bad | italic |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #e08a9a | — |
| markup.inserted | #a3c48c | — |
| markup.deleted | #e08a9a | — |
| markup.changed | #d9c08a | — |
| invalid | #e08a9a | underline |
| invalid.deprecated | #949bad | strikethrough |
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}!`;
}