Vipr Theme
Publisher: Vipr Development LLCThemes in package: 9
Free companion theme for Vipr — dark, light, and high contrast color themes plus file icons for VS Code
Free companion theme for Vipr — dark, light, and high contrast color themes plus file icons for VS Code
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 | #7a6e64 | italic |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.logical, storage, storage.type | #9c8cff | — |
| string, string.quoted, string.template | #8bf0b0 | — |
| constant.numeric | #7bc8ff | — |
| constant.language | #9c8cff | — |
| entity.name.type, support.type, support.type.primitive, meta.type.annotation | #67bfff | — |
| entity.name.type.class, support.class | #a0d7ff | — |
| entity.name.type.interface | #a0d7ff | — |
| entity.name.type.enum | #f0bb33 | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #b7acff | — |
| entity.name.function.member | #b7acff | — |
| variable.parameter | #e8e0d8 | — |
| variable, variable.other | #e8e0d8 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #a0d7ff | — |
| variable.other.constant | #f0bb33 | — |
| string.regexp | #4bd37d | — |
| constant.character.escape | #f0bb33 | bold |
| keyword.operator, keyword.operator.assignment | #9a8e84 | — |
| punctuation, punctuation.definition.block, punctuation.separator, punctuation.terminator, meta.brace | #7a6e64 | — |
| entity.name.tag, punctuation.definition.tag, support.class.component | #9c8cff | — |
| entity.other.attribute-name | #67bfff | italic |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #b7acff | — |
| support.type.property-name.css, support.type.property-name.scss | #67bfff | — |
| support.constant.property-value.css, meta.property-value.css | #8bf0b0 | — |
| meta.decorator, punctuation.decorator | #f7cd4c | — |
| entity.name.type.module, entity.name.namespace | #7bc8ff | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading | #8470ff | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.raw.inline, markup.inline.raw | #8bf0b0 | — |
| markup.fenced_code.block | #e8e0d8 | — |
| markup.underline.link, string.other.link | #9c8cff | — |
| support.type.property-name.json | #a0d7ff | — |
| entity.name.tag.yaml | #a0d7ff | — |
| string.unquoted.yaml | #8bf0b0 | — |
| support.type.property-name.toml, entity.name.tag.toml | #a0d7ff | — |
| keyword.type.graphql | #9c8cff | — |
| entity.name.type.graphql, support.type.built-in.graphql | #67bfff | — |
| keyword.other.shell, keyword.control.shell | #9c8cff | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #e8e0d8 | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #e8e0d8 | — |
| markup.list, punctuation.definition.list, beginning.punctuation.definition.list | #9c8cff | — |
| markup.underline | — | underline |
| invalid.deprecated | #8a7e74 | strikethrough |
| invalid.illegal | #ff6b6b | — |
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}!`;
}