I Believe In A Thing Called Love
Publisher: TarhnThemes in package: 1
The Darkness a theme for Visual Studio Code
The Darkness a theme for Visual Studio Code
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 |
|---|---|---|
| strong | — | bold |
| emphasis, markup.italic | — | italic |
| markup.underline | — | underline |
| meta.template.expression, source.groovy.embedded, variable.language.wildcard.java | #E0E0E0 | — |
| header | #311B92 | — |
| punctuation.definition.quote.begin.markdown | #689F38 | — |
| constant.sha.git-rebase, keyword.operator.minus.exponent, keyword.operator.plus.exponent, keyword.other.unit, markup.inserted, meta.preprocessor.numeric | #A5D6A7 | — |
| variable.other.constant, variable.other.enummember | #4FC3F7 | — |
| constant.regexp | #5C6BC0 | — |
| constant.character.escape, entity.name.tag.css, 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, entity.other.attribute-name.scss, keyword.operator.quantifier.regexp, source.css.less entity.other.attribute-name.id | #FFCC80 | — |
| constant.other.placeholder, meta.definition.variable.name, meta.structure.dictionary.key.python, source.coffee.embedded, support.function.git-rebase, support.type.vendored.property-name, support.variable, variable.css, variable.other.less, variable.scss | #81D4FA | — |
| constant.character.character-class.regexp, constant.character.set.regexp, constant.other.character-class.regexp, constant.other.character-class.set.regexp, string.regexp | #E57373 | — |
| entity.name.operator, keyword.operator.delete, keyword.other.operator | #CE93D8 | — |
| entity.name.operator.custom-literal, keyword.control.anchor.regexp, keyword.operator.or.regexp, support.constant.handlebars | #F0F4C3 | — |
| constant.other.color.rgb-value, constant.other.rgb-value, keyword.operator.negation.regexp, markup.deleted, markup.inline.raw, meta.preprocessor.string, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, punctuation.definition.character-class.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.group.regexp, string.tag, string.value, support.constant.color, support.constant.font-name, support.constant.media, support.constant.media-type, support.constant.property-value, support.other.parenthesis.regexp | #ffd000 | — |
| entity.name.namespace, entity.name.scope-resolution, entity.other.attribute, entity.other.inherited-class, meta.return-type, meta.type.cast.expr, meta.type.new.expr, storage.type.annotation.java, storage.type.annotation.groovy, storage.type.boolean.go, storage.type.byte.go, storage.type.cs, storage.type.error.go, storage.type.generic.cs, storage.type.generic.groovy, storage.type.generic.java, storage.type.groovy, storage.type.java, storage.type.modifier.cs, storage.type.numeric.go, storage.type.object.array.groovy, storage.type.object.array.java, storage.type.parameters.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.rune.go, storage.type.string.go, storage.type.token.java, storage.type.uintptr.go, storage.type.variable.cs, support.constant.dom, support.constant.json, support.constant.math, entity.name.label | #4ecc99 | — |
| constant.character, entity.name.function.preprocessor, entity.name.tag, keyword, keyword.operator.noexcept, markup.changed, meta.diff.header, meta.preprocessor, punctuation.definition.list.begin.markdown, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, storage.modifier, support.type.property-name, variable.language | #2196F3 | — |
| markup.bold, markup.heading | #329CFF | bold |
| comment, punctuation.definition.comment | #00BA6F | — |
| meta.embedded.assembly, string | #94EF00 | — |
| keyword - keyword.operator, keyword.control, keyword.other.fn.rust, storage, storage.type | #329CFF | — |
| constant.numeric | #FFD000 | — |
| entity.name.class, entity.name.type, constant.language, keyword.operator, keyword.other, meta.embedded, source.powershell, source.powershell variable.other.member, source.ruby, support.class, support.type, variable.other.member.powershell | #2BFF00 | — |
| entity.name.function, keyword.other.DML.sql, meta.body.function.definition, meta.function-call.generic.python, support.function, text | #FF4C2C | — |
| entity.name.variable, variable | #FF8300 | — |
| entity.name.type, meta.method-call.java, meta.selector.css, storage.modifier.import.java, storage.modifier.package.java | #E89800 | — |
| constant.other.enum.java, meta.method.body.java, text.xml | #FFC400 | — |
| log.error | #FF0800 | — |
| meta.scriptblock | #73FF00 | — |
| keyword.operator.alignas, keyword.operator.alignof, keyword.operator.cast, keyword.operator.expression, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.new, keyword.operator.sizeof, keyword.operator.typeid, keyword.operator.wordlike, punctuation, punctuation.definition.block.sequence.item.yaml, punctuation.definition.tag, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.section.embedded, punctuation.separator.key-value.mapping.yaml, source.cpp keyword.operator.new, source.js | #E5FF00 | — |
| source.batchfile, source.go, source.perl, source.rust, source.sql, source.tsx, variable.other.object.property.cs | #FFA700 | — |
| source.python, text.html, text.log, text.txt | #FF8800 | — |
| storage.type.cs | #8F9EFE | — |
| storage.modifier.cs | #0B85FB | — |
| entity.name.type, entity.other.attribute-name, meta.object-literal.key | #FFAE00 | — |
| keyword.other.using | #B765FF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| invalid | #EF5350 | — |
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}!`;
}