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 | #7a3128 | — |
| keyword.control, keyword.control.flow | #7a3128 | — |
| string, string.quoted, string.template | #1f3f1c | — |
| 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 | #7a3128 | — |
| entity.name.function, support.function, meta.function-call | #19342c | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #582f4b | — |
| support.type.primitive, support.type.builtin, support.type.builtin.go | #582f4b | — |
| support.function.builtin, support.function.builtin.go, support.function.builtin.python | #19342c | italic |
| variable, variable.parameter, variable.other | #17191b | — |
| constant.numeric, constant.language, variable.other.constant, constant.other | #72442c | — |
| comment, comment.line, comment.block, punctuation.definition.comment | #4e4945 | italic |
| comment.block.documentation, comment.line.documentation, comment.block.documentation.phpdoc, string.quoted.docstring.multi.python | #383d28 | 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 | #3d3936 | — |
| entity.name.tag | #7a3128 | — |
| support.class.component.tsx, support.class.component.jsx | #582f4b | — |
| entity.other.attribute-name | #23170a | — |
| support.type.property-name.css, support.type.property-name.scss | #19342c | — |
| variable.css, variable.other.custom-property.css, support.type.custom-property.css | #72442c | — |
| support.constant.property-value.css, support.constant.color.css | #72442c | — |
| keyword.other.unit.css | #72442c | — |
| string.regexp, constant.character.escape | #562033 | — |
| meta.decorator, punctuation.decorator, meta.annotation | #290c08 | — |
| meta.preprocessor, keyword.control.directive, keyword.control.directive.include, keyword.control.directive.define, punctuation.definition.directive | #562033 | — |
| entity.name.function.macro.rust, support.macro.rust | #7a3128 | bold |
| meta.attribute.rust, meta.attribute.cpp | #290c08 | — |
| entity.name.namespace, entity.name.module, entity.name.import | #172d44 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #23170a | — |
| support.class.console, support.class.error, support.class.promise | #582f4b | — |
| source.go entity.name.function | #19342c | — |
| source.go storage.type | #582f4b | — |
| entity.name.type.tsx, entity.name.type.ts | #582f4b | — |
| entity.name.lifetime.rust | #290c08 | — |
| storage.type.rust | #7a3128 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql | #7a3128 | — |
| constant.other.table-name.sql | #582f4b | — |
| constant.other.database-name.sql | #172d44 | — |
| support.type.property-name.json | #23170a | — |
| entity.name.tag.yaml | #23170a | — |
| entity.name.other.anchor.yaml, variable.other.alias.yaml | #72442c | — |
| heading.1.markdown, heading.2.markdown, heading.3.markdown, markup.heading | #7a3128 | bold |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.inline.raw, markup.fenced_code.block | #1f3f1c | — |
| markup.underline.link | #19342c | — |
| markup.list, punctuation.definition.list | #7a3128 | — |
| markup.quote | #1f3f1c | italic |
| markup.strikethrough | — | strikethrough |
| variable.language.this, variable.language.self, variable.language.super | #7a3128 | italic |
| entity.name.type.parameter, meta.type.parameters | #582f4b | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #7a3128 | — |
| entity.name.type.interface | #582f4b | italic |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell | #17191b | — |
| support.function.builtin.shell | #19342c | — |
| entity.other.attribute-name.table.toml, support.type.property-name.table.toml | #7a3128 | bold |
| support.type.property-name.toml | #23170a | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #1f3f1c | — |
| variable.other.member.go, variable.other.field.go | #23170a | — |
| entity.name.function.member.go | #19342c | — |
| entity.name.type.trait.rust | #582f4b | italic |
| keyword.other.where.rust | #7a3128 | — |
| meta.fstring.python source.python.embedded, punctuation.definition.expression.python | #7a3128 | — |
| meta.function.parameters.python support.type.python | #582f4b | — |
| keyword.query.linq.cs, keyword.other.linq.cs | #7a3128 | — |
| meta.attribute.cs | #290c08 | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #290c08 | — |
| keyword.operator.spread.tsx, keyword.operator.spread.jsx | #3d3936 | — |
| punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx | #7a3128 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #562033 | — |
| variable.scss | #72442c | — |
| entity.name.type.template.cpp | #582f4b | italic |
| punctuation.definition.variable.php | #17191b | — |
| entity.name.type.namespace.php, support.other.namespace.php | #172d44 | — |
| markup.inserted | #1f3f1c | — |
| markup.deleted | #562033 | — |
| markup.changed | #72442c | — |
| meta.diff.header, meta.diff.index | #582f4b | bold |
| invalid.illegal | #562033 | underline |
| invalid.deprecated | — | strikethrough |
| keyword.operator.quantifier.regexp, keyword.operator.negation.regexp | #3d3936 | bold |
| punctuation.definition.group.regexp, keyword.other.back-reference.regexp, punctuation.definition.character-class.regexp | #7a3128 | — |
| entity.name.function.decorator.python | #290c08 | — |
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}!`;
}