Hexxa Theme
Publisher: Diogo MorettiThemes in package: 1
A definitive theme for Cursor AI and VS Code
A definitive theme for Cursor AI and VS Code
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, string.comment | #666666 | — |
| string | #49DCB1 | — |
| punctuation.definition.template-expression.begin.js,punctuation.definition.template-expression.end.js,punctuation.definition.template-expression.begin.ts,punctuation.definition.template-expression.end.ts | #DB5461 | — |
| string.template.js, variable.parameter.js | #49DCB1 | — |
| meta.template.expression.js | #EEEEEE | — |
| constant.numeric | #4D5BFC | — |
| string.embedded.begin, string.embedded.end | #4D5BFC | — |
| string.embedded | #CCFF66 | — |
| constant.language | #4D5BFC | — |
| constant.character, constant.other | #4D5BFC | — |
| variable.language | #4D5BFC | — |
| variable.readwrite, variable.readwrite.other.block | #DB5461 | — |
| variable.other.object.js, meta.function-call.js, meta.object-literal.key.js, meta.tag.attributes.js, variable.other.readwrite.js, variable.other.readwrite.jsx, variable.other.readwrite.tsx | #EEEEEE | — |
| entity.name.variable, entity.name.variable.local, meta.object-literal.key, variable.object.constant, variable.object.property, variable.other.alias, variable.other.constant, variable.other.object, variable.other.property, variable.other.readwrite, variable.parameter, support.variable | #EEEEEE | — |
| keyword.other.base, keyword.other.this, variable.other.object.property, variable.language.base, variable.language.this | #EEEEEE | — |
| support.variable.UnityEngine | #EEEEEE | — |
| keyword, keyword.operator, keyword.operator.logical, keyword.operator.constructor | #EE964B | — |
| storage.modifier.async.js, keyword.control.flow.js | #EE964B | — |
| storage | #49DCB1 | — |
| storage.type | #FF5FA7 | — |
| entity.name.class, entity.name.module, entity.name.type, storage.identifier, support.class | #00D0FF | — |
| variable.other.property, variable.other.block | #00D0FF | — |
| entity.other.inherited-class | #CCFF66 | — |
| entity.name.function, support.function | #CCFF66 | — |
| variable.parameter | #FF5FA7 | |
| entity.name.function-call | #EEEEEE | — |
| function.support.builtin, function.support.core | #CCFF66 | — |
| entity.name.tag, entity.name.tag.class.js, entity.name.tag.class.jsx | #FF5FA7 | — |
| entity.name.tag.class, entity.name.tag.id | #FF5FA7 | — |
| entity.other.attribute-name | #CCFF66 | — |
| support.constant | #4D5BFC | — |
| support.type, support.variable | #FF5FA7 | — |
| support.dictionary.json | #DB5461 | — |
| source.json meta.structure.dictionary.json string.quoted.double.json punctuation.definition.string | #FF5FA7 | — |
| source.json string.quoted.double.json | #EEEEEE | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #49DCB1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #CCFF66 | — |
| 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 | #CCFF66 | — |
| 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 | #CCFF66 | — |
| 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 | #CCFF66 | — |
| 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 | #4D5BFC | — |
| 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 | #CCFF66 | — |
| 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 | #00D0FF | — |
| 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 | #FF5FA7 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, punctuation.section.property-list.begin.bracket.curly.css | #CCFF66 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, entity.name.tag.css | #00D0FF | — |
| support.constant.css, support.constant.scss, support.constant.less, support.constant.sass | #49DCB1 | — |
| variable.css, variable.scss, variable.less, variable.sass, entity.name.tag.css | #FF5FA7 | — |
| variable.css.string, variable.scss.string, variable.less.string, variable.sass.string, support.constant.property-value.css | #EE964B | — |
| unit.css, unit.scss, unit.less, unit.sass, keyword.other.unit.percentage.css, constant.numeric.css, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css | #49DCB1 | — |
| constant.numeric.css, constant.numeric.scss, constant.numeric.less, constant.numeric.sass | #EE964B | — |
| support.type.property-name.css.color, meta.property-name.css support.type.property-name.css | #EE964B | — |
| function.css, function.scss, function.less, function.sass | #CCFF66 | — |
| support.other.variable | #00D0FF | |
| invalid | #F8F8F8 | — |
| invalid.deprecated | #F8F8F8 | — |
| string.detected-link | #00D0FF | — |
| meta.diff, meta.diff.header | #00D0FF | — |
| markup.deleted | #DB5461 | — |
| markup.inserted | #49DCB1 | — |
| markup.changed | #49DCB1 | — |
| constant.numeric.line-number.find-in-files - match | #00D0FF | — |
| entity.name.filename.find-in-files | #49DCB1 | — |
| markup.normal, markup.normal.markdown | #49DCB1 | — |
| punctuation.definition.normal.markdown | #F9F9F960 | |
| fenced_code.block.language.markdown | #FF5FA7 | — |
| markup.underline.link.markdown | #4D5BFC | — |
| markup.bold.markdown | — | bold |
| punctuation.definition.bold.markdown | #F9F9F960 | |
| keyword.control | #FF5FA7 | — |
| markup.heading.markdown, entity.name.section.markdown | #CCFF66 | bold |
| punctuation.definition.heading.markdown | #49DCB1 | |
| markup.quote.markdown | #CCFF66 | — |
| meta.separator.markdown | #DB5461 | bold |
| markup.raw.inline.markdown, markup.raw.block.markdown, markup.inline.raw.string.markdown, string.other.link.title.markdown | #00D0FF | — |
| punctuation.definition.list_item.markdown | #F8F8F8 | bold |
| keyword.operator.assignment.python | #EEEEEE | — |
| meta.function-call.generic.python, meta.function-call.python, meta.function-call.arguments.python, meta.function-call.python | #CCFF66 | — |
| keyword.operator.other.elixir | #49DCB1 | — |
| variable.other.constant.elixir | #49DCB1 | — |
| constant.other.symbol.elixir | #00D0FF | — |
| parameter.variable.function.elixir | #EE964B | — |
| source.elixir entity.name.function | #49DCB1 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #00D0FF | — |
| variable.other.constant.elixir | #49DCB1 | — |
| source.elixir.punctuation.binary.elixir | #00D0FF | — |
| keyword.control.svelte | #4D5BFC | — |
| punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #49DCB1 | — |
| punctuation.section.property-list.begin.bracket.curly.css, punctuation.section.property-list.end.bracket.curly.css, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #49DCB1 | — |
| support.class.component.tsx, support.class.component.jsx | #00D0FF | — |
| variable.other.php, variable.language.php | #DB5461 | — |
| meta.function-call.php, meta.function-call.object.php | #CCFF66 | — |
| variable.other.readwrite.instance.ruby | #DB5461 | — |
| constant.language.symbol.ruby | #4D5BFC | — |
| support.function.go | #CCFF66 | — |
| meta.attribute.rust | #4D5BFC | — |
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}!`;
}