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 | #B4B4B46e | — |
| comment.block.html | #BCBCBC6e | — |
| comment.block.java | #B8B8B86e | — |
| comment.block.javadoc.java | #A5A5A56e | — |
| comment.block.powershell | #B4B4B46e | — |
| comment.block.xml | #C0C0C06e | — |
| comment.line.double-slash.c | #BABABA6e | — |
| comment.line.double-slash.cpp | #A9A9A96e | — |
| comment.line.double-slash.java | #AAAAAA6e | — |
| comment.line.double-slash.js | #BCBCBC6e | — |
| comment.line.number-sign.makefile | #A8A8A86e | — |
| comment.line.number-sign.python | #C2C2C26e | — |
| comment.line.number-sign.yaml | #B1B1B16e | — |
| comment.line.percentage.erlang | #A9A9A96e | — |
| comment.line.powershell | #BCBCBC6e | — |
| comment.source.cmake | #B3B3B36e | — |
| comment.source.cmakecache | #C0C0C06e | — |
| constant.character | #89C9F3de | — |
| constant.character.character-class.regexp | #B6A0F8de | — |
| constant.character.escape | #07C968de | — |
| constant.character.set.regexp | #61BE29de | — |
| constant.language | #07D66Ede | — |
| constant.numeric | #4FC708de | — |
| constant.numeric.dec.python | #73BCEEde | — |
| constant.other.caps.python | #36DB89de | — |
| constant.other.character-class.regexp | #6CB9ECde | — |
| constant.other.character-class.set.regexp | #F27DE3de | — |
| constant.other.color.rgb-value | #6BD72Bde | — |
| constant.other.placeholder | #4EC407de | — |
| constant.other.rgb-value | #F58E94de | — |
| constant.regexp | #F280E4de | — |
| constant.sha.git-rebase | #7AC0F0de | — |
| emphasis | #C9B8FBde | — |
| entity.name.class | #F58DE8de | — |
| entity.name.function | #65B5EAde | — |
| entity.name.function.preprocessor | #C3B1FAde | — |
| entity.name.function.python | #F69399de | — |
| entity.name.label | #D3A929de | — |
| entity.name.namespace | #CE9D08de | — |
| entity.name.operator | #E3BC49de | — |
| entity.name.operator.custom-literal | #F590E8de | — |
| entity.name.scope-resolution | #6BB8ECde | — |
| entity.name.tag | #F89DECde | — |
| entity.name.tag.css | #BAA5F9de | — |
| entity.name.type | #F9A5AAde | — |
| entity.name.variable | #F8A0A5de | — |
| entity.other.attribute | #C9B8FBde | — |
| entity.other.attribute-name | #F281E4de | — |
| entity.other.attribute-name.class.css | #F89DECde | — |
| entity.other.attribute-name.class.mixin.css | #F79BEBde | — |
| entity.other.attribute-name.id | #F694EAde | — |
| entity.other.attribute-name.id.css | #DBB237de | — |
| entity.other.attribute-name.parent-selector.css | #56DA07de | — |
| entity.other.attribute-name.pseudo-class.css | #67B6EBde | — |
| entity.other.attribute-name.pseudo-element.css | #2AD681de | — |
| entity.other.attribute-name.scss | #E2BB45de | — |
| entity.other.document.begin.yaml | #A7A7A76e | — |
| entity.other.inherited-class | #C7B6FBde | — |
| header | #F8A1A6de | — |
| invalid | #08CE6Bde | — |
| keyword | #58ADE6de | — |
| keyword.codetag.notation.python | #E3BC49de | — |
| keyword.control | #B19AF7de | — |
| keyword.control.anchor.regexp | #6AB7EBde | — |
| keyword.control.import.python | #F7989Ede | — |
| keyword.operator | #C0ADFAde | — |
| keyword.operator.alignas | #63B3E9de | — |
| keyword.operator.alignof | #7AC0F0de | — |
| keyword.operator.cast | #F48B91de | — |
| keyword.operator.delete | #08D970de | — |
| keyword.operator.documentation.powershell | #A4A4A46e | — |
| keyword.operator.expression | #B8A3F8de | — |
| keyword.operator.instanceof | #EEB407de | — |
| keyword.operator.logical.python | #6BB9ECde | — |
| keyword.operator.minus.exponent | #29CF7Cde | — |
| keyword.operator.negation.regexp | #53CE08de | — |
| keyword.operator.new | #80C4F2de | — |
| keyword.operator.noexcept | #C4B2FAde | — |
| keyword.operator.or.regexp | #C69F29de | — |
| keyword.operator.plus.exponent | #07DC72de | — |
| keyword.operator.quantifier.regexp | #6BD62Bde | — |
| keyword.operator.sizeof | #58ADE6de | — |
| keyword.operator.typeid | #F79CA1de | — |
| keyword.operator.wordlike | #F488E6de | — |
| keyword.other.operator | #65CB28de | — |
| keyword.other.package.java | #29BE73de | — |
| keyword.other.unit | #55ABE5de | — |
| keyword.other.using | #F58E95de | — |
| markup.bold | #4CBE08de | — |
| markup.changed | #6DB9ECde | — |
| markup.deleted | #29C678de | — |
| markup.fenced_code.block.markdown | #AE96F7de | — |
| markup.heading | #37DB89de | — |
| markup.inline.raw | #F58EE8de | — |
| markup.inserted | #C5B4FBde | — |
| markup.italic | #4EC208de | — |
| markup.raw.block.markdown | #C4B2FAde | — |
| markup.strikethrough | #C5B4FBde | — |
| markup.underline | #B19AF7de | — |
| meta.block.c | #F17BE2de | — |
| meta.block.c | #50C508de | — |
| meta.class.java | #2BD680de | — |
| meta.definition.variable.name | #55D806de | — |
| meta.diff.header | #74BDEFde | — |
| meta.embedded | #DEB63Dde | — |
| meta.embedded.assembly | #F48B91de | — |
| meta.function-call.arguments.python | #D6AB2Bde | — |
| meta.function-call.python | #F59096de | — |
| meta.member.access.python | #C69F29de | — |
| meta.method.java | #D19F08de | — |
| meta.object-literal.key | #06D86Fde | — |
| meta.paragraph.markdown | #4EC308de | — |
| meta.preprocessor | #D6AB2Bde | — |
| meta.preprocessor.numeric | #06DC70de | — |
| meta.preprocessor.string | #F0B606de | — |
| meta.scope.prerequisites.makefile | #CFA529de | — |
| meta.structure.dictionary.json.comments | #A3A3A36e | — |
| meta.structure.dictionary.key.python | #70D931de | — |
| meta.structure.dictionary.value.json.comments | #A4A4A46e | — |
| meta.template.expression | #09BF63de | — |
| meta.type.cast.expr | #73BDEEde | — |
| meta.type.new.expr | #88C8F3de | — |
| parameter | #67CF29de | — |
| punctuation.character.set.begin.regexp | #38ACFBde | — |
| punctuation.character.set.end.regexp | #F2B607de | — |
| punctuation.definition.array.begin.json | #F591E9de | — |
| punctuation.definition.character-class.regexp | #F384E5de | — |
| punctuation.definition.comment | #C2C2C26e | — |
| punctuation.definition.comment.json.comments | #A5A5A56e | — |
| punctuation.definition.comment.python | #C2C2C26e | — |
| punctuation.definition.dictionary.begin.json | #F280E4de | — |
| punctuation.definition.dictionary.end.json | #73BDEEde | — |
| punctuation.definition.group.assertion.regexp | #CE9C08de | — |
| punctuation.definition.group.regexp | #F9AAAFde | — |
| punctuation.definition.list.begin.json | #E0B941de | — |
| punctuation.definition.list.begin.markdown | #F4888Ede | — |
| punctuation.definition.list.begin.python | #08DF73de | — |
| punctuation.definition.list.end.json | #F8A2A8de | — |
| punctuation.definition.list.end.markdown | #68B6EBde | — |
| punctuation.definition.list.end.python | #67D029de | — |
| punctuation.definition.parameters.begin.python | #F8A3EEde | — |
| punctuation.definition.parameters.end.bracket.round.java | #7AC0F0de | — |
| punctuation.definition.quote.begin.markdown | #F79AA0de | — |
| punctuation.definition.tag | #65B5EAde | — |
| punctuation.definition.template-expression.begin | #F9A5EEde | — |
| punctuation.definition.template-expression.end | #F4B707de | — |
| punctuation.section.class.begin.bracket.curly.java | #F8A0EDde | — |
| punctuation.section.embedded | #88C8F3de | — |
| punctuation.section.embedded.begin.php | #29BE73de | — |
| punctuation.section.embedded.end.php | #28BA71de | — |
| punctuation.terminator.java | #08D46Dde | — |
| source.cmake | #F6949Ade | — |
| source.coffee.embedded | #29CF7Cde | — |
| source.cpp | #55ACE6de | — |
| source.css.less | #2ED884de | — |
| source.groovy.embedded | #08CC6Ade | — |
| source.java | #81C5F2de | — |
| source.java-properties | #BBA6F9de | — |
| source.json.comments | #AFAFAF6e | — |
| source.makefile | #4CBE07de | — |
| source.powershell | #7FC4F1de | — |
| source.powershell.variable.other.member | #DAA508de | — |
| source.python | #DFB73Fde | — |
| storage | #F7989Ede | — |
| storage.modifier | #61BE29de | — |
| storage.modifier.import.java | #B098F7de | — |
| storage.modifier.package.java | #F179E1de | — |
| storage.type | #79C0F0de | — |
| storage.type.annotation.groovy | #80C4F1de | — |
| storage.type.annotation.java | #DBB136de | — |
| storage.type.boolean.go | #E0A906de | — |
| storage.type.byte.go | #F27DE4de | — |
| storage.type.cs | #F488E6de | — |
| storage.type.error.go | #B7A2F8de | — |
| storage.type.generic.cs | #65B5EAde | — |
| storage.type.generic.groovy | #53D007de | — |
| storage.type.generic.java | #7EC3F1de | — |
| storage.type.groovy | #E3BE49de | — |
| storage.type.java | #F696EAde | — |
| storage.type.modifier.cs | #5EB828de | — |
| storage.type.numeric.go | #F489E7de | — |
| storage.type.object.array.groovy | #AF97F6de | — |
| storage.type.object.array.java | #75BDEEde | — |
| storage.type.parameters.groovy | #58ADE6de | — |
| storage.type.primitive.array.groovy | #C7B5FBde | — |
| storage.type.primitive.array.java | #08D06Cde | — |
| storage.type.primitive.groovy | #F9A5EEde | — |
| storage.type.primitive.java | #B49EF8de | — |
| storage.type.rune.go | #54D806de | — |
| storage.type.string.go | #B8A3F8de | — |
| storage.type.token.java | #B8A2F8de | — |
| storage.type.uintptr.go | #E2BB47de | — |
| storage.type.variable.cs | #E2AC07de | — |
| string | #83C5F2de | — |
| string.quoted.docstring.multi.python | #A4A4A46e | — |
| string.regexp | #BCA8F9de | — |
| string.tag | #F69399de | — |
| string.value | #B7A2F8de | — |
| strong | #55D607de | — |
| support.class | #CFA529de | — |
| support.constant.color | #B19AF7de | — |
| support.constant.dom | #F17DE3de | — |
| support.constant.font-name | #E8AF07de | — |
| support.constant.handlebars | #C0ADFAde | — |
| support.constant.json | #B49DF8de | — |
| support.constant.math | #B19AF7de | — |
| support.constant.media | #C4B2FAde | — |
| support.constant.media-type | #E2AC07de | — |
| support.constant.property-value | #4EC407de | — |
| support.function | #CE9D08de | — |
| support.function.git-rebase | #81C4F1de | — |
| support.other.parenthesis.regexp | #64C629de | — |
| support.type | #08BC63de | — |
| support.type.property-name | #F696EAde | — |
| support.type.vendored.property-name | #DEB53Ade | — |
| support.variable | #61BE29de | — |
| token.debug-token | #F696EAde | — |
| token.error-token | #DCA708de | — |
| token.info-token | #F6959Bde | — |
| token.warn-token | #08C768de | — |
| variable | #6DD82Dde | — |
| variable.css | #F48AE7de | — |
| variable.language | #C9B9FBde | — |
| variable.language.wildcard.java | #C5B3FAde | — |
| variable.other.constant | #56DA07de | — |
| variable.other.definition.java | #F179E2de | — |
| variable.other.enummember | #D9A408de | — |
| variable.other.less | #29CF7Cde | — |
| variable.other.object.java | #F8A3EEde | — |
| variable.other.object.property.java | #07C867de | — |
| variable.parameter.c | #07D56Fde | — |
| variable.parameter.function.language.python | #F6949Ade | — |
| variable.parameter.java | #F9A5AAde | — |
| variable.scss | #F89EEDde | — |
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}!`;
}