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 | #CDCD706e | — |
| comment.block.html | #CDCD706e | — |
| comment.block.java | #CDCD726e | — |
| comment.block.javadoc.java | #CDCD706e | — |
| comment.block.powershell | #CDCD726e | — |
| comment.block.xml | #CDCD706e | — |
| comment.line.double-slash.c | #CCCC766e | — |
| comment.line.double-slash.cpp | #CCCC766e | — |
| comment.line.double-slash.java | #CDCD706e | — |
| comment.line.double-slash.js | #CDCD726e | — |
| comment.line.number-sign.makefile | #CDCD726e | — |
| comment.line.number-sign.python | #CCCC766e | — |
| comment.line.number-sign.yaml | #CDCD706e | — |
| comment.line.percentage.erlang | #CDCD706e | — |
| comment.line.powershell | #CCCC6C6e | — |
| comment.source.cmake | #CCCC766e | — |
| comment.source.cmakecache | #CCCC766e | — |
| constant.character | #FEADF4de | — |
| constant.character.character-class.regexp | #88C4F3de | — |
| constant.character.escape | #92CFFEde | — |
| constant.character.set.regexp | #F080E2de | — |
| constant.language | #0BE677de | — |
| constant.numeric | #B19CF2de | — |
| constant.numeric.dec.python | #CEBEFEde | — |
| constant.other.caps.python | #FEADF4de | — |
| constant.other.character-class.regexp | #41E60Ade | — |
| constant.other.character-class.set.regexp | #B29CF5de | — |
| constant.other.color.rgb-value | #F1C40Bde | — |
| constant.other.placeholder | #F18C8Cde | — |
| constant.other.rgb-value | #44E60Ede | — |
| constant.regexp | #0DE477de | — |
| constant.sha.git-rebase | #0BE677de | — |
| emphasis | #45E60Fde | — |
| entity.name.class | #65B0EBde | — |
| entity.name.function | #0EE67Ade | — |
| entity.name.function.preprocessor | #F08D8Dde | — |
| entity.name.function.python | #43E50Ede | — |
| entity.name.label | #B29BF6de | — |
| entity.name.namespace | #43E40Cde | — |
| entity.name.operator | #45E60Fde | — |
| entity.name.operator.custom-literal | #F0C40Ede | — |
| entity.name.scope-resolution | #0CE47Ade | — |
| entity.name.tag | #EBC40Cde | — |
| entity.name.tag.css | #F281E4de | — |
| entity.name.type | #B19CF2de | — |
| entity.name.variable | #F58FE8de | — |
| entity.other.attribute | #EEC50Ede | — |
| entity.other.attribute-name | #C0ADFAde | — |
| entity.other.attribute-name.class.css | #8FC8F5de | — |
| entity.other.attribute-name.class.mixin.css | #B49EF7de | — |
| entity.other.attribute-name.id | #FAB5B5de | — |
| entity.other.attribute-name.id.css | #CEBEFEde | — |
| entity.other.attribute-name.parent-selector.css | #FEADF4de | — |
| entity.other.attribute-name.pseudo-class.css | #B29CF5de | — |
| entity.other.attribute-name.pseudo-element.css | #0FE57Ade | — |
| entity.other.attribute-name.scss | #F58FE8de | — |
| entity.other.document.begin.yaml | #CCCC6C6e | — |
| entity.other.inherited-class | #C0ADFAde | — |
| header | #FEADF4de | — |
| invalid | #08E574de | — |
| keyword | #46E610de | — |
| keyword.codetag.notation.python | #CDBCFEde | — |
| keyword.control | #0FE57Ade | — |
| keyword.control.anchor.regexp | #44E60Fde | — |
| keyword.control.import.python | #F38B8Bde | — |
| keyword.operator | #10E67Cde | — |
| keyword.operator.alignas | #08E574de | — |
| keyword.operator.alignof | #F79EECde | — |
| keyword.operator.cast | #BAA5F8de | — |
| keyword.operator.delete | #F69696de | — |
| keyword.operator.documentation.powershell | #CDCD706e | — |
| keyword.operator.expression | #B19BF6de | — |
| keyword.operator.instanceof | #F79E9Ede | — |
| keyword.operator.logical.python | #CDBCFEde | — |
| keyword.operator.minus.exponent | #EDC40Ade | — |
| keyword.operator.negation.regexp | #B49EF7de | — |
| keyword.operator.new | #44E60Ede | — |
| keyword.operator.noexcept | #43E50Fde | — |
| keyword.operator.or.regexp | #F18D8Dde | — |
| keyword.operator.plus.exponent | #ECC40Ede | — |
| keyword.operator.quantifier.regexp | #44E60Fde | — |
| keyword.operator.sizeof | #F0C40Ede | — |
| keyword.operator.typeid | #B19BF6de | — |
| keyword.operator.wordlike | #F0C40Ede | — |
| keyword.other.operator | #08E574de | — |
| keyword.other.package.java | #FAB5B5de | — |
| keyword.other.unit | #0EE67Ade | — |
| keyword.other.using | #0CE47Ade | — |
| markup.bold | #F080E2de | — |
| markup.changed | #90CFFDde | — |
| markup.deleted | #C6B5FAde | — |
| markup.fenced_code.block.markdown | #FEADF4de | — |
| markup.heading | #EEC50Ede | — |
| markup.inline.raw | #B19BF6de | — |
| markup.inserted | #F18D8Dde | — |
| markup.italic | #FAADF0de | — |
| markup.raw.block.markdown | #F28C8Cde | — |
| markup.strikethrough | #EDC40Fde | — |
| markup.underline | #44E60Fde | — |
| meta.block.c | #EEC50Ede | — |
| meta.block.c | #73B8EEde | — |
| meta.class.java | #ECC40Ede | — |
| meta.definition.variable.name | #44E50Ede | — |
| meta.diff.header | #FEB3B3de | — |
| meta.embedded | #F38B8Bde | — |
| meta.embedded.assembly | #F388E6de | — |
| meta.function-call.arguments.python | #F69696de | — |
| meta.function-call.python | #F58F8Fde | — |
| meta.member.access.python | #F38B8Bde | — |
| meta.method.java | #F1C40Bde | — |
| meta.object-literal.key | #EFC408de | — |
| meta.paragraph.markdown | #0FE67Ade | — |
| meta.preprocessor | #91CFFDde | — |
| meta.preprocessor.numeric | #ECC40Ede | — |
| meta.preprocessor.string | #91CFFDde | — |
| meta.scope.prerequisites.makefile | #B29CF3de | — |
| meta.structure.dictionary.json.comments | #CCCC766e | — |
| meta.structure.dictionary.key.python | #0AE678de | — |
| meta.structure.dictionary.value.json.comments | #CDCD706e | — |
| meta.template.expression | #EEC40Ede | — |
| meta.type.cast.expr | #CCBCFBde | — |
| meta.type.new.expr | #B29CF5de | — |
| parameter | #46E610de | — |
| punctuation.character.set.begin.regexp | #F8A5A5de | — |
| punctuation.character.set.end.regexp | #F69696de | — |
| punctuation.definition.array.begin.json | #73B8EEde | — |
| punctuation.definition.character-class.regexp | #F79E9Ede | — |
| punctuation.definition.comment | #CDCD706e | — |
| punctuation.definition.comment.json.comments | #CCCC766e | — |
| punctuation.definition.comment.python | #CCCC766e | — |
| punctuation.definition.dictionary.begin.json | #92CFFEde | — |
| punctuation.definition.dictionary.end.json | #0FE57Ade | — |
| punctuation.definition.group.assertion.regexp | #EEC50Ede | — |
| punctuation.definition.group.regexp | #F388E6de | — |
| punctuation.definition.list.begin.json | #88C4F3de | — |
| punctuation.definition.list.begin.markdown | #EEC50Ede | — |
| punctuation.definition.list.begin.python | #43E50Ede | — |
| punctuation.definition.list.end.json | #F58FE8de | — |
| punctuation.definition.list.end.markdown | #92CFFEde | — |
| punctuation.definition.list.end.python | #FEABF5de | — |
| punctuation.definition.parameters.begin.python | #44E60Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #B19CF2de | — |
| punctuation.definition.quote.begin.markdown | #F080E2de | — |
| punctuation.definition.tag | #F281E4de | — |
| punctuation.definition.template-expression.begin | #93CFFEde | — |
| punctuation.definition.template-expression.end | #93CFFEde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEB3B3de | — |
| punctuation.section.embedded | #81C0F2de | — |
| punctuation.section.embedded.begin.php | #F28C8Cde | — |
| punctuation.section.embedded.end.php | #65B0EBde | — |
| punctuation.terminator.java | #F79E9Ede | — |
| source.cmake | #B19BF4de | — |
| source.coffee.embedded | #0CE47Ade | — |
| source.cpp | #0FE67Ade | — |
| source.css.less | #C6B5FAde | — |
| source.groovy.embedded | #41E60Bde | — |
| source.java | #CDBCFEde | — |
| source.java-properties | #F0C40Ede | — |
| source.json.comments | #CDCD706e | — |
| source.makefile | #0CE47Ade | — |
| source.powershell | #0DE477de | — |
| source.powershell.variable.other.member | #FEADF4de | — |
| source.python | #B29CF3de | — |
| storage | #44E60Fde | — |
| storage.modifier | #91CFFEde | — |
| storage.modifier.import.java | #0EE67Bde | — |
| storage.modifier.package.java | #EF80E2de | — |
| storage.type | #B29CF3de | — |
| storage.type.annotation.groovy | #93CFFEde | — |
| storage.type.annotation.java | #F69696de | — |
| storage.type.boolean.go | #EF81E1de | — |
| storage.type.byte.go | #F0C40Ede | — |
| storage.type.cs | #C6B5FAde | — |
| storage.type.error.go | #F8A5EEde | — |
| storage.type.generic.cs | #EDC40Fde | — |
| storage.type.generic.groovy | #F8A5A5de | — |
| storage.type.generic.java | #65B0EBde | — |
| storage.type.groovy | #0DE477de | — |
| storage.type.java | #EFC408de | — |
| storage.type.modifier.cs | #41E60Bde | — |
| storage.type.numeric.go | #90CFFDde | — |
| storage.type.object.array.groovy | #CEBEFEde | — |
| storage.type.object.array.java | #0FE67Cde | — |
| storage.type.parameters.groovy | #F1C40Bde | — |
| storage.type.primitive.array.groovy | #EEC40Fde | — |
| storage.type.primitive.array.java | #FAADADde | — |
| storage.type.primitive.groovy | #41E60Bde | — |
| storage.type.primitive.java | #42E40Dde | — |
| storage.type.rune.go | #6CB4EDde | — |
| storage.type.string.go | #7ABCF0de | — |
| storage.type.token.java | #EDC40Fde | — |
| storage.type.uintptr.go | #EEC50Ede | — |
| storage.type.variable.cs | #B19CF2de | — |
| string | #CEBEFEde | — |
| string.quoted.docstring.multi.python | #CCCC6C6e | — |
| string.regexp | #0FE67Ade | — |
| string.tag | #6CB4EDde | — |
| string.value | #44E50Fde | — |
| strong | #42E40Dde | — |
| support.class | #B19BF4de | — |
| support.constant.color | #96CCF6de | — |
| support.constant.dom | #41E60Bde | — |
| support.constant.font-name | #0FE57Ade | — |
| support.constant.handlebars | #F1C40Bde | — |
| support.constant.json | #F58F8Fde | — |
| support.constant.math | #7ABCF0de | — |
| support.constant.media | #F18C8Cde | — |
| support.constant.media-type | #EF80E2de | — |
| support.constant.property-value | #EBC40Cde | — |
| support.function | #F281E4de | — |
| support.function.git-rebase | #41E60Ade | — |
| support.other.parenthesis.regexp | #91CFFDde | — |
| support.type | #EDC30Dde | — |
| support.type.property-name | #0BE677de | — |
| support.type.vendored.property-name | #08E574de | — |
| support.variable | #F1C40Bde | — |
| token.debug-token | #CEBEFEde | — |
| token.error-token | #93CFFEde | — |
| token.info-token | #C0ADFAde | — |
| token.warn-token | #EDC30Ede | — |
| variable | #92CFFEde | — |
| variable.css | #C0ADFAde | — |
| variable.language | #0FE67Ade | — |
| variable.language.wildcard.java | #46E610de | — |
| variable.other.constant | #41E60Bde | — |
| variable.other.definition.java | #8FC8F5de | — |
| variable.other.enummember | #0DE477de | — |
| variable.other.less | #92CFFEde | — |
| variable.other.object.java | #0EE67Ade | — |
| variable.other.object.property.java | #ECC40Ede | — |
| variable.parameter.c | #45E60Fde | — |
| variable.parameter.function.language.python | #F38B8Bde | — |
| variable.parameter.java | #FEABF5de | — |
| variable.scss | #44E60Ede | — |
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}!`;
}