fcode-theme
Publisher: flanggutThemes in package: 1
Color Theme
Color Theme
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| comment | #818B97 | — |
| constant.character | #EF8776 | — |
| constant.character.escape | #EF8776 | — |
| constant.language | #EF82B1 | — |
| constant.numeric | #D7C986 | — |
| constant.numeric.decimal | #D7C986 | — |
| constant.regexp | #EF8776 | — |
| entity.name.class, entity.name.type.class | #89BFB3 | bold |
| entity.name.function.definition | #69aec8 | — |
| dependent | #D5BCFB | — |
| dependent.other | #FF0000 | — |
| entity.name.tag | #EF82B1 | — |
| entity.other.attribute-name | #89BFB3 | — |
| entity.other.inherited-class | #89BFB3 | bold |
| invalid.deprecated | #d9d9d9 | — |
| invalid.illegal | #d9d9d9 | — |
| keyword | #EF82B1 | bold |
| keyword.operator | #AA85E5 | |
| keyword.operator.assignment | #D9D9D9 | — |
| keyword.other.new | #EF82B1 | — |
| markup.bold | — | bold |
| markup.changed | #EF8776 | — |
| markup.deleted | #e78474 | — |
| markup.inserted | #EF8776 | — |
| meta.preprocessor | #5E81AC | — |
| punctuation | #ECEFF4 | — |
| punctuation.definition.method-parameters, punctuation.definition.function-parameters, punctuation.definition.parameters | #ECEFF4 | — |
| punctuation.definition.tag | #EF82B1 | — |
| punctuation.definition.comment, punctuation.end.definition.comment, punctuation.start.definition.comment | #818B97 | — |
| punctuation.section | #ECEFF4 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #EF82B1 | — |
| punctuation.terminator | #EF82B1 | — |
| punctuation.definition.variable | #EF82B1 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #F08776 | — |
| storage | #EF82B1 | bold |
| string | #EF8776 | — |
| string.regexp | #EF8776 | — |
| support.class | #89BFB3 | — |
| support.constant | #EF82B1 | — |
| token.debug-token | #D7C986 | — |
| token.error-token | #e78474 | — |
| token.info-token | #2E65B6 | — |
| token.warn-token | #EF8776 | — |
| variable.other | #d9d9d9 | — |
| variable.language | #EF82B1 | — |
| variable.parameter | #d9d9d9 | — |
| entity.name.macro | #F08776 | — |
| entity.name.function.call | #7AA89F | — |
| storage.type.built-in | #89BFB3 | bold |
| keyword.control.directive | #F3A45F | — |
| punctuation.terminator.statement.cpp | #d9d9d9 | — |
| storage.modifier.specifier.const.cpp | #89BFB3 | |
| storage.modifier.reference.cpp | #AA85E5 | |
| storage.type.class.doxygen.cpp | #d9d9d9 | |
| keyword.other.unit.suffix.integer.cpp, keyword.other.unit.suffix.floating-point.cpp, punctuation.separator.constant.numeric.cpp | #D7C985 | |
| source.c meta.preprocessor.include, source.c string.quoted.other.lt-gt.include | #F3A45F | — |
| meta.declaration.type.alias.cpp | #BBF0E4 | — |
| source.cpp keyword.control.directive.conditional, source.cpp punctuation.definition.directive, source.c keyword.control.directive.conditional, source.c punctuation.definition.directive | #F3A45F | bold |
| source.diff meta.diff.range.context | #89BFB3 | — |
| source.diff meta.diff.header.from-file | #89BFB3 | — |
| source.diff punctuation.definition.from-file | #89BFB3 | — |
| source.diff punctuation.definition.range | #89BFB3 | — |
| source.diff punctuation.definition.separator | #EF82B1 | — |
| text.html.markdown markup.fenced_code.block, text.html.markdown markup.fenced_code.block punctuation.definition | #89BFB3 | — |
| markup.heading | #2E65B6 | — |
| text.html.markdown markup.inline.raw, text.html.markdown markup.inline.raw punctuation.definition.raw | #89BFB3 | — |
| text.html.markdown markup.italic | — | italic |
| text.html.markdown markup.underline.link | — | underline |
| text.html.markdown beginning.punctuation.definition.list | #EF82B1 | — |
| text.html.markdown beginning.punctuation.definition.quote | #89BFB3 | — |
| text.html.markdown markup.quote | #818B97 | — |
| text.html.markdown punctuation.definition.heading | #EF82B1 | — |
| text.html.markdown punctuation.definition.constant, text.html.markdown punctuation.definition.string | #EF82B1 | — |
| text.html.markdown constant.other.reference.link, text.html.markdown string.other.link.description, text.html.markdown string.other.link.title | #2E65B6 | — |
| source.python entity.name.function.decorator, source.python meta.function.decorator support.type | #D08770 | — |
| source.python meta.function-call.generic | #2E65B6 | — |
| source.python support.type | #2E65B6 | — |
| source.python variable.parameter.function.language | #d9d9d9 | — |
| source.python meta.function.parameters variable.parameter.function.language.special.self | #EF82B1 | — |
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}!`;
}