Luoshen Mistglass
Publisher: PenryThemes in package: 1
洛神染雾,琉璃映夜。A blue-spectrum frosted glass theme for Visual Studio Code.
洛神染雾,琉璃映夜。A blue-spectrum frosted glass theme for Visual Studio Code.
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 | #88818B | italic |
| constant | #4F8FA6 | — |
| constant.numeric, constant.language | #ebbcba | — |
| entity.name | #ebbcba | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #9ccfd8 | — |
| entity.other.attribute-name, entity.other.inherited-class | #9EBBD0 | italic |
| invalid | #eb6f92 | — |
| invalid.deprecated | #8F8995 | — |
| keyword, variable.language.this | #4F8FA6 | — |
| markup.inserted.diff | #9ccfd8 | — |
| markup.deleted.diff | #eb6f92 | — |
| markup.heading | — | bold |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| meta.diff.range | #9EBBD0 | — |
| meta.tag, meta.brace | #e0def4 | — |
| meta.import, meta.export | #4F8FA6 | — |
| meta.directive.vue | #9EBBD0 | italic |
| meta.property-name.css | #9ccfd8 | — |
| meta.property-value.css | #f6c177 | — |
| meta.tag.other.html | #8F8995 | — |
| punctuation | #8F8995 | — |
| punctuation.accessor | #4F8FA6 | — |
| punctuation.definition.string | #f6c177 | — |
| punctuation.definition.tag | #88818B | — |
| storage.type, storage.modifier | #4F8FA6 | — |
| string | #f6c177 | — |
| support | #9ccfd8 | — |
| support.constant | #f6c177 | — |
| support.function | #eb6f92 | italic |
| variable | #ebbcba | italic |
| variable.other, variable.language, variable.function, variable.argument | #e0def4 | — |
| variable.parameter | #9EBBD0 | — |
| punctuation.definition.math.inline.markdown, punctuation.definition.math.display.markdown, punctuation.definition.math.begin.markdown, punctuation.definition.math.end.markdown, markup.math.inline.markdown punctuation.definition.math.begin.markdown, markup.math.inline.markdown punctuation.definition.math.end.markdown, markup.math.block.markdown punctuation.definition.math.begin.markdown, markup.math.block.markdown punctuation.definition.math.end.markdown | #EBBCBA | — |
| keyword, storage.type, storage.modifier | #65A6C7 | — |
| keyword.control, keyword.control.flow, keyword.control.conditional, keyword.control.loop, keyword.control.exception, constant.keyword | #65A6C7 | italic |
| storage.type.function.python, storage.type.class.python, storage.modifier.declaration.python | #8295C6 | |
| keyword.operator, keyword.operator.word | #7193AD | — |
| punctuation.accessor, source.python punctuation.separator.period.python | #667C8E | — |
| entity.name.function, variable.function | #68AFF0 | |
| meta.function.python entity.name.function.python | #68AFF0 | |
| support.function, support.function.builtin.python | #68AFF0 | |
| support.function.magic.python | #68AFF0 | |
| entity.name.class, entity.name.type, entity.name.type.class, entity.other.inherited-class | #8DA6E8 | |
| support.type, support.class, entity.name.namespace | #A3C2D9 | |
| variable, variable.other, variable.other.readwrite | #D7DCE5 | |
| variable.parameter, entity.name.variable.parameter | #C4CFDD | italic |
| variable.other.property, variable.other.object.property | #73C0CF | |
| meta.attribute.python | #73C0CF | |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #91A7BC | italic |
| variable.parameter.function-call.python | #73C0CF | |
| constant, variable.other.constant | #95BFD8 | — |
| constant.numeric | #9BAFD3 | — |
| constant.language | #83BDB6 | — |
| string, string.quoted, string.interpolated | #83BDB6 | — |
| meta.function.decorator.python, entity.name.function.decorator.python, variable.other.decorator.python | #7FB6D2 | |
| constant.character.escape, constant.character.escape.python | #EB6F92 | — |
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}!`;
}