Infinity 8 Theme by Shingo Murata
Publisher: Markus RaffertyThemes in package: 2
Infinity 8 blackboard & whiteboard themes featuring 8 two-tone syntax highlighters
Infinity 8 blackboard & whiteboard themes featuring 8 two-tone syntax highlighters
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, comment punctuation, keyword.operator.key | #008800df | — |
| meta.attribute, meta.objectliteral, meta.paragraph.markdown, string.regexp.js punctuation, keyword.operator.assignment, punctuation.terminator.expression, entity.other.attribute-name.localname.xml, string.quoted.double.php, punctuation.section.array, punctuation.definition.array, meta.brace.square.js | #8888ffdf | — |
| string, storage.type, storage.modifier, comment keyword, punctuation.definition.constant, entity.name.type, punctuation.terminator.rule | #88ffffdf | — |
| support, variable, meta.attribute, punctuation.definition.variable | #ff88ffdf | — |
| class, support.class, entity.name.class, keyword.operator, meta.tag, text.xml entity.name.tag.localname, punctuation.terminator.statement, support.constant, storage.type.template, punctuation.section.function | #ff00ffdf | — |
| constant, keyword, namespace, entity.other.attribute-name.namespace, punctuation.definition.entity.html, heading | #ffff00df | — |
| storage.modifier, keyword.other.phpdoc | #008888df | — |
| punctuation, meta.brace.round.js | #008888ff | — |
| function, entity.name.function, meta.tag.custom, entity.name.tag.tsx, punctuation.definition.character-class, variable.other.object.property | #ff8888df | — |
| constant.character.escape, keyword.other.important.css, keyword.operator.quantifier, punctuation.definition.string.heredoc.delimiter, keyword.operator.pattern, keyword.operator.expression.delete, keyword.operator.arithmetic, entity.other.attribute-name.xml | #ffffffdf | — |
| punctuation.separator, entity.other.inherited-class, meta.link, meta.tag.xml, meta.directive.blade, punctuation.definition.keyword, variable.other.object, keyword.operator.decrement, keyword.operator.increment, entity.name.function.member, meta.method-call.php, variable.other.property | #0088ffdf | — |
| constant.language.boolean, keyword.operator, storage.type, meta.tag.structure, punctuation.definition.group, support.function, punctuation.section.embedded.begin, punctuation.section.embedded.end | #00ff88df | — |
| meta.tag, keyword.other.unit, variable.other.property.js, variable.other.constant, keyword.operator.access, variable.argument, fenced_code.block.language, storage.modifier.implements | #888888df | — |
| meta.attribute.class, punctuation.definition.bold, variable.language.this, variable.other.object | #ff4488df | — |
| keyword.other.definition, keyword.other.type, meta.attribute.unrecognized, punctuation.definition.list | #bb4444df | — |
| constant.numeric, keyword.blade | #bbbb44df | — |
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}!`;
}