Afterglow-reInacted
Publisher: dooduThemes in package: 1
VS Code Theme for Python based on Afterglow for SUblime Text
VS Code Theme for Python based on Afterglow for SUblime Text
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 |
|---|---|---|
| — | #7587A6 | — |
| entity.other.attribute-name | #cc7832 | — |
| comment | #797979 | |
| keyword, storage | #CDA869 | |
| storage | #F9EE86 | |
| entity.name.function, keyword.other.name-of-parameter.objc | #9B703F | |
| entity.name | #9B703F | — |
| constant.numeric | #CF6A42 | |
| variable.language, variable.other | #D0D0FF | |
| constant | #6D9CBE | |
| variable.other.constant | #DAD085 | — |
| constant.language | #6c99bb | |
| string | #b4c973 | |
| support.function | #DAD085 | |
| support.type | #6c99bb | — |
| support.constant | #b4c973 | — |
| meta.tag, declaration.tag, entity.name.tag | #E8BF6A | |
| invalid | #FFFFFF | — |
| constant.character.escaped, constant.character.escape, string source, string source.ruby | #F9EE98 | |
| markup.inserted | #E6E1DC | — |
| markup.deleted | #E6E1DC | — |
| meta.diff.header, meta.separator.diff, meta.diff.index, meta.diff.range | — | — |
| keyword.other.unit | #b4c973 | — |
| entity.other.attribute-name.id.css | #cc7732 | — |
| entity.other.attribute-name.class | #cc7732 | — |
| entity.other.less.mixin | #a1617a | — |
| variable.declaration.less | #cc7732 | — |
| keyword.control.html.elements | #e5b567 | — |
| meta.attribute-selector.css | #cc7732 | — |
| keyword.control.at-rule.css.sass | #a1617a | — |
| markup.deleted.git_gutter | #90516b | — |
| markup.inserted.git_gutter | #b4c973 | — |
| markup.changed.git_gutter | #cc7732 | — |
| markup.ignored.git_gutter | #999999 | — |
| markup.untracked.git_gutter | #cccccc | — |
| sublimelinter.mark.warning | #e5b567 | — |
| sublimelinter.mark.error | #c45330 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
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}!`;
}