Github Purple Refined
Publisher: RnbsovThemes in package: 1
💜 A theme as accurate to Github's dark theme as possible, but with purple accents! 💜
💜 A theme as accurate to Github's dark theme as possible, but with purple accents! 💜
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, string.comment | #60666b | — |
| entity.name.variable.field, entity.name.variable.local | #c9d1d9 | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #79B8FF | — |
| entity.name, entity | #b392f0 | — |
| variable.parameter.function | #E1E4E8 | — |
| entity.name.tag | #85E89D | — |
| keyword | #F97583 | — |
| storage | #f97583 | — |
| storage.type | #b392e9 | — |
| storage.modifier | #f97583 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #E1E4E8 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #9ECBFF | — |
| support | #79B8FF | — |
| meta.property-name | #79B8FF | — |
| variable | #FFAB70 | — |
| variable.other | #E1E4E8 | — |
| invalid.broken | #FDAEB7 | — |
| invalid.deprecated | #FDAEB7 | — |
| invalid.illegal | #FDAEB7 | — |
| invalid.unimplemented | #FDAEB7 | — |
| carriage-return | #24292E | — |
| message.error | #FDAEB7 | — |
| string source | #E1E4E8 | — |
| string variable | #79B8FF | — |
| source.regexp, string.regexp | #DBEDFF | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #DBEDFF | — |
| string.regexp constant.character.escape | #85E89D | bold |
| support.constant | #79B8FF | — |
| support.variable | #79B8FF | — |
| meta.module-reference | #79B8FF | — |
| punctuation.definition.list.begin.markdown | #FFAB70 | — |
| markup.heading, markup.heading entity.name | #79B8FF | bold |
| markup.quote | #85E89D | — |
| markup.italic | #E1E4E8 | — |
| markup.bold | #E1E4E8 | bold |
| markup.raw | #79B8FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FDAEB7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85E89D | — |
| markup.changed, punctuation.definition.changed | #FFAB70 | — |
| markup.ignored, markup.untracked | #2F363D | — |
| meta.diff.range | #b392f0 | bold |
| meta.diff.header | #79B8FF | — |
| meta.separator | #79B8FF | bold |
| meta.output | #79B8FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #D1D5DA | — |
| brackethighlighter.unmatched | #FDAEB7 | — |
| constant.other.reference.link, string.other.link | #DBEDFF | underline |
| punctuation, meta.brace | #c9d1d9 | — |
| keyword.operator | #e86d63 | — |
| meta.definition.property, variable.other, variable.other.property, variable.other.constant | #c9d1d9 | — |
| storage.type.function.arrow | — | |
| keyword.operator.new.ts, keyword.operator.new, new.expr | #F97583 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}