viiv
Publisher: B.WThemes in package: 206
A VsCode theme that puts developers into focus mode quickly.
A VsCode theme that puts developers into focus mode quickly.
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.block.documentation.c | #BEBEBE6e | — |
| comment.block.html | #BFBFBF6e | — |
| comment.block.java | #BEBEBE6e | — |
| comment.block.javadoc.java | #BFBFBF6e | — |
| comment.block.powershell | #BFBFBF6e | — |
| comment.block.xml | #BFBFBF6e | — |
| comment.line.double-slash.c | #BFBFBF6e | — |
| comment.line.double-slash.cpp | #BFBFBF6e | — |
| comment.line.double-slash.java | #BEBEBE6e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #BEBEBE6e | — |
| comment.line.number-sign.python | #BFBFBF6e | — |
| comment.line.number-sign.yaml | #BEBEBE6e | — |
| comment.line.percentage.erlang | #BFBFBF6e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BEBEBE6e | — |
| constant.character | #F9B238de | — |
| constant.character.character-class.regexp | #FEA6BEde | — |
| constant.character.escape | #9898F3de | — |
| constant.character.set.regexp | #F8B239de | — |
| constant.language | #F487A4de | — |
| constant.numeric | #B7B7FEde | — |
| constant.numeric.dec.python | #09DC4Bde | — |
| constant.other.caps.python | #F27C9Bde | — |
| constant.other.character-class.regexp | #FEA7BEde | — |
| constant.other.character-class.set.regexp | #6DD80Dde | — |
| constant.other.color.rgb-value | #6ED80Ede | — |
| constant.other.placeholder | #DE79F0de | — |
| constant.other.rgb-value | #E387F4de | — |
| constant.regexp | #F487A4de | — |
| constant.sha.git-rebase | #F07D9Bde | — |
| emphasis | #0EDC4Fde | — |
| entity.name.class | #6ED60Fde | — |
| entity.name.function | #0DDC4Dde | — |
| entity.name.function.preprocessor | #F8B337de | — |
| entity.name.function.python | #9898F5de | — |
| entity.name.label | #5DCDEBde | — |
| entity.name.namespace | #E896F7de | — |
| entity.name.operator | #FAB236de | — |
| entity.name.operator.custom-literal | #F8B239de | — |
| entity.name.scope-resolution | #F89DB5de | — |
| entity.name.tag | #B4B4FEde | — |
| entity.name.tag.css | #0CDC4Cde | — |
| entity.name.type | #FEA7BEde | — |
| entity.name.variable | #F8B337de | — |
| entity.other.attribute | #0ADD4Ede | — |
| entity.other.attribute-name | #E180F3de | — |
| entity.other.attribute-name.class.css | #FEA6BEde | — |
| entity.other.attribute-name.class.mixin.css | #F07D9Bde | — |
| entity.other.attribute-name.id | #35CFF9de | — |
| entity.other.attribute-name.id.css | #ECA5F9de | — |
| entity.other.attribute-name.parent-selector.css | #EFA4FEde | — |
| entity.other.attribute-name.pseudo-class.css | #B8B8FEde | — |
| entity.other.attribute-name.pseudo-element.css | #F487A4de | — |
| entity.other.attribute-name.scss | #32CFF8de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #39CFF8de | — |
| header | #6ED80Ede | — |
| invalid | #0EDC4Fde | — |
| keyword | #0EDD50de | — |
| keyword.codetag.notation.python | #36CFF9de | — |
| keyword.control | #6ED80Ede | — |
| keyword.control.anchor.regexp | #0FDD50de | — |
| keyword.control.import.python | #E896F7de | — |
| keyword.operator | #6AD809de | — |
| keyword.operator.alignas | #F8B239de | — |
| keyword.operator.alignof | #B4B4FEde | — |
| keyword.operator.cast | #6AD809de | — |
| keyword.operator.delete | #F8B23Cde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #FEA7BEde | — |
| keyword.operator.instanceof | #6ED60Fde | — |
| keyword.operator.logical.python | #9D9DF8de | — |
| keyword.operator.minus.exponent | #0EDC4Fde | — |
| keyword.operator.negation.regexp | #F0A3FEde | — |
| keyword.operator.new | #5DCDEBde | — |
| keyword.operator.noexcept | #0EDC4Fde | — |
| keyword.operator.or.regexp | #9999F3de | — |
| keyword.operator.plus.exponent | #6DD80Ade | — |
| keyword.operator.quantifier.regexp | #F8B239de | — |
| keyword.operator.sizeof | #9797F7de | — |
| keyword.operator.typeid | #6DD80Dde | — |
| keyword.operator.wordlike | #9999F3de | — |
| keyword.other.operator | #0EDC4Fde | — |
| keyword.other.package.java | #5DCDEBde | — |
| keyword.other.unit | #2ECFF8de | — |
| keyword.other.using | #FEA7BEde | — |
| markup.bold | #6DD80Ede | — |
| markup.changed | #6AD809de | — |
| markup.deleted | #B7B7FEde | — |
| markup.fenced_code.block.markdown | #9898F5de | — |
| markup.heading | #FEA7BEde | — |
| markup.inline.raw | #FEA7BEde | — |
| markup.inserted | #0EDD50de | — |
| markup.italic | #9898F4de | — |
| markup.raw.block.markdown | #B8B8FEde | — |
| markup.strikethrough | #39CFF8de | — |
| markup.underline | #6ED60Fde | — |
| meta.block.c | #DE7AEFde | — |
| meta.block.c | #39CFF8de | — |
| meta.class.java | #F8B23Cde | — |
| meta.definition.variable.name | #F0A3FEde | — |
| meta.diff.header | #DE7AEFde | — |
| meta.embedded | #E387F4de | — |
| meta.embedded.assembly | #E387F4de | — |
| meta.function-call.arguments.python | #6DD80Dde | — |
| meta.function-call.python | #F8B239de | — |
| meta.member.access.python | #0EDC50de | — |
| meta.method.java | #6ED60Fde | — |
| meta.object-literal.key | #F9A5BBde | — |
| meta.paragraph.markdown | #08DC4Dde | — |
| meta.preprocessor | #EA9DF8de | — |
| meta.preprocessor.numeric | #F68EA9de | — |
| meta.preprocessor.string | #F8B239de | — |
| meta.scope.prerequisites.makefile | #FEA6BEde | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #F8B337de | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #6DD80Dde | — |
| meta.type.cast.expr | #6DD80Cde | — |
| meta.type.new.expr | #36CFF8de | — |
| parameter | #FEA2BBde | — |
| punctuation.character.set.begin.regexp | #ECA5F9de | — |
| punctuation.character.set.end.regexp | #6ED80Ade | — |
| punctuation.definition.array.begin.json | #FEA2BBde | — |
| punctuation.definition.character-class.regexp | #39CFF8de | — |
| punctuation.definition.comment | #BEBEBE6e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #BEBEBE6e | — |
| punctuation.definition.dictionary.begin.json | #6AD809de | — |
| punctuation.definition.dictionary.end.json | #0EDC4Fde | — |
| punctuation.definition.group.assertion.regexp | #A5A5F9de | — |
| punctuation.definition.group.regexp | #ACACFAde | — |
| punctuation.definition.list.begin.json | #B8B8FEde | — |
| punctuation.definition.list.begin.markdown | #35CFF8de | — |
| punctuation.definition.list.begin.python | #0DDD4Fde | — |
| punctuation.definition.list.end.json | #ECA5F9de | — |
| punctuation.definition.list.end.markdown | #E58EF6de | — |
| punctuation.definition.list.end.python | #F8B337de | — |
| punctuation.definition.parameters.begin.python | #38CFF8de | — |
| punctuation.definition.parameters.end.bracket.round.java | #30CFFAde | — |
| punctuation.definition.quote.begin.markdown | #6ED60Fde | — |
| punctuation.definition.tag | #9999F3de | — |
| punctuation.definition.template-expression.begin | #FEA7BEde | — |
| punctuation.definition.template-expression.end | #F0A3FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #0ADD4Ede | — |
| punctuation.section.embedded | #30CFFAde | — |
| punctuation.section.embedded.begin.php | #6DD80Ede | — |
| punctuation.section.embedded.end.php | #EBB65Dde | — |
| punctuation.terminator.java | #F17C9Bde | — |
| source.cmake | #FEA6BEde | — |
| source.coffee.embedded | #F3809Ede | — |
| source.cpp | #F8B23Cde | — |
| source.css.less | #6ED80Fde | — |
| source.groovy.embedded | #F8B339de | — |
| source.java | #36CFF8de | — |
| source.java-properties | #39CFF9de | — |
| source.json.comments | #BEBEBE6e | — |
| source.makefile | #F07D9Cde | — |
| source.powershell | #DE79F0de | — |
| source.powershell.variable.other.member | #DE7AEFde | — |
| source.python | #35CFF9de | — |
| storage | #0FDD50de | — |
| storage.modifier | #37CFF8de | — |
| storage.modifier.import.java | #E896F7de | — |
| storage.modifier.package.java | #DE7AEFde | — |
| storage.type | #0BDD4Fde | — |
| storage.type.annotation.groovy | #F8B239de | — |
| storage.type.annotation.java | #F8B23Bde | — |
| storage.type.boolean.go | #9797F7de | — |
| storage.type.byte.go | #9797F7de | — |
| storage.type.cs | #FEA2BBde | — |
| storage.type.error.go | #F0A3FEde | — |
| storage.type.generic.cs | #6ED60Fde | — |
| storage.type.generic.groovy | #9999F3de | — |
| storage.type.generic.java | #39CFF9de | — |
| storage.type.groovy | #9797F5de | — |
| storage.type.java | #6DD80Dde | — |
| storage.type.modifier.cs | #3ACFF8de | — |
| storage.type.numeric.go | #DE79F0de | — |
| storage.type.object.array.groovy | #39CFF8de | — |
| storage.type.object.array.java | #F0A3FEde | — |
| storage.type.parameters.groovy | #EFA5FEde | — |
| storage.type.primitive.array.groovy | #9D9DF8de | — |
| storage.type.primitive.array.java | #0EDC4Fde | — |
| storage.type.primitive.groovy | #B7B7FEde | — |
| storage.type.primitive.java | #39CFF8de | — |
| storage.type.rune.go | #9D9DF8de | — |
| storage.type.string.go | #39CFF8de | — |
| storage.type.token.java | #F3809Ede | — |
| storage.type.uintptr.go | #38CFF8de | — |
| storage.type.variable.cs | #6DD80Cde | — |
| string | #3ACFF8de | — |
| string.quoted.docstring.multi.python | #BFBFBF6e | — |
| string.regexp | #B8B8FEde | — |
| string.tag | #38CFF8de | — |
| string.value | #EFA5FEde | — |
| strong | #37CFF8de | — |
| support.class | #F9A5BBde | — |
| support.constant.color | #F8B23Cde | — |
| support.constant.dom | #F9A5BBde | — |
| support.constant.font-name | #9797F6de | — |
| support.constant.handlebars | #F8B339de | — |
| support.constant.json | #FEA2BBde | — |
| support.constant.math | #E387F4de | — |
| support.constant.media | #6DD80Cde | — |
| support.constant.media-type | #37CFF8de | — |
| support.constant.property-value | #DE79F0de | — |
| support.function | #F8B239de | — |
| support.function.git-rebase | #DE79F0de | — |
| support.other.parenthesis.regexp | #0BDD4Fde | — |
| support.type | #9898F3de | — |
| support.type.property-name | #0EDC4Fde | — |
| support.type.vendored.property-name | #9898F4de | — |
| support.variable | #3ACFF8de | — |
| token.debug-token | #6ED80Ade | — |
| token.error-token | #B4B4FEde | — |
| token.info-token | #F9B23Bde | — |
| token.warn-token | #08DC4Dde | — |
| variable | #6DD80Ede | — |
| variable.css | #FAB236de | — |
| variable.language | #38CFF8de | — |
| variable.language.wildcard.java | #6CD70Bde | — |
| variable.other.constant | #0FDD50de | — |
| variable.other.definition.java | #9D9DF8de | — |
| variable.other.enummember | #0CDC4Cde | — |
| variable.other.less | #9999F3de | — |
| variable.other.object.java | #6ED80Ede | — |
| variable.other.object.property.java | #F487A4de | — |
| variable.parameter.c | #DE78F2de | — |
| variable.parameter.function.language.python | #30CFFAde | — |
| variable.parameter.java | #0CDC4Cde | — |
| variable.scss | #6ED60Fde | — |
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}!`;
}