My Choice Color Theme
Publisher: Naitik BansalThemes in package: 1
This theme extension is designed to improve the readability and structure of HTML, CSS, and JavaScript code by enhancing syntax highlighting and visual clarity.
This theme extension is designed to improve the readability and structure of HTML, CSS, and JavaScript code by enhancing syntax highlighting and visual clarity.
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 |
|---|---|---|
| emphasis | #b0b0b0 | italic |
| strong | #b0b0b0 | italic bold underline |
| meta.diff.header | #000080 | — |
| comment | #7c7c7c | — |
| constant.language | #C586C0 | italic |
| constant.numeric, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #b5cea8 | — |
| constant.regexp | #C586C0 | italic |
| entity.name.tag | #7ed06e | italic |
| entity.name.tag.css | #CE9178 | — |
| entity.other.attribute-name | #50a9d8 | — |
| source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name | #50a9d8 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | — | bold |
| markup.heading | #6796e6 | — |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #ce9178 | — |
| markup.changed | #569cd6 | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #569cd6 | — |
| meta.preprocessor.string | #ffb86c | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| storage | #569cd6 | — |
| storage.type | #569cd6 | — |
| storage.modifier | #569cd6 | — |
| string | #ce9178 | — |
| string.tag | #ce9178 | — |
| string.value | #ce9178 | — |
| string.regexp | #d16969 | italic |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #569cd6 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less | #d4d4d4 | — |
| keyword | #569cd6 | italic |
| keyword.control | #569cd6 | italic |
| keyword.operator | #d4d4d4 | italic |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python | #569cd6 | italic |
| keyword.other.unit | #b5cea8 | italic |
| support.function.git-rebase | #d4d4d4 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language.this | #569cd6 | — |
| entity.name.function, support.function, support.constant.handlebars | #DCDCAA | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, source.cs storage.type | #4EC9B0 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #4EC9B0 | — |
| keyword.control | #e2a542 | italic bold |
| variable, meta.definition.variable.name, support.variable | #e194c1 | italic |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #9CDCFE | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #b5cea8 | italic |
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}!`;
}