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 | #C0C0C06e | — |
| comment.block.html | #C0C0C06e | — |
| comment.block.java | #BFBFBF6e | — |
| comment.block.javadoc.java | #C0C0C06e | — |
| comment.block.powershell | #C0C0C06e | — |
| comment.block.xml | #C0C0C06e | — |
| comment.line.double-slash.c | #C0C0C06e | — |
| comment.line.double-slash.cpp | #C0C0C06e | — |
| comment.line.double-slash.java | #C0C0C06e | — |
| comment.line.double-slash.js | #C0C0C06e | — |
| comment.line.number-sign.makefile | #C0C0C06e | — |
| comment.line.number-sign.python | #C0C0C06e | — |
| comment.line.number-sign.yaml | #C0C0C06e | — |
| comment.line.percentage.erlang | #C0C0C06e | — |
| comment.line.powershell | #C0C0C06e | — |
| comment.source.cmake | #C0C0C06e | — |
| comment.source.cmakecache | #C0C0C06e | — |
| constant.character | #A6A6A6de | — |
| constant.character.character-class.regexp | #C38BE8de | — |
| constant.character.escape | #10DE10de | — |
| constant.character.set.regexp | #14DF14de | — |
| constant.language | #FEA7CAde | — |
| constant.numeric | #89D518de | — |
| constant.numeric.dec.python | #E29E71de | — |
| constant.other.caps.python | #89D318de | — |
| constant.other.character-class.regexp | #CC95F1de | — |
| constant.other.character-class.set.regexp | #17DF17de | — |
| constant.other.color.rgb-value | #F4A3C3de | — |
| constant.other.placeholder | #DEAEFEde | — |
| constant.other.rgb-value | #EF8FB5de | — |
| constant.regexp | #EC89B1de | — |
| constant.sha.git-rebase | #10DE10de | — |
| emphasis | #89D518de | — |
| entity.name.class | #A3A3F4de | — |
| entity.name.function | #EA83ACde | — |
| entity.name.function.preprocessor | #FCAE7Bde | — |
| entity.name.function.python | #E583AAde | — |
| entity.name.label | #89D515de | — |
| entity.name.namespace | #17DE17de | — |
| entity.name.operator | #17DE17de | — |
| entity.name.operator.custom-literal | #CC95F1de | — |
| entity.name.scope-resolution | #E5A377de | — |
| entity.name.tag | #86D40Ede | — |
| entity.name.tag.css | #FCAF7Cde | — |
| entity.name.type | #B8B8B8de | — |
| entity.name.variable | #17DE17de | — |
| entity.other.attribute | #E29E71de | — |
| entity.other.attribute-name | #FCAF7Cde | — |
| entity.other.attribute-name.class.css | #E484ABde | — |
| entity.other.attribute-name.class.mixin.css | #FEAE79de | — |
| entity.other.attribute-name.id | #9A9AEBde | — |
| entity.other.attribute-name.id.css | #C0C0C0de | — |
| entity.other.attribute-name.parent-selector.css | #C0C0C0de | — |
| entity.other.attribute-name.pseudo-class.css | #9999EDde | — |
| entity.other.attribute-name.pseudo-element.css | #FCAF7Cde | — |
| entity.other.attribute-name.scss | #9C9CF3de | — |
| entity.other.document.begin.yaml | #C0C0C06e | — |
| entity.other.inherited-class | #D09CF3de | — |
| header | #C0C0C0de | — |
| invalid | #16DE16de | — |
| keyword | #C0C0C0de | — |
| keyword.codetag.notation.python | #86D510de | — |
| keyword.control | #C48AE9de | — |
| keyword.control.anchor.regexp | #83D308de | — |
| keyword.control.import.python | #86D510de | — |
| keyword.operator | #9A9AEBde | — |
| keyword.operator.alignas | #E5A377de | — |
| keyword.operator.alignof | #C38BE8de | — |
| keyword.operator.cast | #E5A377de | — |
| keyword.operator.delete | #FCAE7Bde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #14DE14de | — |
| keyword.operator.instanceof | #FDAF7Bde | — |
| keyword.operator.logical.python | #EF8FB5de | — |
| keyword.operator.minus.exponent | #C489EBde | — |
| keyword.operator.negation.regexp | #B8B8B8de | — |
| keyword.operator.new | #13DF13de | — |
| keyword.operator.noexcept | #C0C0C0de | — |
| keyword.operator.or.regexp | #FCAF7Dde | — |
| keyword.operator.plus.exponent | #C48AE9de | — |
| keyword.operator.quantifier.regexp | #FCAE7Bde | — |
| keyword.operator.sizeof | #B1B1F7de | — |
| keyword.operator.typeid | #89D517de | — |
| keyword.operator.wordlike | #D7AAF6de | — |
| keyword.other.operator | #9A9AECde | — |
| keyword.other.package.java | #0DDD0Dde | — |
| keyword.other.unit | #AAAAAAde | — |
| keyword.other.using | #EAAC83de | — |
| markup.bold | #DAA4FEde | — |
| markup.changed | #EAAC83de | — |
| markup.deleted | #87D413de | — |
| markup.fenced_code.block.markdown | #BFBFBFde | — |
| markup.heading | #86D510de | — |
| markup.inline.raw | #B8B8FEde | — |
| markup.inserted | #EA83ACde | — |
| markup.italic | #AFAFAFde | — |
| markup.raw.block.markdown | #C38BE8de | — |
| markup.strikethrough | #15DF15de | — |
| markup.underline | #D7AAF6de | — |
| meta.block.c | #C0C0C0de | — |
| meta.block.c | #0EDD0Ede | — |
| meta.class.java | #FCAF7Cde | — |
| meta.definition.variable.name | #0DDD0Dde | — |
| meta.diff.header | #84D40Fde | — |
| meta.embedded | #B1B1F7de | — |
| meta.embedded.assembly | #EAAC83de | — |
| meta.function-call.arguments.python | #13DF13de | — |
| meta.function-call.python | #DAA4FEde | — |
| meta.member.access.python | #B8B8B8de | — |
| meta.method.java | #AAAAF6de | — |
| meta.object-literal.key | #17DE17de | — |
| meta.paragraph.markdown | #84D40Fde | — |
| meta.preprocessor | #DAA4FEde | — |
| meta.preprocessor.numeric | #C0C0C0de | — |
| meta.preprocessor.string | #C88FEFde | — |
| meta.scope.prerequisites.makefile | #83D308de | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #17DF17de | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #87D514de | — |
| meta.type.cast.expr | #EF8FB5de | — |
| meta.type.new.expr | #D4A3F4de | — |
| parameter | #87D413de | — |
| punctuation.character.set.begin.regexp | #FCAF7Ade | — |
| punctuation.character.set.end.regexp | #FEA4C8de | — |
| punctuation.definition.array.begin.json | #17DF17de | — |
| punctuation.definition.character-class.regexp | #C38BE7de | — |
| punctuation.definition.comment | #BFBFBF6e | — |
| punctuation.definition.comment.json.comments | #C0C0C06e | — |
| punctuation.definition.comment.python | #C0C0C06e | — |
| punctuation.definition.dictionary.begin.json | #C38BE7de | — |
| punctuation.definition.dictionary.end.json | #9C9CF3de | — |
| punctuation.definition.group.assertion.regexp | #87D413de | — |
| punctuation.definition.group.regexp | #DDADFEde | — |
| punctuation.definition.list.begin.json | #0DDD0Dde | — |
| punctuation.definition.list.begin.markdown | #FCAE7Bde | — |
| punctuation.definition.list.begin.python | #C0C0C0de | — |
| punctuation.definition.list.end.json | #E29E71de | — |
| punctuation.definition.list.end.markdown | #C38BE7de | — |
| punctuation.definition.list.end.python | #10DE10de | — |
| punctuation.definition.parameters.begin.python | #16DF16de | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEA6CAde | — |
| punctuation.definition.quote.begin.markdown | #83D308de | — |
| punctuation.definition.tag | #FCAE7Dde | — |
| punctuation.definition.template-expression.begin | #FCAF7Ade | — |
| punctuation.definition.template-expression.end | #F6AAC8de | — |
| punctuation.section.class.begin.bracket.curly.java | #DEAEFEde | — |
| punctuation.section.embedded | #DEADFEde | — |
| punctuation.section.embedded.begin.php | #E882ABde | — |
| punctuation.section.embedded.end.php | #DEADFEde | — |
| punctuation.terminator.java | #9A9AECde | — |
| source.cmake | #FCAE7Dde | — |
| source.coffee.embedded | #EF8FB5de | — |
| source.cpp | #E583AAde | — |
| source.css.less | #EC89B1de | — |
| source.groovy.embedded | #16DE16de | — |
| source.java | #ECB189de | — |
| source.java-properties | #0EDD0Ede | — |
| source.json.comments | #C0C0C06e | — |
| source.makefile | #C88FEFde | — |
| source.powershell | #17DE17de | — |
| source.powershell.variable.other.member | #C38BE7de | — |
| source.python | #A6A6A6de | — |
| storage | #89D515de | — |
| storage.modifier | #FDAF7Ade | — |
| storage.modifier.import.java | #C0C0C0de | — |
| storage.modifier.package.java | #A3A3F4de | — |
| storage.type | #10DE10de | — |
| storage.type.annotation.groovy | #89D515de | — |
| storage.type.annotation.java | #0EDD0Ede | — |
| storage.type.boolean.go | #C0C0C0de | — |
| storage.type.byte.go | #9999F0de | — |
| storage.type.cs | #FEA7CAde | — |
| storage.type.error.go | #13DF13de | — |
| storage.type.generic.cs | #EF8FB5de | — |
| storage.type.generic.groovy | #B9B9FEde | — |
| storage.type.generic.java | #A6A6A6de | — |
| storage.type.groovy | #C0C0C0de | — |
| storage.type.java | #9A9AEAde | — |
| storage.type.modifier.cs | #9999F0de | — |
| storage.type.numeric.go | #87D514de | — |
| storage.type.object.array.groovy | #10DE10de | — |
| storage.type.object.array.java | #13DF13de | — |
| storage.type.parameters.groovy | #C0C0C0de | — |
| storage.type.primitive.array.groovy | #16DF16de | — |
| storage.type.primitive.array.java | #0EDD0Ede | — |
| storage.type.primitive.groovy | #9999EEde | — |
| storage.type.primitive.java | #DDADFEde | — |
| storage.type.rune.go | #DDADFEde | — |
| storage.type.string.go | #F195BAde | — |
| storage.type.token.java | #C489ECde | — |
| storage.type.uintptr.go | #84D40Fde | — |
| storage.type.variable.cs | #FCAF7Cde | — |
| string | #E783ABde | — |
| string.quoted.docstring.multi.python | #C0C0C06e | — |
| string.regexp | #9999EDde | — |
| string.tag | #E583AAde | — |
| string.value | #89D318de | — |
| strong | #17DE17de | — |
| support.class | #10DE10de | — |
| support.constant.color | #87D514de | — |
| support.constant.dom | #E484ABde | — |
| support.constant.font-name | #AAAAAAde | — |
| support.constant.handlebars | #FCAF7Dde | — |
| support.constant.json | #FCAE7Dde | — |
| support.constant.math | #FCAF7Cde | — |
| support.constant.media | #FEA7C9de | — |
| support.constant.media-type | #FEA7C9de | — |
| support.constant.property-value | #AAAAAAde | — |
| support.function | #C48AE9de | — |
| support.function.git-rebase | #EF8FB5de | — |
| support.other.parenthesis.regexp | #0EDD0Ede | — |
| support.type | #9999EEde | — |
| support.type.property-name | #16DE16de | — |
| support.type.vendored.property-name | #F195BAde | — |
| support.variable | #E29E71de | — |
| token.debug-token | #C0C0C0de | — |
| token.error-token | #C0C0C0de | — |
| token.info-token | #B3B3B3de | — |
| token.warn-token | #87D516de | — |
| variable | #FDAF7Ade | — |
| variable.css | #E783ABde | — |
| variable.language | #14DF14de | — |
| variable.language.wildcard.java | #C0C0C0de | — |
| variable.other.constant | #FCAE7Bde | — |
| variable.other.definition.java | #BCBCBCde | — |
| variable.other.enummember | #B5B5FEde | — |
| variable.other.less | #EA83ACde | — |
| variable.other.object.java | #17DF17de | — |
| variable.other.object.property.java | #9999EEde | — |
| variable.parameter.c | #FCAF7Cde | — |
| variable.parameter.function.language.python | #FCAE7Bde | — |
| variable.parameter.java | #C38BE7de | — |
| variable.scss | #FEA7CAde | — |
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}!`;
}