Atompunk
Publisher: TathyaThemes in package: 1
Atompunk Theme
Atompunk Theme
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 | #6a7293 | bold italic |
| comment storage.type | #6a7293 | — |
| comment entity.name.type | #ccd3e0 | — |
| comment variable.other | #99a7c2 | underline |
| string | #ffec60 | — |
| string.quoted | #fdffd1 | — |
| constant.numeric | #d597ff | — |
| constant.language | #d597ff | — |
| constant.character, constant.other | #d597ff | — |
| variable | — | |
| keyword | #ff6e99 | bold |
| meta.tag, declaration.tag | #ff6e99 | |
| storage | #ff6e99 | |
| storage.type | #85b2ff | bold |
| entity.other.inherited-class | #c2ef61 | — |
| entity.name.function | #c2ef61 | italic |
| entity.name.method | #c2ef61 | italic |
| entity.name.class | #c2ef61 | italic |
| variable.parameter | #ffffff | italic |
| variable.language | #ffffff | bold |
| variable.other | #ffffff | italic |
| entity.name.tag | #c2ef61 | italic |
| entity.other.attribute-name | #fed888 | |
| support.function | #85b2ff | bold |
| support.variable | — | bold |
| support.constant | #6be5fd | |
| support.type | #85b2ff | italic |
| support.type.property-name | #c2ef61 | — |
| support.class | #c2ef61 | italic |
| support.other.variable | — | |
| invalid | #F8F8F0 | |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json, string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #6272a4 | — |
| meta.template.expression | #ffffff | italic |
| markup.deleted | #ff6e99 | — |
| markup.inserted | #35ba66 | — |
| markup.changed | #fed888 | — |
| constant.numeric.line-number.find-in-files - match | #d597ff | — |
| entity.name.filename | #fed888 | — |
| message.error | #ff0033 | — |
| punctuation.definition.template-expression | #00ffb3 | — |
| punctuation.section.embedded | #00ffb3 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #BEB4C4 | — |
| markup.inline.raw.string.markdown | #c2ef61 | italic |
| punctuation.definition.raw.markdown | #35ba66 | — |
| text.html.markdown meta.dummy.line-break | — | |
| markup.heading.markdown entity.name.section.markdown | #ffffff | — |
| markup.heading.markdown punctuation.definition.heading.markdown | #c2ef61 | — |
| markup.italic | #ff6e99 | italic |
| markup.bold, markup.bold string | #fed888 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #fab6e3 | italic |
| markup.underline | #85b2ff | underline |
| markup.quote punctuation.definition.blockquote.markdown | #CFCFC2 | — |
| markup.quote | #CFCFC2 | italic |
| string.other.link.title.markdown | #85b2ff | — |
| string.other.link.description.title.markdown | #85b2ff | — |
| constant.other.reference.link.markdown | #85b2ff | — |
| punctuation.definition.link.markdown | #ffffff | — |
| beginning.punctuation.definition.list.markdown | #d597ff | — |
| markup.raw.block | #d597ff | — |
| markup.fenced_code.block.markdown | #d597ff | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
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}!`;
}