Brook Code Theme
Publisher: WeecraftThemes in package: 2
A mono chrome with minimal looks and simple styles code editor themes for light & dark environments for perfect developer productivity
A mono chrome with minimal looks and simple styles code editor themes for light & dark environments for perfect developer productivity
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 |
|---|---|---|
| — | #E6E6E6 | — |
| token.info-token | #E6E6E6 | — |
| token.warn-token | #f8aa1a | — |
| token.error-token | #ff0f0f | — |
| token.debug-token | #E6E6E6 | — |
| keyword.operator.accessor, meta.group.braces.round.function.arguments, meta.template.expression, markup.fenced_code meta.embedded.block | #E6E6E6 | — |
| emphasis | — | italic |
| strong, markup.heading.markdown, markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| meta.link.inline.markdown | #737373 | underline |
| string, markup.fenced_code, markup.inline | #737373 | — |
| comment, string.quoted.docstring.multi | #595959 | — |
| constant.numeric, constant.language, constant.other.placeholder, constant.character.format.placeholder, variable.language.this, variable.other.object, variable.other.class, variable.other.constant, meta.property-name, meta.property-value, support | #E6E6E6 | — |
| keyword, storage.modifier, storage.type, storage.control.clojure, entity.name.function.clojure, support.function.node, punctuation.separator.key-value, punctuation.definition.template-expression, constant.language.json | #737373 | — |
| variable.parameter.function | #E6E6E6 | — |
| support.function, entity.name.type, entity.other.inherited-class, meta.function-call, meta.instance.constructor, entity.other.attribute-name, entity.name.function, constant.keyword.clojure, support.type.property-name.json, keyword.other.definition.ini, entity.name.tag | #E6E6E6 | — |
| string.quoted, string.regexp, string.interpolated, string.template, string.unquoted.plain.out.yaml, keyword.other.template, source.ini | #737373 | — |
| strong, markup.heading.markdown, markup.bold.markdown | #E6E6E6 | — |
| punctuation.definition.arguments, punctuation.definition.dict, punctuation.separator, meta.function-call.arguments | #737373 | — |
| markup.underline.link, punctuation.definition.metadata.markdown | #737373 | — |
| beginning.punctuation.definition.list.markdown | #E6E6E6 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, string.other.link.title.markdown, string.other.link.description.markdown | #E6E6E6 | — |
| comment, comment.block, entity.attribute.name, entity.other.attribute-name, entity.other.attribute-name.class, entity.other.attribute-name.class.id, keyword, constant, storage.modifier, storage.type, storage.type.function, storage.type.class, variable.parameter | — | italic |
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}!`;
}