Mishu Theme
Publisher: codewithmishuThemes in package: 9
A calm, low-contrast dark theme designed for eye comfort during long coding sessions. Features semantic syntax highlighting and harmonious colors.
A calm, low-contrast dark theme designed for eye comfort during long coding sessions. Features semantic syntax highlighting and harmonious colors.
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 | #606878 | italic |
| string, string.quoted, string.template | #a4c09c | — |
| constant.character.escape, string.regexp | #88c0b4 | — |
| constant.numeric | #d0a488 | — |
| constant.language, constant.other | #d0b488 | — |
| variable, variable.other | #c0c4d0 | — |
| variable.parameter | #b4c0d0 | — |
| variable.other.property, variable.other.object.property | #c0c4d0 | — |
| keyword, keyword.control, keyword.operator.expression | #c0a4b4 | — |
| keyword.operator, keyword.operator.assignment | #888c98 | — |
| keyword.type, keyword.other.type, storage.type.primitive | #88c0b4 | — |
| storage, storage.type, storage.modifier | #c0a4b4 | — |
| entity.name.function, meta.function-call, support.function, variable.function | #78b4d8 | — |
| entity.name.function, meta.definition.function entity.name.function | #78b4d8 | — |
| meta.method.declaration entity.name.function, meta.method-call | #78b4d8 | — |
| entity.name.class, entity.name.type.class, support.class, entity.other.inherited-class | #88c0b4 | — |
| entity.name.type.interface | #88c0b4 | — |
| entity.name.type, support.type, support.type.primitive | #88c0b4 | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #a4c09c | — |
| entity.name.namespace, entity.name.module | #b4a4c0 | — |
| entity.name.type.enum | #88c0b4 | — |
| variable.other.enummember, constant.other.enum | #d0b488 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #888c98 | — |
| meta.brace, punctuation.definition.block, punctuation.section | #888c98 | — |
| meta.decorator, punctuation.decorator, meta.decorator entity.name.function | #b4a4c0 | — |
| storage.type.annotation, meta.annotation | #b4a4c0 | — |
| markup.heading, markup.heading entity.name, entity.name.section | #78b4d8 | bold |
| markup.bold | #d0b488 | bold |
| markup.italic | #c0a4b4 | italic |
| markup.underline | — | underline |
| markup.underline.link, string.other.link | #78b4d8 | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #88c0b4 | — |
| markup.quote | #606878 | italic |
| markup.list, punctuation.definition.list | #d0b488 | — |
| markup.inserted | #88c0b4 | — |
| markup.deleted | #d08888 | — |
| markup.changed | #78b4d8 | — |
| entity.name.tag | #78b4d8 | — |
| entity.other.attribute-name | #88c0b4 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #606878 | — |
| support.class.component | #88c0b4 | — |
| entity.name.tag.css, entity.other.attribute-name.css | #78b4d8 | — |
| entity.other.attribute-name.class.css | #88c0b4 | — |
| entity.other.attribute-name.id.css | #d0b488 | — |
| support.type.property-name.css | #c0c4d0 | — |
| support.constant.property-value.css, meta.property-value.css | #d0b488 | — |
| keyword.other.unit.css | #d0a488 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #c0a4b4 | — |
| support.type.property-name.json | #78b4d8 | — |
| entity.name.tag.yaml | #78b4d8 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #c0a4b4 | italic |
| support.function.magic.python | #78b4d8 | italic |
| variable.language.this | #c0a4b4 | italic |
| variable.language.super | #c0a4b4 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #c0a4b4 | — |
| support.class.console, support.type.object.console | #88c0b4 | — |
| support.class.dom, support.type.object.dom | #88c0b4 | — |
| meta.type.annotation entity.name.type | #88c0b4 | — |
| string.regexp | #a4b4c0 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp | #88c0b4 | — |
| constant.other.character-class.regexp | #d0b488 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #78b4d8 | — |
| entity.name.package.go | #b4a4c0 | — |
| entity.name.function.macro.rust, meta.macro.rust | #d0a488 | — |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #a4c09c | — |
| meta.preprocessor, keyword.control.directive | #b4a4c0 | — |
| entity.name.function.preprocessor | #d0a488 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.alias.sql | #c0a4b4 | — |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #606878 | — |
| entity.name.type.instance.jsdoc | #88c0b4 | — |
| variable.other.jsdoc | #b4c0d0 | — |
| invalid.deprecated | #d0b488 | 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}!`;
}