theme-chromodynamics
Publisher: leiThemes in package: 1
chromodynamics color theme for vscode
chromodynamics color theme for vscode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #c6c6c6 | — |
| text, source | #c6c6c6 | — |
| git_changes_change | #A29F46 | — |
| git_changes_add | #1f9a12 | — |
| git_changes_del- | #A72822 | — |
| comment | #545458 | — |
| string | #d3c970 | — |
| string.quoted.docstring | #7c9f57 | — |
| string.quoted.docstring string | #7c9f57 | — |
| constant.numeric | #9a79d7 | — |
| constant.language | #9a79d7 | — |
| constant.character, constant.other | #9a79d7 | — |
| variable | — | |
| keyword | #e8364f | — |
| comment.line.note, string.quoted.docstring.note | #b14a58 | — |
| storage | #e8364f | |
| storage.type | #66D9EF | — |
| entity.name.class | #A6E22E | — |
| entity.other.inherited-class | #A6E22E | — |
| entity.name.function | #A6E22E | |
| variable.parameter | #e99c42 | — |
| entity.name.tag.namespace | #76263a | |
| entity.name.tag, keyword.doctype.xml | #d33c78 | |
| entity.other.attribute-name | #D77C23 | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type | #66D9EF | — |
| support.class, support.other, support.variable | #66D9EF | — |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #e8364f | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| variable.language.special, variable.parameter.function.language.special | #b0af95 | — |
| comment.typehint | #888A84 | — |
| comment.typehint.ignore | #7E6461 | — |
| comment.typehint.type | #44727B | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}