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 | #E7BD946e | — |
| comment.block.html | #EDBB9A6e | — |
| comment.block.java | #EDBB956e | — |
| comment.block.javadoc.java | #EDBB956e | — |
| comment.block.powershell | #EDBB9A6e | — |
| comment.block.xml | #EBBC8E6e | — |
| comment.line.double-slash.c | #EBBC8E6e | — |
| comment.line.double-slash.cpp | #EDBB956e | — |
| comment.line.double-slash.java | #EBBC8E6e | — |
| comment.line.double-slash.js | #E7BD946e | — |
| comment.line.number-sign.makefile | #EDBB9A6e | — |
| comment.line.number-sign.python | #EDBB9A6e | — |
| comment.line.number-sign.yaml | #EDBB956e | — |
| comment.line.percentage.erlang | #EDBB9A6e | — |
| comment.line.powershell | #EDBB956e | — |
| comment.source.cmake | #EBBC8E6e | — |
| comment.source.cmakecache | #E7BD946e | — |
| constant.character | #EBBF0Ade | — |
| constant.character.character-class.regexp | #ECBF0Ede | — |
| constant.character.escape | #0DE081de | — |
| constant.character.set.regexp | #F89DEFde | — |
| constant.language | #F587EAde | — |
| constant.numeric | #B099F3de | — |
| constant.numeric.dec.python | #EDC00Dde | — |
| constant.other.caps.python | #FEA7F5de | — |
| constant.other.character-class.regexp | #AF97F6de | — |
| constant.other.character-class.set.regexp | #EEBF09de | — |
| constant.other.color.rgb-value | #AF97F5de | — |
| constant.other.placeholder | #40E10Ade | — |
| constant.other.rgb-value | #43E20Ede | — |
| constant.regexp | #EDBF0Cde | — |
| constant.sha.git-rebase | #C4C4C4de | — |
| emphasis | #8EC7F6de | — |
| entity.name.class | #08E180de | — |
| entity.name.function | #EDBF0Cde | — |
| entity.name.function.preprocessor | #42E10Dde | — |
| entity.name.function.python | #78BBF2de | — |
| entity.name.label | #0BE07Fde | — |
| entity.name.namespace | #ECC00Dde | — |
| entity.name.operator | #AEAEAEde | — |
| entity.name.operator.custom-literal | #0DE080de | — |
| entity.name.scope-resolution | #0DE080de | — |
| entity.name.tag | #A9A9A9de | — |
| entity.name.tag.css | #C4C4C4de | — |
| entity.name.type | #8DCBFEde | — |
| entity.name.variable | #C0ADFAde | — |
| entity.other.attribute | #0DE081de | — |
| entity.other.attribute-name | #FEA7F5de | — |
| entity.other.attribute-name.class.css | #F380E8de | — |
| entity.other.attribute-name.class.mixin.css | #AF97F5de | — |
| entity.other.attribute-name.id | #AE97F7de | — |
| entity.other.attribute-name.id.css | #AF98F5de | — |
| entity.other.attribute-name.parent-selector.css | #F07AE5de | — |
| entity.other.attribute-name.pseudo-class.css | #AE97F4de | — |
| entity.other.attribute-name.pseudo-element.css | #0EE081de | — |
| entity.other.attribute-name.scss | #09E17Fde | — |
| entity.other.document.begin.yaml | #EBBC8E6e | — |
| entity.other.inherited-class | #8DCBFEde | — |
| header | #EDC00Dde | — |
| invalid | #0EE082de | — |
| keyword | #C4C4C4de | — |
| keyword.codetag.notation.python | #A5A5A5de | — |
| keyword.control | #EDC00Dde | — |
| keyword.control.anchor.regexp | #C0ADFAde | — |
| keyword.control.import.python | #EDC00Dde | — |
| keyword.operator | #ECBE08de | — |
| keyword.operator.alignas | #41E10Dde | — |
| keyword.operator.alignof | #0AE181de | — |
| keyword.operator.cast | #40E20Bde | — |
| keyword.operator.delete | #BBBBBBde | — |
| keyword.operator.documentation.powershell | #EBBC8E6e | — |
| keyword.operator.expression | #8AC9FEde | — |
| keyword.operator.instanceof | #43E10Dde | — |
| keyword.operator.logical.python | #B7B7B7de | — |
| keyword.operator.minus.exponent | #CBBAFEde | — |
| keyword.operator.negation.regexp | #71B7F0de | — |
| keyword.operator.new | #F587EAde | — |
| keyword.operator.noexcept | #43E10Dde | — |
| keyword.operator.or.regexp | #43E10Dde | — |
| keyword.operator.plus.exponent | #F587EAde | — |
| keyword.operator.quantifier.regexp | #EDC00Dde | — |
| keyword.operator.sizeof | #F89DEFde | — |
| keyword.operator.typeid | #0EE182de | — |
| keyword.operator.wordlike | #09E17Fde | — |
| keyword.other.operator | #AEAEAEde | — |
| keyword.other.package.java | #0DE180de | — |
| keyword.other.unit | #78BBF2de | — |
| keyword.other.using | #C5C5C5de | — |
| markup.bold | #0EE182de | — |
| markup.changed | #FEA3F5de | — |
| markup.deleted | #F07AE5de | — |
| markup.fenced_code.block.markdown | #40E20Bde | — |
| markup.heading | #0AE080de | — |
| markup.inline.raw | #AE97F6de | — |
| markup.inserted | #41E10Dde | — |
| markup.italic | #42E20Dde | — |
| markup.raw.block.markdown | #FEA8F6de | — |
| markup.strikethrough | #AEAEAEde | — |
| markup.underline | #EF7AE3de | — |
| meta.block.c | #C4C4C4de | — |
| meta.block.c | #78BBF2de | — |
| meta.class.java | #0EE182de | — |
| meta.definition.variable.name | #AF98F5de | — |
| meta.diff.header | #ECBE08de | — |
| meta.embedded | #EEBF09de | — |
| meta.embedded.assembly | #F380E8de | — |
| meta.function-call.arguments.python | #87C3F5de | — |
| meta.function-call.python | #B2B2B2de | — |
| meta.member.access.python | #B7B7B7de | — |
| meta.method.java | #C0ADFAde | — |
| meta.object-literal.key | #5FACEBde | — |
| meta.paragraph.markdown | #F278E6de | — |
| meta.preprocessor | #87C3F5de | — |
| meta.preprocessor.numeric | #0DE181de | — |
| meta.preprocessor.string | #A9A9A9de | — |
| meta.scope.prerequisites.makefile | #EBBF0Bde | — |
| meta.structure.dictionary.json.comments | #EDBB9A6e | — |
| meta.structure.dictionary.key.python | #FEA7F5de | — |
| meta.structure.dictionary.value.json.comments | #EBBC8E6e | — |
| meta.template.expression | #A5A5A5de | — |
| meta.type.cast.expr | #78BBF2de | — |
| meta.type.new.expr | #0DE080de | — |
| parameter | #43E20Ede | — |
| punctuation.character.set.begin.regexp | #43E10Ede | — |
| punctuation.character.set.end.regexp | #C5C5C5de | — |
| punctuation.definition.array.begin.json | #0EE182de | — |
| punctuation.definition.character-class.regexp | #EBC00Dde | — |
| punctuation.definition.comment | #EDBB9A6e | — |
| punctuation.definition.comment.json.comments | #EBBC8E6e | — |
| punctuation.definition.comment.python | #EDBB956e | — |
| punctuation.definition.dictionary.begin.json | #0EE082de | — |
| punctuation.definition.dictionary.end.json | #AE97F4de | — |
| punctuation.definition.group.assertion.regexp | #0DE080de | — |
| punctuation.definition.group.regexp | #8CCBFEde | — |
| punctuation.definition.list.begin.json | #C5C5C5de | — |
| punctuation.definition.list.begin.markdown | #C5C5C5de | — |
| punctuation.definition.list.begin.python | #C6B4FBde | — |
| punctuation.definition.list.end.json | #0EE082de | — |
| punctuation.definition.list.end.markdown | #EBBF0Bde | — |
| punctuation.definition.list.end.python | #F07AE5de | — |
| punctuation.definition.parameters.begin.python | #EBBF0Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #80BFF3de | — |
| punctuation.definition.quote.begin.markdown | #EEBF09de | — |
| punctuation.definition.tag | #C5C5C5de | — |
| punctuation.definition.template-expression.begin | #AE97F4de | — |
| punctuation.definition.template-expression.end | #ECC00Dde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEA7F6de | — |
| punctuation.section.embedded | #ECC00Dde | — |
| punctuation.section.embedded.begin.php | #A9A9A9de | — |
| punctuation.section.embedded.end.php | #08E180de | — |
| punctuation.terminator.java | #3FE109de | — |
| source.cmake | #EBBF0Bde | — |
| source.coffee.embedded | #3FE109de | — |
| source.cpp | #41E10Dde | — |
| source.css.less | #0DE180de | — |
| source.groovy.embedded | #AF98F5de | — |
| source.java | #EEBF09de | — |
| source.java-properties | #AF97F5de | — |
| source.json.comments | #EDBB956e | — |
| source.makefile | #EBBF0Ade | — |
| source.powershell | #0DE181de | — |
| source.powershell.variable.other.member | #A9A9A9de | — |
| source.python | #43E20Ede | — |
| storage | #CCBCFCde | — |
| storage.modifier | #0DE181de | — |
| storage.modifier.import.java | #0DE081de | — |
| storage.modifier.package.java | #ECC00Dde | — |
| storage.type | #71B7F0de | — |
| storage.type.annotation.groovy | #ECBF0Ede | — |
| storage.type.annotation.java | #ECBF0Dde | — |
| storage.type.boolean.go | #AF97F6de | — |
| storage.type.byte.go | #FEA7F5de | — |
| storage.type.cs | #43E10Ede | — |
| storage.type.error.go | #AF98F5de | — |
| storage.type.generic.cs | #B099F3de | — |
| storage.type.generic.groovy | #EBBF0Ade | — |
| storage.type.generic.java | #0DE181de | — |
| storage.type.groovy | #BBBBBBde | — |
| storage.type.java | #EEBF09de | — |
| storage.type.modifier.cs | #C5C5C5de | — |
| storage.type.numeric.go | #43E20Ede | — |
| storage.type.object.array.groovy | #EF7AE3de | — |
| storage.type.object.array.java | #0EE182de | — |
| storage.type.parameters.groovy | #3FE109de | — |
| storage.type.primitive.array.groovy | #8CCBFEde | — |
| storage.type.primitive.array.java | #8FCBFEde | — |
| storage.type.primitive.groovy | #42E20Dde | — |
| storage.type.primitive.java | #0DE181de | — |
| storage.type.rune.go | #FEA3F5de | — |
| storage.type.string.go | #ECBF0Ede | — |
| storage.type.token.java | #8CCBFDde | — |
| storage.type.uintptr.go | #EDC00Dde | — |
| storage.type.variable.cs | #EBBF0Dde | — |
| string | #8CCBFDde | — |
| string.quoted.docstring.multi.python | #EBBC8E6e | — |
| string.regexp | #FEA8F6de | — |
| string.tag | #41E10Dde | — |
| string.value | #C5C5C5de | — |
| strong | #FEA3F5de | — |
| support.class | #EDC00Dde | — |
| support.constant.color | #EBC00Dde | — |
| support.constant.dom | #63AFEDde | — |
| support.constant.font-name | #40E20Bde | — |
| support.constant.handlebars | #43E10Ede | — |
| support.constant.json | #0EE182de | — |
| support.constant.math | #8CCBFDde | — |
| support.constant.media | #42E20Cde | — |
| support.constant.media-type | #87C3F5de | — |
| support.constant.property-value | #8ECBFEde | — |
| support.function | #78BBF2de | — |
| support.function.git-rebase | #CCBCFCde | — |
| support.other.parenthesis.regexp | #0CE080de | — |
| support.type | #ECBF0Dde | — |
| support.type.property-name | #B7B7B7de | — |
| support.type.vendored.property-name | #8EC7F6de | — |
| support.variable | #EDC00Dde | — |
| token.debug-token | #40E10Ade | — |
| token.error-token | #EEBF09de | — |
| token.info-token | #C0C0C0de | — |
| token.warn-token | #42E20Cde | — |
| variable | #ECBF0Ede | — |
| variable.css | #EDC00Dde | — |
| variable.language | #BAA5F9de | — |
| variable.language.wildcard.java | #F89DEFde | — |
| variable.other.constant | #ECC00Dde | — |
| variable.other.definition.java | #08E180de | — |
| variable.other.enummember | #87C3F5de | — |
| variable.other.less | #C5C5C5de | — |
| variable.other.object.java | #0DE081de | — |
| variable.other.object.property.java | #B7B7B7de | — |
| variable.parameter.c | #EBBF0Cde | — |
| variable.parameter.function.language.python | #CBBAFEde | — |
| variable.parameter.java | #41E10Dde | — |
| variable.scss | #ECBF0Dde | — |
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}!`;
}