Eclipse Wave
Publisher: Arin MandalThemes in package: 4
A cosmic dark theme with soft, eye-friendly colors — designed for long coding sessions. Beautiful syntax highlighting for JS, TS, Python, React, Rust, Go, HTML, CSS, Markdown & more.
A cosmic dark theme with soft, eye-friendly colors — designed for long coding sessions. Beautiful syntax highlighting for JS, TS, Python, React, Rust, Go, HTML, CSS, Markdown & more.
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 | #8B8FA8 | italic |
| string, punctuation.definition.string | #A1C682 | — |
| string.template | #A1C682 | — |
| constant.numeric, constant.language | #E5A574 | — |
| keyword.control, keyword.other | #9D7CFF | italic |
| storage.type, storage.modifier | #9D7CFF | italic |
| keyword.operator.logical | #C792EA | — |
| keyword.operator.comparison, keyword.operator.relational | #C792EA | — |
| keyword.operator.assignment | #C792EA | — |
| keyword.operator | #C792EA | — |
| keyword.operator.new | #9D7CFF | bold |
| punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor | #8A929E | — |
| entity.name.function, meta.function-call, support.function | #82AAFF | — |
| entity.name.class, entity.name.type, support.class, support.type | #D7BA7D | — |
| entity.other.inherited-class | #D7BA7D | italic |
| variable.other.object, variable.other.readwrite | #E5A574 | — |
| variable.other.property, support.type.property-name | #7CC8DE | — |
| variable.language, support.constant | #F78C6C | — |
| variable.parameter | #D7BA7D | italic |
| variable.language.this, variable.language.self, variable.language.super | #BD93F9 | italic |
| entity.name.tag | #E17888 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #7C809A | — |
| entity.other.attribute-name, support.type.vendored.property-name | #FF79C6 | — |
| string.quoted | #A1C682 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class.css | #D7BA7D | — |
| entity.other.attribute-name.pseudo-class | #FF79C6 | — |
| entity.other.attribute-name.pseudo-element | #FF79C6 | — |
| keyword.control.at-rule, keyword.at-rule | #9D7CFF | italic |
| support.constant.property-value, constant.other.color | #E5A574 | — |
| variable.scss, variable.other.scss, variable.sass | #E5A574 | — |
| entity.name.tag.scss | #E17888 | — |
| punctuation.section.interpolation, string.interpolated.scss | #F78C6C | — |
| entity.name.section.markdown | #9D7CFF | bold |
| punctuation.definition.heading.markdown | #9D7CFF | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.underline.link.markdown | #82AAFF | underline |
| markup.inline.raw.string.markdown | #A1C682 | — |
| markup.fenced_code.block.markdown, punctuation.definition.markdown | #A1C682 | — |
| punctuation.definition.list.begin.markdown, markup.list | #7CC8DE | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | #8B8FA8 | italic |
| markup.strikethrough | #7C809A | strikethrough |
| support.class.component | #FFD166 | — |
| meta.jsx.children | #B0B6C2 | — |
| meta.tag.jsx, meta.tag.tsx | #E17888 | — |
| punctuation.definition.template-expression, meta.template.expression | #F78C6C | — |
| entity.name.type.module, support.type.primitive | #7CC8DE | — |
| entity.name.type.interface | #7ED6D4 | italic |
| entity.name.type.enum | #C792EA | — |
| variable.other.enummember | #E5A574 | — |
| support.type.property-name.json, entity.name.tag.yaml | #82AAFF | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #BD93F9 | — |
| entity.name.table.toml, support.type.property-name.table.toml | #82AAFF | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #9D7CFF | italic |
| keyword.control.flow, keyword.control.trycatch, keyword.control.loop, keyword.control.conditional | #9D7CFF | italic |
| entity.name.function.decorator | #C792EA | — |
| constant.character.format.placeholder.begin.python, constant.character.format.placeholder.end.python | #F78C6C | — |
| string.regexp | #FF79C6 | — |
| constant.character.escape | #F78C6C | — |
| support.variable.dom, support.variable.property.dom | #7CC8DE | — |
| support.function.console, support.class.console, support.variable.object.node, support.variable.object.process | #7CC8DE | — |
| entity.name.module | #FFD166 | — |
| entity.name.package.go, entity.name.import.go | #FFD166 | — |
| entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #FF79C6 | italic |
| entity.name.function.macro | #C792EA | — |
| storage.type.annotation.java, punctuation.definition.annotation.java, storage.type.annotation | #C792EA | italic |
| variable.other.normal.shell, punctuation.definition.variable.shell | #E5A574 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #9D7CFF | bold |
| keyword.other.special-method.dockerfile | #9D7CFF | bold |
| support.type.graphql, entity.name.type.graphql | #D7BA7D | — |
| variable.graphql | #7CC8DE | — |
| markup.inserted | #7EC699 | — |
| markup.deleted | #E94560 | — |
| markup.changed | #D7BA7D | — |
| invalid.illegal | #FF5555 | italic bold |
| invalid.deprecated | #D7BA7D | italic strikethrough |
| meta.object-literal.key | #7CC8DE | — |
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}!`;
}