Beauty Theme
Publisher: yxsifdevThemes in package: 3
A simple but beautiful theme designed to make your editor feel clean and calming
A simple but beautiful theme designed to make your editor feel clean and calming
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 | #BBBBBB4D | italic |
| comment.block.documentation, comment.line.documentation | #BBBBBB66 | italic |
| constant, constant.language | #F09483E6 | bold |
| constant.numeric | #F09483E6 | — |
| constant.language.boolean | #F09483E6 | bold |
| constant.language.null, constant.language.undefined, constant.language.nan | #F09483E6 | bold italic |
| constant.character.escape | #25B0BCE6 | — |
| entity.name | #FAC29AE6 | — |
| entity.name.function, meta.function-call.generic, support.function.any-method | #25B0BCE6 | bold |
| entity.name.function.member, meta.method-call, meta.method.declaration | #25B0BCE6 | bold |
| entity.name.tag | #E95678E6 | bold |
| entity.name.type, storage.type.cs, storage.type.class, storage.type.interface, storage.type.enum | #FAC29AE6 | bold |
| entity.name.type.class, entity.name.class, entity.other.inherited-class | #FAC29AE6 | bold |
| entity.name.type.interface, entity.name.interface | #FAC29AE6 | bold italic |
| entity.name.type.parameter, meta.type.parameters entity.name.type | #FAC29AE6 | italic |
| entity.other.attribute-name, meta.attribute | #25B0BCE6 | — |
| entity.other.attribute-name.id | #25B0BCE6 | bold |
| entity.other.attribute-name.class | #FAB795E6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #FAB795E6 | — |
| entity.name.variable, variable | #E95678E6 | — |
| variable.object.property, variable.other.property, variable.other.object.property | #ABB2BF | — |
| variable.language, variable.language.this, variable.language.super, variable.language.self | #FAC29AE6 | italic bold |
| variable.parameter | #E95678E6 | italic |
| keyword | #B877DBE6 | bold |
| keyword.control, keyword.control.conditional, keyword.control.loop, keyword.control.flow | #B877DBE6 | bold |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #B877DBE6 | bold |
| keyword.operator | #BBBBBB | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof | #B877DBE6 | bold |
| keyword.operator.arithmetic, keyword.operator.assignment | #BBBBBB | — |
| storage.type.function.arrow | #B877DBE6 | — |
| keyword.other.unit | #E95678E6 | — |
| storage, storage.type, storage.modifier | #B877DBE6 | bold |
| storage.modifier.async, storage.modifier.static, storage.modifier.abstract | #B877DBE6 | bold |
| string.quoted, string.template | #FAB795E6 | — |
| punctuation.definition.template-expression, meta.template.expression | #B877DBE6 | — |
| string.regexp | #DB2777 | — |
| keyword.operator.quantifier.regexp, keyword.operator.or.regexp | #B877DBE6 | — |
| support | #FAC29AE6 | — |
| support.function, support.function.builtin | #25B0BCE6 | — |
| support.type, support.class, support.type.primitive | #FAC29AE6 | — |
| support.variable | #E95678E6 | — |
| support.type.object.console, entity.name.function.console | #25B0BCE6 | bold |
| support.type.property-name, meta.object-literal.key, string.unquoted.label | #DB2777E6 | — |
| support.type.property-name.css | #ABB2BF | — |
| support.constant.property-value.css, support.constant.color | #FAB795E6 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #FAC29AE6 | bold |
| string.template meta.embedded | #BBBBBB | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #ABB2BF | — |
| punctuation.separator | #ABB2BF | — |
| punctuation.section.embedded | #B877DBE6 | — |
| support.class.component.astro, support.class.component.js, support.class.component.ts, support.class.component.jsx, support.class.component.tsx, entity.name.type.class.tsx, entity.name.tag.jsx, entity.name.tag.tsx, meta.tag.other | #B877DBE6 | bold |
| entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #25B0BCE6 | italic |
| markup.heading, entity.name.section | #B877DBE6 | bold |
| markup.bold | #B877DBE6 | bold |
| markup.italic | #B877DBE6 | italic |
| markup.quote | #ABB2BF | italic |
| markup.inline.raw | #25B0BCE6 | — |
| markup.fenced_code.block | #25B0BCE6 | — |
| markup.underline.link | #FAB795E6 | — |
| string.other.link | #B877DBE6 | — |
| punctuation.definition.list | #B877DBE6 | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #DB2777E6 | — |
| entity.name.tag.yaml | #DB2777E6 | — |
| invalid, invalid.illegal, invalid.deprecated | #E95678E6 | underline |
| markup.inserted, meta.diff.header.to-file | #09F7A0 | — |
| markup.deleted, meta.diff.header.from-file | #E95678E6 | — |
| markup.changed | #FAB795E6 | — |
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}!`;
}