Daynight Darcula Theme
Publisher: igolskyiThemes in package: 3
A theme variation for VS Code based on Darcula theme from Jetbrains IDEs
A theme variation for VS Code based on Darcula theme from Jetbrains IDEs
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 |
|---|---|---|
| comment | #808080 | — |
| keyword.operator,keyword.operator.logical,keyword.operator.relational,keyword.operator.assignment,keyword.operator.comparison,keyword.operator.ternary,keyword.operator.arithmetic,keyword.operator.spread | #BCBEC4 | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #C77DBB | — |
| meta.diff.header.git | #CF8E6D | — |
| meta.diff.header.from-file, meta.diff.header.to-file | #FFC66D | — |
| markup.deleted.diff | #FF0000 | — |
| markup.inserted.diff | #00FF00 | — |
| keyword.input.graphql, keyword.type.graphql | #CF8E6D | bold |
| variable.graphql | #C77DBB | — |
| support.type.graphql | #FFC66D | — |
| support.type.builtin.graphql | #6AAB73 | — |
| string,string.character.escape,string.template.quoted,string.template.quoted.punctuation,string.template.quoted.punctuation.single,string.template.quoted.punctuation.double,string.type.declaration.annotation,string.template.quoted.punctuation.tag, punctuation.definition.string.begin, punctuation.definition.string.end | #6AAB73 | — |
| punctuation.definition.template-expression.begin,punctuation.definition.template-expression.end,punctuation.quasi.element.begin,punctuation.quasi.element.end | #CF8E6D | — |
| expression.string,meta.template.expression,entity.quasi.element | #BCBEC4 | — |
| constant.numeric, variable.other.normal.shell | #2AACB8 | — |
| constant.language,variable.language | #CF8E6D | — |
| constant.character, constant.other, string.unquoted | #C77DBB | — |
| constant.character.entity | #2AACB8 | — |
| keyword,keyword.operator.new,keyword.operator.delete,keyword.operator.static,keyword.operator.this,keyword.operator.expression | #CF8E6D | — |
| meta.return.type,meta.type.annotation,meta.type.parameters,meta.brace.round,meta.brace.square | #BCBEC4 | — |
| storage.modifier,storage.arrow, storage.type.class,support.type.primitive,support.type.builtin | #CF8E6D | — |
| storage,meta.var.expr storage.type,storage.type.class,variable.language.this,variable.language.super,keyword.control.loop,keyword.operator.expression.in,keyword.operator.new,keyword.control.switch,constant.language.boolean.false,constant.language.boolean.true,constant.language.null,keyword.control.conditional,keyword.control.flow,keyword.operator.expression.instanceof,keyword.operator.expression.of,keyword.operator.expression.delete,keyword.operator.expression.void,keyword.control.module,keyword.control.trycatch,keyword.control.import,keyword.control.export,keyword.control.from,keyword.control.default | #CF8E6D | — |
| support.function, entity.name.function, entity.name.function.tsx, entity.name.type.class.ts, entity.name.function.js, entity.name.function.jsx | #56A8F5 | — |
| annotation.meta.ts, annotation.meta.tsx, storage.type.function.arrow | #BCBEC4 | — |
| variable.parameter,operator.rest.parameters, variable.other.object, variable.other.object.property, meta.ng-binding.event.html | #BCBEC4 | — |
| variable.property,variable.constant,variable.other.property,variable.object.property,support.variable.property,variable.other.readwrite.alias, meta.ng-binding.property.html, meta.ng-binding.template.html | #C77DBB | — |
| support.class.console, support.class.error, support.class.builtin, support.constant.math, support.class.builtin.js, support.class.builtin.ts | #C77DBB | — |
| meta.tag.custom.start.html, meta.tag.custom.end.html, entity.name.tag.custom.css, entity.name.tag.custom.scss | #CF8E6D | — |
| support.class.component.html | #CF8E6D | — |
| support.class.component.tsx, entity.other.ng-binding-name.template.html, variable.language.this.ts, support.class.component.open.jsx, support.class.component.close.jsx | #2AACB8 | — |
| support.class.component.open.jsx, support.class.component.close.jsx | #2AACB8 | — |
| meta.jsx.children.tsx, JSXNested | #BCBEC4 | — |
| source.directive.vue | #C77DBB | — |
| quote.module | #6AAB73 | — |
| markup.heading, punctuation.separator.dictionary.key-value.json, punctuation.separator.dictionary.pair.json | #CF8E6D | — |
| punctuation.definition.tag.html, meta.tag | #D5B778 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #D5B778 | — |
| entity.other.attribute-name, support.type.property-name.css | #C77DBB | — |
| invalid.illegal.character-not-allowed-here.html | #F44747 | — |
| meta.object-literal.key, support.type.property-name.json | #C77DBB | — |
| storage.modifier.ts | #CF8E6D | — |
| variable.other.env | #CF8E6D | — |
| source.env, constant.numeric.env | #2AACB8 | — |
| ts.cast.expr,ts.meta.entity.class.method.new.expr.cast,ts.meta.entity.type.name.new.expr.cast,ts.meta.entity.type.name.var-single-variable.annotation,tsx.cast.expr,tsx.meta.entity.class.method.new.expr.cast,tsx.meta.entity.type.name.new.expr.cast,tsx.meta.entity.type.name.var-single-variable.annotation | #79B4E1 | — |
| ts.meta.type.support,ts.meta.type.entity.name,ts.meta.class.inherited-class,tsx.meta.type.support,tsx.meta.type.entity.name,tsx.meta.class.inherited-class,type-declaration,enum-declaration | #79B4E1 | — |
| function-declaration,method-declaration,method-overload-declaration,type-fn-type-parameters | #FFC66D | — |
| comment.block.documentation | #6AAB73 | italic |
| storage.type.class.jsdoc, punctuation.definition.block.tag.jsdoc | #6AAB73 | italic bold underline |
| punctuation.decorator | #B3AE60 | — |
| entity.name.type | #B3AE60 | — |
| constant.language.import-export-all | #BCBEC4 | — |
| objectliteral.key.separator, punctuation.separator.key-value, punctuation.separator.comma, punctuation.separator.parameter, punctuation.terminator.statement | #BCBEC4 | — |
| regex | — | italic |
| ts.meta.entity.name.namespace,tsx.meta.entity.name.namespace | #BCBEC4 | — |
| regex.character-class | #BCBEC4 | — |
| entity.name.type.class | #B3AE60 | — |
| class.instance.constructor, new.expr entity.name.type | #FFC66D | — |
| entity.other.inherited-class | #C77DBB | — |
| entity.name.type.instance.jsdoc | #6AAB73 | italic |
| meta.object-literal.key string | #C77DBB | — |
| yaml.entity.name,yaml.string.entity.name | #CF8E6D | — |
| yaml.string.out | #BCBEC4 | — |
| meta.brace.square.ts,block.support.module,block.support.type.module,block.support.function.variable,punctuation.definition.typeparameters.begin,punctuation.definition.typeparameters.end,punctuation.definition.block,punctuation.definition.parameters.begin,punctuation.definition.parameters.end,punctuation.accessor, punctuation.definition.binding-pattern.object | #BCBEC4 | — |
| string.regexp | #BCBEC4 | — |
| punctuation.definition.group.regexp,punctuation.definition.character-class.regexp | #FFC66D | — |
| constant.other.character-class.regexp, constant.character.escape.ts, constant.character.escape.js | #CF8E6D | — |
| expr.regex.or.operator | #BCBEC4 | — |
| string.template.tag,string.template.punctuation.tag,string.quoted.punctuation.tag,string.quoted.embedded.tag, string.quoted.double.tag | #6AAB73 | — |
| tag.punctuation.begin.arrow.parameters.embedded,tag.punctuation.end.arrow.parameters.embedded,keyword.other.unit.percentage.css | #BCBEC4 | — |
| object-literal.object.member.key.field.other,object-literal.object.member.key.accessor,object-literal.object.member.key.array.brace.square | #BCBEC4 | — |
| property-list.property-value,property-list.constant | #A5C261 | — |
| support.type.property-name.variable.css,support.type.property-name.variable.scss,variable.scss | #79B4E1 | — |
| entity.other.attribute-name.class.css,entity.other.attribute-name.class.scss,entity.other.attribute-name.parent-selector-suffix.css,entity.other.attribute-name.parent-selector-suffix.scss | #FFC66D | — |
| property-list.property-value.rgb-value, keyword.other.unit.css,keyword.other.unit.scss | #79B4E1 | — |
| property-list.property-value.function | #FFC66D | — |
| support.constant.property-value.css,support.constant.property-value.scss,keyword.other.unit, punctuation.definition.string.begin.html,punctuation.definition.string.end.html,string.quoted.double.html,string.quoted.double.tsx, string.quoted.double.json,string.quoted.double.jsx,string.quoted.double.js | #A5C261 | — |
| entity.name.tag.css,entity.name.tag.scss,css.entity.name.tag,scss.entity.name.tag,punctuation.terminator.rule.css,punctuation.terminator.rule.scss | #CF8E6D | — |
| meta.selector.css, entity.attribute-name.id, entity.other.attribute-name.pseudo-class.css,entity.other.attribute-name.pseudo-element.css | #FFC66D | — |
| keyword.scss,keyword.css | #CF8E6D | — |
| triple-slash.tag | #BCBEC4 | italic |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}