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 | #C9C9776e | — |
| comment.block.html | #C9C97A6e | — |
| comment.block.java | #C9C97A6e | — |
| comment.block.javadoc.java | #C9C97A6e | — |
| comment.block.powershell | #C8C8746e | — |
| comment.block.xml | #C8C8746e | — |
| comment.line.double-slash.c | #C8C8746e | — |
| comment.line.double-slash.cpp | #C9C97A6e | — |
| comment.line.double-slash.java | #C9C97F6e | — |
| comment.line.double-slash.js | #C9C97F6e | — |
| comment.line.number-sign.makefile | #C9C97A6e | — |
| comment.line.number-sign.python | #C9C9776e | — |
| comment.line.number-sign.yaml | #C9C97A6e | — |
| comment.line.percentage.erlang | #C9C97F6e | — |
| comment.line.powershell | #C8C8746e | — |
| comment.source.cmake | #C9C9776e | — |
| comment.source.cmakecache | #C9C9776e | — |
| constant.character | #97D617de | — |
| constant.character.character-class.regexp | #13E313de | — |
| constant.character.escape | #EB88A9de | — |
| constant.character.set.regexp | #E3ADFEde | — |
| constant.language | #16E416de | — |
| constant.numeric | #15E415de | — |
| constant.numeric.dec.python | #97D617de | — |
| constant.other.caps.python | #94D710de | — |
| constant.other.character-class.regexp | #E59B76de | — |
| constant.other.character-class.set.regexp | #97D813de | — |
| constant.other.color.rgb-value | #15E415de | — |
| constant.other.placeholder | #E0936Cde | — |
| constant.other.rgb-value | #EDAA89de | — |
| constant.regexp | #97D716de | — |
| constant.sha.git-rebase | #CC8DEBde | — |
| emphasis | #CA8FE7de | — |
| entity.name.class | #CA8FE7de | — |
| entity.name.function | #10E210de | — |
| entity.name.function.preprocessor | #13DADAde | — |
| entity.name.function.python | #11E211de | — |
| entity.name.label | #94D80Fde | — |
| entity.name.namespace | #FEADC7de | — |
| entity.name.operator | #15E415de | — |
| entity.name.operator.custom-literal | #E5B1FEde | — |
| entity.name.scope-resolution | #96D714de | — |
| entity.name.tag | #ED89AAde | — |
| entity.name.tag.css | #14D9D9de | — |
| entity.name.type | #15D9D9de | — |
| entity.name.variable | #97D617de | — |
| entity.other.attribute | #FDB390de | — |
| entity.other.attribute-name | #E889A8de | — |
| entity.other.attribute-name.class.css | #17DADAde | — |
| entity.other.attribute-name.class.mixin.css | #CC8CEDde | — |
| entity.other.attribute-name.id | #EA87A8de | — |
| entity.other.attribute-name.id.css | #0FE30Fde | — |
| entity.other.attribute-name.parent-selector.css | #96D80Ede | — |
| entity.other.attribute-name.pseudo-class.css | #16E416de | — |
| entity.other.attribute-name.pseudo-element.css | #11E211de | — |
| entity.other.attribute-name.scss | #CC8DEBde | — |
| entity.other.document.begin.yaml | #C9C97F6e | — |
| entity.other.inherited-class | #E39771de | — |
| header | #FDB390de | — |
| invalid | #FEADC8de | — |
| keyword | #EF8FAFde | — |
| keyword.codetag.notation.python | #15E315de | — |
| keyword.control | #14E314de | — |
| keyword.control.anchor.regexp | #15E415de | — |
| keyword.control.import.python | #14E414de | — |
| keyword.operator | #F6AAC3de | — |
| keyword.operator.alignas | #14E314de | — |
| keyword.operator.alignof | #94D811de | — |
| keyword.operator.cast | #F39CB9de | — |
| keyword.operator.delete | #E4B1FEde | — |
| keyword.operator.documentation.powershell | #C9C97A6e | — |
| keyword.operator.expression | #96D617de | — |
| keyword.operator.instanceof | #E889A8de | — |
| keyword.operator.logical.python | #14D9D9de | — |
| keyword.operator.minus.exponent | #E0936Cde | — |
| keyword.operator.negation.regexp | #FEADC7de | — |
| keyword.operator.new | #17DADAde | — |
| keyword.operator.noexcept | #FDB491de | — |
| keyword.operator.or.regexp | #CC8CEDde | — |
| keyword.operator.plus.exponent | #E39771de | — |
| keyword.operator.quantifier.regexp | #15E415de | — |
| keyword.operator.sizeof | #9D9DF1de | — |
| keyword.operator.typeid | #D9A3F4de | — |
| keyword.operator.wordlike | #BEBEFEde | — |
| keyword.other.operator | #F195B4de | — |
| keyword.other.package.java | #FEADC8de | — |
| keyword.other.unit | #97D716de | — |
| keyword.other.using | #BEBEFEde | — |
| markup.bold | #D69CF3de | — |
| markup.changed | #E3ADFEde | — |
| markup.deleted | #BEBEFEde | — |
| markup.fenced_code.block.markdown | #E5B1FEde | — |
| markup.heading | #AAAAF6de | — |
| markup.inline.raw | #9E9EEDde | — |
| markup.inserted | #14E414de | — |
| markup.italic | #9D9DF0de | — |
| markup.raw.block.markdown | #17DADAde | — |
| markup.strikethrough | #CA8FE7de | — |
| markup.underline | #9F9FECde | — |
| meta.block.c | #EA87A8de | — |
| meta.block.c | #9F9FECde | — |
| meta.class.java | #FEB491de | — |
| meta.definition.variable.name | #11E211de | — |
| meta.diff.header | #15E415de | — |
| meta.embedded | #EAA582de | — |
| meta.embedded.assembly | #FEB491de | — |
| meta.function-call.arguments.python | #F1B495de | — |
| meta.function-call.python | #16E416de | — |
| meta.member.access.python | #FEB491de | — |
| meta.method.java | #E39771de | — |
| meta.object-literal.key | #F39CB9de | — |
| meta.paragraph.markdown | #13E313de | — |
| meta.preprocessor | #EFAF8Fde | — |
| meta.preprocessor.numeric | #11DADAde | — |
| meta.preprocessor.string | #BEBEFEde | — |
| meta.scope.prerequisites.makefile | #E3ADFEde | — |
| meta.structure.dictionary.json.comments | #C9C97F6e | — |
| meta.structure.dictionary.key.python | #9E9EEBde | — |
| meta.structure.dictionary.value.json.comments | #C9C9776e | — |
| meta.template.expression | #AAAAF6de | — |
| meta.type.cast.expr | #9D9DF1de | — |
| meta.type.new.expr | #FDB491de | — |
| parameter | #CF8FEFde | — |
| punctuation.character.set.begin.regexp | #CC8DEBde | — |
| punctuation.character.set.end.regexp | #F1B495de | — |
| punctuation.definition.array.begin.json | #94D710de | — |
| punctuation.definition.character-class.regexp | #FEADC8de | — |
| punctuation.definition.comment | #C9C9776e | — |
| punctuation.definition.comment.json.comments | #C8C8746e | — |
| punctuation.definition.comment.python | #C9C97A6e | — |
| punctuation.definition.dictionary.begin.json | #E68AA8de | — |
| punctuation.definition.dictionary.end.json | #0FE30Fde | — |
| punctuation.definition.group.assertion.regexp | #14E414de | — |
| punctuation.definition.group.regexp | #ED89AAde | — |
| punctuation.definition.list.begin.json | #13DADAde | — |
| punctuation.definition.list.begin.markdown | #E0B1F8de | — |
| punctuation.definition.list.begin.python | #D69CF3de | — |
| punctuation.definition.list.end.json | #0ED8D8de | — |
| punctuation.definition.list.end.markdown | #CF8FEFde | — |
| punctuation.definition.list.end.python | #97D717de | — |
| punctuation.definition.parameters.begin.python | #94D80Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F8B1C8de | — |
| punctuation.definition.quote.begin.markdown | #9E9EEBde | — |
| punctuation.definition.tag | #CB8EE9de | — |
| punctuation.definition.template-expression.begin | #F8B1C8de | — |
| punctuation.definition.template-expression.end | #EB88A9de | — |
| punctuation.section.class.begin.bracket.curly.java | #10D9D9de | — |
| punctuation.section.embedded | #F1B495de | — |
| punctuation.section.embedded.begin.php | #CB8DEAde | — |
| punctuation.section.embedded.end.php | #16D9D9de | — |
| punctuation.terminator.java | #10D9D9de | — |
| source.cmake | #CB8DEAde | — |
| source.coffee.embedded | #97D717de | — |
| source.cpp | #FEB491de | — |
| source.css.less | #E5B1FEde | — |
| source.groovy.embedded | #E0B1F8de | — |
| source.java | #E3ADFEde | — |
| source.java-properties | #E3ADFEde | — |
| source.json.comments | #C9C9776e | — |
| source.makefile | #F4A3BEde | — |
| source.powershell | #97D617de | — |
| source.powershell.variable.other.member | #FDB491de | — |
| source.python | #14E414de | — |
| storage | #9E9EEBde | — |
| storage.modifier | #9E9EEAde | — |
| storage.modifier.import.java | #F8B1C8de | — |
| storage.modifier.package.java | #97D617de | — |
| storage.type | #17DADAde | — |
| storage.type.annotation.groovy | #97D816de | — |
| storage.type.annotation.java | #97D716de | — |
| storage.type.boolean.go | #F4A3BEde | — |
| storage.type.byte.go | #94D811de | — |
| storage.type.cs | #FEADC7de | — |
| storage.type.error.go | #F1B495de | — |
| storage.type.generic.cs | #97D716de | — |
| storage.type.generic.groovy | #15E415de | — |
| storage.type.generic.java | #E0B1F8de | — |
| storage.type.groovy | #FDB48Fde | — |
| storage.type.java | #CA8EE8de | — |
| storage.type.modifier.cs | #0ED8D8de | — |
| storage.type.numeric.go | #EB88A9de | — |
| storage.type.object.array.groovy | #13DADAde | — |
| storage.type.object.array.java | #17DADAde | — |
| storage.type.parameters.groovy | #96D714de | — |
| storage.type.primitive.array.groovy | #CF8FEFde | — |
| storage.type.primitive.array.java | #F6AAC3de | — |
| storage.type.primitive.groovy | #FEADC8de | — |
| storage.type.primitive.java | #16D9D9de | — |
| storage.type.rune.go | #FDB490de | — |
| storage.type.string.go | #16D9D9de | — |
| storage.type.token.java | #11E211de | — |
| storage.type.uintptr.go | #E5B1FEde | — |
| storage.type.variable.cs | #16E416de | — |
| string | #94D80Fde | — |
| string.quoted.docstring.multi.python | #C9C97F6e | — |
| string.regexp | #E59B76de | — |
| string.tag | #BEBEFEde | — |
| string.value | #CF8FEFde | — |
| strong | #FEADC7de | — |
| support.class | #14E314de | — |
| support.constant.color | #96D715de | — |
| support.constant.dom | #9E9EEDde | — |
| support.constant.font-name | #F39CB9de | — |
| support.constant.handlebars | #9E9EEEde | — |
| support.constant.json | #D295F1de | — |
| support.constant.math | #9D9DF1de | — |
| support.constant.media | #9D9DF0de | — |
| support.constant.media-type | #FDB490de | — |
| support.constant.property-value | #0FE30Fde | — |
| support.function | #E0B1F8de | — |
| support.function.git-rebase | #13DADAde | — |
| support.other.parenthesis.regexp | #97D717de | — |
| support.type | #A3A3F4de | — |
| support.type.property-name | #FEB38Ede | — |
| support.type.vendored.property-name | #CB8DEAde | — |
| support.variable | #15D9D9de | — |
| token.debug-token | #14D9D9de | — |
| token.error-token | #FEB491de | — |
| token.info-token | #0FDADAde | — |
| token.warn-token | #F195B4de | — |
| variable | #9D9DF2de | — |
| variable.css | #CC8DEBde | — |
| variable.language | #17DADAde | — |
| variable.language.wildcard.java | #F8B1C8de | — |
| variable.other.constant | #E5B1FEde | — |
| variable.other.definition.java | #16E416de | — |
| variable.other.enummember | #15E415de | — |
| variable.other.less | #B1B1F8de | — |
| variable.other.object.java | #B8B8F9de | — |
| variable.other.object.property.java | #FEADC7de | — |
| variable.parameter.c | #0FE30Fde | — |
| variable.parameter.function.language.python | #BFBFFAde | — |
| variable.parameter.java | #EAA582de | — |
| variable.scss | #CF8FEFde | — |
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}!`;
}