newsprint
Publisher: lumiknitThemes in package: 5
Simple monochrome color theme & variatns
Simple monochrome color theme & variatns
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 | #bbb | italic |
| comment.block.preprocessor | #999 | bold |
| comment.documentation, comment.block.documentation | #999 | — |
| invalid.illegal | #800000 | underline |
| keyword, storage | #000 | bold |
| keyword.operator, keyword.symbol, keyword.control.preprocessor, keyword.other.colon, keyword.other.double-colon | #444 | — |
| meta.pattern-match, meta.type-definition | #444 | — |
| support.type, storage.type | #000 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #666 | bold italic |
| entity.name.module, entity.name.namespace | #222 | bold italic |
| constant.language, support.constant, variable.language | #111 | italic |
| constant.other | #444 | italic |
| variable, support.variable | #888 | italic |
| entity.name.function, support.function | #666 | italic |
| entity.name.exception | #a00 | underline |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #000 | — |
| string | #000 | — |
| constant.character.escape | #444 | bold |
| string.regexp | #000 | — |
| constant.other.symbol | #000 | — |
| punctuation, comment.punctuation, meta.brace, meta.bracket, meta.paren, meta.paren-group | #777 | — |
| meta.attribute | #888 | bold italic |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #aaa | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #888 | bold |
| entity.name.tag | #000 | bold |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #666 | italic |
| constant.character.entity, punctuation.definition.entity | #666 | italic |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #000 | bold italic |
| meta.property-name, support.type.property-name | #444 | bold |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #666 | italic |
| keyword.other.important | #000 | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #000000 | — |
| meta.link | #000 | underline |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #000 | bold |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.strikethrough | — | strikethrough |
| markup.underline | — | underline |
| markup.quote | #888 | italic |
| markup.list | #666 | — |
| markup.bold, markup.italic, markup.strikethrough, markup.underline | #222 | — |
| markup.inline.raw | #888 | |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}