Rosé Pine
Publisher: Rosé PineThemes in package: 6
All natural pine, faux fur and a bit of soho vibes for the classy minimalist
All natural pine, faux fur and a bit of soho vibes for the classy minimalist
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 | #6e6a86 | |
| constant | #3e8fb0 | — |
| constant.numeric, constant.language | #ea9a97 | — |
| entity.name | #ea9a97 | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #9ccfd8 | — |
| entity.other.attribute-name, entity.other.inherited-class | #c4a7e7 | |
| invalid | #eb6f92 | — |
| invalid.deprecated | #908caa | — |
| keyword, variable.language.this | #3e8fb0 | — |
| markup.inserted.diff | #9ccfd8 | — |
| markup.deleted.diff | #eb6f92 | — |
| markup.heading | — | bold |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | |
| meta.diff.range | #c4a7e7 | — |
| meta.tag, meta.brace | #e0def4 | — |
| meta.import, meta.export | #3e8fb0 | — |
| meta.directive.vue | #c4a7e7 | |
| meta.property-name.css | #9ccfd8 | — |
| meta.property-value.css | #f6c177 | — |
| meta.tag.other.html | #908caa | — |
| punctuation | #908caa | — |
| punctuation.accessor | #3e8fb0 | — |
| punctuation.definition.string | #f6c177 | — |
| punctuation.definition.tag | #6e6a86 | — |
| storage.type, storage.modifier | #3e8fb0 | — |
| string | #f6c177 | — |
| support | #9ccfd8 | — |
| support.constant | #f6c177 | — |
| support.function | #eb6f92 | |
| variable | #ea9a97 | |
| variable.other, variable.language, variable.function, variable.argument | #e0def4 | — |
| variable.parameter | #c4a7e7 | — |
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}!`;
}