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 | #BEBEBE6e | — |
| comment.block.javadoc.java | #BFBFBF6e | — |
| comment.block.powershell | #BEBEBE6e | — |
| comment.block.xml | #BFBFBF6e | — |
| comment.line.double-slash.c | #BEBEBE6e | — |
| comment.line.double-slash.cpp | #BEBEBE6e | — |
| comment.line.double-slash.java | #BEBEBE6e | — |
| comment.line.double-slash.js | #BFBFBF6e | — |
| comment.line.number-sign.makefile | #BFBFBF6e | — |
| comment.line.number-sign.python | #BFBFBF6e | — |
| comment.line.number-sign.yaml | #BFBFBF6e | — |
| comment.line.percentage.erlang | #BFBFBF6e | — |
| comment.line.powershell | #BFBFBF6e | — |
| comment.source.cmake | #BFBFBF6e | — |
| comment.source.cmakecache | #BFBFBF6e | — |
| constant.character | #0EDE1Dde | — |
| constant.character.character-class.regexp | #0BD4D4de | — |
| constant.character.escape | #A6ACF8de | — |
| constant.character.set.regexp | #CD85EDde | — |
| constant.language | #10DE20de | — |
| constant.numeric | #96D013de | — |
| constant.numeric.dec.python | #ECA375de | — |
| constant.other.caps.python | #11D3D3de | — |
| constant.other.character-class.regexp | #0CD5D5de | — |
| constant.other.character-class.set.regexp | #939AF0de | — |
| constant.other.color.rgb-value | #11DD21de | — |
| constant.other.placeholder | #12D4D4de | — |
| constant.other.rgb-value | #FDAD7Dde | — |
| constant.regexp | #F69FC0de | — |
| constant.sha.git-rebase | #EA9E6Ede | — |
| emphasis | #11DD21de | — |
| entity.name.class | #FCAD7Bde | — |
| entity.name.function | #939BF2de | — |
| entity.name.function.preprocessor | #9199F4de | — |
| entity.name.function.python | #F289B2de | — |
| entity.name.label | #ECA375de | — |
| entity.name.namespace | #EE7CA8de | — |
| entity.name.operator | #9299F3de | — |
| entity.name.operator.custom-literal | #95D10Dde | — |
| entity.name.scope-resolution | #9299F3de | — |
| entity.name.tag | #FEA3C7de | — |
| entity.name.tag.css | #DB9FF6de | — |
| entity.name.type | #B4BAFEde | — |
| entity.name.variable | #11DD21de | — |
| entity.other.attribute | #0BDD1Ade | — |
| entity.other.attribute-name | #0DD5D5de | — |
| entity.other.attribute-name.class.css | #939AF0de | — |
| entity.other.attribute-name.class.mixin.css | #FDAD7Dde | — |
| entity.other.attribute-name.id | #F0AD82de | — |
| entity.other.attribute-name.id.css | #11D3D3de | — |
| entity.other.attribute-name.parent-selector.css | #F289B2de | — |
| entity.other.attribute-name.pseudo-class.css | #FCAD7Cde | — |
| entity.other.attribute-name.pseudo-element.css | #F0AD82de | — |
| entity.other.attribute-name.scss | #EA9E6Ede | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #10DD20de | — |
| header | #10DE20de | — |
| invalid | #11DE20de | — |
| keyword | #E4A8FEde | — |
| keyword.codetag.notation.python | #ED7DA8de | — |
| keyword.control | #FEA5C8de | — |
| keyword.control.anchor.regexp | #ED7DA8de | — |
| keyword.control.import.python | #939AEDde | — |
| keyword.operator | #96D013de | — |
| keyword.operator.alignas | #9299F3de | — |
| keyword.operator.alignof | #12D3D3de | — |
| keyword.operator.cast | #EC7DA8de | — |
| keyword.operator.delete | #939BEFde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #96D013de | — |
| keyword.operator.instanceof | #96D011de | — |
| keyword.operator.logical.python | #0BD4D4de | — |
| keyword.operator.minus.exponent | #F598BBde | — |
| keyword.operator.negation.regexp | #11D4D4de | — |
| keyword.operator.new | #0CDE1Dde | — |
| keyword.operator.noexcept | #94CF08de | — |
| keyword.operator.or.regexp | #FEA5C7de | — |
| keyword.operator.plus.exponent | #96D10Ede | — |
| keyword.operator.quantifier.regexp | #96D10Ede | — |
| keyword.operator.sizeof | #94D00Cde | — |
| keyword.operator.typeid | #FDAD7Dde | — |
| keyword.operator.wordlike | #EEA87Cde | — |
| keyword.other.operator | #0CD5D5de | — |
| keyword.other.package.java | #FDAC79de | — |
| keyword.other.unit | #FEA3C7de | — |
| keyword.other.using | #DFA6F8de | — |
| markup.bold | #FCAE7Ede | — |
| markup.changed | #96D011de | — |
| markup.deleted | #EB7EA8de | — |
| markup.fenced_code.block.markdown | #0EDD1Cde | — |
| markup.heading | #D590F4de | — |
| markup.inline.raw | #EC7DA8de | — |
| markup.inserted | #11DD21de | — |
| markup.italic | #12DD21de | — |
| markup.raw.block.markdown | #939BEFde | — |
| markup.strikethrough | #FEA5C8de | — |
| markup.underline | #FCAD7Bde | — |
| meta.block.c | #12DD21de | — |
| meta.block.c | #EE7CA8de | — |
| meta.class.java | #12D3D3de | — |
| meta.definition.variable.name | #94D00Ede | — |
| meta.diff.header | #FDAC79de | — |
| meta.embedded | #F69FC0de | — |
| meta.embedded.assembly | #FEA5C7de | — |
| meta.function-call.arguments.python | #0EDD1Cde | — |
| meta.function-call.python | #0ED4D4de | — |
| meta.member.access.python | #B5BAFAde | — |
| meta.method.java | #D590F4de | — |
| meta.object-literal.key | #13D3D3de | — |
| meta.paragraph.markdown | #9199F4de | — |
| meta.preprocessor | #939BEFde | — |
| meta.preprocessor.numeric | #DB9FF6de | — |
| meta.preprocessor.string | #CD85EDde | — |
| meta.scope.prerequisites.makefile | #FCAE7Bde | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #10D3D3de | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #96D011de | — |
| meta.type.cast.expr | #FDAD7Dde | — |
| meta.type.new.expr | #0EDD1Cde | — |
| parameter | #FCAD7Cde | — |
| punctuation.character.set.begin.regexp | #10D3D3de | — |
| punctuation.character.set.end.regexp | #CC84ECde | — |
| punctuation.definition.array.begin.json | #EC7DA8de | — |
| punctuation.definition.character-class.regexp | #AEB3F9de | — |
| punctuation.definition.comment | #BEBEBE6e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #BFBFBF6e | — |
| punctuation.definition.dictionary.begin.json | #95D10Dde | — |
| punctuation.definition.dictionary.end.json | #E89968de | — |
| punctuation.definition.group.assertion.regexp | #F082ADde | — |
| punctuation.definition.group.regexp | #EC7DA8de | — |
| punctuation.definition.list.begin.json | #0EDE1Dde | — |
| punctuation.definition.list.begin.markdown | #FEA3C7de | — |
| punctuation.definition.list.begin.python | #EB7EA8de | — |
| punctuation.definition.list.end.json | #98D113de | — |
| punctuation.definition.list.end.markdown | #95D012de | — |
| punctuation.definition.list.end.python | #95D012de | — |
| punctuation.definition.parameters.begin.python | #FEA5C8de | — |
| punctuation.definition.parameters.end.bracket.round.java | #13D3D3de | — |
| punctuation.definition.quote.begin.markdown | #CE84EEde | — |
| punctuation.definition.tag | #0EDD1Cde | — |
| punctuation.definition.template-expression.begin | #FDAC79de | — |
| punctuation.definition.template-expression.end | #B4BAFEde | — |
| punctuation.section.class.begin.bracket.curly.java | #11D3D3de | — |
| punctuation.section.embedded | #F598BBde | — |
| punctuation.section.embedded.begin.php | #96D013de | — |
| punctuation.section.embedded.end.php | #B4BAFEde | — |
| punctuation.terminator.java | #9199F4de | — |
| source.cmake | #DFA6F8de | — |
| source.coffee.embedded | #0CD5D5de | — |
| source.cpp | #95D10Dde | — |
| source.css.less | #13D3D3de | — |
| source.groovy.embedded | #EEA87Cde | — |
| source.java | #FEA3C7de | — |
| source.java-properties | #11DD21de | — |
| source.json.comments | #BFBFBF6e | — |
| source.makefile | #FEAC78de | — |
| source.powershell | #CC84ECde | — |
| source.powershell.variable.other.member | #E4A9FEde | — |
| source.python | #939AEEde | — |
| storage | #96D011de | — |
| storage.modifier | #0CD5D5de | — |
| storage.modifier.import.java | #B5BAFAde | — |
| storage.modifier.package.java | #EE7CA8de | — |
| storage.type | #13D4D4de | — |
| storage.type.annotation.groovy | #94CF08de | — |
| storage.type.annotation.java | #11DE20de | — |
| storage.type.boolean.go | #12D4D4de | — |
| storage.type.byte.go | #EEA87Cde | — |
| storage.type.cs | #96D013de | — |
| storage.type.error.go | #96D013de | — |
| storage.type.generic.cs | #EB7EA8de | — |
| storage.type.generic.groovy | #10D3D3de | — |
| storage.type.generic.java | #13D3D3de | — |
| storage.type.groovy | #11DD21de | — |
| storage.type.java | #11DD22de | — |
| storage.type.modifier.cs | #11DD22de | — |
| storage.type.numeric.go | #96D013de | — |
| storage.type.object.array.groovy | #0DDE1Cde | — |
| storage.type.object.array.java | #10DD20de | — |
| storage.type.parameters.groovy | #FEAD7Ade | — |
| storage.type.primitive.array.groovy | #95D111de | — |
| storage.type.primitive.array.java | #9199F4de | — |
| storage.type.primitive.groovy | #0EDE1Dde | — |
| storage.type.primitive.java | #FCAD7Bde | — |
| storage.type.rune.go | #939BF2de | — |
| storage.type.string.go | #10DE20de | — |
| storage.type.token.java | #ED7DA8de | — |
| storage.type.uintptr.go | #E4A8FEde | — |
| storage.type.variable.cs | #11DE20de | — |
| string | #11D3D3de | — |
| string.quoted.docstring.multi.python | #BFBFBF6e | — |
| string.regexp | #AEB3F9de | — |
| string.tag | #9199F4de | — |
| string.value | #939AEDde | — |
| strong | #D590F4de | — |
| support.class | #13D3D3de | — |
| support.constant.color | #CD85EDde | — |
| support.constant.dom | #12D3D3de | — |
| support.constant.font-name | #B4BAFEde | — |
| support.constant.handlebars | #EE7CA8de | — |
| support.constant.json | #FDAC79de | — |
| support.constant.math | #CE84EEde | — |
| support.constant.media | #FEAD7Ade | — |
| support.constant.media-type | #D590F4de | — |
| support.constant.property-value | #F598BBde | — |
| support.function | #E4A9FEde | — |
| support.function.git-rebase | #B4BAFEde | — |
| support.other.parenthesis.regexp | #F490B7de | — |
| support.type | #9199F4de | — |
| support.type.property-name | #FEA5C7de | — |
| support.type.vendored.property-name | #D898F5de | — |
| support.variable | #ECA375de | — |
| token.debug-token | #98D113de | — |
| token.error-token | #939AEDde | — |
| token.info-token | #939BEFde | — |
| token.warn-token | #F490B7de | — |
| variable | #11DD21de | — |
| variable.css | #12DD20de | — |
| variable.language | #FDAD7Dde | — |
| variable.language.wildcard.java | #12DD21de | — |
| variable.other.constant | #939AF1de | — |
| variable.other.definition.java | #FDAD7Dde | — |
| variable.other.enummember | #95D110de | — |
| variable.other.less | #0BDD1Ade | — |
| variable.other.object.java | #F0AD82de | — |
| variable.other.object.property.java | #F490B7de | — |
| variable.parameter.c | #EA7FA8de | — |
| variable.parameter.function.language.python | #939BEFde | — |
| variable.parameter.java | #0EDD1Cde | — |
| variable.scss | #B5BAFAde | — |
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}!`;
}