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 | #C7C7C76e | — |
| comment.block.html | #F8AFF86e | — |
| comment.block.java | #F7B1F76e | — |
| comment.block.javadoc.java | #F8AFF86e | — |
| comment.block.powershell | #F8AFF86e | — |
| comment.block.xml | #F7B1F76e | — |
| comment.line.double-slash.c | #C7C7C76e | — |
| comment.line.double-slash.cpp | #F7B1F76e | — |
| comment.line.double-slash.java | #C8C8C86e | — |
| comment.line.double-slash.js | #C8C8C86e | — |
| comment.line.number-sign.makefile | #F8AFF86e | — |
| comment.line.number-sign.python | #F7B1F76e | — |
| comment.line.number-sign.yaml | #F8AFF86e | — |
| comment.line.percentage.erlang | #F7B1F76e | — |
| comment.line.powershell | #F7B1F76e | — |
| comment.source.cmake | #F8AFF86e | — |
| comment.source.cmakecache | #C7C7C76e | — |
| constant.character | #B19BF4de | — |
| constant.character.character-class.regexp | #4EE40Ede | — |
| constant.character.escape | #F5C124de | — |
| constant.character.set.regexp | #F68E8Ede | — |
| constant.language | #8AD0FDde | — |
| constant.numeric | #0DE67Ade | — |
| constant.numeric.dec.python | #0BE677de | — |
| constant.other.caps.python | #B19BF6de | — |
| constant.other.character-class.regexp | #B19BF4de | — |
| constant.other.character-class.set.regexp | #4EE50Dde | — |
| constant.other.color.rgb-value | #4FE50Dde | — |
| constant.other.placeholder | #63B6EDde | — |
| constant.other.rgb-value | #4CE40Ade | — |
| constant.regexp | #B19BF4de | — |
| constant.sha.git-rebase | #8AD0FDde | — |
| emphasis | #0DE678de | — |
| entity.name.class | #FEAEF2de | — |
| entity.name.function | #F5C122de | — |
| entity.name.function.preprocessor | #0DE678de | — |
| entity.name.function.python | #F89D9Dde | — |
| entity.name.label | #8DD0FEde | — |
| entity.name.namespace | #0DE67Ade | — |
| entity.name.operator | #5CB2EBde | — |
| entity.name.operator.custom-literal | #BAA5F9de | — |
| entity.name.scope-resolution | #F68EE6de | — |
| entity.name.tag | #F5C225de | — |
| entity.name.tag.css | #F27EE1de | — |
| entity.name.type | #80C5F3de | — |
| entity.name.variable | #4DE40Dde | — |
| entity.other.attribute | #F89D9Dde | — |
| entity.other.attribute-name | #FBB4B4de | — |
| entity.other.attribute-name.class.css | #F38C8Cde | — |
| entity.other.attribute-name.class.mixin.css | #F89DEBde | — |
| entity.other.attribute-name.id | #F38D8Dde | — |
| entity.other.attribute-name.id.css | #8DD0FEde | — |
| entity.other.attribute-name.parent-selector.css | #4EE40Dde | — |
| entity.other.attribute-name.pseudo-class.css | #4FE50Dde | — |
| entity.other.attribute-name.pseudo-element.css | #4FE50Cde | — |
| entity.other.attribute-name.scss | #B29CF5de | — |
| entity.other.document.begin.yaml | #F8AFF86e | — |
| entity.other.inherited-class | #F5C225de | — |
| header | #F5C225de | — |
| invalid | #F9A5EDde | — |
| keyword | #F5C120de | — |
| keyword.codetag.notation.python | #FEADF2de | — |
| keyword.control | #4CE40Cde | — |
| keyword.control.anchor.regexp | #B19BF4de | — |
| keyword.control.import.python | #5CB2EBde | — |
| keyword.operator | #F38D8Dde | — |
| keyword.operator.alignas | #4DE40Ede | — |
| keyword.operator.alignof | #0AE579de | — |
| keyword.operator.cast | #F5C120de | — |
| keyword.operator.delete | #4EE50Dde | — |
| keyword.operator.documentation.powershell | #C8C8C86e | — |
| keyword.operator.expression | #BAA5F9de | — |
| keyword.operator.instanceof | #B49DF8de | — |
| keyword.operator.logical.python | #8AD0FDde | — |
| keyword.operator.minus.exponent | #4CE40Cde | — |
| keyword.operator.negation.regexp | #BAA5F9de | — |
| keyword.operator.new | #CEBEFEde | — |
| keyword.operator.noexcept | #8DD0FEde | — |
| keyword.operator.or.regexp | #FBB4B4de | — |
| keyword.operator.plus.exponent | #FBB4B4de | — |
| keyword.operator.quantifier.regexp | #0DE678de | — |
| keyword.operator.sizeof | #09E577de | — |
| keyword.operator.typeid | #4EE40Ede | — |
| keyword.operator.wordlike | #FEADF2de | — |
| keyword.other.operator | #F6C127de | — |
| keyword.other.package.java | #FEB4B4de | — |
| keyword.other.unit | #F380E2de | — |
| keyword.other.using | #4DE40Dde | — |
| markup.bold | #8ECCF6de | — |
| markup.changed | #EF81DFde | — |
| markup.deleted | #FEB5B5de | — |
| markup.fenced_code.block.markdown | #4AE509de | — |
| markup.heading | #F6C127de | — |
| markup.inline.raw | #B29BF7de | — |
| markup.inserted | #F587E4de | — |
| markup.italic | #FEB4B4de | — |
| markup.raw.block.markdown | #78C1F2de | — |
| markup.strikethrough | #4EE50Dde | — |
| markup.underline | #F9A5A5de | — |
| meta.block.c | #0DE579de | — |
| meta.block.c | #4DE40Ede | — |
| meta.class.java | #F5C122de | — |
| meta.definition.variable.name | #4DE40Dde | — |
| meta.diff.header | #F6C127de | — |
| meta.embedded | #F6C127de | — |
| meta.embedded.assembly | #F89D9Dde | — |
| meta.function-call.arguments.python | #5CB2EBde | — |
| meta.function-call.python | #8AD0FEde | — |
| meta.member.access.python | #4CE40Ade | — |
| meta.method.java | #F5C225de | — |
| meta.object-literal.key | #F5C124de | — |
| meta.paragraph.markdown | #FEABF2de | — |
| meta.preprocessor | #8ACFFEde | — |
| meta.preprocessor.numeric | #C0ADFAde | — |
| meta.preprocessor.string | #4FE50Dde | — |
| meta.scope.prerequisites.makefile | #0DE678de | — |
| meta.structure.dictionary.json.comments | #F7B1F76e | — |
| meta.structure.dictionary.key.python | #F9A5A5de | — |
| meta.structure.dictionary.value.json.comments | #F8AFF86e | — |
| meta.template.expression | #F796E9de | — |
| meta.type.cast.expr | #4EE50Dde | — |
| meta.type.new.expr | #F89D9Dde | — |
| parameter | #09E577de | — |
| punctuation.character.set.begin.regexp | #CDBCFEde | — |
| punctuation.character.set.end.regexp | #EF81DFde | — |
| punctuation.definition.array.begin.json | #CCBCFCde | — |
| punctuation.definition.character-class.regexp | #B29BF7de | — |
| punctuation.definition.comment | #F7B1F76e | — |
| punctuation.definition.comment.json.comments | #F8AFF86e | — |
| punctuation.definition.comment.python | #C8C8C86e | — |
| punctuation.definition.dictionary.begin.json | #4CE40Cde | — |
| punctuation.definition.dictionary.end.json | #F5C124de | — |
| punctuation.definition.group.assertion.regexp | #4FE50Dde | — |
| punctuation.definition.group.regexp | #08E579de | — |
| punctuation.definition.list.begin.json | #F5C122de | — |
| punctuation.definition.list.begin.markdown | #F68E8Ede | — |
| punctuation.definition.list.begin.python | #5CB2EBde | — |
| punctuation.definition.list.end.json | #0EE679de | — |
| punctuation.definition.list.end.markdown | #4CE40Cde | — |
| punctuation.definition.list.end.python | #F79696de | — |
| punctuation.definition.parameters.begin.python | #B29BF7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F6C124de | — |
| punctuation.definition.quote.begin.markdown | #FEABF2de | — |
| punctuation.definition.tag | #0DE678de | — |
| punctuation.definition.template-expression.begin | #8ECCF6de | — |
| punctuation.definition.template-expression.end | #8AD0FDde | — |
| punctuation.section.class.begin.bracket.curly.java | #F38C8Cde | — |
| punctuation.section.embedded | #0DE67Ade | — |
| punctuation.section.embedded.begin.php | #F6C121de | — |
| punctuation.section.embedded.end.php | #F796E9de | — |
| punctuation.terminator.java | #F9A5A5de | — |
| source.cmake | #4DE40Dde | — |
| source.coffee.embedded | #4FE50Dde | — |
| source.cpp | #0DE579de | — |
| source.css.less | #4DE40Ede | — |
| source.groovy.embedded | #B19BF4de | — |
| source.java | #0DE579de | — |
| source.java-properties | #F27EE1de | — |
| source.json.comments | #C7C7C76e | — |
| source.makefile | #4CE40Ade | — |
| source.powershell | #F380E2de | — |
| source.powershell.variable.other.member | #8AD0FDde | — |
| source.python | #4CE40Cde | — |
| storage | #F68EE6de | — |
| storage.modifier | #B19BF6de | — |
| storage.modifier.import.java | #F796E9de | — |
| storage.modifier.package.java | #0DE579de | — |
| storage.type | #F18C8Cde | — |
| storage.type.annotation.groovy | #F28C8Cde | — |
| storage.type.annotation.java | #F587E4de | — |
| storage.type.boolean.go | #B29CF5de | — |
| storage.type.byte.go | #4DE40Dde | — |
| storage.type.cs | #B19BF6de | — |
| storage.type.error.go | #B29CF5de | — |
| storage.type.generic.cs | #80C5F3de | — |
| storage.type.generic.groovy | #F9A5A5de | — |
| storage.type.generic.java | #4EE40Dde | — |
| storage.type.groovy | #B19BF6de | — |
| storage.type.java | #F7C124de | — |
| storage.type.modifier.cs | #F89DEBde | — |
| storage.type.numeric.go | #FEABF2de | — |
| storage.type.object.array.groovy | #0CE679de | — |
| storage.type.object.array.java | #0EE679de | — |
| storage.type.parameters.groovy | #F5C225de | — |
| storage.type.primitive.array.groovy | #F5C124de | — |
| storage.type.primitive.array.java | #B29BF7de | — |
| storage.type.primitive.groovy | #FEB5B5de | — |
| storage.type.primitive.java | #B29BF7de | — |
| storage.type.rune.go | #F6C11Fde | — |
| storage.type.string.go | #F6C11Fde | — |
| storage.type.token.java | #FAADADde | — |
| storage.type.uintptr.go | #F48B8Bde | — |
| storage.type.variable.cs | #F6C124de | — |
| string | #F6C127de | — |
| string.quoted.docstring.multi.python | #C8C8C86e | — |
| string.regexp | #F6C127de | — |
| string.tag | #F9A5EDde | — |
| string.value | #B19BF6de | — |
| strong | #0DE579de | — |
| support.class | #5CB2EBde | — |
| support.constant.color | #8DD0FEde | — |
| support.constant.dom | #F27EE1de | — |
| support.constant.font-name | #F27EE1de | — |
| support.constant.handlebars | #F89DEBde | — |
| support.constant.json | #F587E4de | — |
| support.constant.math | #4AE509de | — |
| support.constant.media | #B19BF4de | — |
| support.constant.media-type | #8AD0FDde | — |
| support.constant.property-value | #87C9F5de | — |
| support.function | #F6C124de | — |
| support.function.git-rebase | #0BE677de | — |
| support.other.parenthesis.regexp | #B29CF3de | — |
| support.type | #FEB5B5de | — |
| support.type.property-name | #FEAEF2de | — |
| support.type.vendored.property-name | #BAA5F9de | — |
| support.variable | #F9A5A5de | — |
| token.debug-token | #FAADADde | — |
| token.error-token | #F6C121de | — |
| token.info-token | #F7C124de | — |
| token.warn-token | #0CE679de | — |
| variable | #8DD0FEde | — |
| variable.css | #78C1F2de | — |
| variable.language | #0DE579de | — |
| variable.language.wildcard.java | #5CB2EBde | — |
| variable.other.constant | #4DE40Ede | — |
| variable.other.definition.java | #4AE509de | — |
| variable.other.enummember | #EF81DFde | — |
| variable.other.less | #4CE40Cde | — |
| variable.other.object.java | #F180E0de | — |
| variable.other.object.property.java | #87C9F5de | — |
| variable.parameter.c | #8CD0FEde | — |
| variable.parameter.function.language.python | #0CE679de | — |
| variable.parameter.java | #FEABF2de | — |
| variable.scss | #4AE509de | — |
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}!`;
}