MobyScript Dark
Publisher: MobyScriptThemes in package: 2
MobyScript's VSCODE theme for Light and Dark !
MobyScript's VSCODE theme for Light and Dark !
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #333333 | — |
| , source.groovy.embedded | #666666 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6a9955 | — |
| constant.language | #569cd6 | — |
| constant.numeric | #b5cea8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #800000 | — |
| entity.name.function | #795e26 | — |
| variable.parameter | #795e26 | — |
| variable.other.readwrite | #af9804 | — |
| entity.name.tag.css | #d16969 | — |
| entity.other.attribute-name | #795e26 | — |
| 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.attribute.scss, entity.other.attribute-name.scss | #795e26 | — |
| invalid | #d16969 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #000080 | bold |
| markup.italic | — | italic |
| markup.inserted | #6a9955 | — |
| markup.deleted | #b22222 | — |
| markup.changed | #569cd6 | — |
| punctuation.definition.quote.begin.markdown | #6a9955 | — |
| punctuation.definition.list.begin.markdown | #d16969 | — |
| markup.inline.raw | #d16969 | — |
| punctuation.definition.tag | #d16969 | — |
| meta.preprocessor | #000080 | — |
| meta.preprocessor.string | #795e26 | — |
| meta.preprocessor.numeric | #b5cea8 | — |
| meta.structure.dictionary.key.python | #000080 | — |
| meta.diff.header | #000080 | — |
| storage | #000080 | — |
| storage.type | #800000 | — |
| storage.modifier | #000080 | — |
| string | #d16969 | — |
| string.tag | #b22222 | — |
| string.value | #d16969 | — |
| string.regexp | #646695 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #000080 | — |
| meta.template.expression | #333333 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #d45555 | — |
| keyword | #000080 | — |
| keyword.control | #800000 | — |
| keyword.operator | #d16969 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #000080 | — |
| keyword.other.unit | #b5cea8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #000080 | — |
| support.function.git-rebase | #000080 | — |
| constant.sha.git-rebase | #b5cea8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #333333 | — |
| variable.language | #000080 | — |
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}!`;
}