Linen Dark
Publisher: Amr FThemes in package: 1
A calm low-glare dark theme for focused coding.
A calm low-glare dark theme for focused coding.
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 | #858179 | italic |
| comment.block.documentation, comment.line.documentation, string.quoted.docstring | #B4B2A9 | italic |
| string, constant.other.symbol | #5DCAA5 | — |
| constant.character.escape, constant.character.entity, constant.other.character-class.regexp, string.regexp | #EF9F27 | — |
| constant.numeric, constant.language, support.constant, variable.other.constant | #85B7EB | — |
| keyword, storage, storage.type, storage.modifier, punctuation.definition.keyword | #F09595 | — |
| keyword.operator, punctuation.accessor, punctuation.separator, punctuation.terminator | #B4B2A9 | — |
| entity.name.function, meta.function-call, support.function, variable.function | #85B7EB | — |
| variable.parameter, meta.parameter, entity.name.variable.parameter | #DEDCD4 | — |
| entity.name.class, entity.name.type, entity.name.struct, entity.name.enum, support.class, support.type, support.type.primitive | #85B7EB | — |
| entity.name.interface, entity.name.namespace, entity.name.module, support.module | #5DCAA5 | — |
| variable, variable.other, support.variable, meta.object-literal.key | #F1EFE8 | — |
| variable.other.property, variable.other.object.property, meta.property.object, support.variable.property, entity.other.attribute-name | #C4B7F5 | — |
| support.type.builtin, support.class.builtin, variable.language, constant.language.boolean, constant.language.null, constant.language.undefined | #85B7EB | — |
| entity.name.tag, punctuation.definition.tag | #F09595 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.xml | #85B7EB | — |
| markup.heading, markup.heading entity.name | #85B7EB | bold |
| markup.bold, markup.italic | #F1EFE8 | — |
| markup.inline.raw, markup.fenced_code.block, markup.raw.block | #5DCAA5 | — |
| markup.underline.link, string.other.link, meta.link | #85B7EB | — |
| markup.quote | #C8C5BA | italic |
| markup.changed, meta.diff.header | #EF9F27 | — |
| markup.inserted | #5DCAA5 | — |
| markup.deleted | #F09595 | — |
| invalid, invalid.illegal | #F09595 | underline |
| support.type.property-name.json, meta.structure.dictionary.key.json string.quoted.double | #C4B7F5 | — |
| entity.name.tag.yaml | #C4B7F5 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.scss, entity.other.attribute-name.class.scss, entity.other.attribute-name.id.scss | #85B7EB | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css, meta.property-name.scss | #C4B7F5 | — |
| support.constant.property-value.css, support.constant.property-value.scss, constant.other.color.rgb-value, constant.other.rgb-value | #5DCAA5 | — |
| support.function.builtin.shell, support.function.builtin.zsh, support.function.builtin.bash | #85B7EB | — |
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}!`;
}