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 | #4A4F68 | italic |
| string, punctuation.definition.string | #8DC76E | — |
| string.template | #8DC76E | — |
| constant.numeric, constant.language | #D4906A | — |
| keyword.control, keyword.other | #8B6EF0 | italic |
| storage.type, storage.modifier | #8B6EF0 | italic |
| keyword.operator.logical | #B880D5 | — |
| keyword.operator.comparison, keyword.operator.relational | #B880D5 | — |
| keyword.operator.assignment | #B880D5 | — |
| keyword.operator | #B880D5 | — |
| keyword.operator.new | #8B6EF0 | bold |
| punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor | #70788C | — |
| entity.name.function, meta.function-call, support.function | #7BA8F5 | — |
| entity.name.class, entity.name.type, support.class, support.type | #C4A268 | — |
| entity.other.inherited-class | #C4A268 | italic |
| variable.other.object, variable.other.readwrite | #D4906A | — |
| variable.other.property, support.type.property-name | #68B8CC | — |
| variable.language, support.constant | #E07860 | — |
| variable.parameter | #C4A268 | italic |
| variable.language.this, variable.language.self, variable.language.super | #A98CF4 | italic |
| entity.name.tag | #CC7080 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #5E6280 | — |
| entity.other.attribute-name, support.type.vendored.property-name | #D860A8 | — |
| string.quoted | #8DC76E | — |
| entity.other.attribute-name.id, entity.other.attribute-name.class.css | #C4A268 | — |
| entity.other.attribute-name.pseudo-class | #D860A8 | — |
| entity.other.attribute-name.pseudo-element | #D860A8 | — |
| keyword.control.at-rule, keyword.at-rule | #8B6EF0 | italic |
| support.constant.property-value, constant.other.color | #D4906A | — |
| variable.scss, variable.other.scss, variable.sass | #D4906A | — |
| entity.name.tag.scss | #CC7080 | — |
| punctuation.section.interpolation, string.interpolated.scss | #E07860 | — |
| entity.name.section.markdown | #8B6EF0 | bold |
| punctuation.definition.heading.markdown | #8B6EF0 | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.underline.link.markdown | #7BA8F5 | underline |
| markup.inline.raw.string.markdown | #8DC76E | — |
| markup.fenced_code.block.markdown, punctuation.definition.markdown | #8DC76E | — |
| punctuation.definition.list.begin.markdown, markup.list | #68B8CC | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | #4A4F68 | italic |
| markup.strikethrough | #5E6280 | strikethrough |
| support.class.component | #C8A060 | — |
| meta.jsx.children | #9AA8CC | — |
| meta.tag.jsx, meta.tag.tsx | #CC7080 | — |
| punctuation.definition.template-expression, meta.template.expression | #E07860 | — |
| entity.name.type.module, support.type.primitive | #68B8CC | — |
| entity.name.type.interface | #68C0C0 | italic |
| entity.name.type.enum | #B870CC | — |
| variable.other.enummember | #D4906A | — |
| support.type.property-name.json, entity.name.tag.yaml | #7BA8F5 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #A98CF4 | — |
| entity.name.table.toml, support.type.property-name.table.toml | #7BA8F5 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #8B6EF0 | italic |
| keyword.control.flow, keyword.control.trycatch, keyword.control.loop, keyword.control.conditional | #8B6EF0 | italic |
| entity.name.function.decorator | #B880D5 | — |
| constant.character.format.placeholder.begin.python, constant.character.format.placeholder.end.python | #E07860 | — |
| string.regexp | #D860A8 | — |
| constant.character.escape | #E07860 | — |
| support.variable.dom, support.variable.property.dom | #68B8CC | — |
| support.function.console, support.class.console, support.variable.object.node, support.variable.object.process | #68B8CC | — |
| entity.name.module | #C8A060 | — |
| entity.name.package.go, entity.name.import.go | #C8A060 | — |
| entity.name.type.lifetime.rust, punctuation.definition.lifetime.rust | #D860A8 | italic |
| entity.name.function.macro | #B880D5 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java, storage.type.annotation | #B880D5 | italic |
| variable.other.normal.shell, punctuation.definition.variable.shell | #D4906A | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #8B6EF0 | bold |
| keyword.other.special-method.dockerfile | #8B6EF0 | bold |
| support.type.graphql, entity.name.type.graphql | #C4A268 | — |
| variable.graphql | #68B8CC | — |
| markup.inserted | #70B880 | — |
| markup.deleted | #CC5060 | — |
| markup.changed | #C4A040 | — |
| invalid.illegal | #E06060 | italic bold |
| invalid.deprecated | #C4A040 | italic strikethrough |
| meta.object-literal.key | #68B8CC | — |
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}!`;
}