Dream Dew
Publisher: calico-moonThemes in package: 1
A soft pastel dark theme with lavender, cream, rose, and dusty blue tones designed for calm readability.
A soft pastel dark theme with lavender, cream, rose, and dusty blue tones designed for calm readability.
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 |
|---|---|---|
| — | #f3ecf6 | — |
| comment | #9a92aa | |
| punctuation.definition.comment, comment punctuation.definition.comment | #8f869f | — |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.logical.python, storage.type, storage.modifier, meta.preprocessor, constant.language, variable.language | #bca7ea | bold |
| keyword.operator | #f0e6ef | |
| entity.name.function, support.function, meta.function-call, support.function.magic | #b8e1cf | bold |
| variable, variable.other.readwrite, variable.other.object, variable.other.object.property, variable.parameter, meta.definition.variable.name, support.variable | #f0e1c2 | — |
| meta.object-literal.key, meta.structure.dictionary.key.python, entity.other.attribute-name, variable.other.property, support.variable.property.dom | #f4d4df | — |
| support.class, support.type, entity.name.type, entity.name.class, entity.name.type.module, support.function.builtin, support.constant.math, support.constant.dom, support.constant.json, meta.return-type, storage.type.function.arrow | #8fc4d8 | bold |
| constant.numeric, constant.regexp, keyword.other.unit | #aab4ea | — |
| string, string storage.type.string, markup.inline.raw | #f0be9f | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi storage.type.string | #e9c9b6 | italic |
| constant.character.escape, punctuation.definition.string.template, punctuation.section.embedded.begin, punctuation.section.embedded.end | #f4d4df | — |
| entity.name.function.decorator, entity.name.function.decorator support.type.python, meta.annotation, storage.type.annotation.java, storage.type.annotation.groovy | #d998bc | |
| variable.language.special, variable.parameter.function.language.special, variable.parameter.function-call.python | #d998bc | — |
| constant, constant.other, constant.character, token.error-token, invalid | #e18d99 | — |
| entity.name.tag, punctuation.definition.tag, meta.selector | #e8d7a7 | — |
| markup.heading, markup.bold | #f6eef9 | bold |
| markup.italic | #f1e9f5 | italic |
| markup.inserted | #b8e1cf | — |
| markup.deleted | #e18d99 | — |
| markup.changed | #8fc4d8 | — |
| beginning.punctuation.definition.quote.markdown, beginning.punctuation.definition.list.markdown, token.info-token, token.warn-token, token.debug-token | #8fc4d8 | — |
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}!`;
}