ReadyStack Nordic Light
Publisher: ReadyStackThemes in package: 1
Cool grey-blue light theme. Clean, quiet, no cream. Body text measured at 14.4:1 - WCAG AAA.
Cool grey-blue light theme. Clean, quiet, no cream. Body text measured at 14.4:1 - WCAG AAA.
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 | #6F829B | italic |
| string, string.quoted, punctuation.definition.string | #1E6E48 | — |
| string.regexp | #1A6266 | — |
| constant.numeric, constant.language, keyword.other.unit | #8A4A20 | — |
| constant.character.escape | #6E3A80 | — |
| variable, variable.other.readwrite, meta.definition.variable.name | #1F252D | — |
| variable.parameter | #384351 | — |
| variable.language, variable.other.constant | #6E3A80 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #2A5A8A | bold |
| keyword.operator | #455263 | — |
| entity.name.function, support.function, meta.function-call | #24508E | — |
| entity.name.class, entity.name.type, support.class, support.type | #3A5A6E | — |
| entity.name.tag | #2A5A8A | — |
| entity.other.attribute-name | #1E6E48 | — |
| support.constant, support.variable | #6E3A80 | — |
| punctuation, meta.brace | #546478 | — |
| markup.heading | #2A5A8A | bold |
| markup.bold | #1F252D | bold |
| markup.italic | #1F252D | italic |
| markup.inline.raw, markup.raw | #1E6E48 | — |
| markup.underline.link | #24508E | underline |
| invalid, invalid.illegal | #A82E30 | — |
| meta.diff.header, meta.diff.range | #24508E | — |
| markup.inserted | #1E6E48 | — |
| markup.deleted | #A82E30 | — |
| support.type.property-name.json, support.type.property-name | #2A5A8A | — |
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}!`;
}