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 | #C8C8766e | — |
| comment.block.html | #C8C8766e | — |
| comment.block.java | #C8C8766e | — |
| comment.block.javadoc.java | #C8C87A6e | — |
| comment.block.powershell | #C7C77C6e | — |
| comment.block.xml | #C7C77C6e | — |
| comment.line.double-slash.c | #C8C87A6e | — |
| comment.line.double-slash.cpp | #C8C8816e | — |
| comment.line.double-slash.java | #C8C8766e | — |
| comment.line.double-slash.js | #C8C8816e | — |
| comment.line.number-sign.makefile | #C8C8816e | — |
| comment.line.number-sign.python | #C8C8766e | — |
| comment.line.number-sign.yaml | #C7C77C6e | — |
| comment.line.percentage.erlang | #C7C77C6e | — |
| comment.line.powershell | #C8C8766e | — |
| comment.source.cmake | #C8C87A6e | — |
| comment.source.cmakecache | #C8C87A6e | — |
| constant.character | #C4C4C4de | — |
| constant.character.character-class.regexp | #F8A6CAde | — |
| constant.character.escape | #C3C3C3de | — |
| constant.character.set.regexp | #97A9F6de | — |
| constant.language | #C4C4C4de | — |
| constant.numeric | #EE82B2de | — |
| constant.numeric.dec.python | #D088F1de | — |
| constant.other.caps.python | #EE82B2de | — |
| constant.other.character-class.regexp | #0CE228de | — |
| constant.other.character-class.set.regexp | #B3B3B3de | — |
| constant.other.color.rgb-value | #97A9F6de | — |
| constant.other.placeholder | #0AE226de | — |
| constant.other.rgb-value | #E5ABFEde | — |
| constant.regexp | #10E22Bde | — |
| constant.sha.git-rebase | #FEACD0de | — |
| emphasis | #EE82B2de | — |
| entity.name.class | #8DA0F2de | — |
| entity.name.function | #D897F6de | — |
| entity.name.function.preprocessor | #0FE328de | — |
| entity.name.function.python | #BCBCBCde | — |
| entity.name.label | #0DE229de | — |
| entity.name.namespace | #0EE32Ade | — |
| entity.name.operator | #F590BCde | — |
| entity.name.operator.custom-literal | #A1D40Bde | — |
| entity.name.scope-resolution | #E2ADF9de | — |
| entity.name.tag | #C4C4C4de | — |
| entity.name.tag.css | #A3D30Ede | — |
| entity.name.type | #0EE228de | — |
| entity.name.variable | #A3D411de | — |
| entity.other.attribute | #A3D30Ede | — |
| entity.other.attribute-name | #FEABCFde | — |
| entity.other.attribute-name.class.css | #8EA0F1de | — |
| entity.other.attribute-name.class.mixin.css | #C3C3C3de | — |
| entity.other.attribute-name.id | #D590F5de | — |
| entity.other.attribute-name.id.css | #A2D311de | — |
| entity.other.attribute-name.parent-selector.css | #EA9866de | — |
| entity.other.attribute-name.pseudo-class.css | #F9ADCFde | — |
| entity.other.attribute-name.pseudo-element.css | #0EE329de | — |
| entity.other.attribute-name.scss | #8DA0F2de | — |
| entity.other.document.begin.yaml | #C7C77C6e | — |
| entity.other.inherited-class | #A2D410de | — |
| header | #E5ABFEde | — |
| invalid | #A2D410de | — |
| keyword | #AAAAAAde | — |
| keyword.codetag.notation.python | #C3C3C3de | — |
| keyword.control | #A1D30Fde | — |
| keyword.control.anchor.regexp | #FEB384de | — |
| keyword.control.import.python | #FEACD0de | — |
| keyword.operator | #ED84B1de | — |
| keyword.operator.alignas | #C3C3C3de | — |
| keyword.operator.alignof | #FEABCFde | — |
| keyword.operator.cast | #A6B5F8de | — |
| keyword.operator.delete | #8DA0F2de | — |
| keyword.operator.documentation.powershell | #C8C87A6e | — |
| keyword.operator.expression | #0EE329de | — |
| keyword.operator.instanceof | #F590BCde | — |
| keyword.operator.logical.python | #EC9D6Dde | — |
| keyword.operator.minus.exponent | #DFA6F8de | — |
| keyword.operator.negation.regexp | #FEABCFde | — |
| keyword.operator.new | #10E12Ade | — |
| keyword.operator.noexcept | #8EA1F0de | — |
| keyword.operator.or.regexp | #A6B5F8de | — |
| keyword.operator.plus.exponent | #F697C0de | — |
| keyword.operator.quantifier.regexp | #0FE22Ade | — |
| keyword.operator.sizeof | #90A3F5de | — |
| keyword.operator.typeid | #D897F6de | — |
| keyword.operator.wordlike | #0CE228de | — |
| keyword.other.operator | #C3C3C3de | — |
| keyword.other.package.java | #E6B0FEde | — |
| keyword.other.unit | #FEB384de | — |
| keyword.other.using | #8FA1EFde | — |
| markup.bold | #CF89EEde | — |
| markup.changed | #ABBBFEde | — |
| markup.deleted | #F697C0de | — |
| markup.fenced_code.block.markdown | #FEB384de | — |
| markup.heading | #A3D40Ede | — |
| markup.inline.raw | #A2D20Cde | — |
| markup.inserted | #A2D30Fde | — |
| markup.italic | #CF8AEFde | — |
| markup.raw.block.markdown | #0FE22Ade | — |
| markup.strikethrough | #0FE22Bde | — |
| markup.underline | #F388B7de | — |
| meta.block.c | #8DA0F3de | — |
| meta.block.c | #0FE22Ade | — |
| meta.class.java | #0DE229de | — |
| meta.definition.variable.name | #FEB384de | — |
| meta.diff.header | #FDB387de | — |
| meta.embedded | #B4C1FEde | — |
| meta.embedded.assembly | #B3B3B3de | — |
| meta.function-call.arguments.python | #B3B3B3de | — |
| meta.function-call.python | #AFAFAFde | — |
| meta.member.access.python | #10E12Ade | — |
| meta.method.java | #A1D40Bde | — |
| meta.object-literal.key | #0EE329de | — |
| meta.paragraph.markdown | #8FA1EEde | — |
| meta.preprocessor | #AAAAAAde | — |
| meta.preprocessor.numeric | #EE82B2de | — |
| meta.preprocessor.string | #EE82B2de | — |
| meta.scope.prerequisites.makefile | #9EAFF7de | — |
| meta.structure.dictionary.json.comments | #C7C77C6e | — |
| meta.structure.dictionary.key.python | #B3B3B3de | — |
| meta.structure.dictionary.value.json.comments | #C8C8816e | — |
| meta.template.expression | #A6B5F8de | — |
| meta.type.cast.expr | #A6B5F8de | — |
| meta.type.new.expr | #C4C4C4de | — |
| parameter | #A3D411de | — |
| punctuation.character.set.begin.regexp | #8DA0F3de | — |
| punctuation.character.set.end.regexp | #8EA1F0de | — |
| punctuation.definition.array.begin.json | #F080B2de | — |
| punctuation.definition.character-class.regexp | #A1D40Bde | — |
| punctuation.definition.comment | #C8C8816e | — |
| punctuation.definition.comment.json.comments | #C7C77C6e | — |
| punctuation.definition.comment.python | #C8C8766e | — |
| punctuation.definition.dictionary.begin.json | #A1D30Fde | — |
| punctuation.definition.dictionary.end.json | #8EA0F1de | — |
| punctuation.definition.group.assertion.regexp | #A2D30Fde | — |
| punctuation.definition.group.regexp | #8FA1EFde | — |
| punctuation.definition.list.begin.json | #8EA0F1de | — |
| punctuation.definition.list.begin.markdown | #FDB389de | — |
| punctuation.definition.list.begin.python | #C1C1C1de | — |
| punctuation.definition.list.end.json | #8FA1EEde | — |
| punctuation.definition.list.end.markdown | #DFA6F8de | — |
| punctuation.definition.list.end.python | #F8A6CAde | — |
| punctuation.definition.parameters.begin.python | #0DE229de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F8A6CAde | — |
| punctuation.definition.quote.begin.markdown | #F3B088de | — |
| punctuation.definition.tag | #FEABCFde | — |
| punctuation.definition.template-expression.begin | #C4C4C4de | — |
| punctuation.definition.template-expression.end | #C4C4C4de | — |
| punctuation.section.class.begin.bracket.curly.java | #DFA6F8de | — |
| punctuation.section.embedded | #8FA1EFde | — |
| punctuation.section.embedded.begin.php | #F590BCde | — |
| punctuation.section.embedded.end.php | #D288F3de | — |
| punctuation.terminator.java | #C4C4C4de | — |
| source.cmake | #A2D30Fde | — |
| source.coffee.embedded | #10E22Ade | — |
| source.cpp | #FDB387de | — |
| source.css.less | #AAAAAAde | — |
| source.groovy.embedded | #C1C1C1de | — |
| source.java | #F1AB81de | — |
| source.java-properties | #F697C0de | — |
| source.json.comments | #C8C8816e | — |
| source.makefile | #0FE328de | — |
| source.powershell | #FEABCFde | — |
| source.powershell.variable.other.member | #E5ABFEde | — |
| source.python | #F388B7de | — |
| storage | #8DA0F3de | — |
| storage.modifier | #10E12Ade | — |
| storage.modifier.import.java | #0FE22Ade | — |
| storage.modifier.package.java | #BCBCBCde | — |
| storage.type | #A3D30Ede | — |
| storage.type.annotation.groovy | #E5ABFEde | — |
| storage.type.annotation.java | #FEABCFde | — |
| storage.type.boolean.go | #0FE22Bde | — |
| storage.type.byte.go | #B2C0FEde | — |
| storage.type.cs | #EF81B1de | — |
| storage.type.error.go | #A2D410de | — |
| storage.type.generic.cs | #E5ABFEde | — |
| storage.type.generic.groovy | #E89360de | — |
| storage.type.generic.java | #DFA6F8de | — |
| storage.type.groovy | #9EAFF7de | — |
| storage.type.java | #A1D40Bde | — |
| storage.type.modifier.cs | #A1D30Fde | — |
| storage.type.numeric.go | #F388B7de | — |
| storage.type.object.array.groovy | #EF81B1de | — |
| storage.type.object.array.java | #A2D410de | — |
| storage.type.parameters.groovy | #EF81B1de | — |
| storage.type.primitive.array.groovy | #F1AB81de | — |
| storage.type.primitive.array.java | #E5ABFEde | — |
| storage.type.primitive.groovy | #C3C3C3de | — |
| storage.type.primitive.java | #D288F3de | — |
| storage.type.rune.go | #F080B2de | — |
| storage.type.string.go | #C3C3C3de | — |
| storage.type.token.java | #8DA0F2de | — |
| storage.type.uintptr.go | #F0A67Ade | — |
| storage.type.variable.cs | #F9ADCFde | — |
| string | #8FA1EFde | — |
| string.quoted.docstring.multi.python | #C8C8816e | — |
| string.regexp | #8FA1EFde | — |
| string.tag | #ADBCF9de | — |
| string.value | #FDB386de | — |
| strong | #EEA274de | — |
| support.class | #EE82B2de | — |
| support.constant.color | #C4C4C4de | — |
| support.constant.dom | #A2D30Fde | — |
| support.constant.font-name | #F590BCde | — |
| support.constant.handlebars | #A2D30Fde | — |
| support.constant.json | #FDB389de | — |
| support.constant.math | #E6B0FEde | — |
| support.constant.media | #E2ADF9de | — |
| support.constant.media-type | #A6B5F8de | — |
| support.constant.property-value | #A1D40Bde | — |
| support.function | #0EE228de | — |
| support.function.git-rebase | #D590F5de | — |
| support.other.parenthesis.regexp | #F9ADCFde | — |
| support.type | #FEABCFde | — |
| support.type.property-name | #AFAFAFde | — |
| support.type.vendored.property-name | #8EA1F0de | — |
| support.variable | #ADBCF9de | — |
| token.debug-token | #C4C4C4de | — |
| token.error-token | #D088F0de | — |
| token.info-token | #DB9EF7de | — |
| token.warn-token | #E2ADF9de | — |
| variable | #AFAFAFde | — |
| variable.css | #9EAFF7de | — |
| variable.language | #C1C1C1de | — |
| variable.language.wildcard.java | #AAAAAAde | — |
| variable.other.constant | #EE82B2de | — |
| variable.other.definition.java | #A2D410de | — |
| variable.other.enummember | #ADBCF9de | — |
| variable.other.less | #A1D40Bde | — |
| variable.other.object.java | #8DA0F3de | — |
| variable.other.object.property.java | #B3B3B3de | — |
| variable.parameter.c | #D088F0de | — |
| variable.parameter.function.language.python | #F9ADCFde | — |
| variable.parameter.java | #F8A6CAde | — |
| variable.scss | #0FE22Bde | — |
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}!`;
}