nerv3-pastel-theme
Publisher: vinCoelhoThemes in package: 2
A soft cyberpunk theme for VS Code, made by nerv3 tech.
A soft cyberpunk theme for VS Code, made by nerv3 tech.
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 |
|---|---|---|
| punctuation.section.block.begin, punctuation.section.block.end, punctuation.definition.block, punctuation.definition.block.begin, punctuation.definition.block.end, punctuation.brace.curly | #635CF8 | — |
| punctuation.section.group.begin, punctuation.section.group.end, punctuation.section.parens.begin, punctuation.section.parens.end, punctuation.brace.round | #3C93FA | — |
| punctuation.section.brackets.begin, punctuation.section.brackets.end, punctuation.brace.square | #00A361 | — |
| comment, punctuation.definition.comment | #c98e5e | italic |
| string, string.quoted, string.quoted.single, string.quoted.double | #008A57 | — |
| string.template, string.quoted.template, punctuation.definition.template-expression | #007A68 | — |
| constant.character, constant.character.escape | #ff6b93 | — |
| keyword, keyword.control, keyword.operator.expression | #b75eee | |
| storage.type, storage.modifier, keyword.declaration | #9a95ff | |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, punctuation.separator, punctuation.accessor | #6F688F | — |
| punctuation, punctuation.terminator, punctuation.definition.block, punctuation.section.block, punctuation.section.group, punctuation.section.parens, punctuation.section.brackets | #9A92B4 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex | #ff6b93 | — |
| constant.language.boolean, constant.language.true, constant.language.false, constant.language.null, constant.language.undefined, constant.language.nullptr | #ff6b93 | |
| storage.type.primitive, support.type.primitive, source.cpp storage.type, source.c storage.type, source.cs storage.type, source.java storage.type | #007F78 | |
| entity.name.type, entity.name.type.class, entity.name.type.struct, entity.name.type.interface, entity.name.class, entity.name.struct, support.class, support.type | #236FD1 | |
| entity.name.namespace, entity.name.scope-resolution, support.other.namespace, entity.name.package | #7A3FA3 | — |
| entity.name.function, meta.function entity.name.function | #3C93FA | |
| support.function, meta.function-call, variable.function | #2D7FEA | — |
| entity.name.function.member, support.function.member, variable.function.member | #2D7FEA | — |
| variable, variable.other, identifier | #2D2940 | — |
| variable.parameter, meta.function.parameters variable | #514A68 | italic |
| variable.other.property, variable.other.member, support.variable.property, meta.object-literal.key, meta.property-name | #635CF8 | — |
| variable.other.constant, constant.other, entity.name.constant | #0086ff | |
| keyword.control.directive, keyword.control.import, meta.preprocessor, entity.name.function.preprocessor, punctuation.definition.directive | #66bf56 | |
| keyword.control.import, keyword.control.from, keyword.control.include, meta.import, meta.include | #66bf56 | — |
| entity.name.tag, support.class.component | #635CF8 | |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx | #7A3FA3 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #635CF8 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #236FD1 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css, keyword.other.unit | #008A57 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.base, variable.language.special.self | #ff6483 | italic |
| support.type.property-name.json, support.type.property-name.json.comments, meta.structure.dictionary.key.json, meta.structure.dictionary.json string.quoted.double.json, source.json meta.structure.dictionary string.quoted.double, source.json.comments meta.structure.dictionary string.quoted.double | #635CF8 | — |
| meta.structure.dictionary.value.json string.quoted.double.json, source.json meta.structure.dictionary.value string.quoted.double, source.json.comments meta.structure.dictionary.value string.quoted.double | #008A57 | — |
| constant.language.boolean.json, constant.language.boolean.json.comments | #F24F4F | italic |
| constant.language.null.json, constant.language.null.json.comments | #9151B8 | italic |
| constant.numeric.json, constant.numeric.json.comments | #F24F4F | — |
| punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json, punctuation.definition.dictionary.begin.json, punctuation.definition.dictionary.end.json, punctuation.definition.array.begin.json, punctuation.definition.array.end.json | #8C85A8 | — |
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}!`;
}