Hyperliquid Color Theme
Publisher: Shark EaterThemes in package: 2
A dark VS Code color theme inspired by Hyperliquid's trading interface — vibrant neon accents on a restrained dark palette.
A dark VS Code color theme inspired by Hyperliquid's trading interface — vibrant neon accents on a restrained dark 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, punctuation.definition.comment | #3D5960 | italic |
| string, string.quoted, string.template | #ACEECB | — |
| constant.character.escape, string.regexp | #80D1C6 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #FF8C00 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #FF8C00 | italic |
| constant.other, variable.other.constant | #80D1C6 | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.delete, keyword.operator.expression, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.void | #8B86FF | — |
| keyword.control.import, keyword.control.export, keyword.control.from | #8B86FF | — |
| keyword.control.flow, keyword.control.conditional, keyword.control.loop | #8B86FF | — |
| keyword.operator, keyword.operator.assignment | #47BDAD | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.logical | #47BDAD | — |
| storage, storage.type, storage.modifier | #8B86FF | — |
| entity.name.function, meta.function-call entity.name.function, support.function | #FFC125 | — |
| entity.name.function.method | #FFC125 | — |
| entity.name.type, entity.name.class, entity.name.type.class, support.class, support.type | #47BDAD | — |
| entity.name.type.interface, entity.name.type.alias | #47BDAD | italic |
| entity.name.type.enum, entity.name.type.module, entity.name.namespace | #47BDAD | — |
| entity.other.attribute-name | #FF8C00 | italic |
| entity.name.tag | #8B86FF | — |
| variable, variable.other, variable.other.readwrite | #F0F0F0 | — |
| variable.parameter, variable.other.parameter | #F0F0F0 | italic |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #8B86FF | italic |
| variable.other.property, variable.other.object.property | #8A929E | — |
| punctuation, punctuation.definition.tag, punctuation.separator, punctuation.terminator, meta.brace | #8A929E | — |
| support.type.builtin, support.type.primitive | #47BDAD | — |
| support.constant | #80D1C6 | — |
| entity.other.inherited-class | #47BDAD | italic underline |
| meta.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator | #FFC125 | italic |
| entity.name.function.decorator, meta.decorator variable.other | #FFC125 | italic |
| markup.heading, entity.name.section | #8B86FF | bold |
| markup.bold | #FF8C00 | bold |
| markup.italic | #FFC125 | italic |
| markup.underline | — | underline |
| markup.underline.link, string.other.link | #25D695 | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #ACEECB | — |
| markup.quote | #5A6E76 | italic |
| markup.list | #F0F0F0 | — |
| markup.inserted | #25D695 | — |
| markup.deleted | #F23645 | — |
| markup.changed | #8B86FF | — |
| meta.embedded, source.groovy.embedded | #F0F0F0 | — |
| support.type.property-name.json | #47BDAD | — |
| meta.structure.dictionary.value.json string.quoted | #ACEECB | — |
| entity.name.tag.yaml | #47BDAD | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #8A929E | — |
| support.constant.property-value.css, support.constant.color.css | #FF8C00 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFC125 | — |
| entity.name.tag.css | #8B86FF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #47BDAD | italic |
| variable.parameter.function.language.special.self.python | #8B86FF | italic |
| support.function.magic.python | #FFC125 | italic |
| storage.modifier.lifetime.rust, entity.name.type.lifetime.rust | #FF8C00 | italic |
| entity.name.package.go | #47BDAD | — |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #80D1C6 | — |
| storage.type.solidity | #8B86FF | — |
| meta.type.annotation, meta.return.type | #47BDAD | — |
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}!`;
}