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 | #98CBED6e | — |
| comment.block.html | #96CCE66e | — |
| comment.block.java | #98CBED6e | — |
| comment.block.javadoc.java | #96CCE66e | — |
| comment.block.powershell | #96CCE66e | — |
| comment.block.xml | #98CAEC6e | — |
| comment.line.double-slash.c | #98CBED6e | — |
| comment.line.double-slash.cpp | #90CDEB6e | — |
| comment.line.double-slash.java | #98CBED6e | — |
| comment.line.double-slash.js | #96CCE66e | — |
| comment.line.number-sign.makefile | #98CAEC6e | — |
| comment.line.number-sign.python | #98CAEC6e | — |
| comment.line.number-sign.yaml | #98CAEC6e | — |
| comment.line.percentage.erlang | #90CDEB6e | — |
| comment.line.powershell | #98CAEC6e | — |
| comment.source.cmake | #96CCE66e | — |
| comment.source.cmakecache | #90CDEB6e | — |
| constant.character | #A8C4FEde | — |
| constant.character.character-class.regexp | #90B1F1de | — |
| constant.character.escape | #EC8989de | — |
| constant.character.set.regexp | #0FDD98de | — |
| constant.language | #14E314de | — |
| constant.numeric | #FEAAE2de | — |
| constant.numeric.dec.python | #F59E9Ede | — |
| constant.other.caps.python | #0CDF99de | — |
| constant.other.character-class.regexp | #13DE9Cde | — |
| constant.other.character-class.set.regexp | #CBCB16de | — |
| constant.other.color.rgb-value | #EF8989de | — |
| constant.other.placeholder | #83A5E8de | — |
| constant.other.rgb-value | #13E313de | — |
| constant.regexp | #13E213de | — |
| constant.sha.git-rebase | #EA8A8Ade | — |
| emphasis | #D0B9FEde | — |
| entity.name.class | #F397D5de | — |
| entity.name.function | #EB81C8de | — |
| entity.name.function.preprocessor | #CBCB13de | — |
| entity.name.function.python | #12E212de | — |
| entity.name.label | #14E214de | — |
| entity.name.namespace | #D0B9FEde | — |
| entity.name.operator | #0EE30Ede | — |
| entity.name.operator.custom-literal | #83A6EDde | — |
| entity.name.scope-resolution | #CBB5F9de | — |
| entity.name.tag | #FEAAE2de | — |
| entity.name.tag.css | #CCB2FEde | — |
| entity.name.type | #CACA16de | — |
| entity.name.variable | #ED8989de | — |
| entity.other.attribute | #CBCB16de | — |
| entity.other.attribute-name | #CACA16de | — |
| entity.other.attribute-name.class.css | #CACA09de | — |
| entity.other.attribute-name.class.mixin.css | #A8C4FEde | — |
| entity.other.attribute-name.id | #0FDD98de | — |
| entity.other.attribute-name.id.css | #14DF9Bde | — |
| entity.other.attribute-name.parent-selector.css | #CBCB16de | — |
| entity.other.attribute-name.pseudo-class.css | #14E214de | — |
| entity.other.attribute-name.pseudo-element.css | #CBCB10de | — |
| entity.other.attribute-name.scss | #F397D5de | — |
| entity.other.document.begin.yaml | #98CAEC6e | — |
| entity.other.inherited-class | #CBCB15de | — |
| header | #90B1F1de | — |
| invalid | #EC8989de | — |
| keyword | #13E313de | — |
| keyword.codetag.notation.python | #13E213de | — |
| keyword.control | #12E212de | — |
| keyword.control.anchor.regexp | #B697F3de | — |
| keyword.control.import.python | #83A5E9de | — |
| keyword.operator | #BB9EF5de | — |
| keyword.operator.alignas | #14DF9Bde | — |
| keyword.operator.alignof | #CBCB16de | — |
| keyword.operator.cast | #A8C5FEde | — |
| keyword.operator.delete | #CACA10de | — |
| keyword.operator.documentation.powershell | #98CBED6e | — |
| keyword.operator.expression | #12E212de | — |
| keyword.operator.instanceof | #F19090de | — |
| keyword.operator.logical.python | #14E314de | — |
| keyword.operator.minus.exponent | #89ABEFde | — |
| keyword.operator.negation.regexp | #0FDE9Bde | — |
| keyword.operator.new | #B396EEde | — |
| keyword.operator.noexcept | #11E211de | — |
| keyword.operator.or.regexp | #CBCB16de | — |
| keyword.operator.plus.exponent | #B397ECde | — |
| keyword.operator.quantifier.regexp | #14E314de | — |
| keyword.operator.sizeof | #FEA9E2de | — |
| keyword.operator.typeid | #CBCB16de | — |
| keyword.operator.wordlike | #89ABEFde | — |
| keyword.other.operator | #A7C4FEde | — |
| keyword.other.package.java | #FEAAE3de | — |
| keyword.other.unit | #0FE20Fde | — |
| keyword.other.using | #B495F1de | — |
| markup.bold | #FEB0B0de | — |
| markup.changed | #F59ED8de | — |
| markup.deleted | #A6C1F6de | — |
| markup.fenced_code.block.markdown | #0FDE9Bde | — |
| markup.heading | #12E212de | — |
| markup.inline.raw | #CACA0Fde | — |
| markup.inserted | #CCB2FEde | — |
| markup.italic | #EA82C7de | — |
| markup.raw.block.markdown | #89ABEFde | — |
| markup.strikethrough | #FEB0B0de | — |
| markup.underline | #14E214de | — |
| meta.block.c | #CBCB16de | — |
| meta.block.c | #B397ECde | — |
| meta.class.java | #D0B9FEde | — |
| meta.definition.variable.name | #CACA12de | — |
| meta.diff.header | #CBCB10de | — |
| meta.embedded | #E983C7de | — |
| meta.embedded.assembly | #ED83CAde | — |
| meta.function-call.arguments.python | #CCB2FEde | — |
| meta.function-call.python | #83A5EBde | — |
| meta.member.access.python | #0EE20Ede | — |
| meta.method.java | #14DE9Cde | — |
| meta.object-literal.key | #CBCB14de | — |
| meta.paragraph.markdown | #0EE30Ede | — |
| meta.preprocessor | #0EE20Ede | — |
| meta.preprocessor.numeric | #EF8989de | — |
| meta.preprocessor.string | #14DF9Cde | — |
| meta.scope.prerequisites.makefile | #F6A6DBde | — |
| meta.structure.dictionary.json.comments | #98CAEC6e | — |
| meta.structure.dictionary.key.python | #0CDF99de | — |
| meta.structure.dictionary.value.json.comments | #98CAEC6e | — |
| meta.template.expression | #FEAAE2de | — |
| meta.type.cast.expr | #CBCB16de | — |
| meta.type.new.expr | #14E214de | — |
| parameter | #F59ED8de | — |
| punctuation.character.set.begin.regexp | #13E213de | — |
| punctuation.character.set.end.regexp | #F6A6DBde | — |
| punctuation.definition.array.begin.json | #14DE9Bde | — |
| punctuation.definition.character-class.regexp | #14DE9Bde | — |
| punctuation.definition.comment | #90CDEB6e | — |
| punctuation.definition.comment.json.comments | #98CAEC6e | — |
| punctuation.definition.comment.python | #90CDEB6e | — |
| punctuation.definition.dictionary.begin.json | #EA8A8Ade | — |
| punctuation.definition.dictionary.end.json | #B396EEde | — |
| punctuation.definition.group.assertion.regexp | #11DE9Ade | — |
| punctuation.definition.group.regexp | #E883C7de | — |
| punctuation.definition.list.begin.json | #CCB2FEde | — |
| punctuation.definition.list.begin.markdown | #F8ADADde | — |
| punctuation.definition.list.begin.python | #B397ECde | — |
| punctuation.definition.list.end.json | #CBCB16de | — |
| punctuation.definition.list.end.markdown | #B396EEde | — |
| punctuation.definition.list.end.python | #EC8989de | — |
| punctuation.definition.parameters.begin.python | #CACA09de | — |
| punctuation.definition.parameters.end.bracket.round.java | #CACA16de | — |
| punctuation.definition.quote.begin.markdown | #D0B9FEde | — |
| punctuation.definition.tag | #14E214de | — |
| punctuation.definition.template-expression.begin | #B697F3de | — |
| punctuation.definition.template-expression.end | #83A5E8de | — |
| punctuation.section.class.begin.bracket.curly.java | #ED83CAde | — |
| punctuation.section.embedded | #FEAAE2de | — |
| punctuation.section.embedded.begin.php | #CBCB16de | — |
| punctuation.section.embedded.end.php | #14E314de | — |
| punctuation.terminator.java | #EA82C7de | — |
| source.cmake | #14E314de | — |
| source.coffee.embedded | #FEA9E2de | — |
| source.cpp | #D0B9FEde | — |
| source.css.less | #14DE9Bde | — |
| source.groovy.embedded | #14DF9Ade | — |
| source.java | #C6ADF8de | — |
| source.java-properties | #10E210de | — |
| source.json.comments | #96CCE66e | — |
| source.makefile | #14E214de | — |
| source.powershell | #10DE99de | — |
| source.powershell.variable.other.member | #B495F0de | — |
| source.python | #12DD99de | — |
| storage | #EF8989de | — |
| storage.modifier | #CBCB16de | — |
| storage.modifier.import.java | #CBCB10de | — |
| storage.modifier.package.java | #9EBBF5de | — |
| storage.type | #CACA10de | — |
| storage.type.annotation.groovy | #FEAAE3de | — |
| storage.type.annotation.java | #0CE40Cde | — |
| storage.type.boolean.go | #12DD99de | — |
| storage.type.byte.go | #14E214de | — |
| storage.type.cs | #F59ED8de | — |
| storage.type.error.go | #14DE9Cde | — |
| storage.type.generic.cs | #0EDE9Ade | — |
| storage.type.generic.groovy | #9EBBF5de | — |
| storage.type.generic.java | #EC8989de | — |
| storage.type.groovy | #14DE9Bde | — |
| storage.type.java | #B396EEde | — |
| storage.type.modifier.cs | #9EBBF5de | — |
| storage.type.numeric.go | #F39797de | — |
| storage.type.object.array.groovy | #EF89CDde | — |
| storage.type.object.array.java | #9EBBF5de | — |
| storage.type.parameters.groovy | #A7C4FEde | — |
| storage.type.primitive.array.groovy | #CCB2FEde | — |
| storage.type.primitive.array.java | #FEA9E2de | — |
| storage.type.primitive.groovy | #12DD99de | — |
| storage.type.primitive.java | #0EE20Ede | — |
| storage.type.rune.go | #F190D1de | — |
| storage.type.string.go | #12DD99de | — |
| storage.type.token.java | #14DF9Cde | — |
| storage.type.uintptr.go | #83A5E8de | — |
| storage.type.variable.cs | #13E313de | — |
| string | #9EBBF5de | — |
| string.quoted.docstring.multi.python | #96CCE66e | — |
| string.regexp | #EA8B8Bde | — |
| string.tag | #14E214de | — |
| string.value | #82A5EBde | — |
| strong | #F6A6DBde | — |
| support.class | #14DE9Bde | — |
| support.constant.color | #F190D1de | — |
| support.constant.dom | #CACA12de | — |
| support.constant.font-name | #CBCB14de | — |
| support.constant.handlebars | #FEB0B0de | — |
| support.constant.json | #CACA16de | — |
| support.constant.math | #CBCB16de | — |
| support.constant.media | #82A5EBde | — |
| support.constant.media-type | #F6A6DBde | — |
| support.constant.property-value | #0EE20Ede | — |
| support.function | #10E210de | — |
| support.function.git-rebase | #B396EEde | — |
| support.other.parenthesis.regexp | #C6ADF8de | — |
| support.type | #EA8A8Ade | — |
| support.type.property-name | #14DF9Cde | — |
| support.type.vendored.property-name | #CACA16de | — |
| support.variable | #82A5EBde | — |
| token.debug-token | #83A5E8de | — |
| token.error-token | #C6ADF8de | — |
| token.info-token | #10E210de | — |
| token.warn-token | #ED8989de | — |
| variable | #CBCB16de | — |
| variable.css | #10DE99de | — |
| variable.language | #0FDE9Bde | — |
| variable.language.wildcard.java | #EA8A8Ade | — |
| variable.other.constant | #EC8989de | — |
| variable.other.definition.java | #14E214de | — |
| variable.other.enummember | #D0B9FEde | — |
| variable.other.less | #B495F0de | — |
| variable.other.object.java | #CBCB16de | — |
| variable.other.object.property.java | #CBCB13de | — |
| variable.parameter.c | #E983C7de | — |
| variable.parameter.function.language.python | #BB9EF5de | — |
| variable.parameter.java | #11E211de | — |
| variable.scss | #FEAAE2de | — |
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}!`;
}