GitHub Custom Dark
Publisher: Rivan AjiThemes in package: 2
github theme with customization based on my user experiences prespective!
github theme with customization based on my user experiences prespective!
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 | #6a737d | italic |
| constant, entity.name.constant, variable.other.constant, variable.other.enummember, variable.language | #79b8ff | — |
| constant.numeric, constant.languange.boolean, constant.language | #9bf6ff | — |
| entity, entity.name | #b392f0 | — |
| entity.name.function | #6e8cef | — |
| entity.name.tag | #85e89d | — |
| keyword | #f97583 | — |
| keyword.operator.assignment | #ff46e6 | — |
| keyword.operator.logical | #9ece6a | bold |
| storage, storage.type | #f97583 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #e1e4e8 | — |
| string, punctuation.definition.string | #9ecbff | — |
| string punctuation.section.embedded source, string.quoted.double, string.quoted.single | #2ac3de | italic |
| support.function.magic | #9ece6a | — |
| meta.property-name | #79b8ff | — |
| variable | #e6edea | — |
| variable.parameter | #ffa347 | — |
| variable.other.property | #d380ee | — |
| invalid.broken | #fdaeb7 | italic |
| invalid.deprecated | #fdaeb7 | italic |
| invalid.illegal | #fdaeb7 | italic |
| invalid.unimplemented | #fdaeb7 | italic |
| carriage-return | #20232b | italic underline |
| message.error | #fdaeb7 | — |
| string variable | #2ac3de | — |
| 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 |
| constant.character.format. | #FFDE64 | — |
| support.constant | #79b8ff | — |
| support.variable | #2ac3de | — |
| meta.module-reference | #79b8ff | — |
| punctuation.definition.list.begin.markdown | #ffab70 | — |
| markup.heading, markup.heading entity.name | #79b8ff | bold |
| markup.quote | #85e89d | — |
| markup.italic | #e1e4e8 | italic |
| markup.bold | #e1e4e8 | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #79b8ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #fdaeb7 | — |
| punctuation.separator | #79b8ff | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85e89d | — |
| markup.changed, punctuation.definition.changed, punctuation.definition.arguments, punctuation.definition.list, punctuation.definition.dict | #FFDE64 | — |
| markup.ignored, markup.untracked | #2f363d | — |
| meta.diff.range | #b392f0 | bold |
| meta.diff.header | #79b8ff | — |
| meta.separator | #79b8ff | bold |
| meta.output | #79b8ff | — |
| meta.function-call.generic | #d380ee | — |
| 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 |
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}!`;
}