Dainty
Publisher: Alexander TeinumThemes in package: 30
Streamlined versions of popular VS Code themes
Streamlined versions of popular VS Code themes
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 | #dadce0ff | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6a7480ff | — |
| constant.language | #b8b0f6ff | — |
| constant.numeric | #7fecffff | — |
| constant.regexp | #cbc2ffff | — |
| entity.name.tag | #b8b0f6ff | — |
| entity.name.tag.css | #cbc2ffff | — |
| entity.other.attribute-name | #97d0ffff | — |
| 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 | #97d0ffff | — |
| invalid | #f44747 | — |
| markup.underline | — | underline |
| markup.bold | #b8b0f6ff | bold |
| markup.heading | #b8b0f6ff | bold |
| markup.italic | — | italic |
| markup.inserted | #7fecffff | — |
| markup.deleted | #99eebfff | — |
| markup.changed | #b8b0f6ff | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #99eebfff | — |
| punctuation.definition.tag | #8d949eff | — |
| meta.preprocessor | #b8b0f6ff | — |
| meta.preprocessor.string | #99eebfff | — |
| meta.preprocessor.numeric | #7fecffff | — |
| meta.structure.dictionary.key.python | #dadce0ff | — |
| meta.diff.header | #b8b0f6ff | — |
| storage | #b8b0f6ff | — |
| storage.type | #b8b0f6ff | — |
| storage.modifier | #b8b0f6ff | — |
| string | #99eebfff | — |
| string.tag | #99eebfff | — |
| string.value | #99eebfff | — |
| string.regexp | #99eebfff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #b3b8beff | — |
| meta.template.expression | #d4d4d4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #dadce0ff | — |
| keyword | #b8b0f6ff | — |
| keyword.control | #b8b0f6ff | — |
| keyword.operator | #b3b8beff | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #b8b0f6ff | — |
| keyword.other.unit | #7fecffff | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #b8b0f6ff | — |
| support.function.git-rebase | #97d0ffff | — |
| constant.sha.git-rebase | #7fecffff | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #d4d4d4 | — |
| variable.language | #b8b0f6ff | — |
| entity.name.function, support.function, support.constant.handlebars | #97d0ffff | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #97d0ffff | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #97d0ffff | — |
| keyword.control | #b8b0f6ff | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #dadce0ff | — |
| meta.object-literal.key | #dadce0ff | — |
| 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 | #99eebfff | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #8d949eff | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #cbc2ffff | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #b3b8beff | — |
| keyword.operator.quantifier.regexp | #7fecffff | — |
| constant.character | #b8b0f6ff | — |
| constant.character.escape | #8d949eff | — |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| string.quoted.double.html | #99eebfff | — |
| string.template | #99eebfff | — |
| storage.type.function | #b8b0f6ff | — |
| support.class.component.js | #b8b0f6ff | — |
| variable.parameter | #dadce0ff | — |
| variable.other.property | #dadce0ff | — |
| support.function, support.constant.handlebars | #97d0ffff | — |
| support.type, support.class, support.constant.math | #b8b0f6ff | — |
| support.type.vendored.property-name, support.type.property-name | #dadce0ff | — |
| support.function | #97d0ffff | — |
| variable.other.constant | #dadce0ff | — |
| meta.brace.round, meta.brace.square, meta.brace.angle, punctuation | #8d949eff | — |
| support.type.property-name.json | #dadce0ff | — |
| storage.type.function.arrow.js, storage.type.function.arrow.ts, storage.type.function.arrow.tsx | #b3b8beff | — |
| punctuation.definition.keyword.css, punctuation.definition.directive.c, punctuation.definition.heading.markdown | #b8b0f6ff | — |
| entity.name.type.class, entity.name.type.module | #97d0ffff | — |
| punctuation.definition.comment, punctuation.definition.list.begin.markdown | #6a7480ff | — |
| markup.heading | — | normal |
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}!`;
}