Fleury Theme
Publisher: jonesncThemes in package: 1
A VSCode theme based on Ryan Fleury's 4coder color scheme with warm orange-gold tones
A VSCode theme based on Ryan Fleury's 4coder color scheme with warm orange-gold tones
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 | #666666 | — |
| string, string.quoted, string.template, string.quoted.docstring.multi, punctuation.definition.string, string.quoted.single, constant.character, markup.inline.raw, markup.raw, string.unquoted | #ffa900 | — |
| constant.language.boolean, constant.language.true, constant.language.false | #2895c7 | — |
| constant.numeric, constant, constant.language, support.constant, constant.other | #ffa900 | — |
| keyword.control.import, keyword.control.include, keyword.control.from | #f0c674 | — |
| meta.statement.import entity.name, meta.statement.import support.type, meta.statement.import variable, entity.name.import, entity.name.package, entity.name.module, support.other.module, meta.import variable.other, meta.preprocessor.include string, meta.preprocessor.include punctuation.definition.string | #dc7575 | — |
| keyword, keyword.control, storage.type, storage.modifier | #f0c674 | — |
| meta.preprocessor, keyword.control.directive, punctuation.definition.directive | #dc7575 | — |
| entity.name.function | #de451f | — |
| meta.function-call, meta.function-call.generic, variable, variable.other, support.variable, variable.parameter, markup.list, punctuation.definition.list_item, meta.function, meta.class, source, text | #b99468 | — |
| variable.parameter.function.language.special.self.python | #dc7575 | — |
| meta.function.decorator.python, entity.name.function.decorator.python | #de451f | — |
| support.function.builtin, support.type.builtin, support.function.magic, entity.name.function.preprocessor | #2895c7 | — |
| entity.name.type, entity.name.type.class, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.type, support.class | #edb211 | — |
| entity.name.tag, meta.tag | #f0c674 | — |
| entity.other.attribute-name, meta.attribute | #dc7575 | — |
| keyword.operator | #bd2d2d | — |
| punctuation, meta.brace, meta.bracket, meta.delimiter | #7a6b5a | — |
| invalid, invalid.illegal | #FF0000 | underline |
| meta.diff, meta.diff.header | #2895c7 | — |
| markup.inserted, meta.diff.inserted | #2ab34f | — |
| markup.deleted, meta.diff.deleted | #FF0000 | — |
| markup.heading, entity.name.section | #f0c674 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.underline.link | #2895c7 | — |
| markup.quote | #666666 | italic |
| invalid.deprecated | #db2828 | strikethrough |
| storage | #f0c674 | — |
| string.regexp | #bd2d2d | — |
| constant.character.escape | #bd2d2d | — |
| variable.language | #dc7575 | — |
| keyword.other | #f0c674 | — |
| markup.underline | — | underline |
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}!`;
}