Flatwhite Theme
Publisher: Gabriel CarrarettoThemes in package: 1
Minimal warm light theme with marker-style syntax highlighting, ported from Atom flatwhite-syntax by Dmytro Biletskyy
Minimal warm light theme with marker-style syntax highlighting, ported from Atom flatwhite-syntax by Dmytro Biletskyy
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, text | #605A52 | — |
| comment, punctuation.definition.comment | #B9A992 | italic |
| punctuation, keyword.operator | #93836C | — |
| keyword.control, keyword.other, storage.type, storage.modifier, keyword.declaration | #614C61 | — |
| entity.name.tag | #614C61 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #9C739C | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.typeof, keyword.operator.void, keyword.operator.in, keyword.operator.of, keyword.operator.instanceof | #614C61 | — |
| string, string.quoted, string.template, string.interpolated | #475643 | — |
| punctuation.definition.string, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #65895D | — |
| meta.template.expression, meta.interpolation | #605A52 | — |
| string.regexp | #475643 | — |
| keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.other.back-reference.regexp, constant.other.character-class.regexp | #465953 | — |
| constant.language | #465953 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.binary, constant.numeric.octal | #465953 | — |
| constant.character.escape, constant.character | #465953 | — |
| constant.other.symbol, constant.other.key, variable.other.constant | #4C5361 | — |
| punctuation.definition.constant, punctuation.definition.symbol | #7382A0 | — |
| support.function, support.class, support.type.builtin, support.function.builtin | #5B5143 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #5B5143 | — |
| entity.other.attribute-name, meta.tag.attributes | #93836C | italic |
| punctuation.separator.key-value.html, punctuation.separator.key-value.xml | #93836C | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name | #605A52 | — |
| support.constant.property-value, support.constant.color, meta.property-value support.constant | #475643 | — |
| keyword.other.unit, keyword.other.unit.css, keyword.other.unit.scss, keyword.other.unit.less | #465953 | — |
| constant.other.color, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #465953 | — |
| keyword.other.important | #5B5143 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #614C61 | — |
| keyword.control.at-rule, keyword.control.at-rule.css | #614C61 | — |
| support.type.property-name.json, string.json meta.structure.dictionary.key.json | #4C5361 | — |
| entity.name.tag.yaml, string.unquoted.plain.out.yaml, string.unquoted.yaml | #4C5361 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #614C61 | bold |
| markup.bold, punctuation.definition.bold.markdown | #5B5143 | bold |
| markup.italic, punctuation.definition.italic.markdown | #5B5143 | italic |
| markup.inline.raw, markup.raw.inline | #465953 | — |
| markup.fenced_code, markup.raw.block | #605A52 | — |
| markup.underline.link, string.other.link.title.markdown | #4C6AFF | — |
| markup.quote, punctuation.definition.quote.markdown | #93836C | italic |
| punctuation.definition.list.begin.markdown | #9C739C | — |
| entity.name.function, entity.name.method, meta.function-call.generic | #605A52 | — |
| entity.name.class, entity.name.type, entity.name.namespace, entity.name.module | #605A52 | — |
| entity.name.type.parameter, storage.type.generic | #605A52 | — |
| invalid | #C0392B | — |
| invalid.deprecated | #B9A992 | strikethrough |
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}!`;
}