Astigmatism Theme
Publisher: GabrielFacioniThemes in package: 1
A personalized theme for people with astigmatism.
A personalized theme for people with astigmatism.
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.use, keyword.other.function.use, constant.language, keyword.other.namespace, entity.name.function, keyword.control.import, keyword.control.from, entity.name.tag, entity.other.attribute-name | #758DC4 | — |
| storage.modifier, punctuation.section.embedded.begin.php, punctuation.section.embedded.begin.js, support.type.primitive.tsx, entity.name.type.tsx, keyword.operator.logical, constant.language.boolean.false, constant.language.boolean.true, entity.name.section.markdown, punctuation.definition.heading.markdown, markup.bold.markdown, punctuation.definition.list.begin.markdown, constant.language | #758DC4 | bold |
| storage.type.class, storage.modifier.extends, storage.modifier.implements, support.function, storage.type.interface, storage.type.type, storage.type.tsx, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.end | #758DC4 | italic |
| variable.other.php string, variable.other.js string, variable.other.property.php, variable.other.property.js, variable.other.constant.js, variable.other.constant.tsx, variable.object.property.tsx, variable.parameter.tsx, variable.other, keyword.other.class | #7C9782 | — |
| variable.language.this.php, storage.type.php, variable.parameter | #65779e | italic |
| keyword.operator.assignment.php | #FFDFC4 | — |
| support.class, entity.name.type.tsx | #c28b6f | bold |
| keyword.other.type.php, variable.other.readwrite | #758DC4 | bold |
| punctuation.definition.variable.php | #A2653E | — |
| entity.name.type.namespace | #758DC4 | — |
| entity.name.type.class, entity.other.inherited-class, keyword.control.return, keyword.control.flow, entity.name.type.alias, entity.name.type.interface, constant.numeric, keyword.operator.new, keyword.operator.ternary, keyword.other.new, keyword.control.break, keyword.control.continue, keyword.operator.null-coalescing.php | #975a92 | bold |
| storage.type | #975a92 | italic |
| keyword.control.trycatch, keyword.control.switch, keyword.control.conditional, keyword.control.loop, keyword.control.foreach, keyword.control.exception, keyword.control.export, keyword.control.default | #975A92 | — |
| keyword.operator.class, keyword.operator.class.static, punctuation.definition.variable, support.other.namespace | #C0BDB0 | — |
| punctuation.definition.parameters.begin.bracket.round, punctuation.definition.parameters.end.bracket.round, punctuation.definition.dictionary.begin, punctuation.definition.dictionary.end, punctuation.definition.begin.bracket.curly, punctuation.definition.end.bracket.curly, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, keyword.operator.return-value, meta.method-call, punctuation.definition.class.begin.bracket.curly, punctuation.definition.class.end.bracket.curly, punctuation.section.array.begin, punctuation.section.array.end, punctuation.definition.array.begin, punctuation.definition.array.end, punctuation.terminator.expression, keyword.operator.null-coalescing, punctuation.definition.begin.bracket.round, punctuation.definition.end.bracket.round, punctuation.definition.switch-expression.begin.bracket.round, punctuation.definition.switch-expression.end.bracket.round, punctuation.definition.section.switch-block.end.bracket.curly, punctuation.definition.section.switch-block.begin.bracket.curly, punctuation.definition.block, unctuation.definition.section.switch-block.begin.bracket.curly, keyword.operator.assignment.php, keyword.operator.comparison.php, keyword.operator.arithmetic, keyword.operator.assignment, punctuation.separator.parameter, meta.brace.round, punctuation.definition.block, meta.brace.square, punctuation.terminator.statement, punctuation.definition.block, storage.type.function.arrow.tsx, punctuation.definition.parameters.begin, punctuation.definition.binding-pattern.object, punctuation.definition.parameters.end, punctuation.definition.markdown, fenced_code.block.language.markdown, keyword.operator.comparison, punctuation.separator.comma, punctuation.accessor, punctuation.separator.delimiter, keyword.operator.type.annotation, keyword.operator.type.tsx, punctuation.definition.typeparameters, punctuation.definition.binding-pattern.array, meta.object.member.js, punctuation.separator.key-value.js | #586a96 | — |
| support.type.property-name.json, meta.object-literal.key.tsx, meta.object-literal.key.jsx, variable.other.object.js, meta.object-literal.key.js, support.type.object.module.js | #7c9782 | — |
| comment, comment.block.documentation.php | #5F6675 | — |
| variable.other.object, constant.other, meta.jsx.children, entity.name.goto-label.php, keyword.operator.error-control.php | #c0bdb0 | — |
| text.html.laravel-blade | #E0F2F1 | — |
| keyword.control.endif.php, keyword.control.endforeach.php, keyword.control.if.php, keyword.control.else.php, keyword.control.for.php, keyword.control.endfor.php, keyword.control.while.php, keyword.control.do.php, keyword.control.endwhile.php | #975A92 | — |
| entity.name.tag.html, entity.name.tag.inline.html, entity.name.tag.block.html, entity.name.tag.structure.html, text.html.php meta.tag.block.any.html, text.html.php entity.name.tag.block.html, text.html.php meta.tag.inline.any.html, text.html.php entity.name.tag.inline.html | #758DC4 | bold |
| entity.other.attribute-name.html, entity.other.attribute-name, entity.other.attribute-name.html.angular, entity.other.attribute-name.html.vue, entity.other.attribute-name.html.react | #7c9782 | italic |
| entity.other.attribute-name.event.html, entity.other.attribute-name.style.html, entity.other.attribute-name.src.html, entity.other.attribute-name.href.html | #AC6F3A | — |
| string.quoted.html, string.quoted.double.html, string.quoted.single.html, punctuation.definition.string.html, string.quoted.single.tsx, string.quoted.double.tsx, string.quoted.tsx, string.template.tsx, string.quoted.single, string.quoted.double, string.heredoc, string.nowdoc, punctuation.definition.string.template.begin.js, string.template.js | #c09c8e | — |
| meta.tag.special.html, meta.tag.preprocessor.html, comment.block.html | #5F6675 | — |
| entity.name.tag.custom.html, entity.name.tag.unknown.html | #975a92 | underline |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, keyword.control.at-rule.media | #c5b764 | bold |
| support.type.property-name.css | #7c9782 | italic |
| support.constant.property-value.css, constant.other.color.rgb-value.css, constant.numeric.css, variable.css, keyword.other.unit, variable.argument, variable.parameter.keyframe-list | #758DC4 | — |
| keyword.other.unit.css | #c09c8e | — |
| support.function.misc.css, support.function.color.css, support.function.transform.css | #975a92 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.include.css | #BF616A | bold |
| variable.other.custom-property.css, variable.other.readwrite.css | #D2BF61 | — |
| keyword.other.important.css, keyword.other.inherit.css | #BF616A | bold |
| entity.name.tag.scss, variable.other.namespace.scss, keyword.control.at-rule | #D2BF61 | — |
| entity.other.attribute-name.class.tailwind, support.type.property-name.media | #7c9782 | — |
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}!`;
}