Paper Notebook Light
Publisher: kpabThemes in package: 1
A warm, paper-like light theme with ink-style colors.
A warm, paper-like light theme with ink-style colors.
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 |
|---|---|---|
| keyword, storage | #854D2C | bold |
| keyword.operator, storage.type.function.arrow | #4A3C2E | |
| keyword.operator.new, keyword.operator.expression, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.delete, keyword.operator.typeof, keyword.operator.instanceof, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.alignas, keyword.operator.typeid, keyword.operator.noexcept, keyword.operator.and.cpp, keyword.operator.or.cpp, keyword.operator.not.cpp, keyword.operator.xor.cpp, keyword.operator.and_eq.cpp, keyword.operator.or_eq.cpp, keyword.operator.xor_eq.cpp, keyword.operator.not_eq.cpp, keyword.operator.bitand.cpp, keyword.operator.bitor.cpp, keyword.operator.compl.cpp, keyword.operator.type.php, keyword.operator.logical.scss, keyword.operator.logical.lua, keyword.operator.logical.perl, keyword.operator.logical.and.media.css, keyword.operator.logical.not.media.css, keyword.operator.logical.only.media.css, keyword.operator.logical.feature, keyword.operator.type-casting.swift, keyword.operator.as.groovy, keyword.operator.in.groovy | #854D2C | bold |
| string | #5C6E4E | — |
| variable, parameter | #3A2E23 | — |
| constant.numeric | #A86434 | — |
| entity.name.function | #6C3F2C | — |
| entity.name.type, support.type | #4E5F73 | — |
| comment | #8A7D6D | italic |
| punctuation, delimiter | #4A3C2E | — |
| meta.diff.header | #6C3F2C | bold |
| markup.inserted | #3A6B3A | — |
| markup.deleted | #9A3A3A | — |
| entity.name.tag | #854D2C | — |
| entity.other.attribute-name | #925F3C | italic |
| constant.language, constant.character | #A86434 | bold |
| support.function | #6C3F2C | — |
| string.regexp | #8A5A2B | — |
| constant.character.escape | #A86434 | — |
| variable.other.property, support.variable.property | #4A3C2E | — |
| support.type.property-name.json | #6C3F2C | — |
| markup.heading | #6C3F2C | bold |
| markup.bold | #3A2E23 | bold |
| markup.italic | #3A2E23 | italic |
| markup.inline.raw, markup.fenced_code.block | #7A5136 | — |
| markup.underline.link, string.other.link | #8A5A2B | underline |
| markup.quote | #7D6A52 | italic |
| invalid, invalid.illegal | #9A3A3A | — |
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}!`;
}