ChromaCoder
Publisher: FMS_CatThemes in package: 1
Make your vscode chroma-keying-able
Make your vscode chroma-keying-able
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 |
|---|---|---|
| — | #ffffff | — |
| comment | #995599 | — |
| string | #cc77ff | — |
| constant.numeric | #9999ff | — |
| constant.language | #9999ff | — |
| constant.character, constant.other | #9999ff | — |
| variable | #ffffff | — |
| keyword | #ff99aa | — |
| storage | #ff99aa | — |
| storage.type | #00aaff | — |
| entity.name.type, entity.name.class | #88ddff | — |
| entity.other.inherited-class | #88ddff | — |
| entity.name.function | #88ddff | — |
| variable.parameter | #ffaaff | — |
| entity.name.tag | #ff99aa | — |
| entity.other.attribute-name | #88ddff | — |
| support.function | #00aaff | — |
| support.constant | #00aaff | — |
| support.type, support.class | #00aaff | — |
| support.other.variable | — | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| meta.structure.dictionary.json string.quoted.double.json | #cc77ff | — |
| meta.diff, meta.diff.header | #550055 | — |
| markup.deleted | #ff99aa | — |
| markup.inserted | #88ddff | — |
| markup.changed | #cc77ff | — |
| constant.numeric.line-number.find-in-files - match | #9999ffA0 | — |
| entity.name.filename.find-in-files | #cc77ff | — |
| markup.bold.markdown | #cc77ff | bold |
| markup.inline.raw.markdown, markup.raw.block.markdown, markup.fenced_code.block.markdown | #ffaaff | — |
| markup.italic.markdown | #88ddff | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #00aaff | — |
| markup.heading.markdown | #ff99aa | bold |
| meta.link.inline.markdown | #9999ff | — |
| meta.image.inline.markdown | #9999ff | — |
| meta.separator.markdown | #550055 | — |
| markup.quote.markdown | #9999ff | — |
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}!`;
}