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 | #F8ADAD6e | — |
| comment.block.html | #F6AEAE6e | — |
| comment.block.java | #F5AEAE6e | — |
| comment.block.javadoc.java | #F8ADAD6e | — |
| comment.block.powershell | #F8ADAD6e | — |
| comment.block.xml | #F5AEAE6e | — |
| comment.line.double-slash.c | #F8ADAD6e | — |
| comment.line.double-slash.cpp | #F8ADAD6e | — |
| comment.line.double-slash.java | #F8ADAD6e | — |
| comment.line.double-slash.js | #F5AEAE6e | — |
| comment.line.number-sign.makefile | #FAAEAE6e | — |
| comment.line.number-sign.python | #FAAEAE6e | — |
| comment.line.number-sign.yaml | #F6AEAE6e | — |
| comment.line.percentage.erlang | #F6AEAE6e | — |
| comment.line.powershell | #F8ADAD6e | — |
| comment.source.cmake | #F8ADAD6e | — |
| comment.source.cmakecache | #F5AEAE6e | — |
| constant.character | #A4C2FEde | — |
| constant.character.character-class.regexp | #F5B0A2de | — |
| constant.character.escape | #15DF15de | — |
| constant.character.set.regexp | #CBA2F5de | — |
| constant.language | #80A2E6de | — |
| constant.numeric | #A3C1FEde | — |
| constant.numeric.dec.python | #C8C813de | — |
| constant.other.caps.python | #FDAD9Cde | — |
| constant.other.character-class.regexp | #C7C718de | — |
| constant.other.character-class.set.regexp | #80A2E6de | — |
| constant.other.color.rgb-value | #C8C818de | — |
| constant.other.placeholder | #80A2E8de | — |
| constant.other.rgb-value | #BC8FE8de | — |
| constant.regexp | #EF8ECFde | — |
| constant.sha.git-rebase | #10D9B8de | — |
| emphasis | #BE8EEEde | — |
| entity.name.class | #D5ACFEde | — |
| entity.name.function | #FEA4E0de | — |
| entity.name.function.preprocessor | #C8C818de | — |
| entity.name.function.python | #C394F1de | — |
| entity.name.label | #15DF15de | — |
| entity.name.namespace | #16D8B7de | — |
| entity.name.operator | #BC8FE9de | — |
| entity.name.operator.custom-literal | #FEA5E0de | — |
| entity.name.scope-resolution | #17D8B9de | — |
| entity.name.tag | #0EE00Ede | — |
| entity.name.tag.css | #C8C810de | — |
| entity.name.type | #10DF10de | — |
| entity.name.variable | #D5ACFEde | — |
| entity.other.attribute | #A2BDF5de | — |
| entity.other.attribute-name | #FEAC9Cde | — |
| entity.other.attribute-name.class.css | #FEAD9Dde | — |
| entity.other.attribute-name.class.mixin.css | #0FDF0Fde | — |
| entity.other.attribute-name.id | #FEAD9Cde | — |
| entity.other.attribute-name.id.css | #14DF14de | — |
| entity.other.attribute-name.parent-selector.css | #EF9E8Ede | — |
| entity.other.attribute-name.pseudo-class.css | #9BB8F3de | — |
| entity.other.attribute-name.pseudo-element.css | #F3AA9Bde | — |
| entity.other.attribute-name.scss | #C7C714de | — |
| entity.other.document.begin.yaml | #F6AEAE6e | — |
| entity.other.inherited-class | #C8C815de | — |
| header | #15D8B7de | — |
| invalid | #C8C818de | — |
| keyword | #15DF15de | — |
| keyword.codetag.notation.python | #15E015de | — |
| keyword.control | #BD8EECde | — |
| keyword.control.anchor.regexp | #87A9EDde | — |
| keyword.control.import.python | #8EAEEFde | — |
| keyword.operator | #FEAC9Cde | — |
| keyword.operator.alignas | #E87EC5de | — |
| keyword.operator.alignof | #D5ACFEde | — |
| keyword.operator.cast | #D4B0F8de | — |
| keyword.operator.delete | #17D9B9de | — |
| keyword.operator.documentation.powershell | #F5AEAE6e | — |
| keyword.operator.expression | #C8C811de | — |
| keyword.operator.instanceof | #C7C718de | — |
| keyword.operator.logical.python | #D5ACFEde | — |
| keyword.operator.minus.exponent | #10E010de | — |
| keyword.operator.negation.regexp | #80A2E7de | — |
| keyword.operator.new | #82A3E5de | — |
| keyword.operator.noexcept | #8EAEEFde | — |
| keyword.operator.or.regexp | #15D8B7de | — |
| keyword.operator.plus.exponent | #BE8EEFde | — |
| keyword.operator.quantifier.regexp | #C7C718de | — |
| keyword.operator.sizeof | #E88D7Bde | — |
| keyword.operator.typeid | #E582C4de | — |
| keyword.operator.wordlike | #C7C718de | — |
| keyword.other.operator | #17D9B9de | — |
| keyword.other.package.java | #E38B79de | — |
| keyword.other.unit | #A3C1FEde | — |
| keyword.other.using | #C7C718de | — |
| markup.bold | #EF8ECFde | — |
| markup.changed | #80A2E7de | — |
| markup.deleted | #C7C714de | — |
| markup.fenced_code.block.markdown | #F6A9DCde | — |
| markup.heading | #E87EC5de | — |
| markup.inline.raw | #BC90E9de | — |
| markup.inserted | #12E012de | — |
| markup.italic | #FEA4E0de | — |
| markup.raw.block.markdown | #E88D7Bde | — |
| markup.strikethrough | #14E014de | — |
| markup.underline | #10E010de | — |
| meta.block.c | #EA9381de | — |
| meta.block.c | #17D9B9de | — |
| meta.class.java | #0ED9B6de | — |
| meta.definition.variable.name | #F5A2D9de | — |
| meta.diff.header | #17D8B9de | — |
| meta.embedded | #94B3F1de | — |
| meta.embedded.assembly | #D8B0FEde | — |
| meta.function-call.arguments.python | #E680C4de | — |
| meta.function-call.python | #0EE00Ede | — |
| meta.member.access.python | #E58B7Ade | — |
| meta.method.java | #16D9B8de | — |
| meta.object-literal.key | #F1A494de | — |
| meta.paragraph.markdown | #BC8FE9de | — |
| meta.preprocessor | #FEA4E0de | — |
| meta.preprocessor.numeric | #C7C718de | — |
| meta.preprocessor.string | #94B3F1de | — |
| meta.scope.prerequisites.makefile | #0FD8B7de | — |
| meta.structure.dictionary.json.comments | #F8ADAD6e | — |
| meta.structure.dictionary.key.python | #9BB8F3de | — |
| meta.structure.dictionary.value.json.comments | #F8ADAD6e | — |
| meta.template.expression | #E582C4de | — |
| meta.type.cast.expr | #A3C1FEde | — |
| meta.type.new.expr | #15DF15de | — |
| parameter | #D8B0FEde | — |
| punctuation.character.set.begin.regexp | #E87EC5de | — |
| punctuation.character.set.end.regexp | #0ED9B6de | — |
| punctuation.definition.array.begin.json | #ED87CBde | — |
| punctuation.definition.character-class.regexp | #EF8ECFde | — |
| punctuation.definition.comment | #F6AEAE6e | — |
| punctuation.definition.comment.json.comments | #F8ADAD6e | — |
| punctuation.definition.comment.python | #F8ADAD6e | — |
| punctuation.definition.dictionary.begin.json | #A2BDF5de | — |
| punctuation.definition.dictionary.end.json | #15DF15de | — |
| punctuation.definition.group.assertion.regexp | #FEAD9Cde | — |
| punctuation.definition.group.regexp | #C8C818de | — |
| punctuation.definition.list.begin.json | #8EAEEFde | — |
| punctuation.definition.list.begin.markdown | #14DF14de | — |
| punctuation.definition.list.begin.python | #D8B2FEde | — |
| punctuation.definition.list.end.json | #CFA9F6de | — |
| punctuation.definition.list.end.markdown | #14DF14de | — |
| punctuation.definition.list.end.python | #13D9B8de | — |
| punctuation.definition.parameters.begin.python | #FEA4E0de | — |
| punctuation.definition.parameters.end.bracket.round.java | #D5ACFEde | — |
| punctuation.definition.quote.begin.markdown | #E58B7Ade | — |
| punctuation.definition.tag | #17D8B9de | — |
| punctuation.definition.template-expression.begin | #10D7B6de | — |
| punctuation.definition.template-expression.end | #80A2E7de | — |
| punctuation.section.class.begin.bracket.curly.java | #FEA5E0de | — |
| punctuation.section.embedded | #16D8B7de | — |
| punctuation.section.embedded.begin.php | #0FDF0Fde | — |
| punctuation.section.embedded.end.php | #C7C714de | — |
| punctuation.terminator.java | #A4C2FEde | — |
| source.cmake | #C7C718de | — |
| source.coffee.embedded | #FDAD9Cde | — |
| source.cpp | #BE8EEEde | — |
| source.css.less | #17D8B9de | — |
| source.groovy.embedded | #16D9B8de | — |
| source.java | #FEA5E0de | — |
| source.java-properties | #E582C4de | — |
| source.json.comments | #FAAEAE6e | — |
| source.makefile | #EA81C7de | — |
| source.powershell | #9CBDFEde | — |
| source.powershell.variable.other.member | #C7C718de | — |
| source.python | #13D9B8de | — |
| storage | #D8B0FEde | — |
| storage.modifier | #14E014de | — |
| storage.modifier.import.java | #FEA5E0de | — |
| storage.modifier.package.java | #15DF15de | — |
| storage.type | #FEA5E0de | — |
| storage.type.annotation.groovy | #F3AA9Bde | — |
| storage.type.annotation.java | #D8B0FEde | — |
| storage.type.boolean.go | #ED87CBde | — |
| storage.type.byte.go | #C7C717de | — |
| storage.type.cs | #FEAC9Cde | — |
| storage.type.error.go | #13D8B6de | — |
| storage.type.generic.cs | #E87EC5de | — |
| storage.type.generic.groovy | #A3C1FEde | — |
| storage.type.generic.java | #FEA5E0de | — |
| storage.type.groovy | #10DF10de | — |
| storage.type.java | #EA9381de | — |
| storage.type.modifier.cs | #BC90E9de | — |
| storage.type.numeric.go | #14E014de | — |
| storage.type.object.array.groovy | #17D9B9de | — |
| storage.type.object.array.java | #FEAC9Cde | — |
| storage.type.parameters.groovy | #9CBDFEde | — |
| storage.type.primitive.array.groovy | #0FDF0Fde | — |
| storage.type.primitive.array.java | #BE8EEEde | — |
| storage.type.primitive.groovy | #C7C713de | — |
| storage.type.primitive.java | #A4C2FEde | — |
| storage.type.rune.go | #EF8ECFde | — |
| storage.type.string.go | #EA81C7de | — |
| storage.type.token.java | #15DF15de | — |
| storage.type.uintptr.go | #16D9B8de | — |
| storage.type.variable.cs | #15DF15de | — |
| string | #F194D2de | — |
| string.quoted.docstring.multi.python | #FAAEAE6e | — |
| string.regexp | #81A4EAde | — |
| string.tag | #F194D2de | — |
| string.value | #C5C50Ade | — |
| strong | #0EE00Ede | — |
| support.class | #0EE00Ede | — |
| support.constant.color | #C8C818de | — |
| support.constant.dom | #94B3F1de | — |
| support.constant.font-name | #E680C4de | — |
| support.constant.handlebars | #C5C50Ade | — |
| support.constant.json | #E38B79de | — |
| support.constant.math | #A2BDF5de | — |
| support.constant.media | #BC90E9de | — |
| support.constant.media-type | #D4B0F8de | — |
| support.constant.property-value | #E58B7Ade | — |
| support.function | #A2BDF5de | — |
| support.function.git-rebase | #BD8EECde | — |
| support.other.parenthesis.regexp | #F39BD6de | — |
| support.type | #C7C718de | — |
| support.type.property-name | #FEAD9Dde | — |
| support.type.vendored.property-name | #C7C718de | — |
| support.variable | #F1A494de | — |
| token.debug-token | #12E012de | — |
| token.error-token | #ED87CBde | — |
| token.info-token | #15DF15de | — |
| token.warn-token | #A3C1FEde | — |
| variable | #F6A9DCde | — |
| variable.css | #15DF15de | — |
| variable.language | #BC8FE8de | — |
| variable.language.wildcard.java | #15DF15de | — |
| variable.other.constant | #0FD8B7de | — |
| variable.other.definition.java | #E58B7Ade | — |
| variable.other.enummember | #D5ACFEde | — |
| variable.other.less | #FEA4E0de | — |
| variable.other.object.java | #13D8B6de | — |
| variable.other.object.property.java | #A3C2FEde | — |
| variable.parameter.c | #15E015de | — |
| variable.parameter.function.language.python | #EF9E8Ede | — |
| variable.parameter.java | #D5ACFEde | — |
| variable.scss | #13D8B6de | — |
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}!`;
}