focus
Publisher: throwblyThemes in package: 1
Clean and readable theme to focus on code with no distractions.
Clean and readable theme to focus on code with no distractions.
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 |
|---|---|---|
| source, meta.function-call.arguments, constant.numeric, punctuation.definition.dict, meta.item-access punctuation.definition.arguments, meta.function-call.arguments variable.parameter.function-call, punctuation, punctuation.definition.logical-expression | #d6d6d6 | — |
| string | #74cfaf | — |
| keyword, storage.type, constant.language, keyword.operator.logical, constant.character.escape, meta.fstring punctuation.definition.string string | #f5427e | — |
| support.function.builtin, support.type, variable.language | #88bffc | — |
| constant.character, keyword.operator | #fff | |
| entity.name, meta.function.parameters punctuation.definition.parameters, meta.function-call.generic, punctuation.section.function.begin, punctuation.separator.annotation.result, meta.member.access punctuation.separator.period, meta.member.access meta.function-call punctuation.definition.arguments | #88bffc | — |
| variable.parameter.function, variable.parameter.function-call, meta.indexed-name, meta.function, meta.item-access punctuation.definition.arguments, punctuation.definition.list, punctuation.definition.dict, constant.character.format.placeholder.other, meta.fstring, support.variable | #abd6ff | — |
| meta.function.parameters punctuation.separator.annotation, meta.function.parameters support.type, comment, string.quoted.docstring, punctuation.definition.comment, source string.quoted.docstring.multi punctuation.definition.string | #999999 | italic |
| entity.name.constant, variable.other.constant | #88bffc | — |
| support.type.exception | #ff3838 | — |
| entity.name.tag | #85E89D | — |
| storage.modifier | #f97583 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #E1E4E8 | — |
| support | #79B8FF | — |
| meta.property-name | #79B8FF | — |
| variable | #FFAB70 | — |
| invalid.broken | #FDAEB7 | — |
| invalid.deprecated | #FDAEB7 | — |
| invalid.illegal | #FDAEB7 | — |
| invalid.unimplemented | #FDAEB7 | — |
| carriage-return | #24292E | — |
| message.error | #FDAEB7 | — |
| source.regexp, string.regexp | #DBEDFF | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #DBEDFF | |
| string.regexp constant.character.escape | #85E89D | — |
| support.constant | #79B8FF | — |
| meta.module-reference | #79B8FF | — |
| punctuation.definition.list.begin.markdown | #FFAB70 | — |
| markup.heading | #79B8FF | bold |
| markup.quote | #85E89D | — |
| markup.italic | #E1E4E8 | — |
| markup.bold | #E1E4E8 | bold |
| markup.raw | #79B8FF | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #FDAEB7 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #85E89D | — |
| markup.changed, punctuation.definition.changed | #FFAB70 | — |
| markup.ignored, markup.untracked | #2F363D | — |
| meta.diff.range | #fff | bold |
| meta.diff.header | #79B8FF | — |
| meta.separator | #79B8FF | bold |
| meta.output | #79B8FF | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #D1D5DA | — |
| brackethighlighter.unmatched | #FDAEB7 | — |
| constant.other.reference.link, string.other.link | #DBEDFF | — |
| meta.definition.property, variable.other, variable.other.property, variable.other.constant | #88bffc | — |
| keyword.operator.new.ts, keyword.operator.new, new.expr | #F97583 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}