Sunset Gradient Theme
Publisher: production-sun-setThemes in package: 2
A warm and romantic VS Code theme inspired by beautiful sunset gradients with coral, orange, and purple accents
A warm and romantic VS Code theme inspired by beautiful sunset gradients with coral, orange, and purple accents
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #e85a5a | — |
| comment, punctuation.definition.comment | #8070b3 | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword | #a88dcb | — |
| string | #f0bb02 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #e89626 | — |
| constant, variable.other.constant | #be83c8 | — |
| constant.numeric | #9a42ac | — |
| keyword, storage.type, storage.modifier | #e85a5a | bold |
| entity.name.function, meta.function-call | #e89626 | — |
| variable.parameter | #f0bb02 | italic |
| entity.name.type.class, entity.name.class | #3a94e5 | — |
| entity.name.type, storage.type | #54a4e6 | italic |
| variable | #f5ede0 | — |
| variable.language | #f07a70 | italic |
| entity.name.tag | #e85a5a | — |
| entity.other.attribute-name | #e89626 | italic |
| meta.selector | #3a94e5 | — |
| support.type.property-name | #24b6ca | — |
| keyword.operator | #f07a70 | — |
| punctuation | #a88dcb | — |
| string.regexp | #5ca85c | — |
| markup.heading | #e85a5a | bold |
| markup.bold | #e89626 | bold |
| markup.italic | #9a42ac | italic |
| markup.underline.link | #3a94e5 | — |
| markup.inline.raw | #f0bb02 | — |
| invalid | #e84242 | underline |
| invalid.deprecated | #8070b3 | strikethrough |
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}!`;
}