Polykai
Publisher: Adam GrahamThemes in package: 1
A dark color scheme inspired by Wimer Hazenberg's Monokai theme.
A dark color scheme inspired by Wimer Hazenberg's Monokai theme.
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 |
|---|---|---|
| source, string.template meta, text | #f8f8f8 | — |
| markup.underline | — | underline |
| markup.bold, strong | — | bold |
| emphasis, entity.name.variable.parameter, markup.italic, variable.parameter | — | italic |
| comment | #909090 | — |
| entity.name.function.decorator, entity.name.tag, keyword, meta.function.decorator support.type, meta.preprocessor punctuation.separator.hash, punctuation.definition.tag, punctuation.definition.template-expression, storage, string.other.link.title | #ff0060 | — |
| markup.quote, markup.quote meta, storage.modifier.import, storage.modifier.package, string | #ffe080 | — |
| constant.character, constant.language, constant.numeric, constant.other.character-class, constant.other.color, constant.other.placeholder, constant.other.rune.go, constant.others.fsharp, entity.other.keyframe-offset.percentage, keyword.operator.quantifier, keyword.other.unit, markup beginning.punctuation.definition, meta.separator.markdown, storage.type.number | #c080ff | — |
| constant.other, entity.name.enum, entity.name.function.preprocessor, entity.name.variable.enum-member, support.constant, variable.other.constant | #6080ff | — |
| keyword.other.this, storage.type.generic.wildcard, support.variable.dom, support.variable.magic, variable.language | #6080ff | italic |
| entity.other.attribute-name, markup.fenced_code.block punctuation.definition.markdown, markup.inline.raw, source.batchfile variable.other, source.makefile variable.other, source.shell variable.other, string variable.parameter, support.type.property-name, support.type.propertyname, support.type.vendored.property-name, support.variable | #ffb000 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, fenced_code.block.language, keyword.type, markup.fenced_code.block.markdown punctuation.definition.markdown, meta.property-name, support.type | #ff9020 | — |
| storage.type.basic, storage.type.boolean, storage.type.byte, storage.type.c, storage.type.cs, storage.type.error, storage.type.groovy, storage.type.haskell, storage.type.java, storage.type.numeric, storage.type.rune, storage.type.string, storage.type.structured, storage.type.uintptr | #ff9020 | — |
| keyword.type, storage.type.builtin, storage.type.core, storage.type.primitive, support.type.builtin, support.type.core, support.type.primitive | #ff9020 | italic |
| entity.name.class, entity.name.type, entity.other.attribute-name.class, entity.other.attribute-name.namespace, entity.other.inherited-class, markup.heading, markup.heading entity, meta.tag.sgml.doctype, storage.class, support.class, support.other.module | #a0ff20 | — |
| storage.class.std, support.class.builtin | #a0ff20 | italic |
| entity.name.function, markup.underline.link, meta.function-call.generic, support.function | #40c4ff | — |
| meta.definition variable.other.constant, meta.export meta.block variable | #f8f8f8 | italic |
| invalid | #ff0030 | — |
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}!`;
}