Aubergine
Publisher: ArtFlagThemes in package: 2
A theme matching Slack's "aubergine" theme.
A theme matching Slack's "aubergine" 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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #1965a1 | — |
| comment | #6d6d6d | italic |
| constant.language, constant.character, constant.other | #33a7ff | — |
| constant.numeric | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #eac66c | — |
| entity.name.tag.css | #d7ba7d | — |
| entity.other.attribute-name | #9cdcfe | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #c19c45c1 | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #3a93d8 | bold |
| markup.heading | #3a93d8 | bold |
| markup.italic | — | italic |
| markup.inserted | #b5cea8 | — |
| markup.deleted | #BF9277 | — |
| markup.changed | #eac66c | — |
| beginning.punctuation.definition.quote.markdown | #608b4e | — |
| beginning.punctuation.definition.list.markdown | #6796e6 | — |
| markup.inline.raw | #BF9277 | — |
| meta.selector | #d7ba7d | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor | #eac66c | — |
| meta.preprocessor.string | #BF9277 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #9cdcfe | — |
| meta.diff.header | #eac66c | — |
| storage | #eac66c | — |
| storage.type | #9CDCFE | — |
| storage.modifier | #eac66c | — |
| string | #C99677 | — |
| string.tag | #C99677 | — |
| string.value | #C99677 | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.end.js | #eac66c | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, keyword.other.class.cs | #9cdcfe | — |
| keyword | #c1bd54 | — |
| keyword.control | #F7397D | — |
| keyword.operator | #9CDCFE | — |
| keyword.operator.sigil.rust, keyword.operator.address.go, keyword.operator.misc.rust | #9CDCFE | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, support.function.builtin.go, support.function.core.rust | #eac66c | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.metatag.php, punctuation.section.embedded.end.metatag.php, punctuation.separator.pointer-access.c | #eac66c | — |
| punctuation.separator.namespace.access.cpp, variable.parameter | #FA9F50 | italic |
| storage.type.function.js, storage.type.function.python, keyword.function.go, keyword.control.def.ruby | #9CDCFE | italic |
| support.function.git-rebase | #9cdcfe | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language, variable.parameter.function.language.special.self.python, keyword.other.this.cs | #9CDCFE | — |
| entity.name.function, entity.name.type.type-parameter.cs, support.function, support.constant.handlebars, meta.function-call.generic.python | #c1bd54 | — |
| meta.return-type, support.class, support.type, entity.name.class, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, keyword.operator.type.annotation.ts, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #9CDCFE | — |
| entity.name.type | #1164A3 | — |
| entity.other.inherited-class | #3a93d8 | italic |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json | #9bb46e | — |
| variable, meta.definition.variable.name, support.variable | #D6D6D6 | — |
| meta.object-literal.key, meta.object-literal.key entity.name.function | #9CDCFE | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #BF9277 | — |
| 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}!`;
}