Carex
Publisher: OMERBABACOThemes in package: 11
🎨 A premium VS Code theme suite with 11 color variants, file icons, and product icons. Inspired by Catppuccin, refined for long coding sessions.
🎨 A premium VS Code theme suite with 11 color variants, file icons, and product icons. Inspired by Catppuccin, refined for long coding sessions.
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 | #636a80 | italic |
| string | #a6e3a1 | — |
| keyword, storage.type, storage.modifier | #f38ba8 | — |
| comment, punctuation.definition.comment | #636a80 | italic |
| string | #a6e3a1 | — |
| keyword, storage.type, storage.modifier | #f38ba8 | — |
| comment, punctuation.definition.comment | #6c7086 | italic |
| string | #a6e3a1 | — |
| constant.numeric | #f9e2af | — |
| constant.language.boolean | #fab387 | — |
| constant.language.null, constant.language.undefined | #fab387 | — |
| keyword | #f38ba8 | — |
| storage.type, storage.modifier | #f38ba8 | — |
| entity.name.function, support.function | #89b4fa | — |
| entity.name.class, entity.name.type, support.class | #cba6f7 | — |
| variable | #cdd6f4 | — |
| variable.other.property | #89dceb | — |
| constant | #fab387 | — |
| keyword.operator | #89dceb | — |
| entity.name.tag | #f38ba8 | — |
| entity.other.attribute-name | #cba6f7 | — |
| markup.heading, entity.name.section.markdown | #89b4fa | bold |
| markup.quote, meta.frontmatter, punctuation.section.frontmatter | #94e2d5 | — |
| markup.inline.raw, markup.fenced_code.block.markdown | #a6e3a1 | — |
| entity.name.tag, entity.name.tag.jsx, entity.name.tag.tsx | #f38ba8 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, support.type.property-name.json, meta.object-literal.key | #89dceb | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss | #f9e2af | — |
| meta.function.decorator.python, entity.name.function.decorator.python, storage.type.annotation.python | #f5c2e7 | — |
| string.regexp, constant.character.escape | #fab387 | — |
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}!`;
}