Igniter.js Theme
Publisher: Igniter.jsThemes in package: 2
A beautiful, cohesive VS Code theme suite (Dark & Light) designed for Igniter.js developers. Built with warm, productive colors for long coding sessions.
A beautiful, cohesive VS Code theme suite (Dark & Light) designed for Igniter.js developers. Built with warm, productive colors for long coding sessions.
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 | #7E7E7E | italic |
| string, punctuation.definition.string, constant.other.symbol | #90b99f | — |
| keyword, storage.type, storage.modifier, keyword.operator.logical, keyword.control | #FFC799 | — |
| constant.numeric, constant.character.numeric | #e6b99d | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language | #ea83a5 | — |
| entity.name.type, support.type, meta.type.annotation, storage.type.java, storage.type.ts | #aca1cf | — |
| entity.name.function, support.function, meta.function-call, variable.function | #b9aeda | — |
| variable, meta.definition.variable, variable.other.readwrite | #EBE9E8 | — |
| variable.other.property, support.variable.property, meta.object-literal.key, meta.object.member | #A0A0A0 | — |
| keyword.operator, punctuation, meta.brace, punctuation.separator, punctuation.terminator | #A0A0A0 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #FFC799 | — |
| entity.name.tag, meta.tag.sgml, punctuation.definition.tag | #FFC799 | — |
| entity.other.attribute-name, meta.attribute, meta.attribute-with-value | #A0A0A0 | — |
| string.regexp, constant.other.character-class.regexp, constant.character.escape | #f591b2 | — |
| markup.heading, entity.name.section | #FFC799 | bold |
| markup.inserted | #90b99f | — |
| markup.deleted | #f5a191 | — |
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}!`;
}