vsc-eezzy-nvim Themes
Publisher: ASHISH JHAThemes in package: 1
A nvim customized theme available in dark mode
A nvim customized theme available in dark mode
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, string.quoted.docstring.multi | #909090 | italic |
| constant, constant.language, constant.character, constant.other | #6080ff | — |
| keyword, storage, storage.type | #ff0e6b | — |
| entity.name.function, support.function, meta.function-call | #40c4aa | — |
| variable.other.property, meta.property-name | #48fb9f | — |
| string, markup.inline | #8bbb81 | — |
| constant.numeric, number | #c080ff | — |
| storage.type, entity.name.type, support.class, entity.other.inherited-class | #ff9020 | — |
| entity.name.class | #a0ff20 | — |
| markup.error | #e54c4c | — |
| markup.warning | #f2be59 | — |
| markup.inserted | #54aa46 | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.jsx, entity.name.tag.tsx | #a0ff20 | — |
| entity.name.tag.html.jsx, entity.name.tag.html.tsx, punctuation.definition.tag.jsx, punctuation.definition.tag.tsx | #ff9020 | — |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #48fb9f | — |
| punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx | #f8f8f8 | — |
| entity.name.type.ts, entity.name.type.tsx, support.type.primitive.ts, support.type.primitive.tsx | #ff9020 | — |
| entity.name.type.interface.ts, entity.name.type.interface.tsx | #40c4aa | — |
| punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, punctuation.definition.typeparameters.begin.tsx, punctuation.definition.typeparameters.end.tsx | #c080ff | — |
| string.template, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #8bbb81 | — |
| meta.template.expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #f8f8f8 | — |
| storage.type.function.arrow | #ff0e6b | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #ff0e6b | — |
| variable.other.readwrite.alias, meta.import string.quoted | #8bbb81 | — |
| meta.method.declaration entity.name.function, meta.object-literal.key | #40c4aa | — |
| meta.object-binding-pattern-variable variable.other.readwrite, meta.array-binding-pattern-variable variable.other.readwrite | #48fb9f | — |
| keyword.operator.spread | #ff0e6b | — |
| meta.function-call entity.name.function | #40c4aa | — |
| punctuation.decorator, meta.decorator | #c080ff | — |
| source.css.styled, meta.template.expression.css | #8bbb81 | — |
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}!`;
}