Homogenus
Publisher: kitosondu.comThemes in package: 1
Monokai-based theme with fewer colors
Monokai-based theme with fewer 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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #F8F8F2 | — |
| comment | #88846F | — |
| string | #E6DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92672 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric | #AE81FF | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | #F8F8F2 | |
| keyword | #F92672 | — |
| storage | #F92672 | |
| storage.type | #66D9EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #A6E22E | underline |
| entity.other.inherited-class | #A6E22E | italic underline |
| variable.parameter, meta.function.parameters.php | #FD971F | italic |
| entity.name.tag | #F92672 | |
| entity.other.attribute-name | #A6E22E | |
| support.function | #66D9EF | |
| support.constant | #66D9EF | |
| support.type | #66D9EF | italic |
| support.other.variable | — | |
| invalid | #F44747 | |
| invalid.deprecated | #F44747 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F | |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E | bold |
| markup.heading.markdown | — | bold |
| markup.quote.markdown | #75715E | italic |
| markup.bold.markdown | — | bold |
| string.other.link.title.markdown,string.other.link.description.markdown | #AE81FF | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E6DB74 | — |
| markup.italic.markdown | — | italic |
| markup.list.unnumbered.markdown, markup.list.numbered.markdown | #F8F8F2 | — |
| punctuation.definition.list.begin.markdown | #A6E22E | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language | #FD971F | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | #7EEAFF | — |
| keyword | #BBBBBB | — |
| entity.name.class | #A6E22E | underline |
| entity.other.inherited-class | #A6E22E | italic underline |
| entity.name.tag | #64BFFF | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin.xml, punctuation.definition.tag.end.xml, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #64BFFF | — |
| punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #64BFFF | — |
| meta.tag | #64BFFF | — |
| entity.other.attribute-name | #64BFFF | — |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml, string.quoted.double.doctype.identifiers-and-DTDs.html | #64BFFF | — |
| meta.function.php | #A6E22E | — |
| entity.other.alias.php | #A6E22E | — |
| support.function.construct.php, support.function.array.php, support.function.php_pcre.php | #51B32B | — |
| variable.language.this.php | #7EEAFF | — |
| meta.method-call.php, meta.method-call.static.php | #7EEAFF | — |
| storage.type.class.php, storage.type.function.php, keyword.control.abstract.php, keyword.control.and.php, keyword.control.as.php, keyword.control.break.php, keyword.control.callable.php, keyword.control.case.php, keyword.control.catch.php, keyword.control.class.php, keyword.control.clone.php, keyword.control.const.php, keyword.control.continue.php, keyword.control.declare.php, keyword.control.default.php, keyword.control.do.php, keyword.control.echo.php, keyword.control.else.php, keyword.control.elseif.php, keyword.control.empty.php, keyword.control.enddeclare.php, keyword.control.endfor.php, keyword.control.endforeach.php, keyword.control.endif.php, keyword.control.endswitch.php, keyword.control.endwhile.php, keyword.control.extends.php, keyword.control.final.php, keyword.control.finally.php, keyword.control.fn.php, keyword.control.for.php, keyword.control.foreach.php, keyword.control.function.php, keyword.control.global.php, keyword.control.goto.php, keyword.control.if.php, keyword.control.implements.php, keyword.control.include.php, keyword.control.include_once.php, keyword.control.instanceof.php, keyword.control.insteadof.php, keyword.control.interface.php, keyword.control.isset.php, keyword.control.list.php, keyword.control.namespace.php, keyword.control.new.php, keyword.control.or.php, keyword.control.print.php, keyword.control.private.php, keyword.control.protected.php, keyword.control.public.php, keyword.control.require.php, keyword.control.require_once.php, keyword.control.return.php, keyword.control.static.php, keyword.control.switch.php, keyword.control.throw.php, keyword.control.trait.php, keyword.control.try.php, keyword.control.unset.php, keyword.control.use.php, keyword.control.var.php, keyword.control.while.php, keyword.control.xor.php, keyword.control.yield.php, keyword.control.yield-from, keyword.control.return.php, keyword.other.new.php, storage.type.php | #F92672 | |
| entity.name.type.class.php, entity.name.type.namespace.php | — | |
| entity.other.inherited-class.php | — | italic |
| string.quoted.double.php, string.quoted.single.php | #D0863F | — |
| variable.other.property.php | #66D9EF | — |
| variable.other.php | #8FEB6B | — |
| keyword.operator.class.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.end.bracket.curly.php | #F8F8F2 | — |
| punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php | #4BB32B | — |
| meta.class.php, meta.function.parameter.typehinted.php, punctuation.section.array.begin.php, punctuation.section.array.end.php | #4BB32B | |
| keyword.other.type.php, meta.other.type.phpdoc.php, keyword.other.phpdoc.php | #bdbbb0 | — |
| storage.type.function.js, storage.type.js | #F92672 | — |
| variable.language.this.js, meta.function-call.js | #7EEAFF | — |
| meta.object-literal.key.js-, entity.name.function.js- | #A6E22E | — |
| meta.object.member.js-, variable.other.property.js | #F8F8F2 | — |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #bdbbb0 | |
| comment | #88846F | — |
| punctuation.definition.comment | #88846F | — |
| string | #CB8F62 | — |
| meta.embedded.assembly | #CB8F62 | — |
| constant.numeric | #AE81FF | — |
| support.function.url.css | #51B32B | — |
| string.quoted.double.json | #cb8f62 | — |
| support.type.property-name.json | #bbbbbb | — |
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}!`;
}