github-dotcom-dimmed-preview
Publisher: james-pradoThemes in package: 1
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 | #768390 | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #6cb6ff | — |
| entity.name, meta.export.default, meta.definition.variable | #f69d50 | — |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression | #cdd9e5 | — |
| entity.name.function | #dcbdfb | — |
| entity.name.tag, support.class.component | #8ddb8c | — |
| keyword | #f47067 | — |
| storage, storage.type | #f47067 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #cdd9e5 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #96d0ff | — |
| support | #6cb6ff | — |
| meta.property-name | #6cb6ff | — |
| variable | #f69d50 | — |
| variable.other | #cdd9e5 | — |
| invalid.broken | #ff938a | italic |
| invalid.deprecated | #ff938a | italic |
| invalid.illegal | #ff938a | italic |
| invalid.unimplemented | #ff938a | italic |
| carriage-return | #22272e | italic underline |
| message.error | #ff938a | — |
| string source | #cdd9e5 | — |
| string variable | #6cb6ff | — |
| source.regexp, string.regexp | #96d0ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #96d0ff | — |
| string.regexp constant.character.escape | #8ddb8c | bold |
| support.constant | #6cb6ff | — |
| support.variable | #6cb6ff | — |
| meta.module-reference | #6cb6ff | — |
| punctuation.definition.list.begin.markdown | #f69d50 | — |
| markup.heading, markup.heading entity.name | #6cb6ff | bold |
| markup.quote | #8ddb8c | — |
| markup.italic | #cdd9e5 | italic |
| markup.bold | #cdd9e5 | bold |
| markup.raw | #6cb6ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #ff938a | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #8ddb8c | — |
| markup.changed, punctuation.definition.changed | #f69d50 | — |
| markup.ignored, markup.untracked | #2d333b | — |
| meta.diff.range | #dcbdfb | bold |
| meta.diff.header | #6cb6ff | — |
| meta.separator | #6cb6ff | bold |
| meta.output | #6cb6ff | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #768390 | — |
| brackethighlighter.unmatched | #ff938a | — |
| constant.other.reference.link, string.other.link | #96d0ff | underline |
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}!`;
}