Aofuji Light Theme
Publisher: DSRKafuUThemes in package: 4
A clean light theme extended from Aofuji.
A clean light theme extended from Aofuji.
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 | #8d9297 | italic |
| string | #f97e25 | — |
| meta.template.expression | #3f4551d0 | — |
| keyword | #ee6565 | — |
| variable.language | #ee6565 | — |
| storage.type | #6484c5 | — |
| storage.modifier | #ee6565 | — |
| string.regexp | #6484c5 | — |
| constant.numeric, constant.character, constant.other | #9668c5 | — |
| entity.name.function, support.function | #2cb300 | — |
| variable.parameter | #9668c5 | — |
| entity.name.type, support.type.primitive, support.class, support.constant | #2293e3 | — |
| punctuation.definition.template-expression | #9668c5 | — |
| constant.language | #9668c5 | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag | #ee6565 | — |
| source.css support.constant, source.sass support.constant, source.scss support.constant, source.less support.constant, source.stylus support.constant | #2293e3 | — |
| source.css support.function, source.sass support.function, source.scss support.function, source.less support.function, source.stylus support.function | #2cb300 | — |
| source.css variable, source.sass variable, source.scss variable, source.less variable, source.stylus variable | #7793cc | — |
| source.css entity.other.attribute-name, source.sass entity.other.attribute-name, source.scss entity.other.attribute-name, source.less entity.other.attribute-name, source.stylus entity.other.attribute-name | #6484c5 | — |
| entity.name.tag | #7793cc | — |
| entity.other.attribute-name | #2cb300 | — |
| support.class.component | #2293e3 | — |
| source.json support.type.property-name | #6484c5 | — |
| source.yaml entity.name.tag | #6484c5 | — |
| markup.heading, markup.heading entity.name | #7793cc | bold |
| markup.underline.link, string.other.link | #2293e3 | — |
| markup.italic | #6484c5 | italic |
| markup.bold | #6484c5 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw, markup.inline.raw | #9668c5 | — |
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}!`;
}