Pink Code Dark
Publisher: Hygor MoorThemes in package: 2
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 | #555555 | — |
| string | #9700dd | — |
| constant.numeric | #7800af | — |
| constant.language | #66c4c4 | — |
| constant.character, constant.other | #66c4c4 | — |
| variable | — | |
| keyword | #cccccc | — |
| storage | #66c4c4 | |
| storage.type | #7385bc | |
| entity.name.class | #66c4c4 | underline |
| entity.other.inherited-class | #66c4c4 | |
| entity.name.function | #ff009d | |
| variable.parameter | #26c1c1 | |
| entity.name.tag | #7385bc | |
| entity.other.attribute-name | #66c4c4 | |
| support.function | #5a6fad | |
| support.constant | #66c4c4 | |
| support.type, support.class | #c46666 | |
| support.other.variable | — | |
| invalid | #cf433e | |
| invalid.deprecated | #cf433e | — |
| meta.structure.dictionary.json string.quoted.double.json | #3dbee5 | — |
| meta.diff, meta.diff.header | #555555 | — |
| markup.deleted | #e61f44 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #f7b83d | — |
| constant.numeric.line-number.find-in-files - match | #8FBE00A0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| keyword.other | #7b7b7b | — |
| meta.property-value, support.constant.property-value, constant.other.color | #e53d67 | — |
| meta.structure.dictionary.json string.quoted.double.json | #66c4c4 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #00bbc2 | — |
| meta.property-name support.type.property-name | — | italic |
| meta.property-value punctuation.separator.key-value | #ffffff | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #7385bc | — |
| meta.use support.class.builtin, meta.other.inherited-class support.class.builtin | #7385bc | — |
| variable.other | #26c1c1 | — |
| variable.parameter.function.coffee | #e53d67 | |
| entity.name.section.markdown | #66c4c4 | — |
| punctuation.definition.heading.markdown | #cccccc | — |
| markup.raw.inline.markdown | #e53d67 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #cccccc | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #cccccc | — |
| punctuation.definition.metadata.markdown | #cccccc | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #7385bc | |
| markup.bold.markdown, markup.italic.markdown | #7385bc | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| markup.raw.block.markdown | #664e4d | — |
| markup.deleted.git_gutter | #e61f44 | — |
| markup.inserted.git_gutter | #a7da1e | — |
| markup.changed.git_gutter | #f7b83d | — |
| meta.template.expression | #ffffff | — |
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}!`;
}