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 | #686868 | italic |
| comment.block.preprocessor | #999 | bold |
| comment.documentation, comment.block.documentation | #999 | — |
| invalid.illegal | #e9483d | underline |
| keyword, storage | #ffffff | bold |
| keyword.operator, keyword.symbol, keyword.control.preprocessor, keyword.other.colon, keyword.other.double-colon | #9e9e9e | — |
| meta.pattern-match, meta.type-definition | #9e9e9e | — |
| support.type, storage.type | #ffffff | bold |
| entity.name.type, entity.other.inherited-class, support.class | #dbdbdb | bold italic |
| entity.name.module, entity.name.namespace | #c0c0c0 | bold italic |
| constant.language, support.constant, variable.language | #e9e9e9 | italic |
| constant.other | #bcbcbc | italic |
| variable, support.variable | #c4c4c4 | italic |
| entity.name.function, support.function | #dbdbdb | italic |
| entity.name.exception | #ff3838 | underline |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #ffffff | — |
| string | #ffffff | — |
| constant.character.escape | #bcbcbc | bold |
| string.regexp | #ffffff | — |
| constant.other.symbol | #ffffff | — |
| punctuation, comment.punctuation, meta.brace, meta.bracket, meta.paren, meta.paren-group | #9e9e9e | — |
| meta.attribute | #c4c4c4 | 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 | #9a9a9a | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #c4c4c4 | bold |
| entity.name.tag | #ffffff | bold |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #dbdbdb | italic |
| constant.character.entity, punctuation.definition.entity | #dbdbdb | italic |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #ffffff | bold italic |
| meta.property-name, support.type.property-name | #bcbcbc | bold |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #dbdbdb | italic |
| keyword.other.important | #ffffff | bold |
| markup.changed | #ffffff | — |
| markup.deleted | #ffffff | — |
| markup.italic | — | italic |
| markup.error | #660000 | — |
| markup.inserted | #ffffff | — |
| meta.link | #ffffff | underline |
| markup.output, markup.raw | #a9a9a9 | — |
| markup.prompt | #a9a9a9 | — |
| markup.heading | #ffffff | bold |
| markup.bold | — | bold |
| markup.traceback | #660000 | — |
| markup.strikethrough | — | strikethrough |
| markup.underline | — | underline |
| markup.quote | #c4c4c4 | italic |
| markup.list | #dbdbdb | — |
| markup.bold, markup.italic, markup.strikethrough, markup.underline | #c0c0c0 | — |
| markup.inline.raw | #c4c4c4 | |
| meta.diff.range, meta.diff.index, meta.separator | #f1f1f1 | — |
| meta.diff.header.from-file | #f1f1f1 | — |
| meta.diff.header.to-file | #f1f1f1 | — |
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}!`;
}