Tedium Theme
Publisher: Tu DinhThemes in package: 1
Visibility-tweaked light theme
Visibility-tweaked light theme
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| keyword.operator, meta.template.expression, meta.embedded, source.groovy.embedded, support.other.attribute.cpp, storage.type.annotation.java, storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| meta.diff.header | #000080 | — |
| comment, punctuation.definition.comment | #006400 | italic |
| comment.block.preprocessor | #006400 | |
| comment.documentation, comment.block.documentation | #006400 | — |
| keyword, constant.language, variable.language, meta.preprocessor, entity.name.function.preprocessor, storage, storage.type, storage.modifier, keyword.operator.noexcept, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, string.comment.buffered.block.pug, string.interpolated.pug, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, entity.name.tag | #0000FF | — |
| keyword.control, keyword.preprocessor.pragma.cs, keyword.preprocessor.region.cs, storage.type.modifier.access.control.public.cpp, storage.type.modifier.access.control.protected.cpp, storage.type.modifier.access.control.private.cpp | #0000FF | bold |
| keyword.other.namespace.definition.cpp, storage.modifier.cs, storage.modifier.java, storage.modifier.import.java, storage.modifier.implements.java, storage.modifier.extends.java, storage.type.js, storage.type.function.js, keyword.control.as.js, keyword.control.from.js, keyword.control.default.js, keyword.control.await.js, storage.type.ts, storage.type.function.ts, storage.type.interface.ts, storage.type.type.ts, keyword.control.as.ts, keyword.control.from.ts, keyword.control.default.ts, keyword.control.await.ts, storage.type.tsx, storage.type.function.tsx, storage.type.interface.tsx, storage.type.type.tsx, keyword.control.as.tsx, keyword.control.from.tsx, keyword.control.default.tsx, keyword.control.await.tsx | #0000FF | |
| constant.numeric, meta.preprocessor.numeric, keyword.other.unit, constant.sha.git-rebase, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent, markup.inserted | #098658 | — |
| constant.regexp, string.regexp | #811F3F | — |
| entity.name.selector, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.tag, markup.heading, markup.inline.raw, entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.scss | #800000 | — |
| variable.css, variable.scss, variable.other.less, source.coffee.embedded | #FF0000 | — |
| invalid | #CD3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.deleted, meta.preprocessor.string, string, meta.embedded.assembly | #A31515 | — |
| support.type, entity.name.function, support.function, markup.changed, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, meta.structure.dictionary.key.python, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color, support.type.property-name.json, support.function.git-rebase, meta.head.function.definition.special.operator-overload, entity.name.function.c, entity.name.variable.property.cs | #0451A5 | — |
| invalid.deprecated | — | — |
| invalid.illegal | #660000 | — |
| keyword.other.operator.overload | #2D2E45 | bold |
| property, variable.other.property, variable.other.property.powershell, variable.other.readwrite.cs, entity.other.attribute-name, support.type.vendored.property-name, support.type.property-name | #2D2E45 | — |
| keyword.control.default.cpp, keyword.other.default.constructor.cpp, keyword.operator.delete.cpp, keyword.other.delete.constructor.cpp | #2D2E45 | |
| storage.modifier | #7A3E9D | bold |
| storage.type, entity.name.type, entity.other.inherited-class, support.class, entity.name.namespace, keyword.type.cs | #7A3E9D | — |
| entity.name.scope-resolution | — | italic |
| entity.name.exception | #660000 | — |
| entity.name.function.definition.cpp, entity.name.function.constructor.cpp, entity.name.function.destructor.cpp, entity.name.type.class.cpp, meta.head.namespace.cpp, entity.name.type.class.cs, entity.name.type.interface.cs, entity.name.type.interface.tsx, meta.definition.function.tsx | — | bold |
| constant.numeric, constant.character, constant, keyword.other.unit | #800080 | — |
| constant.character.escape | #8B0000 | — |
| constant.other.symbol | #8B0000 | — |
| variable, support.variable, punctuation.definition.variable.powershell, variable.other.readwrite.powershell, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx, variable.other.constant.object.js, variable.other.constant.object.ts, variable.other.constant.object.tsx | #00008B | — |
| constant.language, support.constant, variable.language, variable.other.constant | #008080 | — |
| punctuation.definition.block, punctuation.section.block | — | bold |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}