danica
Publisher: daniThemes in package: 1
swag
swag
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 |
|---|---|---|
| — | #DDBDFF | — |
| meta.paragraph.markdown, string.other.link.description.title.markdown | #FAF0FF | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown | #905BBE | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, markup.quote.markdown | #BD80FF | — |
| markup.quote.markdown | #BD80FF | — |
| markup.bold.markdown, punctuation.definition.bold.markdown | #A857FF | bold |
| markup.italic.markdown, punctuation.definition.italic.markdown | #C792EA | — |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #D5B6F7 | — |
| punctuation.definition.metadata.markdown | #E7B9F3 | — |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #B06BFA | — |
| comment | #36036D | — |
| punctuation.definition.string | #9942F5 | — |
| string | #DFC2FF | — |
| string.quoted, variable.other.readwrite.js | #DFC2FF | |
| constant.numeric | #FF910A | — |
| constant.language.boolean | #FF910A | — |
| constant | #A170C6 | — |
| constant.language, punctuation.definition.constant, variable.other.constant | #6300CC | — |
| constant.character, constant.other | #BD80FF | — |
| variable | #C8A5EE | — |
| variable.other.object.js | #8BEF3E | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #8BEF3E | — |
| meta.class entity.name.type.class.tsx | #d29ffcff | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #d29ffcff | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #C3A2E6 | — |
| variable.other.object.property | #D5B6F7 | — |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #AC80DB | — |
| variable.other.readwrite.js, variable.parameter | #E0D7DE | — |
| string.template meta.template.expression | #8740D4 | — |
| string.template punctuation.definition.string | #4B2277 | — |
| storage | #B06BFA | |
| keyword, storage.type, storage.modifier, variable.language.this | #4B2277 | — |
| keyword.operator | #CC99FF | — |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts | #c792ea | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #DFC2FF | — |
| entity.name.class | #D5B6F7 | — |
| entity.other.inherited-class | #824FD8 | |
| variable.other.readwrites, meta.definition.variable | #D5B6F7 | |
| support.variable.property | #AC80DB | — |
| entity.name.function | #BB86F4 | — |
| variable.parameter | #E0D7DE | |
| support.function, entity.name.function, meta.function-call, meta.function, meta.method.declaration, meta.function-call support, meta.decorator meta.definition.method entity.name.function, meta.decorator meta.method.declaration entity.name.function, variable.language.super.ts, source.directive, meta.function-call.generic, meta.method-call.static.php, meta.method-call.php, meta.class storage.type, meta.method.groovy, meta.bracket.square.access, entity.name.function-call.elixir, punctuation.output.liquid support.variable.liquid, meta.function.echo.edge source.js keyword.operator.error-control.js | #8BEF3E | — |
| entity.name.tag | #B06BFA | bold |
| entity.name.type | #d29ffc | — |
| entity.other.attribute-name | #D5B6F7 | — |
| punctuation.decorator | #D5B6F7 | — |
| meta.tag.sgml.doctype.html, punctuation.definition.tag, meta.tag.block.any, meta.tag.block.any.html, meta.tag.inline.any, source.css-ignored-vscode, meta.tag.metadata.style.end.html, text.html.vue invalid.illegal.character-not-allowed-here.html, meta.tag.inline.i.start.html, meta.tag.structure.div.start.html, punctuation.definition.tag.end.html.vue, invalid.illegal.character-not-allowed-here.html | #8D50CE | — |
| support.function | #D5B6F7 | |
| support.constant | #C39CEC | |
| support.type, support.class | #8BEF3E | — |
| support.other.variable | #CBCDD2 | — |
| invalid | #B06BFA | bold underline |
| invalid.deprecated | #B06BFA | bold underline |
| support.type.property-name.json | #B490DA | — |
| support.constant.json | #addb67 | — |
| meta.structure.dictionary.value.json string.quoted.double | #e0aff5 | — |
| string.quoted.double.json punctuation.definition.string.json | #AB80CB | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #C7A1F2 | — |
| source.json support | #B06BFA | — |
| source.json string, source.json punctuation.definition.string | #ece7cd | — |
| markup.list | #B06BFA | — |
| markup.heading punctuation.definition.heading, entity.name.section | #824FD8 | |
| text.html.markdown meta.paragraph meta.link.inline, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.begin.markdown, text.html.markdown meta.paragraph meta.link.inline punctuation.definition.string.end.markdown | #78bd65 | — |
| meta.paragraph.markdown | #8D50CE | — |
| markup.quote | #78bd65 | — |
| meta.link | #78BD65 | — |
| source.dockerfile | #C597F7 | — |
| beginning.punctuation, entity.name.section.group-title, entity.other.attribute-name.class, entity.other.attribute-name.id, keyword.const, keyword.control, keyword.function, keyword.import, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.expression, keyword.operator.increment, keyword.operator.increment-decrement, keyword.operator.logical, keyword.operator.misc, keyword.operator.new, keyword.operator.other, keyword.operator.ternary, keyword.other.fn, keyword.other.rust, keyword.other.special-method, keyword.other.where, keyword.package, keyword.type, keyword.var, markup.heading, meta.tag.sgml.doctype.html, punctuation.separator.key-value, storage.modifier, storage.type.class, storage.type.enum, storage.type.function, storage.type.import, storage.type.interface, storage.type.js, storage.type.namespace, storage.type.property, storage.type.rust, storage.type.string.python, storage.type.ts, storage.type.tsx, storage.type.type, support.type.object.module | — | bold |
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}!`;
}