Builtt Dark Theme
Publisher: wayz9Themes in package: 1
Earthy dark theme on stable charcoal: lavender, gold, sage, teal and blue. Tuned for TS/JS/JSX/TSX, PHP, XML, JSON, .env and Markdown
Earthy dark theme on stable charcoal: lavender, gold, sage, teal and blue. Tuned for TS/JS/JSX/TSX, PHP, XML, JSON, .env and Markdown
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, punctuation.definition.comment | #666666 | |
| keyword, keyword.control, storage.type, storage.modifier, keyword.operator.new, keyword.operator.expression, variable.language.this, variable.language.super | #A78FDA | |
| storage.type.ts, storage.type.tsx, storage.type.js, storage.type.jsx, storage.type.function.ts, storage.type.function.tsx, storage.type.function.js, storage.type.function.jsx, keyword.control.export, keyword.control.default, storage.type.type.ts, storage.type.type.tsx, storage.type.interface.ts, storage.type.interface.tsx, storage.type.class.ts, storage.type.class.tsx, storage.type.class.js, storage.type.class.jsx | #A78FDA | |
| keyword.control.import, keyword.control.from | #A78FDA | |
| keyword.operator | #A6A6A6 | |
| entity.name.function, support.function | #A6BB85 | |
| entity.name.function.pascalcase.monobw | #D5A456 | |
| entity.name.type, entity.name.class, entity.other.inherited-class, support.class, support.type, entity.name.type.interface, entity.name.type.alias | #7FB8A3 | |
| support.type.primitive, support.type.builtin | #A6A6A6 | |
| variable, meta.definition.variable variable | #D6D6D6 | — |
| variable.parameter | #B3B3B3 | |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #CCCCCC | |
| constant, constant.language, constant.numeric, support.constant | #7FB8A3 | — |
| string, string.quoted, string.template | #A6BB85 | |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #E6E6E6 | |
| meta.template.expression | #D6D6D6 | — |
| string.regexp | #B3B3B3 | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator, punctuation.accessor | #6E6E6E | |
| meta.decorator, punctuation.decorator | #B3B3B3 | |
| entity.name.tag | #76A6DE | |
| support.class.component, entity.name.tag support.class.component | #D5A456 | |
| entity.other.attribute-name | #9C9C9C | |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #5C5C5C | — |
| entity.name.tag.namespace.xml, entity.other.attribute-name.namespace.xml | #7FB8A3 | |
| punctuation.separator.namespace.xml | #5C5C5C | — |
| meta.tag.preprocessor.xml entity.name.tag.xml | #A78FDA | |
| meta.tag.sgml.doctype.xml, meta.tag.sgml.doctype.xml variable.language.documentroot.xml | #8C8C8C | |
| string.unquoted.cdata.xml | #D6D6D6 | |
| constant.character.entity.xml | #7FB8A3 | — |
| support.type.property-name.json | #76A6DE | |
| source.json string.quoted.double.json | #9C9C9C | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #76A6DE | — |
| variable.key.dotenv, variable.other.env, source.env variable, keyword.other.definition.ini, support.constant.dotenv | #76A6DE | |
| source.dotenv, source.dotenv string, source.dotenv constant, string.value.dotenv, source.env string, string.quoted.single.env, string.quoted.double.env, source.env constant | #FFFFFF | — |
| source.php entity.name.function, source.php support.function, source.php meta.function-call, source.php meta.method-call, source.php variable.function | #76A6DE | |
| source.php keyword.operator.type | #A78FDA | |
| source.php constant.other.class | #CFCFCF | |
| source.php support.function.construct | #A78FDA | |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #A78FDA | — |
| markup.heading, entity.name.section.markdown | #D5A456 | bold |
| punctuation.definition.heading.markdown | #8A6C3C | — |
| markup.bold | #FFFFFF | bold |
| markup.italic | #D6D6D6 | italic |
| markup.inline.raw, markup.fenced_code.block | #B3B3B3 | — |
| string.other.link, meta.link.inline.markdown string | #76A6DE | — |
| markup.underline.link | #5C5C5C | underline |
| punctuation.definition.list.begin.markdown, markup.list punctuation.definition.list | #D5A456 | — |
| markup.quote, punctuation.definition.quote.begin.markdown | #8C8C8C | italic |
| meta.separator.markdown | #5C5C5C | — |
| invalid, invalid.deprecated | #A78FDA | underline |
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}!`;
}