Liquid Glass Theme by Samsad
Publisher: Samsad Chalil ValappilThemes in package: 2
Apple Liquid Glass & macOS Sequoia inspired theme for VS Code with Dark and Light variants, refined contrast, and native typography.
Apple Liquid Glass & macOS Sequoia inspired theme for VS Code with Dark and Light variants, refined contrast, and native typography.
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 | #8C8C8C | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, keyword.operator.delete, storage.type, storage.modifier | #0033B3 | — |
| entity.name.function, meta.function-call, support.function, meta.method-call | #00627A | — |
| string, string.quoted, string.template, punctuation.definition.string | #067D17 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #1750EB | — |
| constant, constant.other, variable.other.constant, entity.name.constant | #871094 | italic |
| entity.name.type, entity.name.class, entity.name.interface, support.class, support.type | #000000 | — |
| variable, variable.other, variable.parameter | #000000 | — |
| variable.other.property, variable.other.object.property, support.type.property-name | #871094 | — |
| meta.decorator, entity.name.function.decorator, storage.type.annotation | #9E880D | — |
| entity.name.tag, punctuation.definition.tag | #0033B3 | — |
| entity.other.attribute-name | #00627A | — |
| support.type.property-name.css, entity.other.attribute-name.class.css | #00627A | — |
| support.type.property-name.json | #00627A | — |
| markup.heading, punctuation.definition.heading.markdown | #0033B3 | bold |
| markup.underline.link.markdown, string.other.link.title.markdown | #007AFF | — |
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}!`;
}