Cyberspace
Publisher: OmegaDawnThemes in package: 1
A sleek dark theme featuring cyan accent and neon highlights with a cyberpunk aesthetic.
A sleek dark theme featuring cyan accent and neon highlights with a cyberpunk aesthetic.
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 | #586f6a | italic |
| string, constant.other.symbol, constant.other.key, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js, comment markup.link, markup.underline, markup.list | #1ce6a2 | italic |
| support.class, entity.name.class, entity.name.type.class, entity.name.type.namespace, entity.name.class.identifier.namespace.type, variable.other.class.js, variable.other.class.ts, entity.name.namespace | #00dfdf | bold underline |
| variable.language, variable.parameter.function.language.special.self.python, entity.name.namespace | #00dfdf | italic |
| meta.block variable.other, text.html.markdown, punctuation.definition.list_item.markdown | #eeeeee | — |
| entity.name.function, meta.function-call.generic.python, variable.function, support.function, keyword.other.special-method, string.other.link.title.markdown, source.json meta.structure.dictionary.json support.type.property-name.json, entity.name.tag | #19afff | bold |
| variable.parameter, meta.tag, source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json, entity.other.inherited-class, markdown.heading, markup.heading | #d31493 | bold italic |
| support.type, markup.quote.markdown, entity.name.type | #6d98bf | italic bold |
| constant.numeric, constant.language, constant.boolean | #e62bff | — |
| keyword, storage, storage.type, keyword.operator.quantifier.regexp, keyword.operator.logical, punctuation.definition.tag, meta.separator. | #b149d6 | italic |
| keyword.operator.bitwise, keyword.operator.css, keyword.operator.scss, keyword.operator.less, keyword.operator.arithmetic, keyword.operator.assignment, constant.other.color, support.variable.magic.python | #d8fd9c | |
| support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, markup.italic, markup.bold, markup.inline.raw | #7ec8df | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}