MKANET Theme
Publisher: Michael K. AvanessianThemes in package: 1
Color theme designed from scratch to reduce eye strain
Color theme designed from scratch to reduce eye strain
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 |
|---|---|---|
| mcol_D50500FF | #FFFFFFFF | — |
| mcol_0000E2FF | #FFFFFFFF | — |
| mcol_000093FF | #FFFFFFFF | — |
| comment | #888888 | — |
| keyword | #006003 | italic |
| keyword.operator | — | |
| storage | #5E4E00 | — |
| entity.name.function | #2323E0 | bold |
| constant.numeric | #128C00 | — |
| constant | #af0075 | — |
| constant.language | #8183E8 | — |
| variable.language, variable.other | #D50500 | — |
| string | #750F00 | — |
| constant.character.escape, string source | #9D9CBF | — |
| meta.preprocessor | #1A921C | — |
| keyword.control.import | #006003 | — |
| support.function.any-method | #126714 | — |
| entity.name.type | #937000 | bold |
| entity.other.inherited-class | #A59872 | italic |
| variable.parameter | #A30B0B | italic |
| storage.type.method | #70727E | — |
| meta.section entity.name.section, declaration.section entity.name.section | — | italic |
| support.function | #2323E0 | — |
| support.class, support.type | #6D79DE | — |
| support.constant | #06960E | — |
| support.variable | #21439C | — |
| keyword.operator.js | #687687 | — |
| invalid | #FF0B00 | — |
| meta.tag.preprocessor.xml | #68685B | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype entity, meta.tag.sgml.doctype string, meta.tag.preprocessor.xml, meta.tag.preprocessor.xml entity, meta.tag.preprocessor.xml string | #888888 | — |
| string.quoted.docinfo.doctype.DTD | — | italic |
| meta.tag, declaration.tag | #1C02FF | — |
| entity.name.tag | — | — |
| entity.other.attribute-name | — | italic |
| markup.heading | #0C07FF | — |
| markup.quote | #000000 | italic |
| markup.list | #B90690 | — |
| punctuation.definition.variable.powershell | #005757 | — |
| variable.other.member.powershell | #1C6D93 | — |
| meta.function-call.generic.python | #2323E0 | — |
| Highlight | #6BB2FF | — |
| Caret | #8000FF | — |
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}!`;
}