Korean Dancheong Dark
Publisher: weston0713Themes in package: 1
A dark theme inspired by Korean Dancheong — born from a visit to Bulguksa Temple in Gyeongju, reimagined for modern coding.
A dark theme inspired by Korean Dancheong — born from a visit to Bulguksa Temple in Gyeongju, reimagined for modern coding.
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 | #7A7568 | italic |
| comment.documentation, comment.block.documentation | #9A9588 | — |
| invalid.illegal | #FF6E5A | — |
| keyword.operator | #C8BEB4 | — |
| keyword, storage | #C84C3A | bold |
| storage.type, support.type | #3F75B6 | — |
| constant.language, support.constant, variable.language | #E0B62C | — |
| variable, support.variable | #EAE2D8 | — |
| entity.name.function, support.function | #3F75B6 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #B85C8A | — |
| entity.name.exception | #C84C3A | — |
| constant.numeric, constant.character, constant | #E0B62C | — |
| string | #4CBF6E | — |
| string.regexp | #5DCFA3 | — |
| constant.other.symbol | #E0B62C | — |
| punctuation | #C8BEB4 | — |
| meta.tag | #3F75B6 | — |
| entity.other.attribute-name | #5DCFA3 | — |
| support.type.property-name | #E0B62C | — |
| support.constant.property-value | #4CBF6E | — |
| markup.heading | #C84C3A | bold |
| meta.link | #3F75B6 | — |
| markup.inserted | #4CBF6E | — |
| markup.deleted | #C84C3A | — |
| markup.changed | #3F75B6 | — |
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}!`;
}