Absolutely Theme
Publisher: yulin96Themes in package: 4
A warm, calm, and minimalist color theme family (light, dark, warm light) for VS Code, designed to reduce eye strain with cozy, natural, low-contrast tones.
A warm, calm, and minimalist color theme family (light, dark, warm light) for VS Code, designed to reduce eye strain with cozy, natural, low-contrast tones.
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 | #9C9274 | |
| punctuation, meta.brace, delimiter | #B8AA83 | — |
| keyword, storage.type, storage.modifier, keyword.operator.new | #D59A73 | — |
| keyword.operator, storage.type.function.arrow | #D59A73 | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational | #D59A73 | — |
| string, punctuation.definition.string, attribute.value | #B8AA83 | — |
| meta.attribute.class.html string, meta.attribute.class.html.vue string | #D99A83 | — |
| meta.attribute.unrecognized string, meta.attribute.unrecognized.html string, meta.attribute.unrecognized.html.vue string, meta.attribute.structure.html string, meta.attribute.structure.html.vue string | #D99A83 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #D59A73 | — |
| keyword.control.import, keyword.control.from, keyword.control.export, keyword.control.ts, keyword.control.tsx, keyword.control.js, keyword.control.jsx, keyword.control.vue | #D59A73 | — |
| constant.numeric, constant.language, constant.character, constant.other | #D0A45F | — |
| entity.name.function, meta.function-call | #A6BF74 | — |
| support.function, support.constant, support.variable | #D0A45F | — |
| entity.name.type, entity.name.class, support.type, support.class, type.identifier | #B5A0C2 | — |
| variable, identifier | #BCA88A | — |
| meta.object-literal.key | #B7A069 | — |
| variable.other.constant, meta.definition.variable | #BCA88A | — |
| variable.parameter | #C8B1CF | — |
| variable.other.property, meta.property-name, support.type.property-name.json | #B7A069 | — |
| variable.css, variable.scss, variable.less, support.type.custom-property.name.css | #BCA88A | — |
| entity.name.tag, tag.html | #A6BF74 | — |
| support.class.component, support.class.component.vue, entity.name.type.class.vue | #B5A0C2 | — |
| entity.other.attribute-name, entity.other.attribute-name.html.vue | #D0A45F | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator | #B8AA83 | — |
| source.css support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name | #B7A069 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss, entity.other.attribute-name.class.less | #B5A0C2 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss, entity.other.attribute-name.id.less, punctuation.definition.interpolation.begin.html.vue, punctuation.definition.interpolation.end.html.vue, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #B8AA83 | — |
| markup.inline.raw, markup.underline.link, string.other.link | #D99A83 | — |
| markup.heading, markup.heading entity.name | #D59A73 | bold |
| markup.bold | #EEE4C8 | bold |
| markup.italic | #EEE4C8 | italic |
| invalid, invalid.illegal, message.error | #F07F75 | — |
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}!`;
}