fx
Publisher: David GalavottiThemes in package: 1
A VSCode theme inspired on Framer X
A VSCode theme inspired on Framer X
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 |
|---|---|---|
| keyword.other.important | — | bold |
| meta.property-name, support.type.property-name | #AB6526 | — |
| meta.property-value constant.other, meta.property-value, support.constant.property-value | #448C27 | — |
| entity.name.tag.css, meta.selector entity punctuation, meta.selector entity, meta.selector | #7A3E9D | — |
| entity.name.type, entity.other.inherited-class, support.class | #ffaa00 | |
| comment, punctuation.definition.comment | #bbbbbb | |
| comment.block.documentation, comment.documentation | #448C27 | — |
| comment.block.preprocessor | #bbbbbb | |
| entity.name.exception | #660000 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.index, meta.diff.range, meta.separator | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| entity.name.function, support.function | #ffaa00 | |
| entity.other.attribute-name.html, meta.tag entity.other.attribute-name | #33aaee | |
| meta.tag.sgml punctuation.definition.tag.html, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml.doctype string, meta.tag.sgml.doctype | #AAAAAA | — |
| constant.character.entity, punctuation.definition.entity | #AB6526 | — |
| entity.name.tag | #4B83CD | — |
| meta.tag, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html | #999999 | — |
| invalid.illegal | #660000 | — |
| keyword, storage | #0099ff | — |
| constant.language, support.constant, variable.language | #ff8866 | — |
| markup.inline.raw | #AB6526 | |
| markup.list | #4B83CD | — |
| markup.quote | #7A3E9D | — |
| markup.bold, markup.italic | #448C27 | — |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.heading | #AA3731 | — |
| markup.inserted | #000000 | — |
| meta.link | #4B83CD | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.underline | — | underline |
| punctuation.definition.list, punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments | #999999 | — |
| constant, constant.character, constant.numeric | #ff8866 | — |
| keyword.operator | #777777 | — |
| punctuation.definition.parameters | #999999 | — |
| punctuation.definition.string | #8855ff | — |
| punctuation | #999999 | — |
| entity.name.section | — | |
| string | #8855ff | — |
| constant.character.escape | #777777 | — |
| string.regexp | #4B83CD | — |
| constant.other.symbol | #AB6526 | — |
| storage.type, support.type | #00bbcc | — |
| support.variable, variable | #666666 | — |
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}!`;
}