Framer Syntax 2
Publisher: Steven PhanThemes in package: 1
A color theme inspired by the Framer Editor with Bracket Pair Colorizer 2 integrated.
A color theme inspired by the Framer Editor with Bracket Pair Colorizer 2 integrated.
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 | #888 | — |
| constant | #FFD14A | — |
| entity | #00AEFF | — |
| keyword | #FFD14A | — |
| keyword.control.conditional, keyword.control.import | #FFD14A | — |
| punctuation | #888 | — |
| punctuation.definition.parameters | #888 | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #fff | — |
| punctuation.definition.template-expression | #FFD14A | — |
| storage | #8df | — |
| storage.type.function.arrow | #FFD14A | — |
| string, punctuation.definition.string | #91DD64 | — |
| string.template, punctuation.definition.string.template | #91DD64 | — |
| support | #00AEFF | — |
| support.function | #00AEFF | — |
| support.class.component.js | #00AEFF | — |
| variable | #fff | — |
| source.css, source.stylus, source.scss, entity.other.attribute-name.class.css | #00AEFF | — |
| punctuation.definition.constant.css | #a8f | — |
| support.type.property-name.css | #fff | — |
| source.css punctuation.definition.keyword, source.css keyword.control | #f6b | — |
| keyword.other.important.scss | #f6b | — |
| punctuation.definition.entity.css | #00AEFF | — |
| entity.other.attribute-name.pseudo-element.css | #00AEFF | — |
| support.function.misc.scss | #a8f | — |
| entity.other.attribute-name.id.css | #8df | — |
| entity.name.tag.css | #00AEFF | — |
| source.css support, source.stylus support, source.css support.constant | #fff | — |
| source.stylus constant, source.css constant | #a8f | — |
| support.constant.property-value.css | #FFD14A | — |
| keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.percentage.css, constant.other.color.rgb-value.hex.css, keyword.other.unit.ms.css, keyword.other.unit.s.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.deg.css, keyword.other.unit.fr.css | #a8f | — |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #98EC65 | — |
| source.css variable, source.stylus variable | #FFD14A | — |
| entity.other | #8df | — |
| entity.name.tag.block.any.html, meta.tag.block.any.html, entity.name.tag.inline.any.html, entity.name.tag.structure.any.html, meta.tag.inline.any.html, entity.name.tag.html, entity.name.tag.js, meta.tag.js, meta.jsx.children.tsx, meta.tag.js, meta.jsx.children.tsx, meta.tag.js | #00AAEF | — |
| punctuation.definition.keyword, keyword.control | #FFD14A | — |
| meta.toc-list.id.html | #91DD64 | — |
| meta.tag.block.any.html, meta.tag.inline.any.html | #00AEFF | — |
| punctuation.definition.tag.end.html, punctuation.definition.tag.begin.html | #777 | — |
| text.html.basic | #c3c3c3 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #91DD64 | — |
| source.js constant | #a8f | — |
| keyword.operator | #f6b | — |
| source.js keyword | #f6b | — |
| source.js storage.type.function | #fff | — |
| source.js punctuation.definition.keyword, source.js keyword.control | #FFD14A | — |
| variable.language, entity.name.type.class.js, meta.tag.js, entity.name.tag.js | #68A1F0 | — |
| entity.other.inherited-class.js, variable.language.this.js, variable.other.readwrite.alias.js, meta.import.js | #FFD14A | — |
| variable.other.constant.js, variable.other.constant.js.jsx | #fff | — |
| meta.brace | #888 | — |
| support.variable.property.dom | #00AEFF | — |
| source.json support | #fff | — |
| source.json string, source.json punctuation.definition.string, punctuation.definition.string.end.json, punctuation.definition.string.begin.json | #8df | — |
| source.php entity | #9effff | — |
| variable.other.php, punctuation.definition.variable.php, variable.other.php | #ebbf83 | — |
| variable.parameter.function.language.special.self.python | #fb94ff | — |
| storage.type.function.python | #b62d65 | — |
| meta.function-call.arguments.python | #8bd49c | — |
| meta.function-call.generic.python | #008b94 | — |
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}!`;
}