Frostpane — Frosted Glass Dark
Publisher: kpabThemes in package: 1
A frosted-glass dark theme for VS Code. Cool, milky, low-contrast — no CSS injection required.
A frosted-glass dark theme for VS Code. Cool, milky, low-contrast — no CSS injection required.
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 | #616d80 | italic |
| variable, meta.definition.variable.name, variable.other.readwrite | #d6dfec | — |
| variable.language, variable.other.constant, support.variable | #c8b0ec | — |
| keyword, storage, storage.type, storage.modifier | #b6a3ee | italic |
| keyword.control, keyword.other.return, keyword.import | #e0a6bb | italic |
| keyword.operator, punctuation.separator, punctuation.terminator, meta.brace | #8a95a6 | — |
| entity.name.function, support.function, meta.function-call | #7cb6f0 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #6fd0d8 | — |
| string, punctuation.definition.string, string.template | #8fd3ad | — |
| constant.numeric, constant.language, constant.character, constant.other | #c8b0ec | — |
| variable.other.property, meta.object-literal.key, support.type.property-name | #a6c6ef | — |
| constant.language.boolean, constant.language.null, constant.language.undefined | #e6b98f | — |
| variable.language.this, variable.language.self, variable.language.super | #b6a3ee | italic |
| entity.name.namespace, entity.name.module, support.other.namespace | #a9c0dd | — |
| meta.decorator, entity.name.function.decorator, punctuation.decorator, storage.type.annotation, meta.annotation | #6ecfd8 | — |
| entity.name.tag, punctuation.definition.tag | #7cb6f0 | — |
| entity.other.attribute-name | #7cb6f0 | — |
| variable.parameter | #d6dfec | — |
| punctuation.definition.parameters, punctuation.definition.array, punctuation.section, punctuation.accessor, meta.brace.round, meta.brace.square, meta.brace.curly | #7a8598 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #b6a3ee | — |
| constant.character.escape, string.regexp, punctuation.definition.regexp | #e0a6bb | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #a6c6ef | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #7cb6f0 | — |
| support.type.property-name.css, support.type.property-name.scss | #a6c6ef | — |
| support.constant.property-value.css, constant.numeric.css, keyword.other.unit.css | #c8b0ec | — |
| meta.function.decorator.python, entity.name.function.decorator.python | #6ecfd8 | — |
| string.quoted.docstring, comment.block.documentation | #616d80 | italic |
| markup.heading, entity.name.section | #7cb6f0 | bold |
| markup.bold | #c8b0ec | bold |
| markup.italic | #b6a3ee | italic |
| markup.underline.link, string.other.link | #a8d2f7 | underline |
| markup.quote | #8a97aa | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #8fd3ad | — |
| punctuation.definition.list.begin.markdown, markup.list | #6ecfd8 | — |
| invalid, invalid.illegal | #e08a8a | — |
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}!`;
}