Fleex Theme
Publisher: blueboneThemes in package: 16
A calm sixteen-theme collection for VS Code / 一组克制、专注的 VS Code 十六款主题
A calm sixteen-theme collection for VS Code / 一组克制、专注的 VS 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, punctuation.definition.comment | #6C6058 | italic |
| string, punctuation.definition.string | #ACD07C | — |
| constant.numeric, constant.language, constant.character, constant.other | #D8A070 | — |
| keyword, storage.type, storage.modifier | #E07870 | — |
| keyword.operator | #8A8078 | — |
| entity.name.function, support.function, meta.function-call | #78B0E0 | — |
| entity.name.type, entity.name.class, support.class, support.type, entity.other.inherited-class | #E0C074 | — |
| variable, meta.definition.variable, support.variable, entity.name.variable | #C8C0B4 | — |
| variable.parameter | #C8C0B4 | italic |
| variable.other.property, support.type.property-name | #58C0B8 | — |
| punctuation | #8A8078 | — |
| meta.object-literal.key | #58C0B8 | — |
| entity.name.tag, punctuation.definition.tag | #E07870 | — |
| entity.other.attribute-name | #E0C074 | — |
| string.regexp | #D8A070 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, meta.selector.css | #E07870 | — |
| support.type.property-name.css | #58C0B8 | — |
| support.constant.property-value.css, keyword.other.unit.css | #D8A070 | — |
| entity.other.attribute-name.html.vue | #E07870 | — |
| support.class.component.html.vue | #E0C074 | — |
| meta.decorator punctuation.decorator, meta.decorator entity.name.function, meta.decorator entity.name.type, meta.decorator variable.other.object | #D8A070 | — |
| markup.heading.markdown | #78B0E0 | — |
| markup.underline.link.markdown, string.other.link.title.markdown | #ACD07C | — |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #8A8078 | — |
| invalid | #FF9272 | — |
| entity.name.namespace.wildcard.python, meta.statement.import.python entity.name.module.python, support.other.module.python | #ACD07C | — |
| support.function.builtin.python | #78B0E0 | italic |
| support.function.magic.python | #78B0E0 | italic |
| support.type.python | #E0C074 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #E07870 | italic |
| entity.name.function.decorator.python, punctuation.definition.decorator.python | #D8A070 | — |
| support.variable.magic.python | #58C0B8 | — |
| support.class.exception.python | #E0C074 | — |
| meta.fstring.python variable, constant.character.format.placeholder.other.python | #C8C0B4 | — |
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}!`;
}