Sunline Theme
Publisher: andrecatThemes in package: 1
A clean light theme where the blue sky meets the warm sun. Azure tones with orange accents for a balanced, professional experience.
A clean light theme where the blue sky meets the warm sun. Azure tones with orange accents for a balanced, professional experience.
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 |
|---|---|---|
| — | #1C1C1E | — |
| punctuation.definition.decorator.python | #51A3A3 | bold italic |
| entity.name.tag.css | #007AFF | bold |
| entity.other.attribute-name.class.css | #E67300 | bold |
| entity.other.attribute-name.class.css punctuation.definition.entity.css | #E67300 | bold |
| entity.other.attribute-name.id.css punctuation.definition.entity.css | #048A81 | bold |
| entity.other.attribute-name.id.css | #048A81 | bold |
| keyword.other.unit | #51A3A3 | |
| punctuation.definition.keyword.css | #000000 | bold |
| variable.css | #E67300 | — |
| variable | #1C1C1E | |
| variable.other.readwrite | #1C1C1E | |
| variable.other.object | #1C1C1E | |
| variable.other.constant | #000000 | bold |
| variable.parameter | #E67300 | italic |
| variable.language, variable.language.self, variable.language.this, variable.language.special.self, variable.parameter.function.language.self, variable.parameter.function.language.special.self.python | #048A81 | italic |
| entity.name.function | #007AFF | bold |
| support.function | #007AFF | |
| support.function.builtin | #007AFF | italic |
| meta.function-call.generic | #007AFF | |
| entity.name.method | #007AFF | bold |
| entity.name.type | #E67300 | |
| entity.name.class | #E67300 | bold |
| entity.other.inherited-class | #51A3A3 | italic |
| support.type | #E67300 | |
| support.class | #E67300 | |
| support.class.exception | #007AFF | bold |
| entity.name.tag | #007AFF | bold |
| entity.other.attribute-name | #E67300 | italic |
| meta.property-name.css | #E67300 | italic |
| support.type.property-name.css | #E67300 | italic |
| support.constant.property-value.css | #048A81 | |
| storage.type | #000000 | bold italic |
| storage.type.function | #000000 | bold |
| storage.type.class | #000000 | bold |
| storage.type.function.arrow | #51A3A3 | bold |
| storage.modifier | #000000 | bold italic |
| keyword | #000000 | bold |
| keyword.control | #000000 | bold |
| keyword.control.import | #000000 | bold italic |
| keyword.control.from | #000000 | bold italic |
| keyword.control.export | #000000 | bold italic |
| keyword.control.as | #000000 | bold italic |
| keyword.operator | #51A3A3 | |
| keyword.operator.assignment | #51A3A3 | |
| keyword.operator.comparison | #51A3A3 | |
| keyword.operator.logical | #000000 | bold |
| keyword.operator.logical.python | #000000 | bold |
| keyword.operator.spread | #048A81 | |
| keyword.operator.rest | #048A81 | |
| string | #048A81 | |
| string.quoted | #048A81 | |
| string.quoted.docstring | #4CB944 | italic |
| string.template | #048A81 | |
| punctuation.definition.template-expression | #51A3A3 | bold |
| constant.numeric | #5A9FD4 | |
| constant.language | #E67300 | bold |
| constant.language.python | #E67300 | bold |
| constant.other | #5A9FD4 | |
| support.constant | #5A9FD4 | |
| comment | #5A8A85 | italic |
| punctuation | #51A3A3 | |
| punctuation.definition | #51A3A3 | |
| punctuation.definition.string | #048A81 | |
| punctuation.separator | #51A3A3 | |
| punctuation.section | #51A3A3 | |
| meta.decorator | #51A3A3 | italic |
| entity.name.function.decorator | #51A3A3 | italic |
| punctuation.definition.decorator | #51A3A3 | |
| meta.function.parameters | #E67300 | italic |
| entity.name.module | #51A3A3 | italic |
| meta.attribute | #000000 | bold |
| support.type.property-name.json | #007AFF | |
| markup.heading | #007AFF | bold |
| markup.bold | #000000 | bold |
| markup.italic | #1C1C1E | italic |
| markup.underline.link | #007AFF | underline |
| markup.inline.raw | #048A81 | |
| markup.inline.raw.string.markdown | #048A81 | |
| fenced_code.block.language.markdown | #007AFF | bold |
| markup.fenced_code.block.markdown | #1C1C1E | |
| string.other.link | #007AFF | underline |
| constant.other.reference.link | #007AFF | underline |
| meta.link.inline | #007AFF | underline |
| string.regexp | #048A81 | |
| token.info-token | #007AFF | — |
| token.warn-token | #B8860B | — |
| token.error-token | #D93526 | — |
| token.debug-token | #5085B0 | — |
| constant.character.escape | #51A3A3 | bold |
| meta.object-literal.key | #048A81 | |
| variable.other.property | #1C1C1E | |
| support.type.vendored.property-name.css | #51A3A3 | italic |
| entity.other.attribute-name.pseudo-class.css | #51A3A3 | italic |
| entity.other.attribute-name.pseudo-element.css | #51A3A3 | italic |
| support.function.misc.css | #007AFF | |
| constant.other.color | #048A81 | |
| keyword.other.unit.css | #51A3A3 |
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}!`;
}