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 | #BFBFBF6e | — |
| comment.block.html | #BFBFBF6e | — |
| comment.block.java | #BFBFBF6e | — |
| comment.block.javadoc.java | #BFBFBF6e | — |
| comment.block.powershell | #BFBFBF6e | — |
| comment.block.xml | #BFBFBF6e | — |
| comment.line.double-slash.c | #BFBFBF6e | — |
| comment.line.double-slash.cpp | #BEBEBE6e | — |
| comment.line.double-slash.java | #BFBFBF6e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #BFBFBF6e | — |
| comment.line.number-sign.python | #BEBEBE6e | — |
| comment.line.number-sign.yaml | #BFBFBF6e | — |
| comment.line.percentage.erlang | #BFBFBF6e | — |
| comment.line.powershell | #BEBEBE6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BFBFBF6e | — |
| constant.character | #85D410de | — |
| constant.character.character-class.regexp | #F2A2FEde | — |
| constant.character.escape | #0ED3E2de | — |
| constant.character.set.regexp | #08D3E5de | — |
| constant.language | #85D310de | — |
| constant.numeric | #B8B8FEde | — |
| constant.numeric.dec.python | #B3B3FEde | — |
| constant.other.caps.python | #FBB05Dde | — |
| constant.other.character-class.regexp | #FEA2BBde | — |
| constant.other.character-class.set.regexp | #EBAC64de | — |
| constant.other.color.rgb-value | #B3B3FEde | — |
| constant.other.placeholder | #0ADD43de | — |
| constant.other.rgb-value | #EBAC64de | — |
| constant.regexp | #E78EF5de | — |
| constant.sha.git-rebase | #10D2E0de | — |
| emphasis | #9999F4de | — |
| entity.name.class | #84D30Cde | — |
| entity.name.function | #0EDC45de | — |
| entity.name.function.preprocessor | #0FD3E2de | — |
| entity.name.function.python | #B8B8FEde | — |
| entity.name.label | #F2A2FEde | — |
| entity.name.namespace | #FBAF5Ade | — |
| entity.name.operator | #85D40Ade | — |
| entity.name.operator.custom-literal | #0AD2E1de | — |
| entity.name.scope-resolution | #85D30Fde | — |
| entity.name.tag | #A5A5F9de | — |
| entity.name.tag.css | #9797F6de | — |
| entity.name.type | #F07D9Bde | — |
| entity.name.variable | #0ED3E2de | — |
| entity.other.attribute | #E78EF5de | — |
| entity.other.attribute-name | #FEA6BEde | — |
| entity.other.attribute-name.class.css | #E996F6de | — |
| entity.other.attribute-name.class.mixin.css | #F79DB5de | — |
| entity.other.attribute-name.id | #0DDC45de | — |
| entity.other.attribute-name.id.css | #FAB059de | — |
| entity.other.attribute-name.parent-selector.css | #FBB05Ade | — |
| entity.other.attribute-name.pseudo-class.css | #ED7E9Cde | — |
| entity.other.attribute-name.pseudo-element.css | #83D30Fde | — |
| entity.other.attribute-name.scss | #85D40Bde | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #85D40Ade | — |
| header | #85D410de | — |
| invalid | #FEA6BEde | — |
| keyword | #83D30Fde | — |
| keyword.codetag.notation.python | #10D2E0de | — |
| keyword.control | #F387A4de | — |
| keyword.control.anchor.regexp | #FBB05Dde | — |
| keyword.control.import.python | #A5A5F9de | — |
| keyword.operator | #83D30Fde | — |
| keyword.operator.alignas | #0BD3E3de | — |
| keyword.operator.alignof | #E587F3de | — |
| keyword.operator.cast | #DD7AECde | — |
| keyword.operator.delete | #10D2E0de | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #0FDD46de | — |
| keyword.operator.instanceof | #FEA6BEde | — |
| keyword.operator.logical.python | #FBB05Dde | — |
| keyword.operator.minus.exponent | #0EDD45de | — |
| keyword.operator.negation.regexp | #F2A2FEde | — |
| keyword.operator.new | #0ED3E2de | — |
| keyword.operator.noexcept | #EBAC64de | — |
| keyword.operator.or.regexp | #10D2E0de | — |
| keyword.operator.plus.exponent | #85D310de | — |
| keyword.operator.quantifier.regexp | #0EDD44de | — |
| keyword.operator.sizeof | #0FDD46de | — |
| keyword.operator.typeid | #0FD3E1de | — |
| keyword.operator.wordlike | #85D40Ade | — |
| keyword.other.operator | #08DC40de | — |
| keyword.other.package.java | #ED7E9Cde | — |
| keyword.other.unit | #F2A2FEde | — |
| keyword.other.using | #0EDD45de | — |
| markup.bold | #E587F3de | — |
| markup.changed | #ACACFAde | — |
| markup.deleted | #EB9DF7de | — |
| markup.fenced_code.block.markdown | #85D310de | — |
| markup.heading | #EF7E9Bde | — |
| markup.inline.raw | #FEA6BEde | — |
| markup.inserted | #0AD2E1de | — |
| markup.italic | #10D3E1de | — |
| markup.raw.block.markdown | #0FDC45de | — |
| markup.strikethrough | #0ED2DFde | — |
| markup.underline | #0DD2DEde | — |
| meta.block.c | #0FD3E2de | — |
| meta.block.c | #0FDD47de | — |
| meta.class.java | #FAB059de | — |
| meta.definition.variable.name | #85D30Ede | — |
| meta.diff.header | #E996F6de | — |
| meta.embedded | #FAB058de | — |
| meta.embedded.assembly | #85D310de | — |
| meta.function-call.arguments.python | #FEA6BEde | — |
| meta.function-call.python | #FBB05Bde | — |
| meta.member.access.python | #0AD2E1de | — |
| meta.method.java | #9999F4de | — |
| meta.object-literal.key | #0EDC44de | — |
| meta.paragraph.markdown | #FBB05Ade | — |
| meta.preprocessor | #FEA6BEde | — |
| meta.preprocessor.numeric | #EDB06Bde | — |
| meta.preprocessor.string | #0FDD47de | — |
| meta.scope.prerequisites.makefile | #9898F3de | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #ACACFAde | — |
| meta.structure.dictionary.value.json.comments | #BEBEBE6e | — |
| meta.template.expression | #F8A5BBde | — |
| meta.type.cast.expr | #10DC46de | — |
| meta.type.new.expr | #9898F2de | — |
| parameter | #85D40Bde | — |
| punctuation.character.set.begin.regexp | #F2809Ede | — |
| punctuation.character.set.end.regexp | #FBB05Bde | — |
| punctuation.definition.array.begin.json | #FEA2BBde | — |
| punctuation.definition.character-class.regexp | #9999F4de | — |
| punctuation.definition.comment | #BFBFBF6e | — |
| punctuation.definition.comment.json.comments | #BEBEBE6e | — |
| punctuation.definition.comment.python | #BEBEBE6e | — |
| punctuation.definition.dictionary.begin.json | #0FDD46de | — |
| punctuation.definition.dictionary.end.json | #F387A4de | — |
| punctuation.definition.group.assertion.regexp | #86D410de | — |
| punctuation.definition.group.regexp | #FBAF5Ade | — |
| punctuation.definition.list.begin.json | #10D3E1de | — |
| punctuation.definition.list.begin.markdown | #85D310de | — |
| punctuation.definition.list.begin.python | #85D310de | — |
| punctuation.definition.list.end.json | #EF7D9Bde | — |
| punctuation.definition.list.end.markdown | #F1A2FEde | — |
| punctuation.definition.list.end.python | #E079F0de | — |
| punctuation.definition.parameters.begin.python | #9797F6de | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEA6BEde | — |
| punctuation.definition.quote.begin.markdown | #0EDD45de | — |
| punctuation.definition.tag | #B3B3FEde | — |
| punctuation.definition.template-expression.begin | #FAB058de | — |
| punctuation.definition.template-expression.end | #DE79EDde | — |
| punctuation.section.class.begin.bracket.curly.java | #EF7D9Bde | — |
| punctuation.section.embedded | #EBAC64de | — |
| punctuation.section.embedded.begin.php | #0FD3E2de | — |
| punctuation.section.embedded.end.php | #E78EF5de | — |
| punctuation.terminator.java | #0FD3E1de | — |
| source.cmake | #9797F5de | — |
| source.coffee.embedded | #B3B3FEde | — |
| source.cpp | #85D410de | — |
| source.css.less | #85D30Fde | — |
| source.groovy.embedded | #86D410de | — |
| source.java | #0BD3E3de | — |
| source.java-properties | #0ED3E2de | — |
| source.json.comments | #BEBEBE6e | — |
| source.makefile | #F696AFde | — |
| source.powershell | #85D410de | — |
| source.powershell.variable.other.member | #FBAF5Ade | — |
| source.python | #80D505de | — |
| storage | #0BD3E3de | — |
| storage.modifier | #DF79EEde | — |
| storage.modifier.import.java | #10DC46de | — |
| storage.modifier.package.java | #9999F4de | — |
| storage.type | #83D30Fde | — |
| storage.type.annotation.groovy | #E079F0de | — |
| storage.type.annotation.java | #0EDD45de | — |
| storage.type.boolean.go | #80D505de | — |
| storage.type.byte.go | #9D9DF8de | — |
| storage.type.cs | #85D40Ade | — |
| storage.type.error.go | #B3B3FEde | — |
| storage.type.generic.cs | #F07D9Bde | — |
| storage.type.generic.groovy | #E78EF5de | — |
| storage.type.generic.java | #FBB05Ede | — |
| storage.type.groovy | #F2A2FEde | — |
| storage.type.java | #EF7D9Bde | — |
| storage.type.modifier.cs | #FBB05Bde | — |
| storage.type.numeric.go | #9797F6de | — |
| storage.type.object.array.groovy | #F58EA9de | — |
| storage.type.object.array.java | #F1A2FEde | — |
| storage.type.parameters.groovy | #EB9DF7de | — |
| storage.type.primitive.array.groovy | #EE7E9Cde | — |
| storage.type.primitive.array.java | #EF7E9Bde | — |
| storage.type.primitive.groovy | #E079F0de | — |
| storage.type.primitive.java | #FBB05Bde | — |
| storage.type.rune.go | #84D30Dde | — |
| storage.type.string.go | #F58EA9de | — |
| storage.type.token.java | #FAB058de | — |
| storage.type.uintptr.go | #DF79EEde | — |
| storage.type.variable.cs | #0CD2E0de | — |
| string | #FEA6BEde | — |
| string.quoted.docstring.multi.python | #BFBFBF6e | — |
| string.regexp | #85D30Ede | — |
| string.tag | #0EDD45de | — |
| string.value | #85D30Ede | — |
| strong | #0ED3DFde | — |
| support.class | #F696AFde | — |
| support.constant.color | #DF79EEde | — |
| support.constant.dom | #EE7E9Cde | — |
| support.constant.font-name | #86D410de | — |
| support.constant.handlebars | #0EDC44de | — |
| support.constant.json | #FEA6BEde | — |
| support.constant.math | #E380F2de | — |
| support.constant.media | #FAB058de | — |
| support.constant.media-type | #F387A4de | — |
| support.constant.property-value | #9797F5de | — |
| support.function | #FCB059de | — |
| support.function.git-rebase | #F2A2FEde | — |
| support.other.parenthesis.regexp | #08DC40de | — |
| support.type | #9898F1de | — |
| support.type.property-name | #0EDC45de | — |
| support.type.vendored.property-name | #0FDD46de | — |
| support.variable | #DD7AECde | — |
| token.debug-token | #0FD3E2de | — |
| token.error-token | #9999F4de | — |
| token.info-token | #9D9DF8de | — |
| token.warn-token | #FEA6BEde | — |
| variable | #FCB059de | — |
| variable.css | #DE79EDde | — |
| variable.language | #9D9DF8de | — |
| variable.language.wildcard.java | #0BD3E3de | — |
| variable.other.constant | #85D40Ade | — |
| variable.other.definition.java | #EDA5F8de | — |
| variable.other.enummember | #FAB058de | — |
| variable.other.less | #9999F4de | — |
| variable.other.object.java | #FBB05Ade | — |
| variable.other.object.property.java | #0AD2E1de | — |
| variable.parameter.c | #FDAF57de | — |
| variable.parameter.function.language.python | #EDA5F8de | — |
| variable.parameter.java | #0FDC45de | — |
| variable.scss | #DE79EEde | — |
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}!`;
}