Menthol Theme
Publisher: UltraKostikThemes in package: 1
Modern and minimalistic color theme with mint accents and warm contrasting colors for focus, optimized for semantic highlighting across major programming languages.
Modern and minimalistic color theme with mint accents and warm contrasting colors for focus, optimized for semantic highlighting across major programming languages.
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 | #5A9A7A | italic |
| keyword, storage.type, storage.modifier | #4AAA8A | — |
| support.type, entity.name.type, keyword.other.type.php | #5AAAB8 | — |
| storage.modifier | #6ABA8A | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #70C8E0 | — |
| keyword.function.go | #70C8E0 | — |
| storage.type.function.js | #70C8E0 | — |
| keyword.control.lua | #70C8E0 | — |
| storage.type.function.php | #70C8E0 | — |
| meta.function.c,meta.function.cpp | #70C8E0 | — |
| entity.name.function.cs | #70C8E0 | — |
| entity.name.function.java | #70C8E0 | — |
| keyword.control.import, keyword.control.import.ts, keyword.control.import.swift, keyword.control.import.js, keyword.control.import.go, keyword.other.import.dart, keyword.control.at-rule.import.css, storage.modifier.import, storage.modifier.import.java, keyword.control.export | #6AB8B8 | — |
| keyword.control.import.from.python | #6AB8B8 | — |
| keyword.control.import.as.python | #6AB8B8 | — |
| keyword.control.directive.include.c, keyword.control.directive.include.cpp, keyword.control.import.include.php | #6AB8B8 | — |
| keyword.other.special-method.ruby | #6AB8B8 | — |
| string, constant.other.symbol, constant.other.key, markup.heading | #7AD0A0 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter | #E0B090 | — |
| meta.function-call.arguments, meta.function-call.arguments.python, meta.function-call.js variable.other.readwrite.js, meta.argument.shell | #E8C860 | — |
| entity.name, support.type, support.class, entity.name.class | #E8D080 | — |
| entity.name.tag, meta.tag.sgml | #4AAA8A | — |
| entity.other.attribute-name | #70C8E0 | — |
| keyword.control, punctuation, meta.tag, punctuation.definition.tag | #6AA8A8 | bold |
| variable, variable.assignment, string constant.other.placeholder | #E6EDF3 | — |
| meta.decorator, entity.name.function.decorator | #E0A0B8 | bold |
| meta.function.decorator.python, entity.name.function.decorator.python | #E0A0B8 | bold |
| meta.decorator.ts entity.name.function.ts | #E0A0B8 | bold |
| storage.type.annotation.java | #E0A0B8 | bold |
| support.attribute.php | #E0A0B8 | bold |
| support.attribute.builtin.php | #E0A0B8 | bold |
| storage.type.annotation.dart | #E0A0B8 | bold |
| storage.type.annotation.groovy | #E0A0B8 | bold |
| storage.modifier.attribute.swift | #E0A0B8 | bold |
| punctuation.definition.decorator | #E0A0B8 | bold |
| support.variable.magic.python | #E0B090 | italic |
| variable.parameter.function.language.special.self.python | #8A8AD8 | italic |
| storage.modifier.lifetime.rust | #6AA8A8 | — |
| entity.name.lifetime.rust | #D4A0E0 | italic |
| entity.name.package.go | #E8D080 | — |
| support.type.go | #5AAAB8 | — |
| keyword.other.sql | #4AAA8A | — |
| support.function.sql | #70C8E0 | — |
| entity.name.tag.yaml | #70C8E0 | — |
| string.quoted.double.yaml | #7AD0A0 | — |
| entity.name.tag.toml | #70C8E0 | — |
| string.quoted.double.toml | #7AD0A0 | — |
| variable.other.normal.shell | #E6EDF3 | — |
| support.function.shell | #70C8E0 | — |
| keyword.control.dockerfile | #4AAA8A | — |
| support.function.dockerfile | #70C8E0 | — |
| invalid, invalid.illegal | #E06060 | — |
| string.regexp | #70C8E0 | — |
| *url*, *link*, *uri* | #70C8E0 | underline |
| markup.bold | #E8D080 | bold |
| markup.italic | #7AD0A0 | italic |
| string.other.link.title.markdown | #70C8E0 | — |
| support.type.property-name.json | #70C8E0 | — |
| support.type.property-name | #E8D080 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.name.tag.css | #7AD0A0 | — |
| keyword.other.unit.css | #E0B090 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #6AA8A8 | italic |
| support.constant.color.w3c-standard-color-name.css | #D4A0E0 | — |
| support.type, constant.language, meta.type.annotation | #D4A0E0 | italic |
| support.type.exception, entity.other.inherited-class.java | #E07070 | bold |
| variable.parameter.function.language.special.self.python, variable.language.special.self.python, variable.language.this | #8A8AD8 | italic |
| variable.language.this.java | #8A8AD8 | italic |
| variable.language.this.cpp | #8A8AD8 | italic |
| variable.language.this.php | #8A8AD8 | italic |
| variable.language.this.js | #8A8AD8 | italic |
| variable.language.this.ts | #8A8AD8 | italic |
| variable.language.self.ruby | #8A8AD8 | italic |
| variable.language.self.rust | #8A8AD8 | italic |
| keyword.operator.new.js | #7A8AC8 | italic |
| keyword.operator.new.ts | #7A8AC8 | italic |
| keyword.control.new.java | #7A8AC8 | italic |
| keyword.operator.new.cpp | #7A8AC8 | italic |
| keyword.operator.expression.new.cs | #7A8AC8 | italic |
| keyword.other.new.php | #7A8AC8 | italic |
| keyword.new.dart | #7A8AC8 | italic |
| keyword.control.new.groovy | #7A8AC8 | italic |
| support.function.magic | #70C8E0 | italic |
| markup.heading | #E8D080 | bold |
| markup.bold.markdown | #E8D080 | bold |
| markup.italic.markdown | #7AD0A0 | italic |
| markup.bold.markdown markup.italic.markdown | #E0A0B8 | italic bold |
| markup.underline.link.markdown | #70C8E0 | underline |
| markup.quote.markdown | #6AA8A8 | italic |
| markup.fenced_code.block.markdown | #E6EDF3 | — |
| markup.list.markdown | #4AAA8A | — |
| meta.embedded.line.css support.type.property-name.css | #E8D080 | — |
| meta.embedded.line.css support.constant.property-value.css | #7AD0A0 | — |
| keyword.operator.expression.instanceof | #4AAA8A | — |
| keyword.operator.instanceof.java | #4AAA8A | — |
| keyword.operator.expression.instanceof.js | #4AAA8A | — |
| markup.inserted.diff | #80E0B0 | — |
| markup.deleted.diff | #E08080 | — |
| markup.changed.diff | #D8D890 | — |
| punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.separator.parameters.python | #6AA8A8 | — |
| punctuation.definition.parameters.begin.java, punctuation.definition.parameters.end.java, punctuation.separator.parameters.java | #6AA8A8 | — |
| punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js, punctuation.separator.parameters.js | #6AA8A8 | — |
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}!`;
}