Aco Theme
Publisher: Lean HackermanThemes in package: 1
Aco color theme for VS Code / Cursor — based on the Gogh terminal palette.
Aco color theme for VS Code / Cursor — based on the Gogh terminal palette.
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, comment.line, comment.block, punctuation.definition.comment, comment.block.documentation, string.comment, markup.quote.markdown | #5a5a5a | italic |
| invalid, invalid.illegal, invalid.deprecated | #FF0883 | underline |
| meta.decorator, meta.decorator.python, entity.name.function.decorator, punctuation.decorator, support.other.decorator | #8308FF | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, storage.type, storage.modifier, keyword.other.import, keyword.other.using, keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.at-rule, keyword.control.directive, keyword.operator.expression.import, keyword.operator.expression.export | #FF0883 | bold |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.assignment, keyword.operator.increment, keyword.operator.decrement, keyword.operator.bitwise, keyword.operator.relational, keyword.operator.spread, keyword.operator.ternary | #BEBEBE | — |
| entity.name.function, meta.function.python entity.name.function, meta.function.ts entity.name.function, meta.function.js entity.name.function, meta.method.declaration entity.name.function, meta.definition.method entity.name.function | #8EFF1E | — |
| entity.name.function.call, meta.function-call entity.name.function, meta.function-call.generic entity.name.function, meta.function-call.python entity.name.function, meta.function-call.ts entity.name.function, meta.function-call.js entity.name.function, meta.function-call.php entity.name.function, meta.function-call.object.ts entity.name.function, support.function.builtin, support.function.magic.python, variable.function | #08FF83 | — |
| entity.name.type, entity.name.type.class, entity.name.class, meta.class entity.name.type, meta.class.python meta.class.inheritance entity.name.type, support.class, support.class.builtin, support.class.builtin.python, entity.name.type.alias, entity.name.type.interface, entity.name.type.module, entity.name.type.namespace | #1E8EFF | — |
| entity.other.inherited-class, meta.class.inheritance entity.other.inherited-class, entity.other.inherited-class.python, entity.other.inherited-class.ts | #1EFF8E | — |
| support.type, support.type.primitive, support.type.builtin, support.type.python, entity.name.type.parameter, meta.type.parameters, meta.type.annotation, meta.return.type, keyword.operator.type.annotation, punctuation.definition.typeparameters, punctuation.section.typeparameters | #0883FF | — |
| variable, variable.other, variable.other.readwrite, variable.other.constant, variable.other.local, variable.other.global, meta.definition.variable, variable.other.readwrite.alias, variable.language.this, variable.language.super, variable.language.self.python, variable.language.special.self.python, entity.name.tag.yaml, constant.character.entity.html, entity.name.tag, meta.template.expression variable | #B4E1FD | — |
| variable.parameter, variable.parameter.function, variable.parameter.ts, variable.parameter.js, meta.function.parameters variable.parameter, meta.function.parameters punctuation.definition.parameters | #FF8E1E | italic |
| variable.other.property, variable.other.object.property, variable.other.member, variable.other.object.property.ts, variable.other.object.property.js, support.variable.property, meta.property-name, entity.name.tag.reference, entity.other.attribute-name, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, meta.property-list.css entity.other.attribute-name, support.type.property-name.css, support.type.property-name, meta.structure.dictionary.key.python, meta.attribute-with-value entity.other.attribute-name | #0883FF | — |
| constant.numeric, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity, constant.other, constant.other.enum, constant.other.color, constant.other.character-class.regexp, constant.other.character-class.set.regexp, constant.character.escape, constant.character, constant.other.symbol, support.constant, support.constant.property-value.css, support.constant.color.w3c-standard-color-name.css, support.constant.dom, support.constant.json, keyword.other.unit, keyword.other.unit.css, entity.other.keyframe-offset.css | #FF8308 | — |
| string, string.quoted, string.template, string.interpolated, string.quoted.single, string.quoted.double, string.quoted.triple, string.unquoted, string.regexp, string.other.link, punctuation.definition.string, text.html string, text.html.php string, text.html meta.embedded source.js string, markup.inline.raw, markup.inserted, text.xml string, text.html.markdown string.quoted | #83FF08 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor, punctuation.definition.tag, punctuation.definition.parameters, punctuation.definition.template-expression, meta.brace, meta.template.expression.ts punctuation, meta.template.expression.js punctuation, meta.embedded.expression punctuation, punctuation.definition.entity.css, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.attribute-selector, punctuation.definition.metadata.markdown | #BEBEBE | — |
| entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less, source.css entity.name.tag, entity.selector, meta.selector | #FF0883 | — |
| support.function, support.function.css, source.css support.function, meta.function.color.css support.function, meta.property-value.css support.function | #08FF83 | — |
| entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.parent-selector.scss, entity.other.attribute-name.placeholder.css, meta.at-rule.extend, meta.at-rule.mixin, meta.at-rule.include | #8308FF | — |
| token.info-token | #0883FF | — |
| token.warn-token | #FF8308 | — |
| token.error-token | #FF0883 | — |
| token.debug-token | #8308FF | — |
| markup.bold, markup.heading, markup.list, markup.changed, markup.deleted, meta.diff, meta.diff.header, beginning.punctuation.definition.list.markdown, fenced_code.block.language | #B4E1FD | — |
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}!`;
}