Matt Rybin Theme
Publisher: MattRybinThemes in package: 1
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.control.import, keyword.control.from, keyword.control.as, punctuation.definition.comment, comment.line.double-slash, comment.line.number-sign.shebang.shell, comment.line.number-sign.shell, comment.line.number-sign.python | #3f3f46 | bold |
| entity.other.attribute-name | #71717a | bold |
| string.unquoted.block.yaml, string.unquoted.plain.out.yaml, meta.import, meta.array.literal, punctuation.definition.string.begin, punctuation.definition.string.end, string.quoted.double, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end, variable.other.constant.property, meta.jsx.children, string.template, string.interpolated.backtick.shell, meta.scope.while-loop.shell, string.language.gherkin.feature.title, string.language.gherkin.scenario.title.title, entity.name.tag.tsx, string.quoted.single.python, constant.numeric.dec.python | #eab308 | bold |
| variable.other.readwrite.alias, entity.name.function, variable.other.constant.object, support.class.component, variable.other.object.tsx, variable.other.readwrite.tsx, source.python | #ef4444 | bold |
| entity.name.tag.yaml, keyword.control.export, keyword.control.flow, keyword.control.conditional, keyword.operator.optional, keyword.control.trycatch, storage.modifier.async, keyword.operator.ternary, keyword.operator.relational, support.function.builtin.shell, keyword.operator.pipe.shell, keyword.control.shell, keyword.language.gherkin.feature.step, keyword.language.gherkin.feature.scenario | #f97316 | bold |
| punctuation.separator.key-value.mapping.yaml, keyword.operator.comparison, storage.type, keyword.operator.assignment, keyword.operator.spread, punctuation.separator.comma, punctuation.separator.parameter, punctuation.accessor, keyword.operator.type.annotation, punctuation.definition.parameters.begin, punctuation.definition.parameters.end, punctuation.definition.binding-pattern.array, punctuation.definition.binding-pattern.object, punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.brace.round, punctuation.definition.block, keyword.operator.rest, keyword.operator.type, punctuation.definition.arguments.shell, punctuation.definition.group.shell, keyword.operator.list.shell, punctuation.definition.variable.shell, punctuation.definition.sequence.begin.yaml, punctuation.definition.sequence.end.yaml, support.type.object.module.js, keyword.operator.logical.python, punctuation.separator.colon.python, punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.separator.arguments.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.separator.annotation.result.python, punctuation.section.function.begin.python, punctuation.section.function.end.python, punctuation.section.function.lambda.begin.python, punctuation.section.function.lambda.end.python, punctuation.separator.annotation.python | #7c3aed | bold |
| constant.numeric.float.yaml, support.type.primitive, entity.name.type, punctuation.definition.typeparameters.begin, punctuation.definition.typeparameters.end, meta.type.parameters punctuation.separator.comma, meta.type.annotation, meta.flow-sequence.yaml, constant.language.boolean.yaml, constant.numeric.integer.yaml, string.quoted.single.yaml, storage.modifier.chomping-indicator.yaml, constant.other.caps.python, support.type.exception.python, meta.function.parameters.python, support.type.python, constant.language.python | #84cc16 | bold |
| meta.definition.variable variable.other.readwrite | #0284c7 | italic bold |
| constant.numeric.decimal | #0284c7 | bold |
| meta.definition.variable variable.other.constant, variable.other.object, variable.other.property, variable.other.readwrite, variable.parameter, source.shell, string.interpolated.dollar.shell, keyword.language.gherkin.feature, text.gherkin.feature, text.gherkin.feature, variable.object.property.tsx, meta.indexed-name.python, meta.member.access.python | #d4d4d8 | bold |
| meta.object-literal.key | #d4d4d8 | — |
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}!`;
}