Cyberpunk 2021
Publisher: techwithcarlosThemes in package: 1
A vibrant and immersive VS Code theme designed for modern software development, AI-assisted coding, and agent-powered development workflows.
A vibrant and immersive VS Code theme designed for modern software development, AI-assisted coding, and agent-powered development workflows.
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 |
|---|---|---|
| keyword, storage.type, storage.modifier | #FF6BD6 | — |
| keyword.operator, keyword.operator.ts, keyword.operator.js, keyword.operator.assignment, keyword.operator.relational, keyword.operator.arithmetic, keyword.operator.comparison | #6B7CFF | — |
| entity.name.function, support.function, meta.function-call | #00FFB3 | — |
| variable.parameter, variable.parameter.function, meta.function.parameters variable.parameter | #B8C4FF | — |
| variable, variable.other.readwrite, meta.variable | #7FD6FF | — |
| variable.other.property, meta.property-name, support.variable.property | #8BE9FD | — |
| variable.language.this, this | #C3FF00 | — |
| entity.name.type, support.type, storage.type.annotation | #C19CFF | — |
| entity.name.class, support.class | #BD93F9 | — |
| constant, variable.other.constant, entity.name.constant, constant.language | #7DF9FF | — |
| string, string.quoted, string.template | #FFB86C | — |
| constant.numeric | #50FA7B | — |
| keyword.control.import, keyword.control.export, support.module | #677CF8 | — |
| meta.decorator, entity.name.function.decorator | #FF79C6 | — |
| string.regexp | #7DF9FF | — |
| constant.character.escape | #00FFB3 | — |
| comment, punctuation.definition.comment | #5566C2 | — |
| variable.other.property, variable.object.property, meta.object-literal.key | #7FD6FF | — |
| storage.type.function.arrow.ts, storage.type.function.arrow.js | #6B7CFF | — |
| storage.modifier.async.js, storage.modifier.async.ts, storage.modifier.async | #C3FF00 | — |
| storage.type.function.js, storage.type.function.ts, keyword.declaration.function | #00FFB3 | — |
| keyword.control.import.js, keyword.control.import.ts, keyword.control.export.js, keyword.control.export.ts | #677CF8 | — |
| variable.language.this.ts, variable.language.this.js | #7DF9FF | — |
| variable.other.property.ts, variable.other.property.js, meta.object-literal.key.ts, meta.object-literal.key.js | #7FD6FF | — |
| support.type.primitive.ts, support.type.primitive.tsx, entity.name.type.ts, entity.name.type.tsx | #C19CFF | — |
| support.class.component, entity.name.tag.js.jsx, entity.name.tag.tsx | #C19CFF | — |
| meta.decorator, entity.name.function.decorator, entity.name.type.decorator | #00FF9D | — |
| comment.block.documentation.python, string.quoted.docstring.multi.python | #5566C2 | — |
| support.type.property-name.json, meta.object-literal.key.json, meta.mapping.key | #7FD6FF | — |
| constant.language.json, constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false, constant.language.null, constant.language.null.json | #C19CFF | — |
| string.quoted.double.json | #FFB86C | — |
| constant.numeric.json | #50FA7B | — |
| string.quoted.double.json | #FFB86C | — |
| constant.numeric.json | #50FA7B | — |
| constant.language.json, constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false | #C19CFF | — |
| constant.language, support.constant, constant.other | #FF79C6 | — |
| entity.name.tag.yaml, meta.mapping.key.yaml | #7FD6FF | — |
| markup.heading, markup.heading.markdown | #7DF9FF | — |
| markup.underline.link, string.other.link | #00FF9D | — |
| meta.arrow.ts, meta.var.expr.ts, source.ts, meta.arrow.ts, meta.embedded.block.typescript, markup.fenced_code.block.markdown, text.html.markdown | #6B7CFF | — |
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}!`;
}