Void Zero
Publisher: Void ZeroThemes in package: 1
A clean, dark and elegant theme for VS Code with blueish / purple colors
A clean, dark and elegant theme for VS Code with blueish / purple colors
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #FF3366 | — |
| source | #D1D6FC | — |
| meta.diff, meta.diff.header | #6272A4 | — |
| markup.inserted | #50FA7B | — |
| markup.deleted | #FD1D53 | — |
| markup.changed | #7874d4 | — |
| invalid | #FF3366 | underline italic |
| invalid.deprecated | #FFFFD8 | underline italic |
| entity.name.filename | #FFFA50 | — |
| markup.error | #FD1D53 | — |
| markup.underline | — | underline |
| markup.bold | #7874d4 | bold |
| markup.heading | #BD93F9 | bold |
| markup.italic | #FFFA50 | italic |
| punctuation.definition.parameters, punctuation.terminator.statement, punctuation.separator.comma, punctuation.definition.block, punctuation.definition.dictionary, punctuation.separator.array, punctuation.definition.array, punctuation.definition.typeparameters, keyword.operator.type.annotation | #ffffff | — |
| markup.inline.raw, markup.raw.restructuredtext | #7cfff6 | — |
| markup.underline.link, markup.underline.link.image | #2BDCFF | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #2BDCFF | — |
| entity.name.directive.restructuredtext, markup.quote | #FFFA50 | italic |
| punctuation.definition.constant.restructuredtext | #BD93F9 | — |
| entity.name.type.class | #da8bff | |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #e1d1fd | |
| entity.other.inherited-class | #da8bff | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #707dbce3 | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | #FFFFFF | — |
| comment.block.documentation entity.name.type | #29C2C7 | |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #ffffff | — |
| comment.block.documentation variable | #D1D6FC | |
| variable.other.constant | #53ceff | — |
| constant.numeric | #ffa0e9 | — |
| constant.numeric.suffix | #ffa0e9 | — |
| constant.language.boolean, constant.other.boolean | #e668ff | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #FF78B1 | — |
| entity.name.tag | #85b1e0 | — |
| entity.other.attribute-name.parent-selector | #FF78B1 | — |
| entity.other.attribute-name | #dda2f6 | — |
| variable.argument.css, meta.property-list.css | #faf3cb | — |
| meta.property-value.css | #3BFFB4 | — |
| punctuation.section, punctuation.terminator.rule.css, punctuation.separator.key-value.css | #D1D6FC | — |
| support.function.misc.css | #8af1f1 | — |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix | #DA8BFF | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #e1d1fd | — |
| meta.decorator | #85b1e0 | — |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property | #85b1e0 | italic |
| meta.decorator variable.other.object | #50FA7B | — |
| keyword, punctuation.definition.keyword | #9E94F8 | |
| keyword.control.elixir | #FF78B1 | — |
| keyword.control.new, keyword.operator.new | #b9bed5 | — |
| keyword.operator.expression.delete.ts | #ff7c7c | — |
| meta.selector | #FF78B1 | — |
| support | #29C2C7 | — |
| support.function.magic, support.variable, variable.other.predefined | #BD93F9 | |
| support.function, support.type.property-name | #2BDCFF | |
| constant.other.symbol.hashkey punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.group.double.toml, meta.group.toml, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.entity.other.inherited-class, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation | #ffcee3 | — |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #ffffff | — |
| meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.definition.variable.makefile | #BDF3FF | — |
| entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #2BDCFF | — |
| constant.other.date, constant.other.timestamp | #7874d4 | — |
| variable.other.alias.yaml | #50FA7B | italic underline |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #8A7EF7 | |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml | #da8bff | — |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #20999D | — |
| storage.modifier | #7874d4 | italic |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #fcadce | — |
| punctuation.definition.group.capture.regexp | #FF78B1 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #f886b6 | — |
| punctuation.definition.character-class.regexp | #2BDCFF | — |
| punctuation.definition.group.regexp | #7874d4 | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #FD1D53 | — |
| meta.assertion.look-ahead.regexp | #50FA7B | — |
| string | #7CFFF6 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #7cfff6 | — |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #8BE9FE | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #6272A4 | — |
| variable.other.object | #FFFFFF | — |
| variable.other.property | #BD93F9 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #7874d4 | — |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #A571F4 | — |
| meta.selectionset.graphql variable | #FFFA50 | — |
| meta.selectionset.graphql meta.arguments variable | #FFFFD8 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #2BDCFF | — |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #FFFFD8 | — |
| source.shell variable.other | #BD93F9 | — |
| support.constant | #BD93F9 | |
| meta.scope.prerequisites.makefile | #FFFA50 | — |
| meta.attribute-selector.scss | #FFFA50 | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #FFFFD8 | — |
| meta.preprocessor.haskell | #6272A4 | — |
| support.constant.core.rust | #6796e6 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #CDEEFE | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #9BDCFD | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #69CBFC | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #37BAFB | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #05A8FA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #0487C8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #f07178 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C792EA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C3E88D | — |
| constant.language.json | #e180ff | — |
| keyword.key.toml | #5acefc | |
| text.html.markdown meta.paragraph.markdown | #D1D6FC | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #BD93F9 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #FFFFD8 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #FFFA50 | — |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #2BDCFF | — |
| meta.separator.markdown | #6272A4 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown | #9784dc | — |
| heading.1.markdown | #e180ff | bold |
| heading.2.markdown | #BD93F9 | bold |
| heading.3.markdown | #BD93F9 | |
| source.ts meta.function.ts meta.return.type.ts entity.name.type.ts, source.ts meta.block.ts meta.interface.ts meta.method.declaration.ts meta.return.type.ts entity.name.type.ts | #20999D | — |
| constant.numeric.decimal.ts | #ffa0e9 | — |
| variable.parameter.fsharp, binding.fsharp | #FFFFD8 | — |
| variable.fsharp, binding.fsharp | #D1D6FC | — |
| entity.name.type.class.cs | #4BF7FC | — |
| entity.name.type.cs | #4BF7FC | — |
| entity.name.variable.local.cs | #E2E0F9 | — |
| variable.other.object.cs | #E2E0F9 | — |
| variable.other.object.property.cs | #bfaafd | — |
| keyword.type.cs | #9E94F8 | — |
| keyword.other.new.cs | #9E94F8 | — |
| source.cs constant.numeric | #ffa0e9 | — |
| constant.language.null.cs | #ffa0e9 | — |
| entity.name.function.cs | #D38AFC | — |
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}!`;
}