Clear theme
Publisher: Daniel BiedmaThemes in package: 3
Minimalistic clear theme.
Minimalistic clear 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, comment.block, comment.block.documentation, comment.line, meta.toc-list, punctuation.definition.comment, string.quoted.docstring, variable.parameter.function | #b2b2b2 | italic |
| entity.name.class, entity.name.enum, entity.name.interface, entity.name.section, entity.name.struct, entity.name.tag, entity.name.trait, entity.name.type, entity.name.union, entity.other, meta.function-call.generic.python | #000000 | bold |
| keyword, keyword.control, keyword.operator, keyword.control.conditional, keyword.control.import, keyword.function.go, keyword.import.go, keyword.package.go, keyword.var.go | — | bold italic |
| entity.name.tag.localname.xml, meta.tag.xml | #000 | bold |
| string | #22863A | |
| markup.bold.markdown | — | bold |
| markup.inline.raw | #333333 | — |
| markup.italic | — | italic |
| punctuation, markup.underline, meta.brace | #000 | bold |
| meta.link, meta.paragraph, meta.property-value | #22863A | — |
| storage.modifier, storage.type | #000000 | bold italic |
| support.type.property-name.css, support.type.vendored.property-name.css, variable.other.readwrite.ts, variable.other.readwrite.Js | #000000 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | — | bold |
| constant | #22863A | — |
| support.property-value, entity.name.filename | #22863A | — |
| constant.language.unit, entity.name.function | #000 | bold |
| string.regexp | #000 | — |
| string.double string.regexp | #22863A | — |
| string.interpolated.dollar.shell, string.interpolated.backtick.shell, string.inperpolated.dollar.shell, punctuation.definition.logical-expression, keyword.operator.logical | #22863A | — |
| string.quoted.none.hjson, string.quoted.multiline.hjson, constant.language.hjson | #22863A | |
| support.type.property-name.hjson | #000 | bold |
| source.ts variable.other.constant, source.js variable.other.constant, support.type.property-name.json | #000 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #fdac54 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #a5d6ff | — |
| markup.changed, punctuation.definition.changed | #fdac54 | — |
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}!`;
}