Cyber Dark
Publisher: tryToDEvThemes in package: 4
A modern VSCode theme collection with dark and light variants featuring bright syntax highlighting and clean, minimalistic design
A modern VSCode theme collection with dark and light variants featuring bright syntax highlighting and clean, minimalistic design
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 | #6E7781 | italic |
| keyword, storage.type, storage.modifier | #CF222E | — |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow | #CF222E | bold |
| entity.name.function, support.function, meta.function-call | #8250DF | — |
| meta.method, meta.method-call, entity.name.method | #8250DF | — |
| entity.name.class, entity.name.type.class, support.class | #D29922 | — |
| entity.name.type, support.type, storage.type | #D29922 | — |
| entity.name.interface, entity.name.type.interface | #D29922 | — |
| variable, variable.other, variable.other.readwrite | #1F6FEB | — |
| variable.other.constant, constant, constant.language, constant.numeric | #D29922 | — |
| string, string.quoted, string.template | #1A7F37 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #CF222E | — |
| constant.language.boolean, constant.language.true, constant.language.false | #CF222E | bold |
| constant.language.null, constant.language.undefined, constant.language.nan | #CF222E | italic |
| variable.other.property, meta.property-name, support.variable.property | #1F6FEB | — |
| keyword.operator, punctuation.separator.key-value, punctuation.accessor | #0969DA | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator | #24292F | — |
| entity.name.tag, meta.tag, punctuation.definition.tag | #0969DA | — |
| entity.other.attribute-name, meta.attribute-name | #1F6FEB | — |
| string.quoted.double, string.quoted.single | #1A7F37 | — |
| meta.decorator, entity.name.decorator | #8250DF | — |
| variable.parameter, variable.parameter.function | #1F6FEB | — |
| entity.name.label | #D29922 | — |
| entity.name.namespace, support.namespace | #D29922 | — |
| entity.name.enum, entity.name.type.enum | #D29922 | — |
| variable.other.enummember, constant.other.enum | #1F6FEB | — |
| entity.name.function.constructor, support.function.constructor | #8250DF | — |
| entity.name.module, support.module | #0969DA | — |
| string.regexp | #8250DF | — |
| constant.character.escape | #D29922 | — |
| invalid, invalid.illegal | #CF222E | underline |
| invalid.deprecated | #6E7781 | strikethrough |
| markup.heading, markup.heading entity.name, markup.heading.markdown | #0969DA | bold |
| markup.bold, punctuation.definition.bold | #24292F | bold |
| markup.italic, punctuation.definition.italic | #24292F | italic |
| markup.underline.link, string.other.link | #0969DA | underline |
| markup.raw, markup.raw.block | #1A7F37 | — |
| markup.list, punctuation.definition.list | #D29922 | — |
| markup.quote | #6E7781 | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.tag | #0969DA | — |
| support.type.property-name, support.property-name | #1F6FEB | — |
| support.constant.property-value, constant.other.color | #1A7F37 | — |
| support.type.property-name.json, meta.key.json | #1F6FEB | — |
| meta.value.json string.quoted.double.json | #1A7F37 | — |
| entity.name.tag.yaml | #1F6FEB | — |
| string.unquoted.yaml | #1A7F37 | — |
| support.function.python, entity.name.function.python | #8250DF | — |
| meta.decorator.python, entity.name.decorator.python | #8250DF | — |
| variable.language.self.python, variable.language.cls.python | #D29922 | — |
| storage.type.js, storage.type.ts, keyword.control.flow.js, keyword.control.flow.ts | #CF222E | — |
| storage.type.function.arrow.js, storage.type.function.arrow.ts | #0969DA | — |
| string.template.js, string.template.ts | #1A7F37 | — |
| entity.name.tag.js, entity.name.tag.tsx, support.class.component.js, support.class.component.tsx | #0969DA | — |
| storage.type.annotation.java, meta.annotation.java | #8250DF | — |
| entity.name.function.go, support.function.go | #8250DF | — |
| entity.name.function.macro.rust, meta.macro.rust | #8250DF | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust | #D29922 | — |
| entity.name.function.shell, support.function.builtin.shell | #8250DF | — |
| variable.other.shell, variable.other.readwrite.shell | #1F6FEB | — |
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}!`;
}