Darker Sky Theme
Publisher: Sirus SnitchThemes in package: 1
Created the theme for my needs you can use it either way
Created the theme for my needs you can use it either way
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 | #808392 | — |
| constant, entity.name.constant, variable.other.constant, variable.language | #ffe553 | — |
| punctuation.definition.decorator, entity.name.function.decorator, punctuation.definition.keyword.css, keyword.control.at-rule.font-face.css | #FFB114 | — |
| entity, entity.name, entity.name.function, entity.name.method, meta.class entity.name.function | #61afef | — |
| variable, variable.parameter, entity.name.variable, meta.object-literal.key, support.variable, keyword.control.import | #5FCED1 | — |
| keyword, storage, meta.var.expr storage.type, storage.type.annotation | #EC47AD | — |
| keyword.operator | #ec47ad | — |
| keyword.operator.new | #01d648 | — |
| keyword.operator.expression, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment | #EC47AD | — |
| keyword.operator.relational, keyword.operator.logical | #ffe553 | — |
| string | #5966cc | — |
| punctuation, meta.tag entity.name.tag, meta.brace, meta.tag, meta.tag.entity.name.tag | #5FCED1 | — |
| support, support.type, support.class, support.orther.namespace, support.function | #5966cc | — |
| meta.import entity.name, meta.import string | #01d648 | — |
| meta.tag.sgml.doctype.html | #8c97ea | — |
| meta.selector | #ec47ad | — |
| entity.name.tag.css | #5966cc | — |
| meta.selector entity.name.tag | #5966cc | — |
| support.type.property-name | #8c97ea | — |
| meta.property-name entity.name.tag | #8c97ea | — |
| meta.tag.sgml.doctype.html, meta.tag.sgml.doctype.html | #EC47AD | — |
| meta.attribute | #5966cc | — |
| markup.bold | #8c97ea | — |
| markup.italic | #ec47ad | — |
| markup.underline | #ffe553 | — |
| markup.strikethrough | #EC47AD | — |
| markup.quote | #01d648 | — |
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}!`;
}