Flexoki Theme
Publisher: mthiermanThemes in package: 16
Flexoki light & dark themes
Flexoki light & dark themes
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 | #B7B5AC | — |
| constant, constant.character, constant.character.escape, constant.other, constant.regexp, constant.rgb-value, support.constant | #AD8301 | — |
| constant.numeric, constant.numeric.float, constant.numeric.hex, constant.numeric.integer, constant.numeric.octal | #5E409D | — |
| entity, entity.name, entity.name.class, entity.name.function, entity.name.method, entity.name.section, entity.name.selector, entity.name.tag, entity.name.type, entity.other, entity.other.attribute-name, entity.other.inherited-class, markup.heading, support.function | #BC5215 | — |
| invalid, invalid.deprecated, invalid.illegal | #AF3029 | — |
| keyword, keyword.control, keyword.other, string.json | #66800B | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.new | #6F6E69 | — |
| meta, meta.block, meta.cast, meta.class, meta.function, meta.function-call, meta.preprocessor, meta.return-type, meta.selector, meta.tag, meta.type, meta.type.annotation | #A02F6F | — |
| punctuation.definition.tag, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.separator, punctuation.separator.continuation, punctuation.terminator | #6F6E69 | — |
| storage, storage.modifier, storage.type | #66800B | — |
| string, string.interpolated, string.other, string.regexp, string.quoted, string.quoted.double, string.quoted.other, string.quoted.single, string.quoted.triple, string.unquoted | #24837B | — |
| variable, variable.language, variable.name, variable.other, variable.other.readwrite, variable.parameter | #205EA6 | — |
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}!`;
}