Seamless
Publisher: Pedro GalegoThemes in package: 4
A quiet, single-surface theme: one background across the whole viewport, invisible seams, smooth colorful syntax. Dark and light variants.
A quiet, single-surface theme: one background across the whole viewport, invisible seams, smooth colorful syntax. Dark and light variants.
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 | #9da2b0 | italic |
| string, string.quoted, punctuation.definition.string | #3e8a5c | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, constant.character.escape, string.regexp | #2e8f74 | — |
| constant.numeric | #b16a2f | — |
| constant.language | #bd554c | — |
| constant.other, variable.other.constant, support.constant, variable.other.enummember | #7d7f28 | — |
| keyword, keyword.control | #7a5fc4 | — |
| storage.type, storage.modifier | #9553b5 | — |
| keyword.operator, punctuation.separator.key-value | #268289 | — |
| entity.name.function, meta.function-call.generic, variable.function | #2f6fc4 | — |
| support.function | #2f7fa6 | — |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.type, support.class, storage.type.primitive | #96762b | — |
| entity.name.namespace, entity.name.module | #7d7f28 | — |
| variable, variable.other.readwrite, meta.definition.variable | #3b3f4d | — |
| variable.parameter | #3b3f4d | italic |
| variable.other.property, variable.other.object.property, support.variable.property | #5566cc | — |
| support.type.property-name, meta.object-literal.key | #2f6fc4 | — |
| entity.name.tag | #c25577 | — |
| entity.other.attribute-name | #a85aa0 | italic |
| entity.other.attribute-name.class.css | #7d7f28 | — |
| entity.other.attribute-name.id.css | #b16a2f | — |
| meta.decorator, punctuation.decorator, storage.type.annotation | #9553b5 | — |
| punctuation, meta.brace | #6c7183 | — |
| markup.heading, entity.name.section | #2f6fc4 | bold |
| markup.bold | #bd554c | bold |
| markup.italic | #7a5fc4 | italic |
| markup.inline.raw, markup.fenced_code.block | #3e8a5c | — |
| markup.underline.link, string.other.link | #2f7fa6 | — |
| markup.quote | #6c7183 | italic |
| markup.inserted | #3e8a5c | — |
| markup.deleted | #c25577 | — |
| markup.changed | #b16a2f | — |
| invalid, invalid.illegal | #c25577 | — |
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}!`;
}