Paraíso (dark)
Publisher: treffynnonThemes in package: 1
Fork of gerane.Themes-Paraiso_dark vscode theme ported from Paraíso (dark) by Jan T. Scott and Chris Kempson
Fork of gerane.Themes-Paraiso_dark vscode theme ported from Paraíso (dark) by Jan T. Scott and Chris Kempson
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 |
|---|---|---|
| — | #a39e9b | — |
| variable.parameter.function | #a39e9b | — |
| comment, punctuation.definition.comment | #776e71 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #a39e9b | — |
| none | #a39e9b | — |
| keyword.operator | #a39e9b | — |
| keyword, keyword.control | #815ba4 | — |
| variable | #ef6155 | — |
| entity.name.function, meta.require, support.function.any-method | #06b6ef | — |
| meta.class, support.class, entity.name.class, entity.name.type.class | #f6e60d | — |
| keyword.other.special-method | #06b6ef | — |
| storage | #815ba4 | — |
| support.function | #5bc4bf | — |
| string, constant.other.symbol, entity.other.inherited-class | #48b685 | — |
| constant.numeric | #f99b15 | — |
| none | #f99b15 | — |
| none | #f99b15 | — |
| constant | #f99b15 | — |
| entity.name.tag | #ef6155 | — |
| entity.other.attribute-name | #f99b15 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #06b6ef | — |
| meta.selector | #815ba4 | — |
| none | #f99b15 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #06b6ef | |
| keyword.other.unit | #f99b15 | — |
| markup.bold, punctuation.definition.bold | #f6e60d | bold |
| markup.italic, punctuation.definition.italic | #815ba4 | italic |
| markup.raw.inline | #48b685 | — |
| string.other.link | #ef6155 | — |
| meta.link | #f99b15 | — |
| markup.list | #ef6155 | — |
| markup.quote | #f99b15 | — |
| meta.separator | #a39e9b | — |
| markup.inserted | #48b685 | — |
| markup.deleted | #ef6155 | — |
| markup.changed | #815ba4 | — |
| constant.other.color | #5bc4bf | — |
| string.regexp | #5bc4bf | — |
| constant.character.escape | #5bc4bf | — |
| punctuation.section.embedded, variable.interpolation | #9ec931 | — |
| invalid.illegal | #2f1e2e | — |
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}!`;
}