Luden
Publisher: Jared JonesThemes in package: 2
Very dark minimal theme with accessible colors
Very dark minimal theme with accessible colors
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 |
|---|---|---|
| keyword.control, keyword.control.module.js, storage.type.class.js, storage.type.extends.js, variable.language.this.js, constant.language.boolean.false.js, constant.language.boolean.true.js, keyword.control.switch.js, keyword.control.loop.js, keyword.control.conditional.js, keyword.control.flow.js, punctuation.accessor.js, keyword.operator.accessor.js, keyword.other.important.css, keyword.control.at-rule.media.scss, entity.name.tag.reference.scss, meta.class.python, storage.type.function.python, keyword.control.flow.python, storage.type.function.js, keyword.control.export.ts, keyword.control.flow.ts, keyword.control.from.ts, keyword.control.import.ts, storage.type.class.ts, keyword.control.loop.ts, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.other.special-method.ruby, keyword.control.def.ruby, markup.heading, support.type.object.module.js, storage.modifier.js, storage.modifier.js.jsx, storage.type.js, storage.type.ts, storage.modifier.ts, keyword.operator.new.ts, meta.type.annotation.ts, punctuation.definition.variable.ruby, punctuation.definition.constant.ruby, storage.modifier.async.js, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, storage.type.function.arrow.js, keyword.operator.relational.js, keyword.operator.ternary.js, keyword.operator.arithmetic.js, keyword.operator.assignment.js, keyword.operator.logical.js, meta.tag.inline.any.html, keyword.operator.assignment.python, keyword.operator.arithmetic.python, keyword.operator.logical.python, punctuation.accessor.ts, storage.type.function.arrow.ts, entity.name.type.ts, keyword.operator.increment.ts, keyword.operator.increment.js, keyword.operator.relational.ts, meta.decorator.ts, punctuation.separator.method.ruby, keyword.operator.other.ruby, keyword.operator.expression.of.js, keyword.operator.new.js | #d26cf1 | — |
| support.function.js, support.function.process.js, entity.name.function, entity.name.function.js, entity.name.function.method.js, entity.name.function.python, meta.method.declaration.ts, entity.name.function.ts, entity.name.function.ruby, support.function.console.js | #ff425e | — |
| support.type.property-name.css, variable.scss, support.type.property-name.json, variable.other.property.js, variable.other.property.ts, meta.object-literal.key.js, entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.id.html, entity.other.attribute-name.html, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #fc9b41 | — |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx, entity.name.tag.structure.any.html, entity.name.tag.inline.any.html, entity.name.tag, meta.tag.sgml, support.class.builtin.js, support.type.object.console.js, support.type.object.dom.js, variable.language.special.self.python, support.function.builtin.python, variable.other.constant.js, variable.language.this.js, support.constant.json.ts, variable.language.this.ts, support.class.console.ts, support.class.console.js, constant.language, constant.language.undefined.js, variable.language.self.ruby, variable.other.constant.ruby | #ffcd38 | — |
| punctuation.terminator, punctuation.separator, punctuation.parenthesis, punctuation.definition.string, meta.brace.curly.litobj.js, meta.brace.round.js, meta.brace.curly.js, meta.delimiter.comma.js, punctuation.separator.key-value.js, meta.brace.square.js, punctuation.definition.block, punctuation.definition.block.js, punctuation.definition.tag.jsx, punctuation.definition.tag.html, punctuation.section.property-list.end.bracket.curly.css, punctuation.section.property-list.begin.bracket.curly.css, punctuation.terminator.rule.css, punctuation.separator.key-value.css, punctuation.section.embedded, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.section.function.begin.python, punctuation.separator.parameters.python, punctuation.section.class.begin.python, punctuation.separator.dict.python, punctuation.definition.arguments.begin.python, punctuation.definition.block.ts, punctuation.definition.parameters.begin.ts, punctuation.definition.parameters.end.ts, meta.brace.round.ts, punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag, punctuation.definition.parameters.ruby, punctuation.section.array.begin.ruby, punctuation.section.array.end.ruby, punctuation.section.scope.begin.ruby, punctuation.section.scope.end.ruby, punctuation.definition.markdown, punctuation.definition.binding-pattern.object.js, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js, keyword.operator.spread.js | #9aa0ae | — |
| variable.other.readwrite.js, variable.other.object.js, variable.parameter.ts, variable.other.readwrite.ts, variable.other.object.ts, variable.other.property.dom.ts, support.function.json.ts, support.function.console.ts, support.variable.property.dom.ts, string, string.quoted.module.js, string.quoted.double.js, string.quoted.single.js, string.quoted.template.js, string.unquoted.js, string.quoted.double.json.comments, string.quoted.double.html, string.quoted.double.css, string.other.link.title.markdown | #ffffff | — |
| comment, comment.line.double-slash.js, comment.block.js, comment.block.documentation.js, punctuation.definition.comment | #9aa0ae | — |
| string.regexp.js, constant.numeric, constant.numeric.js, constant.numeric.css | #2bffdf | — |
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}!`;
}