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 | #7a7a8a | italic |
| variable, variable.other, variable.parameter | #d0d0dd | — |
| variable.language | #b899c9 | — |
| constant, constant.numeric, constant.language, constant.character.escape | #c9b19d | — |
| constant.numeric | #d4c49d | — |
| string, string.quoted, string.template | #9db899 | — |
| keyword, keyword.control, keyword.operator.new, keyword.other | #a89bc7 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical | #9d9daf | — |
| storage, storage.type, storage.modifier | #b899c9 | — |
| entity.name.function, meta.function-call, support.function | #9d9dc9 | — |
| entity.name.type, entity.name.class, support.class, support.type | #b8a99d | — |
| entity.other.inherited-class | #a89bc7 | — |
| variable.parameter, meta.function.parameters | #c9b19d | — |
| entity.name.tag | #a89bc7 | — |
| entity.other.attribute-name | #9d9dc9 | — |
| support.constant, support.variable | #b899c9 | — |
| meta.import, meta.export | #9d9dc9 | — |
| markup.heading | #a89bc7 | bold |
| markup.bold | #b899c9 | bold |
| markup.italic | #9d9dc9 | italic |
| markup.list | #9db899 | — |
| markup.quote | #7a7a8a | italic |
| markup.inline.raw, markup.fenced_code | #9db899 | — |
| punctuation | #9d9daf | — |
| invalid, invalid.illegal | #c9919e | — |
| invalid.deprecated | #d4c49d | — |
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}!`;
}