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 | #7FD97F6e | — |
| comment.block.html | #78DA786e | — |
| comment.block.java | #7FD97F6e | — |
| comment.block.javadoc.java | #7FD97F6e | — |
| comment.block.powershell | #78DA786e | — |
| comment.block.xml | #78DA786e | — |
| comment.line.double-slash.c | #81D9816e | — |
| comment.line.double-slash.cpp | #7FD97F6e | — |
| comment.line.double-slash.java | #7FD97F6e | — |
| comment.line.double-slash.js | #7CDB7C6e | — |
| comment.line.number-sign.makefile | #78DA786e | — |
| comment.line.number-sign.python | #7FD97F6e | — |
| comment.line.number-sign.yaml | #81D9816e | — |
| comment.line.percentage.erlang | #78DA786e | — |
| comment.line.powershell | #7CDB7C6e | — |
| comment.source.cmake | #81D9816e | — |
| comment.source.cmakecache | #78DA786e | — |
| constant.character | #DAB5FEde | — |
| constant.character.character-class.regexp | #15E415de | — |
| constant.character.escape | #F7AEE5de | — |
| constant.character.set.regexp | #A0CAF4de | — |
| constant.language | #0FE0ACde | — |
| constant.numeric | #15DEADde | — |
| constant.numeric.dec.python | #EC8C8Cde | — |
| constant.other.caps.python | #F299DCde | — |
| constant.other.character-class.regexp | #12E412de | — |
| constant.other.character-class.set.regexp | #12E412de | — |
| constant.other.color.rgb-value | #CCCC17de | — |
| constant.other.placeholder | #C093EEde | — |
| constant.other.rgb-value | #F4A0A0de | — |
| constant.regexp | #CAA0F4de | — |
| constant.sha.git-rebase | #FEABEAde | — |
| emphasis | #15DEACde | — |
| entity.name.class | #EA8C8Cde | — |
| entity.name.function | #CBCB0Fde | — |
| entity.name.function.preprocessor | #BF95EAde | — |
| entity.name.function.python | #8BBDEEde | — |
| entity.name.label | #8BBDEEde | — |
| entity.name.namespace | #EA83D0de | — |
| entity.name.operator | #A0CAF4de | — |
| entity.name.operator.custom-literal | #F09292de | — |
| entity.name.scope-resolution | #FEB1B1de | — |
| entity.name.tag | #FEABE8de | — |
| entity.name.tag.css | #C193EFde | — |
| entity.name.type | #0CDFAAde | — |
| entity.name.variable | #FEB1B1de | — |
| entity.other.attribute | #73ABE3de | — |
| entity.other.attribute-name | #15DFADde | — |
| entity.other.attribute-name.class.css | #EA83D0de | — |
| entity.other.attribute-name.class.mixin.css | #C192F0de | — |
| entity.other.attribute-name.id | #0EE0A9de | — |
| entity.other.attribute-name.id.css | #97CAFDde | — |
| entity.other.attribute-name.parent-selector.css | #CBCB0Fde | — |
| entity.other.attribute-name.pseudo-class.css | #FEAAAAde | — |
| entity.other.attribute-name.pseudo-element.css | #EE8B8Bde | — |
| entity.other.attribute-name.scss | #13E313de | — |
| entity.other.document.begin.yaml | #7FD97F6e | — |
| entity.other.inherited-class | #E786CEde | — |
| header | #EC8B8Bde | — |
| invalid | #D3AEF7de | — |
| keyword | #D8B3FEde | — |
| keyword.codetag.notation.python | #0CDFAAde | — |
| keyword.control | #15DEACde | — |
| keyword.control.anchor.regexp | #FEB1B1de | — |
| keyword.control.import.python | #98CAFDde | — |
| keyword.operator | #EA8C8Cde | — |
| keyword.operator.alignas | #14E514de | — |
| keyword.operator.alignof | #16DFACde | — |
| keyword.operator.cast | #CEA7F6de | — |
| keyword.operator.delete | #98CAFEde | — |
| keyword.operator.documentation.powershell | #7CDB7C6e | — |
| keyword.operator.expression | #15E415de | — |
| keyword.operator.instanceof | #95CAFEde | — |
| keyword.operator.logical.python | #F6A7A7de | — |
| keyword.operator.minus.exponent | #0EE40Ede | — |
| keyword.operator.negation.regexp | #E786CEde | — |
| keyword.operator.new | #15E515de | — |
| keyword.operator.noexcept | #98CAFEde | — |
| keyword.operator.or.regexp | #15E415de | — |
| keyword.operator.plus.exponent | #DAB5FEde | — |
| keyword.operator.quantifier.regexp | #F7AEE5de | — |
| keyword.operator.sizeof | #95CAFEde | — |
| keyword.operator.typeid | #BF94ECde | — |
| keyword.operator.wordlike | #FEABE8de | — |
| keyword.other.operator | #F6A7A7de | — |
| keyword.other.package.java | #F7AEE5de | — |
| keyword.other.unit | #14E514de | — |
| keyword.other.using | #CCCC16de | — |
| markup.bold | #D7B5F9de | — |
| markup.changed | #CCCC15de | — |
| markup.deleted | #73ABE3de | — |
| markup.fenced_code.block.markdown | #CCCC15de | — |
| markup.heading | #CCCC17de | — |
| markup.inline.raw | #EE8B8Bde | — |
| markup.inserted | #0FE30Fde | — |
| markup.italic | #F4A0DFde | — |
| markup.raw.block.markdown | #CBCB0Fde | — |
| markup.strikethrough | #12E512de | — |
| markup.underline | #FEABE8de | — |
| meta.block.c | #FEABE8de | — |
| meta.block.c | #CCCC17de | — |
| meta.class.java | #CEA7F6de | — |
| meta.definition.variable.name | #F092D9de | — |
| meta.diff.header | #FEABEAde | — |
| meta.embedded | #15E415de | — |
| meta.embedded.assembly | #BF95EAde | — |
| meta.function-call.arguments.python | #12E0ACde | — |
| meta.function-call.python | #0FDFACde | — |
| meta.member.access.python | #F29999de | — |
| meta.method.java | #0FE0ACde | — |
| meta.object-literal.key | #15E415de | — |
| meta.paragraph.markdown | #A0CAF4de | — |
| meta.preprocessor | #F6A7A7de | — |
| meta.preprocessor.numeric | #15DFACde | — |
| meta.preprocessor.string | #F299DCde | — |
| meta.scope.prerequisites.makefile | #FEB1B1de | — |
| meta.structure.dictionary.json.comments | #81D9816e | — |
| meta.structure.dictionary.key.python | #97CAFDde | — |
| meta.structure.dictionary.value.json.comments | #7CDB7C6e | — |
| meta.template.expression | #15DEACde | — |
| meta.type.cast.expr | #99C5F2de | — |
| meta.type.new.expr | #16DEABde | — |
| parameter | #E786CEde | — |
| punctuation.character.set.begin.regexp | #12E0ACde | — |
| punctuation.character.set.end.regexp | #E984CFde | — |
| punctuation.definition.array.begin.json | #15E415de | — |
| punctuation.definition.character-class.regexp | #92C1F0de | — |
| punctuation.definition.comment | #78DA786e | — |
| punctuation.definition.comment.json.comments | #7CDB7C6e | — |
| punctuation.definition.comment.python | #7CDB7C6e | — |
| punctuation.definition.dictionary.begin.json | #0EE0A9de | — |
| punctuation.definition.dictionary.end.json | #16DFAEde | — |
| punctuation.definition.group.assertion.regexp | #16DEABde | — |
| punctuation.definition.group.regexp | #DAB7FEde | — |
| punctuation.definition.list.begin.json | #15DEACde | — |
| punctuation.definition.list.begin.markdown | #EE8BD5de | — |
| punctuation.definition.list.begin.python | #FEB1B1de | — |
| punctuation.definition.list.end.json | #D7B5F9de | — |
| punctuation.definition.list.end.markdown | #15DEACde | — |
| punctuation.definition.list.end.python | #EC8B8Bde | — |
| punctuation.definition.parameters.begin.python | #0FDFACde | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEAAE9de | — |
| punctuation.definition.quote.begin.markdown | #99C5F2de | — |
| punctuation.definition.tag | #15E415de | — |
| punctuation.definition.template-expression.begin | #15DEACde | — |
| punctuation.definition.template-expression.end | #15E515de | — |
| punctuation.section.class.begin.bracket.curly.java | #12E512de | — |
| punctuation.section.embedded | #CCCC15de | — |
| punctuation.section.embedded.begin.php | #E98E8Ede | — |
| punctuation.section.embedded.end.php | #FEAAE9de | — |
| punctuation.terminator.java | #DAB7FEde | — |
| source.cmake | #E984CFde | — |
| source.coffee.embedded | #BF95EAde | — |
| source.cpp | #E786CEde | — |
| source.css.less | #CEA7F6de | — |
| source.groovy.embedded | #EA83D0de | — |
| source.java | #FEAAAAde | — |
| source.java-properties | #BF95EAde | — |
| source.json.comments | #81D9816e | — |
| source.makefile | #14E514de | — |
| source.powershell | #CBCB0Fde | — |
| source.powershell.variable.other.member | #85B8ECde | — |
| source.python | #C192F0de | — |
| storage | #BF95EAde | — |
| storage.modifier | #12E412de | — |
| storage.modifier.import.java | #CBCB12de | — |
| storage.modifier.package.java | #CCCC10de | — |
| storage.type | #14E514de | — |
| storage.type.annotation.groovy | #F4A0A0de | — |
| storage.type.annotation.java | #F4A0DFde | — |
| storage.type.boolean.go | #BF94ECde | — |
| storage.type.byte.go | #15E415de | — |
| storage.type.cs | #92C1F0de | — |
| storage.type.error.go | #CEA7F6de | — |
| storage.type.generic.cs | #CCCC17de | — |
| storage.type.generic.groovy | #CCCC17de | — |
| storage.type.generic.java | #16DEABde | — |
| storage.type.groovy | #F29999de | — |
| storage.type.java | #EC8C8Cde | — |
| storage.type.modifier.cs | #D7B5F9de | — |
| storage.type.numeric.go | #C599F2de | — |
| storage.type.object.array.groovy | #15DEADde | — |
| storage.type.object.array.java | #0CE40Cde | — |
| storage.type.parameters.groovy | #15E515de | — |
| storage.type.primitive.array.groovy | #F299DCde | — |
| storage.type.primitive.array.java | #C093EDde | — |
| storage.type.primitive.groovy | #0FDFACde | — |
| storage.type.primitive.java | #E784CFde | — |
| storage.type.rune.go | #CBCB12de | — |
| storage.type.string.go | #CACA09de | — |
| storage.type.token.java | #EC8B8Bde | — |
| storage.type.uintptr.go | #14E514de | — |
| storage.type.variable.cs | #0FE0ACde | — |
| string | #12E0ACde | — |
| string.quoted.docstring.multi.python | #7FD97F6e | — |
| string.regexp | #0FE40Fde | — |
| string.tag | #15E515de | — |
| string.value | #FEB1B1de | — |
| strong | #CBCB16de | — |
| support.class | #0CDFAAde | — |
| support.constant.color | #15DEADde | — |
| support.constant.dom | #BF95EAde | — |
| support.constant.font-name | #FEB1B1de | — |
| support.constant.handlebars | #CCCC15de | — |
| support.constant.json | #E98E8Ede | — |
| support.constant.math | #C599F2de | — |
| support.constant.media | #F7AEE5de | — |
| support.constant.media-type | #F092D9de | — |
| support.constant.property-value | #BF95EAde | — |
| support.function | #CAA0F4de | — |
| support.function.git-rebase | #D8B3FEde | — |
| support.other.parenthesis.regexp | #0EE0A9de | — |
| support.type | #F6A7E2de | — |
| support.type.property-name | #CCCC17de | — |
| support.type.vendored.property-name | #F7AEE5de | — |
| support.variable | #FEB1B1de | — |
| token.debug-token | #CCCC17de | — |
| token.error-token | #F29999de | — |
| token.info-token | #12E512de | — |
| token.warn-token | #CCCC10de | — |
| variable | #C193EFde | — |
| variable.css | #CBCB12de | — |
| variable.language | #12E412de | — |
| variable.language.wildcard.java | #CBCB17de | — |
| variable.other.constant | #15E415de | — |
| variable.other.definition.java | #BF95EAde | — |
| variable.other.enummember | #15DFACde | — |
| variable.other.less | #78AFE7de | — |
| variable.other.object.java | #FEB1B1de | — |
| variable.other.object.property.java | #16DFAEde | — |
| variable.parameter.c | #96CAFEde | — |
| variable.parameter.function.language.python | #CBCB17de | — |
| variable.parameter.java | #15E515de | — |
| variable.scss | #92C1F0de | — |
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}!`;
}