ds_synthwave
Publisher: devShakibThemes in package: 1
1984 on a deep indigo ground: neon pink keywords, cyan calls, sun-yellow types. Tuned so the neon glows instead of shimmering.
1984 on a deep indigo ground: neon pink keywords, cyan calls, sun-yellow types. Tuned so the neon glows instead of shimmering.
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, string.comment | #9885C4 | italic |
| comment.block.documentation, comment.documentation, comment.line.documentation | #AE9AD6 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc, keyword.other.documentation | #72F1B8 | italic |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.type, constant.language.null, constant.language.undefined, constant.language.nil, meta.tag.sgml.doctype | #FF5CC6 | italic |
| storage, storage.type, storage.modifier, keyword.declaration, storage.type.function.arrow | #FF5CC6 | italic |
| variable.language.this, variable.language.super, variable.language.self, variable.parameter.function.language.special.self | #FF5CC6 | italic |
| entity.name.function, support.function, meta.function-call, meta.function-call.generic, entity.name.function.member, variable.function, support.function.builtin, entity.name.method, meta.definition.method entity.name.function, entity.other.attribute-name.id.css | #3DF2EE | — |
| entity.name.function.macro, entity.name.function.preprocessor, meta.preprocessor | #72F1B8 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.other.inherited-class, support.type, support.class, entity.name.namespace, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, support.type.primitive, support.type.builtin, storage.type.primitive, meta.type.annotation, entity.other.attribute-name.class.css | #FEDE5D | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #72F1B8 | — |
| string, string.quoted, string.template, string.unquoted, punctuation.definition.string | #FF9966 | — |
| constant.character.escape, punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded.line, constant.other.placeholder, constant.character.format.placeholder | #72F1B8 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #72F1B8 | — |
| constant.numeric, keyword.other.unit | #C69CFF | — |
| constant.language.boolean, constant.language, constant.other, support.constant, variable.other.constant, entity.name.constant, variable.other.enummember, constant.other.symbol, support.constant.property-value.css | #C69CFF | — |
| variable, variable.other, variable.other.readwrite, variable.other.normal.shell | #F4ECFF | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, support.type.property-name, support.type.property-name.json, support.type.property-name.css, entity.name.tag.yaml, entity.name.tag.toml, support.type.property-name.toml, variable.other.member | #A5EDFF | — |
| variable.parameter, meta.parameter, variable.parameter.function | #D2C2F2 | italic |
| keyword.operator, punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace, punctuation.definition.variable.shell | #AE9AD6 | — |
| meta.decorator, entity.name.function.decorator, storage.type.annotation, meta.annotation, punctuation.definition.annotation, meta.attribute, entity.name.type.anchor.yaml, punctuation.definition.anchor.yaml | #72F1B8 | italic |
| entity.name.tag, punctuation.definition.tag, entity.name.tag.css | #FF5CC6 | — |
| entity.other.attribute-name | #FEDE5D | italic |
| entity.name.label, punctuation.definition.label | #C69CFF | — |
| markup.heading, entity.name.section, punctuation.definition.heading.markdown | #3DF2EE | bold |
| markup.bold | #F4ECFF | bold |
| markup.italic | #F4ECFF | italic |
| markup.strikethrough | #AE9AD6 | strikethrough |
| markup.underline.link, string.other.link | #3DF2EE | underline |
| markup.inline.raw, markup.fenced_code, markup.raw | #FF9966 | — |
| markup.quote | #AE9AD6 | italic |
| markup.list punctuation.definition.list, beginning.punctuation.definition.list, punctuation.definition.list.begin.markdown | #FF4FB8 | — |
| markup.inserted | #72F1B8 | — |
| markup.deleted | #FF6B8B | — |
| markup.changed | #3DF2EE | — |
| meta.diff.header, meta.diff.range | #3DF2EE | — |
| invalid, invalid.illegal | #FF6B8B | underline |
| invalid.deprecated | #FEDE5D | strikethrough |
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}!`;
}