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 | #BEBEBE6e | — |
| comment.block.html | #BEBEBE6e | — |
| 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 | #BFBFBF6e | — |
| comment.line.double-slash.java | #BFBFBF6e | — |
| 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 | #BEBEBE6e | — |
| constant.character | #909BF2de | — |
| constant.character.character-class.regexp | #FEA5CBde | — |
| constant.character.escape | #EDAD6Cde | — |
| constant.character.set.regexp | #E7A2FEde | — |
| constant.language | #D380F0de | — |
| constant.numeric | #8AD30Fde | — |
| constant.numeric.dec.python | #909AF4de | — |
| constant.other.caps.python | #FCAF64de | — |
| constant.other.character-class.regexp | #8AD20Fde | — |
| constant.other.character-class.set.regexp | #FBAF63de | — |
| constant.other.color.rgb-value | #ACB5FAde | — |
| constant.other.placeholder | #FCAF62de | — |
| constant.other.rgb-value | #DD96F7de | — |
| constant.regexp | #0DDD38de | — |
| constant.sha.git-rebase | #0ED3DEde | — |
| emphasis | #87D205de | — |
| entity.name.class | #F17AADde | — |
| entity.name.function | #8F9AF2de | — |
| entity.name.function.preprocessor | #8AD20Ede | — |
| entity.name.function.python | #8AD20Fde | — |
| entity.name.label | #0DDD38de | — |
| entity.name.namespace | #8BD30Dde | — |
| entity.name.operator | #FBAF63de | — |
| entity.name.operator.custom-literal | #FEA4CAde | — |
| entity.name.scope-resolution | #08D1DFde | — |
| entity.name.tag | #8AD307de | — |
| entity.name.tag.css | #FEA5CBde | — |
| entity.name.type | #0ED3DEde | — |
| entity.name.variable | #0EDD3Ade | — |
| entity.other.attribute | #F9A5C8de | — |
| entity.other.attribute-name | #DD96F7de | — |
| entity.other.attribute-name.class.css | #E7A7FEde | — |
| entity.other.attribute-name.class.mixin.css | #D380F0de | — |
| entity.other.attribute-name.id | #9DA7F8de | — |
| entity.other.attribute-name.id.css | #FDAF62de | — |
| entity.other.attribute-name.parent-selector.css | #FCAF64de | — |
| entity.other.attribute-name.pseudo-class.css | #FBAF63de | — |
| entity.other.attribute-name.pseudo-element.css | #08DC33de | — |
| entity.other.attribute-name.scss | #EFB172de | — |
| entity.other.document.begin.yaml | #BFBFBF6e | — |
| entity.other.inherited-class | #FCAF63de | — |
| header | #08DC33de | — |
| invalid | #88D20Bde | — |
| keyword | #ECA865de | — |
| keyword.codetag.notation.python | #0EDD3Ade | — |
| keyword.control | #88D20Bde | — |
| keyword.control.anchor.regexp | #0BDD39de | — |
| keyword.control.import.python | #0CD4DEde | — |
| keyword.operator | #87D309de | — |
| keyword.operator.alignas | #E09DF8de | — |
| keyword.operator.alignof | #EF7BACde | — |
| keyword.operator.cast | #D380F0de | — |
| keyword.operator.delete | #EF7BACde | — |
| keyword.operator.documentation.powershell | #BFBFBF6e | — |
| keyword.operator.expression | #FCAF62de | — |
| keyword.operator.instanceof | #909BF3de | — |
| keyword.operator.logical.python | #0DDC39de | — |
| keyword.operator.minus.exponent | #0ED3DEde | — |
| keyword.operator.negation.regexp | #E9A8FEde | — |
| keyword.operator.new | #D580F3de | — |
| keyword.operator.noexcept | #F89DC3de | — |
| keyword.operator.or.regexp | #0ADD37de | — |
| keyword.operator.plus.exponent | #0BD4DFde | — |
| keyword.operator.quantifier.regexp | #909AF4de | — |
| keyword.operator.sizeof | #EFB172de | — |
| keyword.operator.typeid | #8AD307de | — |
| keyword.operator.wordlike | #0EDD3Ade | — |
| keyword.other.operator | #8F9AF6de | — |
| keyword.other.package.java | #0BD4DFde | — |
| keyword.other.unit | #0CDC39de | — |
| keyword.other.using | #08D1DFde | — |
| markup.bold | #FCAF65de | — |
| markup.changed | #F487B5de | — |
| markup.deleted | #FBAF63de | — |
| markup.fenced_code.block.markdown | #8AD20Fde | — |
| markup.heading | #8AD20Fde | — |
| markup.inline.raw | #FEA5CBde | — |
| markup.inserted | #909AF4de | — |
| markup.italic | #8AD20Dde | — |
| markup.raw.block.markdown | #F89DC3de | — |
| markup.strikethrough | #EAA45Ede | — |
| markup.underline | #8AD30Fde | — |
| meta.block.c | #B3BAFEde | — |
| meta.block.c | #8AD20Ede | — |
| meta.class.java | #EAA45Ede | — |
| meta.definition.variable.name | #909AF4de | — |
| meta.diff.header | #EF7BACde | — |
| meta.embedded | #0BDD39de | — |
| meta.embedded.assembly | #E3A5F9de | — |
| meta.function-call.arguments.python | #0ADC37de | — |
| meta.function-call.python | #0ED3E0de | — |
| meta.member.access.python | #B3BBFEde | — |
| meta.method.java | #D380F0de | — |
| meta.object-literal.key | #FBAF63de | — |
| meta.paragraph.markdown | #0CDC39de | — |
| meta.preprocessor | #D887F4de | — |
| meta.preprocessor.numeric | #D380F0de | — |
| meta.preprocessor.string | #E3A5F9de | — |
| meta.scope.prerequisites.makefile | #8AD30Fde | — |
| meta.structure.dictionary.json.comments | #BFBFBF6e | — |
| meta.structure.dictionary.key.python | #8AD20Fde | — |
| meta.structure.dictionary.value.json.comments | #BFBFBF6e | — |
| meta.template.expression | #909BF2de | — |
| meta.type.cast.expr | #909BF3de | — |
| meta.type.new.expr | #0ED3DCde | — |
| parameter | #8BD20Fde | — |
| punctuation.character.set.begin.regexp | #0ED3DCde | — |
| punctuation.character.set.end.regexp | #E7A7FEde | — |
| punctuation.definition.array.begin.json | #EFB172de | — |
| punctuation.definition.character-class.regexp | #08D1DFde | — |
| punctuation.definition.comment | #BFBFBF6e | — |
| punctuation.definition.comment.json.comments | #BFBFBF6e | — |
| punctuation.definition.comment.python | #BEBEBE6e | — |
| punctuation.definition.dictionary.begin.json | #D887F4de | — |
| punctuation.definition.dictionary.end.json | #08D1DFde | — |
| punctuation.definition.group.assertion.regexp | #D580F3de | — |
| punctuation.definition.group.regexp | #0ED3DFde | — |
| punctuation.definition.list.begin.json | #FBAF63de | — |
| punctuation.definition.list.begin.markdown | #ABB5FEde | — |
| punctuation.definition.list.begin.python | #D37FF1de | — |
| punctuation.definition.list.end.json | #E9A8FEde | — |
| punctuation.definition.list.end.markdown | #EFB172de | — |
| punctuation.definition.list.end.python | #0FDD3Ade | — |
| punctuation.definition.parameters.begin.python | #FCAF65de | — |
| punctuation.definition.parameters.end.bracket.round.java | #0CD4DEde | — |
| punctuation.definition.quote.begin.markdown | #0FDD3Ade | — |
| punctuation.definition.tag | #EE7BABde | — |
| punctuation.definition.template-expression.begin | #D380F0de | — |
| punctuation.definition.template-expression.end | #ABB5FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #ACB5FAde | — |
| punctuation.section.embedded | #87D309de | — |
| punctuation.section.embedded.begin.php | #D580F3de | — |
| punctuation.section.embedded.end.php | #87D309de | — |
| punctuation.terminator.java | #0AD4DFde | — |
| source.cmake | #EF7BACde | — |
| source.coffee.embedded | #FEA5CBde | — |
| source.cpp | #0DDC38de | — |
| source.css.less | #0DDC39de | — |
| source.groovy.embedded | #0EDC3Ade | — |
| source.java | #0EDD3Ade | — |
| source.java-properties | #FCAF62de | — |
| source.json.comments | #BFBFBF6e | — |
| source.makefile | #EE7BABde | — |
| source.powershell | #8AD20Dde | — |
| source.powershell.variable.other.member | #D380F0de | — |
| source.python | #D37FF1de | — |
| storage | #8BD20Fde | — |
| storage.modifier | #8AD30Cde | — |
| storage.modifier.import.java | #0DD2DEde | — |
| storage.modifier.package.java | #87D205de | — |
| storage.type | #EAA45Ede | — |
| storage.type.annotation.groovy | #D47EF2de | — |
| storage.type.annotation.java | #FCAF62de | — |
| storage.type.boolean.go | #DD96F7de | — |
| storage.type.byte.go | #FCAF63de | — |
| storage.type.cs | #F07BADde | — |
| storage.type.error.go | #0ADC37de | — |
| storage.type.generic.cs | #FCAF65de | — |
| storage.type.generic.groovy | #ECA865de | — |
| storage.type.generic.java | #F89DC3de | — |
| storage.type.groovy | #D380F0de | — |
| storage.type.java | #8BD30Dde | — |
| storage.type.modifier.cs | #909BF2de | — |
| storage.type.numeric.go | #0EDC3Ade | — |
| storage.type.object.array.groovy | #89D20Dde | — |
| storage.type.object.array.java | #909BF3de | — |
| storage.type.parameters.groovy | #8AD307de | — |
| storage.type.primitive.array.groovy | #FEA5CBde | — |
| storage.type.primitive.array.java | #ECA865de | — |
| storage.type.primitive.groovy | #08DC33de | — |
| storage.type.primitive.java | #D282EFde | — |
| storage.type.rune.go | #0DDC38de | — |
| storage.type.string.go | #909BF2de | — |
| storage.type.token.java | #EF7BACde | — |
| storage.type.uintptr.go | #09D3E1de | — |
| storage.type.variable.cs | #FCAF62de | — |
| string | #FCAF64de | — |
| string.quoted.docstring.multi.python | #BEBEBE6e | — |
| string.regexp | #0FDD3Ade | — |
| string.tag | #8AD20Dde | — |
| string.value | #0BDD39de | — |
| strong | #F9A5C8de | — |
| support.class | #0CDC39de | — |
| support.constant.color | #08D1DFde | — |
| support.constant.dom | #FCAF64de | — |
| support.constant.font-name | #FDAE5Fde | — |
| support.constant.handlebars | #A5AEF9de | — |
| support.constant.json | #EDAD6Cde | — |
| support.constant.math | #DD96F7de | — |
| support.constant.media | #09DC37de | — |
| support.constant.media-type | #B2BAFEde | — |
| support.constant.property-value | #ABB5FEde | — |
| support.function | #0FD2DDde | — |
| support.function.git-rebase | #DA8EF6de | — |
| support.other.parenthesis.regexp | #0ED3DFde | — |
| support.type | #87D309de | — |
| support.type.property-name | #8F9AF2de | — |
| support.type.vendored.property-name | #B2BAFEde | — |
| support.variable | #FBAF63de | — |
| token.debug-token | #0ED3DEde | — |
| token.error-token | #0DD2DEde | — |
| token.info-token | #08D1DFde | — |
| token.warn-token | #0DD2DEde | — |
| variable | #0CD4DEde | — |
| variable.css | #F68EBAde | — |
| variable.language | #0CD4DEde | — |
| variable.language.wildcard.java | #8BD30Dde | — |
| variable.other.constant | #0DD3DEde | — |
| variable.other.definition.java | #88D20Bde | — |
| variable.other.enummember | #FCAF62de | — |
| variable.other.less | #8BD30Fde | — |
| variable.other.object.java | #8BD30Fde | — |
| variable.other.object.property.java | #FCAF62de | — |
| variable.parameter.c | #EE7BABde | — |
| variable.parameter.function.language.python | #D580F3de | — |
| variable.parameter.java | #A5AEF9de | — |
| variable.scss | #E7A7FEde | — |
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}!`;
}