Darko
Publisher: Paul MorrisThemes in package: 1
Like Easter, but dark.
Like Easter, but dark.
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 | #DADCDF | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment | #6B737E | — |
| constant.language | #B8B0F6 | — |
| constant.numeric | #9AE8FF | — |
| constant.regexp | #CBC4FB | — |
| entity.name.tag | #B8B0F6 | — |
| entity.name.tag.css | #CBC4FB | — |
| entity.other.attribute-name | #A5CEFE | — |
| 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 | #A5CEFE | — |
| invalid | #F44747 | — |
| markup.underline | — | underline |
| markup.bold | #B8B0F6 | bold |
| markup.heading | #B8B0F6 | bold |
| markup.italic | — | italic |
| markup.inserted | #9AE8FF | — |
| markup.deleted | #AAEAC6 | — |
| markup.changed | #B8B0F6 | — |
| punctuation.definition.quote.begin.markdown | #6A9955 | — |
| punctuation.definition.list.begin.markdown | #6796E6 | — |
| markup.inline.raw | #AAEAC6 | — |
| punctuation.definition.tag | #8E949D | — |
| meta.preprocessor | #B8B0F6 | — |
| meta.preprocessor.string | #AAEAC6 | — |
| meta.preprocessor.numeric | #9AE8FF | — |
| meta.structure.dictionary.key.python | #DADCDF | — |
| meta.diff.header | #B8B0F6 | — |
| storage | #B8B0F6 | — |
| storage.type | #B8B0F6 | — |
| storage.modifier | #B8B0F6 | — |
| string | #AAEAC6 | — |
| string.tag | #AAEAC6 | — |
| string.value | #AAEAC6 | — |
| string.regexp | #AAEAC6 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #B4B8BD | — |
| meta.template.expression | #D4D4D4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #DADCDF | — |
| keyword | #B8B0F6 | — |
| keyword.control | #B8B0F6 | — |
| keyword.operator | #b8b0f6 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #B8B0F6 | — |
| keyword.other.unit | #9AE8FF | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #B8B0F6 | — |
| support.function.git-rebase | #A5CEFE | — |
| constant.sha.git-rebase | #9AE8FF | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #D4D4D4 | — |
| variable.language | #B8B0F6 | — |
| entity.name.function, support.function, support.constant.handlebars | #A5CEFE | — |
| 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 | #A5CEFE | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #A5CEFE | — |
| keyword.control | #B8B0F6 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #DADCDF | — |
| meta.object-literal.key | #DADCDF | — |
| 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 | #AAEAC6 | — |
| 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 | #8E949D | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #CBC4FB | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #B4B8BD | — |
| keyword.operator.quantifier.regexp | #9AE8FF | — |
| constant.character | #B8B0F6 | — |
| constant.character.escape | #8E949D | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| string.quoted.double.html | #AAEAC6 | — |
| string.template | #AAEAC6 | — |
| storage.type.function | #B8B0F6 | — |
| support.class.component, entity.name.type.class | #FFDAAD | — |
| variable.parameter | #DADCDF | — |
| variable.other.property | #DADCDF | — |
| support.function, support.constant.handlebars | #A5CEFE | — |
| support.type, support.class, support.constant.math | #B8B0F6 | — |
| support.type.vendored.property-name, support.type.property-name | #DADCDF | — |
| support.function | #A5CEFE | — |
| variable.other.constant | #DADCDF | — |
| meta.brace.round, meta.brace.square, meta.brace.angle, punctuation | #8E949D | — |
| support.type.property-name.json | #DADCDF | — |
| storage.type.function.arrow | #B4B8BD | — |
| punctuation.definition.keyword.css, punctuation.definition.directive.c, punctuation.definition.heading.markdown | #B8B0F6 | — |
| entity.name.type.class, entity.name.type.module | #A5CEFE | — |
| punctuation.definition.comment, punctuation.definition.list.begin.markdown | #6B737E | — |
| markup.heading | — | normal |
| comment, keyword.control, constant, storage.modifier, storage.type.class, entity.name.method, entity.name.class, entity.name.tag.doctype, entity.other.attribute-name | — | italic |
| invalid, variable.other.constant, keyword.operator, constant.numeric.css, entity.other.attribute-name.id.css, constant.numeric.decimal, constant.numeric.json, meta.at-rule.apply.tailwind entity.other.attribute-name.class.css, meta.property-value.css, constant.other.color.rgb-value, storage.modifier.async, keyword.control.conditional, variable.other.readwrite, string.regexp constant, constant.other.character-class.set.regexp, string.regexp punctuation.definition.character-class.regexp | — | |
| keyword.operator.rest, keyword.operator.assignment, keyword.operator.optional, keyword.operator.spread, meta.tag.attributes variable.other.readwrite | #DADCDF | — |
| entity.name.type, entity.name.type.class, support.class, meta.interface entity.other.inherited-class | #FFDAAD | — |
| string, meta.at-rule.apply.tailwind entity.other.attribute-name.class.css | #B9F3D3 | — |
| support.constant.constant.prisma, string.regexp keyword | #97D0FF | — |
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}!`;
}