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 | #BFBFBF6e | — |
| 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 | #BFBFBF6e | — |
| comment.line.percentage.erlang | #C0C0C06e | — |
| comment.line.powershell | #C0C0C06e | — |
| comment.source.cmake | #C0C0C06e | — |
| comment.source.cmakecache | #C0C0C06e | — |
| constant.character | #9898F5de | — |
| constant.character.character-class.regexp | #25D2F3de | — |
| constant.character.escape | #0CDD3Dde | — |
| constant.character.set.regexp | #E289F2de | — |
| constant.language | #10DE3Fde | — |
| constant.numeric | #F0A3FEde | — |
| constant.numeric.dec.python | #E289F2de | — |
| constant.other.caps.python | #20D2F2de | — |
| constant.other.character-class.regexp | #7DD512de | — |
| constant.other.character-class.set.regexp | #9999F3de | — |
| constant.other.color.rgb-value | #79D60Ede | — |
| constant.other.placeholder | #FBB15Bde | — |
| constant.other.rgb-value | #FAB260de | — |
| constant.regexp | #F289A1de | — |
| constant.sha.git-rebase | #F0A5FEde | — |
| emphasis | #DB7DECde | — |
| entity.name.class | #FEA7BBde | — |
| entity.name.function | #F8A6B9de | — |
| entity.name.function.preprocessor | #9999EFde | — |
| entity.name.function.python | #B4B4FEde | — |
| entity.name.label | #7AD610de | — |
| entity.name.namespace | #7BD710de | — |
| entity.name.operator | #77D60Cde | — |
| entity.name.operator.custom-literal | #0DDE3Dde | — |
| entity.name.scope-resolution | #FBB159de | — |
| entity.name.tag | #B5B5FAde | — |
| entity.name.tag.css | #25D2F3de | — |
| entity.name.type | #EBA6F8de | — |
| entity.name.variable | #1FD2F5de | — |
| entity.other.attribute | #FAB15Ede | — |
| entity.other.attribute-name | #E8AD68de | — |
| entity.other.attribute-name.class.css | #FAB15Cde | — |
| entity.other.attribute-name.class.mixin.css | #F0A3FEde | — |
| entity.other.attribute-name.id | #FEA7BBde | — |
| entity.other.attribute-name.id.css | #7CD612de | — |
| entity.other.attribute-name.parent-selector.css | #AEAEF9de | — |
| entity.other.attribute-name.pseudo-class.css | #ED8099de | — |
| entity.other.attribute-name.pseudo-element.css | #E490F4de | — |
| entity.other.attribute-name.scss | #23D2F2de | — |
| entity.other.document.begin.yaml | #C0C0C06e | — |
| entity.other.inherited-class | #FBB15Bde | — |
| header | #10DE3Fde | — |
| invalid | #11DD42de | — |
| keyword | #DB7DECde | — |
| keyword.codetag.notation.python | #1FD2F3de | — |
| keyword.control | #20D2F2de | — |
| keyword.control.anchor.regexp | #FCB158de | — |
| keyword.control.import.python | #FBB15Bde | — |
| keyword.operator | #79D60Ede | — |
| keyword.operator.alignas | #EFA5FEde | — |
| keyword.operator.alignof | #11DD42de | — |
| keyword.operator.cast | #10DE3Fde | — |
| keyword.operator.delete | #FEA7BAde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #7CD611de | — |
| keyword.operator.instanceof | #11DD42de | — |
| keyword.operator.logical.python | #10DD3Fde | — |
| keyword.operator.minus.exponent | #23D2F2de | — |
| keyword.operator.negation.regexp | #12DD40de | — |
| keyword.operator.new | #22D2F4de | — |
| keyword.operator.noexcept | #7BD710de | — |
| keyword.operator.or.regexp | #E99FF6de | — |
| keyword.operator.plus.exponent | #7AD610de | — |
| keyword.operator.quantifier.regexp | #AEAEF9de | — |
| keyword.operator.sizeof | #11DD42de | — |
| keyword.operator.typeid | #22D2F4de | — |
| keyword.operator.wordlike | #B9B9FEde | — |
| keyword.other.operator | #FBB159de | — |
| keyword.other.package.java | #16D2F3de | — |
| keyword.other.unit | #9999F0de | — |
| keyword.other.using | #11DD42de | — |
| markup.bold | #E99FF6de | — |
| markup.changed | #FEA8BCde | — |
| markup.deleted | #FEA3B8de | — |
| markup.fenced_code.block.markdown | #FBB159de | — |
| markup.heading | #F8A6B9de | — |
| markup.inline.raw | #FAB260de | — |
| markup.inserted | #7CD713de | — |
| markup.italic | #7CD713de | — |
| markup.raw.block.markdown | #79D70Dde | — |
| markup.strikethrough | #FEA8BCde | — |
| markup.underline | #FAB15Ede | — |
| meta.block.c | #78D70Cde | — |
| meta.block.c | #20D2F2de | — |
| meta.class.java | #7DD712de | — |
| meta.definition.variable.name | #B9B9FEde | — |
| meta.diff.header | #FEA8BCde | — |
| meta.embedded | #B9B9FEde | — |
| meta.embedded.assembly | #DA7EEBde | — |
| meta.function-call.arguments.python | #16D2F3de | — |
| meta.function-call.python | #9A9AF1de | — |
| meta.member.access.python | #EFA5FEde | — |
| meta.method.java | #EC829Bde | — |
| meta.object-literal.key | #AEAEF9de | — |
| meta.paragraph.markdown | #7CD612de | — |
| meta.preprocessor | #12DD42de | — |
| meta.preprocessor.numeric | #DA7EEBde | — |
| meta.preprocessor.string | #FAB260de | — |
| meta.scope.prerequisites.makefile | #20D2F2de | — |
| meta.structure.dictionary.json.comments | #C0C0C06e | — |
| meta.structure.dictionary.key.python | #0CDD3Dde | — |
| meta.structure.dictionary.value.json.comments | #C0C0C06e | — |
| meta.template.expression | #DC7DEDde | — |
| meta.type.cast.expr | #EFA5FEde | — |
| meta.type.new.expr | #FAB260de | — |
| parameter | #9898F5de | — |
| punctuation.character.set.begin.regexp | #7BD710de | — |
| punctuation.character.set.end.regexp | #16D2F3de | — |
| punctuation.definition.array.begin.json | #12DD40de | — |
| punctuation.definition.character-class.regexp | #9999F3de | — |
| punctuation.definition.comment | #C0C0C06e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #BFBFBF6e | — |
| punctuation.definition.dictionary.begin.json | #FCB158de | — |
| punctuation.definition.dictionary.end.json | #23D2F2de | — |
| punctuation.definition.group.assertion.regexp | #9A9AEEde | — |
| punctuation.definition.group.regexp | #20D2F2de | — |
| punctuation.definition.list.begin.json | #FAB15Ede | — |
| punctuation.definition.list.begin.markdown | #9898F5de | — |
| punctuation.definition.list.begin.python | #B9B9FEde | — |
| punctuation.definition.list.end.json | #0EDE3Ede | — |
| punctuation.definition.list.end.markdown | #11DD42de | — |
| punctuation.definition.list.end.python | #FAB25Fde | — |
| punctuation.definition.parameters.begin.python | #12DD40de | — |
| punctuation.definition.parameters.end.bracket.round.java | #76D70Bde | — |
| punctuation.definition.quote.begin.markdown | #FEA7BBde | — |
| punctuation.definition.tag | #23D2F2de | — |
| punctuation.definition.template-expression.begin | #12DD40de | — |
| punctuation.definition.template-expression.end | #DC7DEDde | — |
| punctuation.section.class.begin.bracket.curly.java | #22D2F4de | — |
| punctuation.section.embedded | #20D2F2de | — |
| punctuation.section.embedded.begin.php | #FEA7BBde | — |
| punctuation.section.embedded.end.php | #9F9FF6de | — |
| punctuation.terminator.java | #FCB059de | — |
| source.cmake | #FEA7BBde | — |
| source.coffee.embedded | #9898F5de | — |
| source.cpp | #20D2F2de | — |
| source.css.less | #FBB15Bde | — |
| source.groovy.embedded | #FBB15Bde | — |
| source.java | #9A9AEEde | — |
| source.java-properties | #0DDE3Dde | — |
| source.json.comments | #C0C0C06e | — |
| source.makefile | #F490A7de | — |
| source.powershell | #78D70Cde | — |
| source.powershell.variable.other.member | #20D2F2de | — |
| source.python | #9A9AEEde | — |
| storage | #20D2F2de | — |
| storage.modifier | #EFA5FEde | — |
| storage.modifier.import.java | #DB7DECde | — |
| storage.modifier.package.java | #EBA6F8de | — |
| storage.type | #9A9AEEde | — |
| storage.type.annotation.groovy | #20D2F4de | — |
| storage.type.annotation.java | #77D60Cde | — |
| storage.type.boolean.go | #12DD40de | — |
| storage.type.byte.go | #9999F3de | — |
| storage.type.cs | #12DD40de | — |
| storage.type.error.go | #79D70Dde | — |
| storage.type.generic.cs | #1FD2F3de | — |
| storage.type.generic.groovy | #F0A5FEde | — |
| storage.type.generic.java | #16D2F3de | — |
| storage.type.groovy | #FCB059de | — |
| storage.type.java | #DB7DECde | — |
| storage.type.modifier.cs | #DC7DEDde | — |
| storage.type.numeric.go | #7CD712de | — |
| storage.type.object.array.groovy | #1FD2F5de | — |
| storage.type.object.array.java | #FAB260de | — |
| storage.type.parameters.groovy | #9A9AF1de | — |
| storage.type.primitive.array.groovy | #FAB25Dde | — |
| storage.type.primitive.array.java | #9A9AEEde | — |
| storage.type.primitive.groovy | #9A9AF1de | — |
| storage.type.primitive.java | #9898F4de | — |
| storage.type.rune.go | #10DE3Fde | — |
| storage.type.string.go | #EBA6F8de | — |
| storage.type.token.java | #9898F5de | — |
| storage.type.uintptr.go | #EAB16Ede | — |
| storage.type.variable.cs | #9A9AF1de | — |
| string | #F0A5FEde | — |
| string.quoted.docstring.multi.python | #C0C0C06e | — |
| string.regexp | #25D2F3de | — |
| string.tag | #0CDE3Bde | — |
| string.value | #9999F0de | — |
| strong | #FAB260de | — |
| support.class | #22D2F4de | — |
| support.constant.color | #9999EFde | — |
| support.constant.dom | #B4B4FEde | — |
| support.constant.font-name | #79D60Ede | — |
| support.constant.handlebars | #16D2F3de | — |
| support.constant.json | #16D2F3de | — |
| support.constant.math | #F0A3FEde | — |
| support.constant.media | #9999EFde | — |
| support.constant.media-type | #22D2F4de | — |
| support.constant.property-value | #10DD3Fde | — |
| support.function | #E99FF6de | — |
| support.function.git-rebase | #FBB15Bde | — |
| support.other.parenthesis.regexp | #F289A1de | — |
| support.type | #0CDD3Dde | — |
| support.type.property-name | #FAB260de | — |
| support.type.vendored.property-name | #DD7CEEde | — |
| support.variable | #20D2F2de | — |
| token.debug-token | #20D2F2de | — |
| token.error-token | #10DD3Fde | — |
| token.info-token | #FBB15Bde | — |
| token.warn-token | #10DE3Fde | — |
| variable | #9A9AF1de | — |
| variable.css | #23D2F2de | — |
| variable.language | #DD7CEEde | — |
| variable.language.wildcard.java | #1DD2F6de | — |
| variable.other.constant | #20D2F2de | — |
| variable.other.definition.java | #22D2F4de | — |
| variable.other.enummember | #E8AD68de | — |
| variable.other.less | #79D60Ede | — |
| variable.other.object.java | #B5B5FAde | — |
| variable.other.object.property.java | #21D2F2de | — |
| variable.parameter.c | #0BDD39de | — |
| variable.parameter.function.language.python | #F0A3FEde | — |
| variable.parameter.java | #F0A3FEde | — |
| variable.scss | #ED8099de | — |
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}!`;
}