Mowgli
Publisher: Siddharth AbbineniThemes in package: 1
A Colorful theme based on the Jungle Night Theme
A Colorful theme based on the Jungle Night Theme
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 |
|---|---|---|
| storage.type | — | italic |
| variable.parameter | — | italic |
| string.template, string.quoted.single | — | italic |
| punctuation.definition.string.begin,punctuation.definition.string.end | #57a669 | — |
| variable.parameter.function | #A6B2C0 | — |
| meta.function.parameters | — | italic |
| comment, punctuation.definition.comment | #818992 | italic |
| comment markup.link | #496C99 | — |
| markup.changed.diff | #e0c28550 | — |
| meta.diff.header.from-file,punctuation.definition.from-file.diff | #569cd650 | — |
| markup.inserted.diff | #C3E88D50 | — |
| markup.deleted.diff | #CCA3A3AA | — |
| meta.function.c | #ff97a3 | — |
| keyword.control.cpp | #ffb38c | — |
| punctuation.section.block.begin.bracket.curly.cpp,punctuation.section.block.end.bracket.curly.cpp,punctuation.terminator.statement.c,punctuation.section.block.begin.bracket.curly.c,punctuation.section.block.end.bracket.curly.c,punctuation.section.parens.begin.bracket.round.c,punctuation.section.parens.end.bracket.round.c,punctuation.section.parameters.begin.bracket.round.c,punctuation.section.parameters.end.bracket.round.c | #abb2bf | — |
| punctuation.separator.key-value | #bbbbbb | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| keyword.operator.expression.import | #7fb5ff | — |
| support.constant.math | #ffb38c | — |
| support.constant.property.math | #ffb38c | — |
| variable.other.constant | #ffb38c | — |
| storage.type.annotation.java | #ffb38c | — |
| source.java | #ff97a3 | — |
| punctuation.section.block.begin.java,punctuation.section.block.end.java,punctuation.definition.method-parameters.begin.java,punctuation.definition.method-parameters.end.java,meta.method.identifier.java,punctuation.section.method.begin.java,punctuation.section.method.end.java,punctuation.terminator.java,punctuation.section.class.begin.java,punctuation.section.class.end.java,punctuation.section.inner-class.begin.java,punctuation.section.inner-class.end.java,meta.method-call.java,storage.type.generic.java,punctuation.section.class.begin.bracket.curly.java,punctuation.section.class.end.bracket.curly.java,punctuation.section.method.begin.bracket.curly.java,punctuation.section.method.end.bracket.curly.java,punctuation.separator.period.java,meta.method.body.java | #abb2bf | — |
| meta.method.java | #7fb5ff | — |
| storage.modifier.import.java,storage.type.java | #ffb38c | — |
| meta.definition.variable.name.java | #ff97a3 | — |
| keyword.operator.logical.js | #38beb6 | — |
| keyword.operator.bitwise | #38beb6 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #ffb38c | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #ffb38c | — |
| punctuation.separator.list.comma.css | #7293C3 | — |
| support.constant.color.w3c-standard-color-name.css | #ffb38c | — |
| support.type.vendored.property-name.css | #38beb6 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end | #ff97a3 | — |
| support.module.node,support.type.object.module,support.module.node | #ffb38c | — |
| variable.other.readwrite, meta.object-literal.key, support.variable.property,support.variable.object.process,support.variable.object.node | #fcfca0 | — |
| variable.other.object | #b3faeb | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| support.constant.json | #ffb38c | — |
| keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.ternary | #ddb3ff | — |
| support.type.object.console | #ff97a3 | — |
| variable.other.object.property | #f8bfc5 | — |
| support.variable.property.process | #ffb38c | — |
| entity.name.function,support.function.console | #7fb5ff | — |
| keyword.operator | #38beb6 | — |
| support.type.object.dom | #38beb6 | — |
| support.variable.dom,support.variable.property.dom | #ff97a3 | — |
| keyword.operator.arithmetic,keyword.operator.comparison | #38beb6 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c | #ddb3ffff | — |
| punctuation.separator.delimiter.c | #bbbbbb | — |
| support.type.posix-reserved.c | #57adb8 | — |
| keyword.operator.sizeof.c | #ddb3ff | — |
| variable.parameter.function.language.python | #ffb38c | — |
| support.type.python | #38beb6 | — |
| keyword.operator.logical.python | #ddb3ff | — |
| meta.function-call.arguments.python | #E06C60 | — |
| meta.function-call.python | #E06C60 | — |
| variable.parameter.function.python | #D18C4E | — |
| punctuation.definition.arguments.begin.python,punctuation.definition.arguments.end.python,punctuation.separator.arguments.python,punctuation.definition.list.begin.python,punctuation.definition.list.end.python,meta.function-call.arguments.python | #abb2bf | — |
| meta.function-call.generic.python | #7fb5ff | — |
| constant.character.format.placeholder.other.python | #C3E88D | — |
| none | #A6B2C0 | — |
| keyword.operator | #dde9ff | — |
| keyword | #ddb3ff | — |
| variable | #ff97a3 | — |
| token.variable.parameter.java | #abb2bf | — |
| import.storage.java | #ffb38c | — |
| token.package.keyword | #ddb3ff | — |
| token.package | #abb2bf | — |
| entity.name.function, meta.require, support.function.any-method | #7fb5ff | — |
| entity.name.type.namespace | #ffb38c | — |
| support.class, entity.name.type.class | #ffb38c | — |
| entity.name.class.identifier.namespace.type | #ffb38c | — |
| entity.name.class | #7fb5ff | — |
| entity.name.type | #ffb38c | — |
| keyword.control | #ddb3ff | — |
| control.elements, keyword.operator.less | #ffb38c | — |
| keyword.other.special-method | #7fb5ff | — |
| storage | #ddb3ff | — |
| token.storage | #ddb3ff | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #ddb3ff | — |
| token.storage.type.java | #ffb38c | — |
| support.function | #38beb6 | — |
| support.type.property-name | #dae4f7 | — |
| support.constant.property-value | #C1CCE1 | — |
| support.constant.font-name | #ffb38c | — |
| meta.tag | #b1d2ff | — |
| punctuation.definition.tag | #ff97a366 | — |
| js.decorator.tag | #95c3f180 | — |
| string, entity.other.inherited-class | #C3E88D | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #54a955 | — |
| constant.other.symbol | #38beb6 | — |
| constant.other.object.key | #EEFFFF | — |
| constant.numeric | #f15d5d | — |
| constant.language.null | #f15d5d | bold |
| none | #ffb38c | — |
| none | #ffb38c | — |
| constant | #ffb38c | — |
| punctuation.definition.constant | #ffb38c | — |
| entity.name.tag | #ff97a3 | — |
| entity.other.attribute-name | #ffb38c | — |
| entity.other.attribute-name.id | #7fb5ff | — |
| entity.other.attribute-name.class.css | #ffb38c | — |
| meta.selector | #ddb3ff | — |
| none | #D2945D | — |
| markup.heading | #ff97a3 | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #7fb5ff | — |
| keyword.other.unit | #ffb38c | — |
| markup.bold,todo.bold | #ffb38c | bold |
| punctuation.definition.bold | #ffb38c | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #ddb3ff | — |
| emphasis md | #ddb3ff | — |
| entity.name.section.markdown | #ff97a3 | — |
| punctuation.definition.heading.markdown | #ff97a3 | — |
| markup.heading.setext | #ABB2BF | — |
| punctuation.definition.bold.markdown | #ffb38c | — |
| markup.inline.raw.markdown | #C3E88D | — |
| beginning.punctuation.definition.list.markdown | #ff97a3 | — |
| markup.quote.markdown | #5C6370 | italic |
| punctuation.definition.string.begin.markdown,punctuation.definition.string.end.markdown,punctuation.definition.metadata.markdown | #ABB2BF | — |
| punctuation.definition.metadata.markdown | #ddb3ff | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #C3E88D | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #7fb5ff | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| string.regexp | #57B6C2 | — |
| constant.character.escape | #57B6C2 | — |
| punctuation.section.embedded, variable.interpolation | #BE4F44 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| support.type.property-name.json | #a9cdff | — |
| support.type.property-name.json punctuation | #7fb5ff | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #e8ccfc | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFCB6B | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F78C6C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #82AAFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #C679DD | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #C679DD | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php | #ffb38c | — |
| keyword.operator.error-control.php | #ddb3ff | — |
| keyword.operator.type.php | #ddb3ff | — |
| punctuation.section.array.begin.php | #abb2bf | — |
| punctuation.section.array.end.php | #abb2bf | — |
| invalid.illegal.non-null-typehinted.php | #ff0000 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #ffb38c | — |
| meta.function-call.php,meta.function-call.object.php,meta.function-call.static.php | #7fb5ff | — |
| punctuation.definition.parameters.begin.bracket.round.php,punctuation.definition.parameters.end.bracket.round.php,punctuation.separator.delimiter.php,punctuation.section.scope.begin.php,punctuation.section.scope.end.php,punctuation.terminator.expression.php,punctuation.definition.arguments.begin.bracket.round.php,punctuation.definition.arguments.end.bracket.round.php,punctuation.definition.storage-type.begin.bracket.round.php,punctuation.definition.storage-type.end.bracket.round.php,punctuation.definition.array.begin.bracket.round.php,punctuation.definition.array.end.bracket.round.php,punctuation.definition.begin.bracket.round.php,punctuation.definition.end.bracket.round.php,punctuation.definition.begin.bracket.curly.php,punctuation.definition.end.bracket.curly.php | #bbbbbb | — |
| support.constant.ext.php,support.constant.std.php,support.constant.core.php,support.constant.parser-token.php | #ffb38c | — |
| entity.name.goto-label.php,support.other.php | #7fb5ff | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #38beb6 | — |
| keyword.operator.regexp.php | #ddb3ff | — |
| keyword.operator.comparison.php | #38beb6 | — |
| punctuation.definition.variable.php | #ff97a3 | — |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #ddb3ff | — |
| meta.function.decorator.python | #7fb5ff | — |
| support.token.decorator.python,meta.function.decorator.identifier.python | #38beb6 | — |
| function.parameter | #ffb38c | — |
| function.parameter | #abb2bf | — |
| function.brace | #abb2bf | — |
| function.parameter.ruby, function.parameter.cs | #abb2bf | — |
| rgb-value | #38beb6 | — |
| inline-color-decoration rgb-value | #ffb38c | — |
| less rgb-value | #ffb38c | — |
| selector.sass | #ff97a3 | — |
| var.this,variable.language.this.js,variable.language.this.ts,variable.language.this.jsx,variable.language.this.tsx | #ffb38c | italic |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #00FFFF | italic |
| meta.decorator.ts | #008cff | — |
| variable.other.readwrite.ts | #cce8ff | — |
| entity.other.inherited-class.ts | #fcfca0 | — |
| block.scope.end,block.scope.begin | #abb2bf | — |
| entity.name.variable.local.cs | #ff97a3 | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}