Pulse Studio Theme
Publisher: Irvin BenitezThemes in package: 9
Conjunto de temas morados para VS Code con variantes claras, oscuras y cyberpunk
Conjunto de temas morados para VS Code con variantes claras, oscuras y cyberpunk
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 | #8a7e9e | italic |
| variable, variable.other, variable.parameter | #3e3848 | — |
| variable.language | #9d57b8 | — |
| constant, constant.numeric, constant.language, constant.character.escape | #b8774d | — |
| constant.numeric | #c89f4d | — |
| string, string.quoted, string.template | #4d8847 | — |
| keyword, keyword.control, keyword.operator.new, keyword.other | #7c5fc7 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical | #5e5268 | — |
| storage, storage.type, storage.modifier | #9d57b8 | — |
| entity.name.function, meta.function-call, support.function | #5d6dbb | — |
| entity.name.type, entity.name.class, support.class, support.type | #b8774d | — |
| entity.other.inherited-class | #7c5fc7 | — |
| variable.parameter, meta.function.parameters | #b8774d | — |
| entity.name.tag | #7c5fc7 | — |
| entity.other.attribute-name | #5d6dbb | — |
| support.constant, support.variable | #9d57b8 | — |
| meta.import, meta.export | #5d6dbb | — |
| markup.heading | #7c5fc7 | bold |
| markup.bold | #9d57b8 | bold |
| markup.italic | #5d6dbb | italic |
| markup.list | #5d9857 | — |
| markup.quote | #8a7e9e | italic |
| markup.inline.raw, markup.fenced_code | #4d8847 | — |
| punctuation | #5e5268 | — |
| invalid, invalid.illegal | #b8576d | — |
| invalid.deprecated | #c89f4d | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}