Dilmune Theme
Publisher: DilmuneThemes in package: 15
Warm, bold color themes built on terracotta, sage, and verdigris. Eye-comfortable in any light — from cream parchment to candlelit dusk to blue-black night.
Warm, bold color themes built on terracotta, sage, and verdigris. Eye-comfortable in any light — from cream parchment to candlelit dusk to blue-black night.
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, storage.type, storage.modifier | #960000 | — |
| keyword.control, keyword.control.flow | #960000 | — |
| string, string.quoted, string.template | #004700 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.section.embedded.begin, punctuation.section.embedded.end, constant.character.format.placeholder, meta.template.expression | #960000 | — |
| entity.name.function, support.function, meta.function-call | #003b2c | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #692256 | — |
| support.type.primitive, support.type.builtin, support.type.builtin.go | #692256 | — |
| support.function.builtin, support.function.builtin.go, support.function.builtin.python | #003b2c | italic |
| variable, variable.parameter, variable.other | #181b1f | — |
| constant.numeric, constant.language, variable.other.constant, constant.other | #883900 | — |
| comment, comment.line, comment.block, punctuation.definition.comment | #544b45 | italic |
| comment.block.documentation, comment.line.documentation, comment.block.documentation.phpdoc, string.quoted.docstring.multi.python | #39421b | italic |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type, keyword.operator.expression | #423c37 | — |
| entity.name.tag | #960000 | — |
| support.class.component.tsx, support.class.component.jsx | #692256 | — |
| entity.other.attribute-name | #2b1600 | — |
| support.type.property-name.css, support.type.property-name.scss | #003b2c | — |
| variable.css, variable.other.custom-property.css, support.type.custom-property.css | #883900 | — |
| support.constant.property-value.css, support.constant.color.css | #883900 | — |
| keyword.other.unit.css | #883900 | — |
| string.regexp, constant.character.escape | #6b0035 | — |
| meta.decorator, punctuation.decorator, meta.annotation | #370000 | — |
| meta.preprocessor, keyword.control.directive, keyword.control.directive.include, keyword.control.directive.define, punctuation.definition.directive | #6b0035 | — |
| entity.name.function.macro.rust, support.macro.rust | #960000 | bold |
| meta.attribute.rust, meta.attribute.cpp | #370000 | — |
| entity.name.namespace, entity.name.module, entity.name.import | #002f57 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #2b1600 | — |
| support.class.console, support.class.error, support.class.promise | #692256 | — |
| source.go entity.name.function | #003b2c | — |
| source.go storage.type | #692256 | — |
| entity.name.type.tsx, entity.name.type.ts | #692256 | — |
| entity.name.lifetime.rust | #370000 | — |
| storage.type.rust | #960000 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #960000 | — |
| constant.other.table-name.sql | #692256 | — |
| constant.other.database-name.sql | #002f57 | — |
| support.type.property-name.json | #2b1600 | — |
| entity.name.tag.yaml | #2b1600 | — |
| entity.name.other.anchor.yaml, variable.other.alias.yaml | #883900 | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, markup.heading | #960000 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code.block | #004700 | — |
| markup.underline.link | #003b2c | — |
| markup.list, punctuation.definition.list | #960000 | — |
| markup.quote | #004700 | italic |
| markup.strikethrough | — | strikethrough |
| variable.language.this, variable.language.self, variable.language.super | #960000 | italic |
| entity.name.type.parameter, meta.type.parameters | #692256 | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #960000 | — |
| entity.name.type.interface | #692256 | italic |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #181b1f | — |
| support.function.builtin.shell | #003b2c | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #960000 | bold |
| support.type.property-name.toml | #2b1600 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #004700 | — |
| variable.other.member.go, variable.other.field.go | #2b1600 | — |
| entity.name.function.member.go | #003b2c | — |
| entity.name.type.trait.rust | #692256 | italic |
| keyword.other.where.rust | #960000 | — |
| meta.fstring.python source.python.embedded, punctuation.definition.expression.python | #960000 | — |
| meta.function.parameters.python support.type.python | #692256 | — |
| keyword.query.linq.cs, keyword.other.linq.cs | #960000 | — |
| meta.attribute.cs | #370000 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #370000 | — |
| keyword.operator.spread.tsx, keyword.operator.spread.jsx | #423c37 | — |
| punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx | #960000 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #6b0035 | — |
| variable.scss | #883900 | — |
| entity.name.type.template.cpp | #692256 | italic |
| punctuation.definition.variable.php | #181b1f | — |
| entity.name.type.namespace.php, support.other.namespace.php | #002f57 | — |
| markup.inserted | #004700 | — |
| markup.deleted | #6b0035 | — |
| markup.changed | #883900 | — |
| meta.diff.header, meta.diff.index | #692256 | bold |
| invalid.illegal | #6b0035 | underline |
| invalid.deprecated | — | strikethrough |
| keyword.operator.quantifier.regexp, keyword.operator.negation.regexp | #423c37 | bold |
| punctuation.definition.group.regexp, keyword.other.back-reference.regexp, punctuation.definition.character-class.regexp | #960000 | — |
| entity.name.function.decorator.python | #370000 | — |
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}!`;
}