Mishu Theme Pro
Publisher: CodeWithMishuThemes in package: 9
A calm, low-contrast dark theme designed for eye comfort. 9 unique variants with distinct syntax palettes, customizable accent colors, and working UI settings.
A calm, low-contrast dark theme designed for eye comfort. 9 unique variants with distinct syntax palettes, customizable accent colors, and working UI settings.
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 |
|---|---|---|
| comment, punctuation.definition.comment | #5a6878 | italic |
| string, string.quoted, string.template | #88c8a0 | — |
| constant.character.escape, string.regexp | #80b8d0 | — |
| constant.numeric | #d8a070 | — |
| constant.language, constant.other | #d8a070 | — |
| variable, variable.other | #c8d4e0 | — |
| variable.parameter | #b0c0d0 | — |
| variable.other.property, variable.other.object.property | #a8b8c8 | — |
| keyword, keyword.control, keyword.operator.expression | #b0a0d0 | — |
| keyword.operator, keyword.operator.assignment | #8898a8 | — |
| keyword.type, keyword.other.type, storage.type.primitive | #7cb8e0 | — |
| storage, storage.type, storage.modifier | #b0a0d0 | — |
| entity.name.function, meta.function-call, support.function, variable.function | #7cb8e0 | — |
| entity.name.function, meta.definition.function entity.name.function | #7cb8e0 | — |
| meta.method.declaration entity.name.function, meta.method-call | #7cb8e0 | — |
| entity.name.class, entity.name.type.class, support.class, entity.other.inherited-class | #e0c888 | — |
| entity.name.type.interface | #e0c888 | — |
| entity.name.type, support.type, support.type.primitive | #e0c888 | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #88c8a0 | — |
| entity.name.namespace, entity.name.module | #a0a8d0 | — |
| entity.name.type.enum | #e0c888 | — |
| variable.other.enummember, constant.other.enum | #d8a070 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #8898a8 | — |
| meta.brace, punctuation.definition.block, punctuation.section | #8898a8 | — |
| meta.decorator, punctuation.decorator, meta.decorator entity.name.function | #a0a8d0 | — |
| storage.type.annotation, meta.annotation | #a0a8d0 | — |
| markup.heading, markup.heading entity.name, entity.name.section | #7cb8e0 | bold |
| markup.bold | #d8a070 | bold |
| markup.italic | #b0a0d0 | italic |
| markup.underline | — | underline |
| markup.underline.link, string.other.link | #7cc8e8 | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #88c8a0 | — |
| markup.quote | #5a6878 | italic |
| markup.list, punctuation.definition.list | #d8a070 | — |
| markup.inserted | #88c8a0 | — |
| markup.deleted | #d08888 | — |
| markup.changed | #7cc8e8 | — |
| entity.name.tag | #d08888 | — |
| entity.other.attribute-name | #b0a0d0 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #5a6878 | — |
| support.class.component | #7cb8e0 | — |
| entity.name.tag.css, entity.other.attribute-name.css | #d08888 | — |
| entity.other.attribute-name.class.css | #e0c888 | — |
| entity.other.attribute-name.id.css | #d8a070 | — |
| support.type.property-name.css | #a8b8c8 | — |
| support.constant.property-value.css, meta.property-value.css | #d8a070 | — |
| keyword.other.unit.css | #d8a070 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #b0a0d0 | — |
| support.type.property-name.json | #7cb8e0 | — |
| entity.name.tag.yaml | #d08888 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #b0a0d0 | italic |
| support.function.magic.python | #7cb8e0 | italic |
| variable.language.this | #b0a0d0 | italic |
| variable.language.super | #b0a0d0 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #b0a0d0 | — |
| support.class.console, support.type.object.console | #7cb8e0 | — |
| support.class.dom, support.type.object.dom | #7cb8e0 | — |
| meta.type.annotation entity.name.type | #e0c888 | — |
| string.regexp | #80b8d0 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp | #80b8d0 | — |
| constant.other.character-class.regexp | #d8a070 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #7cc8e8 | — |
| entity.name.package.go | #a0a8d0 | — |
| entity.name.function.macro.rust, meta.macro.rust | #d8a070 | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #88c8a0 | — |
| meta.preprocessor, keyword.control.directive | #a0a8d0 | — |
| entity.name.function.preprocessor | #d8a070 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.alias.sql | #b0a0d0 | — |
| keyword.other.php | #b0a0d0 | — |
| variable.other.php | #c8d4e0 | — |
| constant.other.symbol.ruby | #d8a070 | — |
| variable.other.instance.ruby | #c8d4e0 | — |
| keyword.other.swift | #b0a0d0 | — |
| keyword.other.kotlin | #b0a0d0 | — |
| keyword.other.dart | #b0a0d0 | — |
| entity.name.tag.toml | #7cb8e0 | — |
| keyword.control.dockerfile | #b0a0d0 | — |
| keyword.other.graphql | #b0a0d0 | — |
| entity.name.type.graphql | #e0c888 | — |
| entity.name.tag.svelte, entity.name.tag.vue | #d08888 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #5a6878 | — |
| entity.name.type.instance.jsdoc | #7cb8e0 | — |
| variable.other.jsdoc | #b0c0d0 | — |
| punctuation.definition.bold | — | bold |
| punctuation.definition.italic | — | italic |
| punctuation.definition.template-expression | #7cb8e0 | — |
| constant.numeric.hex, keyword.other.unit.hex | #d8a070 | — |
| constant.numeric.binary | #d8a070 | — |
| variable.other.constant, variable.other.readwrite | #c8d4e0 | — |
| meta.object-literal.key, support.type.property-name | #7cb8e0 | — |
| keyword.operator.new, keyword.operator.expression | #b0a0d0 | — |
| keyword.operator.type, keyword.operator.instanceof | #7cb8e0 | — |
| storage.type.function, storage.type.async | #b0a0d0 | — |
| storage.type.class | #b0a0d0 | — |
| storage.type.interface | #b0a0d0 | — |
| invalid.deprecated | #d8a070 | strikethrough |
| invalid.illegal | #d08888 | — |
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}!`;
}