Monokaizen
Publisher: Alexander SanchezThemes in package: 2
A minimalist semantic dark theme inspired by Monokai.
A minimalist semantic dark theme inspired by Monokai.
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 |
|---|---|---|
| keyword.operator, meta, source, variable | #F7F8F2 | |
| comment | #6E7066 | |
| entity.name.tag, keyword, storage | #F92672 | |
| string | #E6DB74 | |
| constant, string.regexp | #AE81FF | |
| entity.name.function, support.function | #A6E22E | |
| constant.other.color.rgb-value.hex.css, support.constant.property-value.css | #E6DB74 | |
| constant.numeric.css keyword.other.unit | #AE81FF | |
| entity.name.tag.css, entity.name.tag.wildcard.css, entity.other.attribute-name.class.css, entity.other.attribute-name.pseudo-class.css | #66D9EF | italic |
| keyword.other.definition.ini | #F7F8F2 | |
| storage.type.function.arrow.js | #F7F8F2 | |
| comment.block.documentation.js, comment.block.documentation.js comment, comment.block.documentation.js constant, comment.block.documentation.js entity.name.function, comment.block.documentation.js entity.name.tag, comment.block.documentation.js keyword, comment.block.documentation.js keyword.operator, comment.block.documentation.js meta, comment.block.documentation.js source, comment.block.documentation.js storage, comment.block.documentation.js string, comment.block.documentation.js string.regexp, comment.block.documentation.js support.function, comment.block.documentation.js variable | #6E7066 | |
| string.regexp.js, string.regexp.js comment, string.regexp.js constant, string.regexp.js entity.name.function, string.regexp.js entity.name.tag, string.regexp.js keyword, string.regexp.js keyword.operator, string.regexp.js meta, string.regexp.js source, string.regexp.js storage, string.regexp.js string, string.regexp.js string.regexp, string.regexp.js support.function, string.regexp.js variable | #AE81FF | |
| support.type.property-name.json | #F7F8F2 | |
| string.other.link.description.markdown, string.other.link.title.markdown | #F7F8F2 | |
| constant.character.format.placeholder.other.python, constant.other.caps.python, constant.other.ellipsis.python, storage.type.format.python, support.variable.magic.python | #F7F8F2 | |
| comment.line.number-sign.python, comment.line.number-sign.python comment, comment.line.number-sign.python constant, comment.line.number-sign.python entity.name.function, comment.line.number-sign.python entity.name.tag, comment.line.number-sign.python keyword, comment.line.number-sign.python keyword.operator, comment.line.number-sign.python meta, comment.line.number-sign.python source, comment.line.number-sign.python storage, comment.line.number-sign.python string, comment.line.number-sign.python string.regexp, comment.line.number-sign.python support.function, comment.line.number-sign.python variable, entity.name.function.decorator.python, meta.function.decorator.python, meta.function.decorator.python comment, meta.function.decorator.python constant, meta.function.decorator.python entity.name.function, meta.function.decorator.python entity.name.tag, meta.function.decorator.python keyword, meta.function.decorator.python keyword.operator, meta.function.decorator.python meta, meta.function.decorator.python meta.function-call.arguments.python, meta.function.decorator.python meta.function-call.arguments.python comment, meta.function.decorator.python meta.function-call.arguments.python constant, meta.function.decorator.python meta.function-call.arguments.python entity.name.function, meta.function.decorator.python meta.function-call.arguments.python entity.name.tag, meta.function.decorator.python meta.function-call.arguments.python keyword, meta.function.decorator.python meta.function-call.arguments.python keyword.operator, meta.function.decorator.python meta.function-call.arguments.python meta, meta.function.decorator.python meta.function-call.arguments.python source, meta.function.decorator.python meta.function-call.arguments.python storage, meta.function.decorator.python meta.function-call.arguments.python string, meta.function.decorator.python meta.function-call.arguments.python string.regexp, meta.function.decorator.python meta.function-call.arguments.python support.function, meta.function.decorator.python meta.function-call.arguments.python variable, meta.function.decorator.python source, meta.function.decorator.python storage, meta.function.decorator.python string, meta.function.decorator.python string.regexp, meta.function.decorator.python support.function, meta.function.decorator.python variable, string.quoted.docstring.multi.python, string.quoted.docstring.multi.python comment, string.quoted.docstring.multi.python constant, string.quoted.docstring.multi.python entity.name.function, string.quoted.docstring.multi.python entity.name.tag, string.quoted.docstring.multi.python keyword, string.quoted.docstring.multi.python keyword.operator, string.quoted.docstring.multi.python meta, string.quoted.docstring.multi.python source, string.quoted.docstring.multi.python storage, string.quoted.docstring.multi.python string, string.quoted.docstring.multi.python string.regexp, string.quoted.docstring.multi.python support.function, string.quoted.docstring.multi.python variable | #6E7066 | |
| keyword.operator.logical.python | #F92672 | |
| string.quoted.binary.single.python storage.type.string.python, string.quoted.multi.python storage.type.string.python, string.quoted.single.python storage.type.string.python | #E6DB74 | |
| storage.type.number.python, string.regexp.quoted.single.python, string.regexp.quoted.single.python comment, string.regexp.quoted.single.python constant, string.regexp.quoted.single.python entity.name.function, string.regexp.quoted.single.python entity.name.tag, string.regexp.quoted.single.python keyword, string.regexp.quoted.single.python keyword.operator, string.regexp.quoted.single.python meta, string.regexp.quoted.single.python source, string.regexp.quoted.single.python storage, string.regexp.quoted.single.python string, string.regexp.quoted.single.python string.regexp, string.regexp.quoted.single.python support.function, string.regexp.quoted.single.python variable | #AE81FF | |
| meta.function-call.generic.python, meta.function.python support.variable.magic.python | #A6E22E | |
| storage.type.variable.ruby | #F7F8F2 | |
| meta.type.signature.rbs, meta.type.signature.rbs comment, meta.type.signature.rbs constant, meta.type.signature.rbs entity.name.function, meta.type.signature.rbs entity.name.tag, meta.type.signature.rbs keyword, meta.type.signature.rbs keyword.operator, meta.type.signature.rbs meta, meta.type.signature.rbs source, meta.type.signature.rbs storage, meta.type.signature.rbs string, meta.type.signature.rbs string.regexp, meta.type.signature.rbs support.function, meta.type.signature.rbs variable | #6E7066 | |
| constant.language.false.shell, constant.language.true.shell, constant.numeric.decimal.shell, constant.numeric.integer.shell, punctuation.definition.variable.shell, string.interpolated.process-substitution.shell, string.regexp.unquoted.shell, string.unquoted.argument constant.other.option, string.unquoted.argument.shell, string.unquoted.shell | #F7F8F2 | |
| meta.shebang.shell | #6E7066 | |
| keyword.operator.heredoc.shell, punctuation.definition.string.heredoc.delimiter.shell | #E6DB74 | |
| keyword.other.interpolation.begin.hcl, keyword.other.interpolation.end.hcl | #F7F8F2 | |
| entity.name.type.terraform, keyword.operator.word.hcl | #F92672 | |
| keyword.control.heredoc.hcl, keyword.operator.heredoc.hcl, variable.other.enummember.hcl | #E6DB74 | |
| storage.type.hcl | #66D9EF | italic |
| constant.language.import-export-all.ts, storage.type.function.arrow.ts | #F7F8F2 | |
| comment.block.documentation.ts, comment.block.documentation.ts comment, comment.block.documentation.ts constant, comment.block.documentation.ts entity.name.function, comment.block.documentation.ts entity.name.tag, comment.block.documentation.ts keyword, comment.block.documentation.ts keyword.operator, comment.block.documentation.ts meta, comment.block.documentation.ts source, comment.block.documentation.ts storage, comment.block.documentation.ts string, comment.block.documentation.ts string.regexp, comment.block.documentation.ts support.function, comment.block.documentation.ts variable, meta.tag.ts, meta.tag.ts comment, meta.tag.ts constant, meta.tag.ts entity.name.function, meta.tag.ts entity.name.tag, meta.tag.ts keyword, meta.tag.ts keyword.operator, meta.tag.ts meta, meta.tag.ts source, meta.tag.ts storage, meta.tag.ts string, meta.tag.ts string.regexp, meta.tag.ts support.function, meta.tag.ts variable | #6E7066 | |
| keyword.operator.expression.in.ts, keyword.operator.expression.infer.ts, keyword.operator.expression.instanceof.ts, keyword.operator.expression.keyof.ts, keyword.operator.expression.typeof.ts, keyword.operator.new.ts | #F92672 | |
| string.regexp.ts, string.regexp.ts comment, string.regexp.ts constant, string.regexp.ts entity.name.function, string.regexp.ts entity.name.tag, string.regexp.ts keyword, string.regexp.ts keyword.operator, string.regexp.ts meta, string.regexp.ts source, string.regexp.ts storage, string.regexp.ts string, string.regexp.ts string.regexp, string.regexp.ts support.function, string.regexp.ts variable | #AE81FF | |
| support.type.builtin.ts, support.type.primitive.ts | #66D9EF | italic |
| constant.language.import-export-all.tsx, storage.type.function.arrow.tsx, support.class.component.tsx | #F7F8F2 | |
| comment.block.documentation.tsx, comment.block.documentation.tsx comment, comment.block.documentation.tsx constant, comment.block.documentation.tsx entity.name.function, comment.block.documentation.tsx entity.name.tag, comment.block.documentation.tsx keyword, comment.block.documentation.tsx keyword.operator, comment.block.documentation.tsx meta, comment.block.documentation.tsx source, comment.block.documentation.tsx storage, comment.block.documentation.tsx string, comment.block.documentation.tsx string.regexp, comment.block.documentation.tsx support.function, comment.block.documentation.tsx variable | #6E7066 | |
| keyword.operator.expression.in.tsx, keyword.operator.expression.infer.tsx, keyword.operator.expression.instanceof.tsx, keyword.operator.expression.keyof.tsx, keyword.operator.expression.typeof.tsx, keyword.operator.new.tsx | #F92672 | |
| string.regexp.tsx, string.regexp.tsx comment, string.regexp.tsx constant, string.regexp.tsx entity.name.function, string.regexp.tsx entity.name.tag, string.regexp.tsx keyword, string.regexp.tsx keyword.operator, string.regexp.tsx meta, string.regexp.tsx source, string.regexp.tsx storage, string.regexp.tsx string, string.regexp.tsx string.regexp, string.regexp.tsx support.function, string.regexp.tsx variable | #AE81FF | |
| support.type.builtin.tsx, support.type.primitive.tsx | #66D9EF | italic |
| entity.name.tag.yaml | #F7F8F2 | |
| token.debug-token, token.info-token | #F7F8F2 | |
| token.error-token | #F92672 | |
| token.warn-token | #E6DB74 |
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}!`;
}