sub zero
Publisher: Gourav ThakurThemes in package: 1
A simple VSCode extension inspired by sub zero from mortal kombat
A simple VSCode extension inspired by sub zero from mortal kombat
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 | #495495 | italic |
| string.quoted, string.template, punctuation.definition.string | #ff8b39 | — |
| string.template meta.embedded.line | #b6b1b1 | — |
| variable, entity.name.variable | #ff7edb | — |
| variable.language | #fe4450 | bold |
| variable.parameter | — | italic |
| storage.type, storage.modifier | #fede5d | — |
| constant | #f97e72 | — |
| string.regexp | #f97e72 | — |
| constant.numeric | #f97e72 | — |
| constant.language | #f97e72 | — |
| constant.character.escape | #36f9f6 | — |
| entity.name | #fe4450 | — |
| entity.name.tag | #72f1b8 | — |
| punctuation.definition.tag | #36f9f6 | — |
| entity.other.attribute-name | #fede5d | — |
| entity.other.attribute-name.html | #fede5d | italic |
| entity.name.type, meta.attribute.class.html | #fe4450 | — |
| entity.other.inherited-class | #D50 | — |
| entity.name.function, variable.function | #36f9f6 | — |
| keyword.control.export.js, keyword.control.import.js | #72f1b8 | — |
| keyword | #fede5d | — |
| keyword.control | #fede5d | — |
| keyword.operator | #fede5d | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical | #fede5d | — |
| keyword.other.unit | #f97e72 | — |
| support | #fe4450 | — |
| support.function | #36f9f6 | — |
| support.variable | #ff7edb | — |
| meta.object-literal.key, support.type.property-name | #ff7edb | — |
| punctuation.separator.key-value | #b6b1b1 | — |
| punctuation.section.embedded | #fede5d | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #72f1b8 | — |
| support.type.property-name.css, support.type.property-name.json | #72f1b8 | — |
| switch-block.expr.js | #72f1b8 | — |
| variable.other.constant.property.js, variable.other.property.js | #2ee2fa | — |
| constant.other.color | #f97e72 | — |
| support.constant.font-name | #f97e72 | — |
| entity.other.attribute-name.id | #36f9f6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #D50 | — |
| support.function.misc.css | #fe4450 | — |
| markup.heading, entity.name.section | #ff7edb | — |
| text.html, keyword.operator.assignment | #ffffffee | — |
| markup.quote | #b6b1b1cc | italic |
| beginning.punctuation.definition.list | #ff7edb | — |
| markup.underline.link | #D50 | — |
| string.other.link.description | #f97e72 | — |
| meta.function-call.generic.python | #36f9f6 | — |
| storage.type.cs | #fe4450 | — |
| entity.name.variable.local.cs | #ff7edb | — |
| entity.name.variable.field.cs, entity.name.variable.property.cs | #ff7edb | — |
| source.cpp keyword.operator | #fede5d | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #36f9f6 | — |
| source.elixir entity.name.function | #72f1b8 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #36f9f6 | — |
| source.elixir punctuation.definition.string | #72f1b8 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #72f1b8 | — |
| source.elixir .punctuation.binary.elixir | #ff7edb | italic |
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}!`;
}