JetBrains New Dark Alt
Publisher: BitSwapperThemes in package: 1
A theme for Visual Studio Code that closely resembles the new JetBrains Dark theme with Ruby additions.
A theme for Visual Studio Code that closely resembles the new JetBrains Dark theme with Ruby additions.
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, string meta.image.inline.markdown | #BCBEC4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #000080 | — |
| comment, string.quoted.docstring | #7A7E85 | — |
| constant.language | #d4b878 | — |
| constant.numeric, variable.other.enummember, keyword.operator.plus.exponent, keyword.operator.minus.exponent | #2AACB8 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #d4b878 | — |
| entity.name.tag.css | #D5B778 | — |
| entity.other.attribute-name | #BCBEC4 | — |
| 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.scss | #D5B778 | — |
| invalid | #FA6675 | — |
| markup.underline | — | underline |
| markup.bold | #d4b878 | bold |
| markup.heading | #d4b878 | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inserted | #2AACB8 | — |
| markup.deleted | #6AAB73 | — |
| markup.changed | #d4b878 | — |
| punctuation.definition.quote.begin.markdown | #7A7E85 | — |
| punctuation.definition.list.begin.markdown | #6796e6 | — |
| markup.inline.raw | #6AAB73 | — |
| punctuation.definition.tag | #808080 | — |
| meta.preprocessor, entity.name.function.preprocessor | #d4b878 | — |
| meta.preprocessor.string | #6AAB73 | — |
| meta.preprocessor.numeric | #2AACB8 | — |
| meta.structure.dictionary.key.python | #BCBEC4 | — |
| meta.diff.header | #d4b878 | — |
| storage | #d4b878 | — |
| storage.type | #d4b878 | — |
| storage.modifier, keyword.operator.noexcept | #d4b878 | — |
| string, meta.embedded.assembly | #6AAB73 | — |
| string.tag | #6AAB73 | — |
| string.value | #6AAB73 | — |
| string.regexp | #d16969 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d4b878 | — |
| meta.template.expression | #BCBEC4 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #BCBEC4 | — |
| keyword | #d4b878 | — |
| keyword.control | #d4b878 | — |
| keyword.operator | #BCBEC4 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike | #d4b878 | — |
| keyword.other.unit | #2AACB8 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #d4b878 | — |
| support.function.git-rebase | #BCBEC4 | — |
| constant.sha.git-rebase | #2AACB8 | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #BCBEC4 | — |
| variable.language | #d4b878 | — |
| variable.argument.css, punctuation.definition.tag, entity.name.tag, support.function.misc, meta.function.variable.css, meta.property-value.css support.function, meta.selector.css, entity.other.attribute-name.css | #D5B778 | — |
| keyword.other.unit, punctuation.separator.key-value.html, meta.tag.attributes keyword.operator.assignment | #6AAB73 | — |
| entity.other.attribute-name, support.type.property-name.css | #BABABA | — |
| support.type.property-name.json | #C77DBB | — |
| meta.tag.custom entity.name.tag.html | #d4b878 | — |
| comment.block.documentation, comment.block.javadoc | #5F826B | — |
| entity.name.function.ruby | #fc9800 | — |
| constant.language.symbol.ruby | #88a6af | — |
| entity.name.type.class.ruby | #ffc56d | — |
| variable.ruby | #d5af1e | — |
| constant.language.symbol.hashkey.ruby | #88a6af | — |
| variable.parameter.function.ruby | #d5af1e | — |
| entity.name.function.member, entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #ffc56d | — |
| keyword.control.ruby, keyword.control.def.ruby, keyword.control.class.ruby | #cf8e6d | — |
| entity.other.inherited-class.ruby, meta.class.ruby entity.other.inherited-class, constant.other.ruby entity.other.inherited-class.ruby, keyword.other.special-method.ruby entity.other.inherited-class.ruby, source.ruby entity.other.inherited-class | #fefffa | italic |
| constant.language.ruby entity.other.inherited-class.ruby | #fefffa | italic bold |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal | #88a6af | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, 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 | #d4b878 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #d4b878 | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator | #d4b878 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder | #BCBEC4 | — |
| variable.other.constant, variable.other.enummember | #C77DBB | — |
| meta.object-literal.key | #BCBEC4 | — |
| 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 | #6AAB73 | — |
| 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 | #6AAB73 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #d16969 | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #88a6af | — |
| keyword.operator.quantifier.regexp | #D5B778 | — |
| constant.character, constant.other.option | #d4b878 | — |
| constant.character.escape | #D5B778 | — |
| entity.name.label | #C8C8C8 | — |
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}!`;
}