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 | #304D736e | — |
| comment.block.html | #314D766e | — |
| comment.block.java | #314C706e | — |
| comment.block.javadoc.java | #314D766e | — |
| comment.block.powershell | #2E4E6D6e | — |
| comment.block.xml | #304D736e | — |
| comment.line.double-slash.c | #314C706e | — |
| comment.line.double-slash.cpp | #304D736e | — |
| comment.line.double-slash.java | #2E4E6D6e | — |
| comment.line.double-slash.js | #304D736e | — |
| comment.line.number-sign.makefile | #314D766e | — |
| comment.line.number-sign.python | #314C706e | — |
| comment.line.number-sign.yaml | #2E4E6D6e | — |
| comment.line.percentage.erlang | #2E4E6D6e | — |
| comment.line.powershell | #314C706e | — |
| comment.source.cmake | #314C706e | — |
| comment.source.cmakecache | #2E4E6D6e | — |
| constant.character | #0A571Cde | — |
| constant.character.character-class.regexp | #2C2CC7de | — |
| constant.character.escape | #714009de | — |
| constant.character.set.regexp | #772889de | — |
| constant.language | #09545Dde | — |
| constant.numeric | #990934de | — |
| constant.numeric.dec.python | #2E2ED4de | — |
| constant.other.caps.python | #0A571Cde | — |
| constant.other.character-class.regexp | #0A545Ede | — |
| constant.other.character-class.set.regexp | #0A571Cde | — |
| constant.other.color.rgb-value | #0A571Cde | — |
| constant.other.placeholder | #34461Bde | — |
| constant.other.rgb-value | #1B4625de | — |
| constant.regexp | #0A571Cde | — |
| constant.sha.git-rebase | #990A34de | — |
| emphasis | #1A3B3Fde | — |
| entity.name.class | #0A535Dde | — |
| entity.name.function | #800A99de | — |
| entity.name.function.preprocessor | #303F1Ade | — |
| entity.name.function.python | #084149de | — |
| entity.name.label | #0808BDde | — |
| entity.name.namespace | #872743de | — |
| entity.name.operator | #622235de | — |
| entity.name.operator.custom-literal | #800A99de | — |
| entity.name.scope-resolution | #094D57de | — |
| entity.name.tag | #0A545Fde | — |
| entity.name.tag.css | #892843de | — |
| entity.name.type | #355409de | bold |
| entity.name.variable | #2E2ED2de | — |
| entity.other.attribute | #6F400Ade | — |
| entity.other.attribute-name | #2E2ED4de | — |
| entity.other.attribute-name.class.css | #083F14de | — |
| entity.other.attribute-name.class.mixin.css | #34461Bde | — |
| entity.other.attribute-name.id | #355509de | — |
| entity.other.attribute-name.id.css | #990A34de | — |
| entity.other.attribute-name.parent-selector.css | #990934de | — |
| entity.other.attribute-name.pseudo-class.css | #09545Dde | — |
| entity.other.attribute-name.pseudo-element.css | #990A34de | — |
| entity.other.attribute-name.scss | #0A571Cde | — |
| entity.other.document.begin.yaml | #314D766e | — |
| entity.other.inherited-class | #0A571Cde | — |
| header | #2C2CD2de | — |
| invalid | #2B2BAEde | — |
| keyword | #990A35de | bold |
| keyword.codetag.notation.python | #0A571Dde | bold |
| keyword.control | #21535Ade | bold |
| keyword.control.anchor.regexp | #543B1Fde | bold |
| keyword.control.import.python | #21535Ade | bold |
| keyword.operator | #70400Ade | bold |
| keyword.operator.alignas | #36540Ade | bold |
| keyword.operator.alignof | #70277Fde | bold |
| keyword.operator.cast | #09545Dde | bold |
| keyword.operator.delete | #2B2BA6de | bold |
| keyword.operator.documentation.powershell | #304D736e | bold |
| keyword.operator.expression | #0909BCde | bold |
| keyword.operator.instanceof | #990934de | bold |
| keyword.operator.logical.python | #800999de | bold |
| keyword.operator.minus.exponent | #6F400Ade | bold |
| keyword.operator.negation.regexp | #2C2CC7de | bold |
| keyword.operator.new | #70400Bde | bold |
| keyword.operator.noexcept | #35530Ade | bold |
| keyword.operator.or.regexp | #892843de | bold |
| keyword.operator.plus.exponent | #762887de | bold |
| keyword.operator.quantifier.regexp | #35530Ade | bold |
| keyword.operator.sizeof | #0A581Dde | bold |
| keyword.operator.typeid | #0A571Dde | bold |
| keyword.operator.wordlike | #0A581Cde | bold |
| keyword.other.operator | #2C2CBFde | bold |
| keyword.other.package.java | #6F3F0Ade | bold |
| keyword.other.unit | #0A571Cde | bold |
| keyword.other.using | #355309de | bold |
| markup.bold | #36540Ade | — |
| markup.changed | #692338de | — |
| markup.deleted | #2C2CCFde | — |
| markup.fenced_code.block.markdown | #762887de | — |
| markup.heading | #35540Ade | — |
| markup.inline.raw | #644623de | — |
| markup.inserted | #35530Ade | — |
| markup.italic | #990A34de | — |
| markup.raw.block.markdown | #2D2DD3de | — |
| markup.strikethrough | #782787de | — |
| markup.underline | #2A2A9Ede | — |
| meta.block.c | #084917de | — |
| meta.block.c | #0A535Dde | — |
| meta.class.java | #09571Bde | — |
| meta.definition.variable.name | #0A571Cde | — |
| meta.diff.header | #355409de | — |
| meta.embedded | #34461Bde | — |
| meta.embedded.assembly | #704009de | — |
| meta.function-call.arguments.python | #654523de | — |
| meta.function-call.python | #723F06de | — |
| meta.member.access.python | #800999de | — |
| meta.method.java | #990732de | — |
| meta.object-literal.key | #09571Bde | — |
| meta.paragraph.markdown | #624422de | — |
| meta.preprocessor | #80089Ade | — |
| meta.preprocessor.numeric | #990A35de | — |
| meta.preprocessor.string | #70400Ade | — |
| meta.scope.prerequisites.makefile | #084917de | — |
| meta.structure.dictionary.json.comments | #314D766e | — |
| meta.structure.dictionary.key.python | #085119de | — |
| meta.structure.dictionary.value.json.comments | #2E4E6D6e | — |
| meta.template.expression | #0A535Dde | — |
| meta.type.cast.expr | #09454Dde | bold |
| meta.type.new.expr | #1D474Dde | bold |
| parameter | #0A545Ede | — |
| punctuation.character.set.begin.regexp | #990631de | — |
| punctuation.character.set.end.regexp | #6F400Bde | — |
| punctuation.definition.array.begin.json | #0A571Cde | — |
| punctuation.definition.character-class.regexp | #1A3B3Fde | — |
| punctuation.definition.comment | #314D766e | — |
| punctuation.definition.comment.json.comments | #314D766e | — |
| punctuation.definition.comment.python | #314D766e | — |
| punctuation.definition.dictionary.begin.json | #2D2DD3de | — |
| punctuation.definition.dictionary.end.json | #7F0A99de | — |
| punctuation.definition.group.assertion.regexp | #714009de | — |
| punctuation.definition.group.regexp | #094D57de | — |
| punctuation.definition.list.begin.json | #5B3F21de | — |
| punctuation.definition.list.begin.markdown | #990A34de | — |
| punctuation.definition.list.begin.python | #2D2DD4de | — |
| punctuation.definition.list.end.json | #3D531Fde | — |
| punctuation.definition.list.end.markdown | #345407de | — |
| punctuation.definition.list.end.python | #872743de | — |
| punctuation.definition.parameters.begin.python | #800A99de | — |
| punctuation.definition.parameters.end.bracket.round.java | #0A571Cde | — |
| punctuation.definition.quote.begin.markdown | #085119de | — |
| punctuation.definition.tag | #724008de | — |
| punctuation.definition.template-expression.begin | #752787de | — |
| punctuation.definition.template-expression.end | #990934de | — |
| punctuation.section.class.begin.bracket.curly.java | #2E2ED4de | — |
| punctuation.section.embedded | #980933de | — |
| punctuation.section.embedded.begin.php | #990531de | — |
| punctuation.section.embedded.end.php | #2D2DD3de | — |
| punctuation.terminator.java | #6F400Ade | — |
| source.cmake | #282887de | — |
| source.coffee.embedded | #70400Bde | — |
| source.cpp | #355409de | — |
| source.css.less | #0A561Cde | — |
| source.groovy.embedded | #632570de | — |
| source.java | #1F4D54de | — |
| source.java-properties | #70277Fde | — |
| source.json.comments | #314C706e | — |
| source.makefile | #0A581Dde | — |
| source.powershell | #35530Ade | — |
| source.powershell.variable.other.member | #9A0833de | — |
| source.python | #2D2DD3de | — |
| storage | #723F05de | — |
| storage.modifier | #35540Ade | — |
| storage.modifier.import.java | #81059Bde | — |
| storage.modifier.package.java | #345505de | — |
| storage.type | #46321Bde | bold |
| storage.type.annotation.groovy | #81059Bde | bold |
| storage.type.annotation.java | #78263Ede | bold |
| storage.type.boolean.go | #5D2369de | bold |
| storage.type.byte.go | #345507de | bold |
| storage.type.cs | #724008de | bold |
| storage.type.error.go | #70253Bde | bold |
| storage.type.generic.cs | #6F400Ade | bold |
| storage.type.generic.groovy | #0A581Dde | bold |
| storage.type.generic.java | #2D2DD4de | bold |
| storage.type.groovy | #782787de | bold |
| storage.type.java | #0A545Ede | bold |
| storage.type.modifier.cs | #0A581Cde | bold |
| storage.type.numeric.go | #0A581Dde | bold |
| storage.type.object.array.groovy | #355508de | bold |
| storage.type.object.array.java | #6F400Ade | bold |
| storage.type.parameters.groovy | #084917de | bold |
| storage.type.primitive.array.groovy | #34461Bde | bold |
| storage.type.primitive.array.java | #09454Dde | bold |
| storage.type.primitive.groovy | #0A535Dde | bold |
| storage.type.primitive.java | #81059Bde | bold |
| storage.type.rune.go | #07454Ede | bold |
| storage.type.string.go | #70400Ade | bold |
| storage.type.token.java | #35530Ade | bold |
| storage.type.uintptr.go | #872744de | bold |
| storage.type.variable.cs | #1B4625de | bold |
| string | #35530Ade | — |
| string.quoted.docstring.multi.python | #314C706e | — |
| string.regexp | #714007de | — |
| string.tag | #892845de | — |
| string.value | #345507de | — |
| strong | #882745de | — |
| support.class | #6F400Ade | — |
| support.constant.color | #0A535Dde | — |
| support.constant.dom | #6F400Ade | — |
| support.constant.font-name | #09581Cde | — |
| support.constant.handlebars | #81059Bde | — |
| support.constant.json | #723F06de | — |
| support.constant.math | #723F06de | — |
| support.constant.media | #0909B8de | — |
| support.constant.media-type | #35530Ade | bold |
| support.constant.property-value | #800999de | — |
| support.function | #35530Ade | — |
| support.function.git-rebase | #990A34de | — |
| support.other.parenthesis.regexp | #35530Ade | — |
| support.type | #35540Ade | bold |
| support.type.property-name | #990934de | bold |
| support.type.vendored.property-name | #2D2DD4de | bold |
| support.variable | #862842de | — |
| token.debug-token | #2C2CBFde | — |
| token.error-token | #0A571Cde | — |
| token.info-token | #34461Bde | — |
| token.warn-token | #78263Ede | — |
| variable | #2D2DD3de | — |
| variable.css | #1F532Ade | — |
| variable.language | #892845de | — |
| variable.language.wildcard.java | #094D18de | — |
| variable.other.constant | #2C2CD2de | — |
| variable.other.definition.java | #09581Cde | — |
| variable.other.enummember | #892845de | — |
| variable.other.less | #303F1Ade | — |
| variable.other.object.java | #34520Ade | — |
| variable.other.object.property.java | #70277Fde | — |
| variable.parameter.c | #35530Ade | — |
| variable.parameter.function.language.python | #0A535Dde | — |
| variable.parameter.java | #0A571Dde | — |
| variable.scss | #0A571Cde | — |
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}!`;
}