ionztorm theme
Publisher: ionztormThemes in package: 1
A VSCode theme by ionztorm, influenced by Tokyonight
A VSCode theme by ionztorm, influenced by Tokyonight
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 |
|---|---|---|
| punctuation.accessor.optional, punctuation.definition.template-expression, punctuation.definition.entity, constant.character.entity, variable.other.readwrite, variable.object.property, variable.other.property | #e0af68 | — |
| constant.language.boolean, support.type.builtin, constant.language.json.comments, constant.language.json | #ff9e64 | — |
| keyword.control.import, keyword.operator.new, keyword.control.export | #7dcfff | — |
| string.quoted.double, string.quoted.single, string.template | #9ece6a | — |
| variable.other.readwrite.alias, entity.name.type.alias, entity.name.type, entity.name.tag | #2ac3de | — |
| meta.definition.property, meta.object.type, meta.field.declaration, meta.type.declaration, meta.definition.property, variable.other.object.property, meta.object-literal.key, entity.other.attribute-name, support.type.property-name.json | #73daca | — |
| entity.name.function, support.function | #7aa2f7 | — |
| storage.type, keyword.control.flow, keyword.control.conditional, keyword.control.default | #9d7cd8 | — |
| keyword.control, variable.parameter, constant.numeric.json.comments | #bb9af7 | — |
| support.class.component, constant.language.null, keyword.operator.assignment, support.constant.json, keyword.operator, punctuation.accessor, support.class.error | #f7768e | — |
| variable.other.object | #449dab | — |
| comment.line.double-slash, comment.block, punctuation.definition.tag | #BD5A91 | — |
| keyword.control, keyword.operator, keyword.other.template, keyword.other.substitution, storage.type.function.arrow, constant.other.color, punctuation.accessor, entity.name.section, markdown.heading, markup.inline.raw punctuation.definition.raw, markup.heading, storage.type.function.pug, storage.type.function.python, storage.type.annotation, punctuation.bracket.angle, keyword.other.new, storage.type.generic.wildcard, source.go keyword.operator, constant.other.symbol.ruby punctuation.definition.constant.ruby, variable.parameter, support.function.builtin.rust, storage.type.function.coffee, entity.name.variable.parameter, punctuation.separator.hash.cs, constant.other.symbol.ruby punctuation.definition.constant.ruby, constant.other.symbol.hashkey.ruby punctuation.definition.constant.ruby, meta.function.parameters variable.other, entity.name.type.annotation.kotlin, storage.type.objc, parameter.variable.function, markup punctuation.definition, punctuation.section.directive, punctuation.definition.preprocessor, source.ruby punctuation.definition.variable, support.function.textbf, source.graphql support.type.builtin, source.ocaml variable.interpolation string, entity.name.function.definition.special.constructor, entity.name.function.definition.special.member.destructor., meta.function.parameters variable punctuation.definition.variable.php, source.wsd keyword.other.activity, keyword.control.class.ruby, keyword.control.def.ruby, keyword.function.go, keyword.other.fn.rust, markup.other.anchor, markup.list.bullet, markup.list punctuation.definition, keyword.control.default, punctuation.section, punctuation.separator, punctuation.terminator, markup.bold.markdown, source.zig storage.type.function, variable.other.constant | — | bold |
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}!`;
}