Plain Light/Dark Theme
Publisher: PlainCatMoeThemes in package: 5
Plain Light/Dark Theme
Plain Light/Dark Theme
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 | #AAAAAA | italic |
| comment.block.preprocessor | #AAAAAA | |
| comment.documentation, comment.block.documentation | #71fff1 | — |
| invalid.illegal | #ff6f6f | — |
| keyword.operator | #777777 | — |
| keyword, storage | #77a9ff | — |
| storage.type, support.type | #db86ff | — |
| constant.language, support.constant, variable.language | #ff9771 | — |
| variable, support.variable | #db86ff | — |
| entity.name.function, support.function | #ff9973 | bold |
| entity.name.type, entity.other.inherited-class, support.class | #d77bff | bold |
| entity.name.exception | #ff6969 | — |
| entity.name.section | — | bold |
| constant.numeric, constant.character, constant | #607D8B | — |
| string | #ff6565 | — |
| constant.character.escape | #777777 | — |
| string.regexp | #649dff | — |
| constant.other.symbol | #795548 | — |
| punctuation | #777777 | — |
| meta.tag.sgml.doctype, meta.tag.sgml.doctype string, meta.tag.sgml.doctype entity.name.tag, meta.tag.sgml punctuation.definition.tag.html | #AAAAAA | — |
| meta.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #60d7cb | — |
| entity.name.tag | #7c92ff | — |
| meta.tag entity.other.attribute-name, entity.other.attribute-name.html | #e37900 | italic |
| constant.character.entity, punctuation.definition.entity | #ffb69b | — |
| meta.selector, meta.selector entity, meta.selector entity punctuation, entity.name.tag.css | #7dabfb | — |
| meta.property-name, support.type.property-name | #ffb69b | — |
| meta.property-value, meta.property-value constant.other, support.constant.property-value | #009688 | — |
| keyword.other.important | — | bold |
| markup.changed | #000000 | — |
| markup.deleted | #000000 | — |
| markup.italic | — | italic |
| markup.error | #ff7575 | — |
| markup.inserted | #000000 | — |
| meta.link | #3360ad | — |
| markup.output, markup.raw | #777777 | — |
| markup.prompt | #777777 | — |
| markup.heading | #e67f59 | — |
| markup.bold | — | bold |
| markup.traceback | #e67f59 | — |
| markup.underline | — | underline |
| markup.quote | #c183e4 | — |
| markup.list | #7dabfb | — |
| markup.bold, markup.italic | #48d8ca | — |
| markup.inline.raw | #e67f59 | |
| 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}!`;
}