MGZ Dark Theme
Publisher: Đorđe StankovićThemes in package: 3
You know it.
You know it.
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 |
|---|---|---|
| punctuation.definition.delayed.unison,punctuation.definition.list.begin.unison,punctuation.definition.list.end.unison,punctuation.definition.ability.begin.unison,punctuation.definition.ability.end.unison,punctuation.operator.assignment.as.unison,punctuation.separator.pipe.unison,punctuation.separator.delimiter.unison,punctuation.definition.hash.unison | #cf6ecd | — |
| support.constant.edge | #a584ff | — |
| variable.parameter.function | #e4e4e4 | — |
| comment markup.link | #658595 | — |
| markup.changed.diff | #1babff | — |
| meta.diff.header.from-file,meta.diff.header.to-file,punctuation.definition.from-file.diff,punctuation.definition.to-file.diff | #ff6176 | — |
| markup.inserted.diff | #a0e65c | — |
| markup.deleted.diff | #cf6ecd | — |
| storage.type.annotation.java, storage.type.object.array.java | #1babff | — |
| meta.definition.variable.name.java | #cf6ecd | — |
| support.constant.property-value.scss,support.constant.property-value.css | #58f5ab | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #58f5ab | — |
| punctuation.separator.list.comma.css | #e4e4e4 | — |
| support.type.vendored.property-name.css | #f9c64e | — |
| entity.name.type.module | #1babff | — |
| support.type.object.dom | #f9c64e | — |
| support.variable.dom,support.variable.property.dom | #cf6ecd | — |
| punctuation.separator.delimiter | #e4e4e4 | — |
| token.package.keyword | #a584ff | — |
| token.package | #e4e4e4 | — |
| entity.name.type.namespace | #1babff | — |
| entity.name.class.identifier.namespace.type | #1babff | — |
| entity.name.type | #1babff | — |
| control.elements | #58f5ab | — |
| keyword.other.special-method | #ff6176 | — |
| token.storage | #a584ff | — |
| token.storage.type.java | #ff00ff | — |
| support.constant.property-value | #e4e4e4 | — |
| support.constant.font-name | #58f5ab | — |
| entity.other.inherited-class | #1babff | — |
| constant.other.symbol | #f9c64e | — |
| constant.numeric | #58f5ab | — |
| entity.other.attribute-name.class.css | #58f5ab | |
| meta.selector | #a584ff | — |
| markup.heading | #cf6ecd | — |
| markup.heading punctuation.definition.heading, entity.name.section | #ff6176 | — |
| markup.bold,todo.bold | #58f5ab | — |
| punctuation.definition.bold | #1babff | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #a584ff | — |
| emphasis md | #a584ff | — |
| markup.heading.setext | #e4e4e4 | — |
| punctuation.definition.bold.markdown | #58f5ab | — |
| markup.inline.raw.markdown | #a0e65c | — |
| punctuation.definition.list.markdown | #cf6ecd | — |
| beginning.punctuation.definition.list.markdown | #cf6ecd | — |
| punctuation.section.embedded, variable.interpolation | #cf6ecd | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #a584ff | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #cf6ecd | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #cf6ecd | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #71d6d6 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #f9c64e | — |
| function.brace | #e4e4e4 | — |
| function.parameter.ruby, function.parameter.cs | #e4e4e4 | — |
| constant.language.symbol.ruby | #f9c64e | — |
| rgb-value | #f9c64e | — |
| inline-color-decoration rgb-value | #58f5ab | — |
| less rgb-value | #58f5ab | — |
| selector.sass | #cf6ecd | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #1babff | — |
| block.scope.end,block.scope.begin | #e4e4e4 | — |
| storage.type.cs | #1babff | — |
| entity.name.variable.local.cs | #cf6ecd | — |
| token.info-token | #ff6176 | — |
| token.warn-token | #58f5ab | — |
| token.error-token | #f44747 | — |
| token.debug-token | #a584ff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #a584ff | — |
| meta.template.expression | #e4e4e4 | — |
| support.type.type.flowtype | #ff6176 | — |
| support.type.primitive | #1babff | — |
| meta.property.object | #cf6ecd | — |
| variable.parameter.function.js | #cf6ecd | — |
| keyword.other.template.begin | #a0e65c | — |
| keyword.other.template.end | #a0e65c | — |
| keyword.other.substitution.begin | #a0e65c | — |
| keyword.other.substitution.end | #a0e65c | — |
| punctuation.quasi.element | #a584ff | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #f9c64e | — |
| text.variable, text.bracketed | #cf6ecd | — |
| comment | #658595 | — |
| string | #58F5AB | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #58F5AB | — |
| variable.other.object.property | #955ae7 | — |
| storage | #4e79f0 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #ff6176 | — |
| storage.type.annotation.java | #58F5AB | — |
| variable | #8bd4ff | — |
| entity.name.tag | #2d93f3 | — |
| constant | #2ADEDE | — |
| keyword | #2ADEDE | — |
| entity.other.attribute-name | #2ADEDE | — |
| storage.modifier.import.java | #ffffff | — |
| storage.type.java,storage.type.generic.java | #1babff | — |
| support.class, entity.name.type.class | #1babff | — |
| variable.language | #0e95be | — |
| keyword.other.unit | #6d6fca | — |
| meta.directive.vue entity.other.attribute-name | #49e951 | — |
| storage.type.built-in | #a584ff | — |
| storage.modifier.specifier.functional.post-parameters | #a584ff | — |
| support.type.property-name.json | #8edfff | — |
| support.type.property-name.json punctuation | #8edfff | — |
| constant.character.escape | #f9c64e | — |
| keyword.operator | #ffffff | — |
| keyword.operator.type | #ff765e | — |
| keyword.operator.assignment | #f9c64e | — |
| keyword.operator.assignment.compound | #ff765e | — |
| keyword.operator.logical | #f9c64e | — |
| keyword.operator.bitwise | #8df94e | — |
| keyword.operator.comparison | #f9c64e | — |
| keyword.operator.relational | #f9c64e | — |
| keyword.operator.arithmetic | #f9c64e | — |
| keyword.operator.decrement | #f94e4e | — |
| keyword.operator.increment | #8df94e | — |
| keyword.operator.new | #8df94e | — |
| keyword.operator.delete | #f94e4e | — |
| keyword.operator.expression.typeof | #a584ff | — |
| keyword.operator.channel | #a584ff | — |
| keyword.operator.module | #ff0000 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.expression.void | #a584ff | — |
| support.function | #f9c64e | — |
| entity.name.section.markdown | #8edfff | — |
| punctuation.definition.heading.markdown | #cf6ecd | — |
| punctuation.definition.list.begin.markdown | #ebc90a | — |
| markup.inline.raw.string.markdown | #3affc4 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #8edfff | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #61ff76 | — |
| punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.metadata.markdown, punctuation.definition.markdown | #ebc90a | — |
| fenced_code | #8edfff | — |
| markup.fenced_code.block.markdown | #b4b3ff | — |
| source | #ffffff | — |
| support.type | #ffffff | — |
| entity.name.section | #FF6176 | — |
| source.ini | #2d93f3 | — |
| keyword.control | #a584ff | — |
| meta.function-call.generic | #2389ff | — |
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}!`;
}