ReadyStack Mono Slate
Publisher: ReadyStackThemes in package: 1
Near-monochrome slate with one teal accent. Minimal, for people who hate rainbows. Body text measured at 14.4:1 - WCAG AAA.
Near-monochrome slate with one teal accent. Minimal, for people who hate rainbows. 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 | #646B73 | italic |
| string, string.quoted, punctuation.definition.string | #A8BEB4 | — |
| string.regexp | #9FBAB8 | — |
| constant.numeric, constant.language, keyword.other.unit | #C9C2B8 | — |
| constant.character.escape | #C0B4C4 | — |
| variable, variable.other.readwrite, meta.definition.variable.name | #E4E6E7 | — |
| variable.parameter | #C6C9CD | — |
| variable.language, variable.other.constant | #C0B4C4 | — |
| keyword, keyword.control, storage, storage.type, storage.modifier | #7FD1C4 | bold |
| keyword.operator | #B3B8BD | — |
| entity.name.function, support.function, meta.function-call | #B4C4D0 | — |
| entity.name.class, entity.name.type, support.class, support.type | #B8C4C8 | — |
| entity.name.tag | #7FD1C4 | — |
| entity.other.attribute-name | #A8BEB4 | — |
| support.constant, support.variable | #C0B4C4 | — |
| punctuation, meta.brace | #9AA1A7 | — |
| markup.heading | #7FD1C4 | bold |
| markup.bold | #E4E6E7 | bold |
| markup.italic | #E4E6E7 | italic |
| markup.inline.raw, markup.raw | #A8BEB4 | — |
| markup.underline.link | #B4C4D0 | underline |
| invalid, invalid.illegal | #D89890 | — |
| meta.diff.header, meta.diff.range | #B4C4D0 | — |
| markup.inserted | #A8BEB4 | — |
| markup.deleted | #D89890 | — |
| support.type.property-name.json, support.type.property-name | #7FD1C4 | — |
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}!`;
}