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 | #A2A2A26e | — |
| comment.block.html | #A2A2A26e | — |
| comment.block.java | #A2A2A26e | — |
| comment.block.javadoc.java | #A2A2A26e | — |
| comment.block.powershell | #A2A2A26e | — |
| comment.block.xml | #A3A3A36e | — |
| comment.line.double-slash.c | #A3A3A36e | — |
| comment.line.double-slash.cpp | #A2A2A26e | — |
| comment.line.double-slash.java | #A2A2A26e | — |
| comment.line.double-slash.js | #A3A3A36e | — |
| comment.line.number-sign.makefile | #A1A1A16e | — |
| comment.line.number-sign.python | #A2A2A26e | — |
| comment.line.number-sign.yaml | #A2A2A26e | — |
| comment.line.percentage.erlang | #A1A1A16e | — |
| comment.line.powershell | #A3A3A36e | — |
| comment.source.cmake | #A1A1A16e | — |
| comment.source.cmakecache | #A2A2A26e | — |
| constant.character | #6EA6DCde | — |
| constant.character.character-class.regexp | #6DA5DDde | — |
| constant.character.escape | #D39A60de | — |
| constant.character.set.regexp | #E67FB3de | — |
| constant.language | #62B60Fde | — |
| constant.numeric | #BC8DECde | — |
| constant.numeric.dec.python | #62B50Ede | — |
| constant.other.caps.python | #4FA5FBde | — |
| constant.other.character-class.regexp | #91BFEEde | — |
| constant.other.character-class.set.regexp | #BC8CEBde | — |
| constant.other.color.rgb-value | #E67FB3de | — |
| constant.other.placeholder | #0CDA73de | — |
| constant.other.rgb-value | #FC5FFCde | — |
| constant.regexp | #E67FB3de | — |
| constant.sha.git-rebase | #DDA66Fde | — |
| emphasis | #F58416de | — |
| entity.name.class | #74AAE0de | — |
| entity.name.function | #E67FB3de | — |
| entity.name.function.preprocessor | #CF955Bde | — |
| entity.name.function.python | #BD8DECde | — |
| entity.name.label | #ED92EDde | — |
| entity.name.namespace | #E67FB3de | — |
| entity.name.operator | #D0955Bde | — |
| entity.name.operator.custom-literal | #E27AE2de | — |
| entity.name.scope-resolution | #6EA5DDde | — |
| entity.name.tag | #6FA5DDde | — |
| entity.name.tag.css | #6EA5DCde | — |
| entity.name.type | #D0955Ade | — |
| entity.name.variable | #E279E2de | — |
| entity.other.attribute | #61B80Ade | — |
| entity.other.attribute-name | #BC8CEBde | — |
| entity.other.attribute-name.class.css | #89C44Ede | — |
| entity.other.attribute-name.class.mixin.css | #0DD16Fde | — |
| entity.other.attribute-name.id | #0CDA73de | — |
| entity.other.attribute-name.id.css | #D0955Ade | — |
| entity.other.attribute-name.parent-selector.css | #F098F0de | — |
| entity.other.attribute-name.pseudo-class.css | #FC5FFCde | — |
| entity.other.attribute-name.pseudo-element.css | #BC8DECde | — |
| entity.other.attribute-name.scss | #0CD973de | — |
| entity.other.document.begin.yaml | #A2A2A26e | — |
| entity.other.inherited-class | #CF955Ade | — |
| header | #52C88Dde | — |
| invalid | #CCA4F4de | — |
| keyword | #E279E2de | — |
| keyword.codetag.notation.python | #E27AE2de | — |
| keyword.control | #D0955Bde | — |
| keyword.control.anchor.regexp | #E0AA74de | — |
| keyword.control.import.python | #BC8CEBde | — |
| keyword.operator | #62B60Fde | — |
| keyword.operator.alignas | #BC8CEBde | — |
| keyword.operator.alignof | #5BD095de | — |
| keyword.operator.cast | #62B60Fde | — |
| keyword.operator.delete | #E67FB3de | — |
| keyword.operator.documentation.powershell | #A3A3A36e | — |
| keyword.operator.expression | #D0955Bde | — |
| keyword.operator.instanceof | #63B70Fde | — |
| keyword.operator.logical.python | #E780B3de | — |
| keyword.operator.minus.exponent | #BC8CECde | — |
| keyword.operator.negation.regexp | #D0965Cde | — |
| keyword.operator.new | #8DC852de | — |
| keyword.operator.noexcept | #44B47Cde | — |
| keyword.operator.or.regexp | #0ABC63de | — |
| keyword.operator.plus.exponent | #6EA5DDde | — |
| keyword.operator.quantifier.regexp | #57CC91de | — |
| keyword.operator.sizeof | #4FA5FBde | — |
| keyword.operator.typeid | #E379E3de | — |
| keyword.operator.wordlike | #6EA6DDde | — |
| keyword.other.operator | #6EA6DCde | — |
| keyword.other.package.java | #6EA6DDde | — |
| keyword.other.unit | #F48312de | — |
| keyword.other.using | #F48313de | — |
| markup.bold | #E37BE3de | — |
| markup.changed | #BC8DECde | — |
| markup.deleted | #6EA5DDde | — |
| markup.fenced_code.block.markdown | #CF955Ade | — |
| markup.heading | #BC8CECde | — |
| markup.inline.raw | #FC5DFCde | — |
| markup.inserted | #0DBB64de | — |
| markup.italic | #E37AE3de | — |
| markup.raw.block.markdown | #E37AE3de | — |
| markup.strikethrough | #4ABF85de | — |
| markup.underline | #BC8CEBde | — |
| meta.block.c | #E780B3de | — |
| meta.block.c | #E279E2de | — |
| meta.class.java | #CF955Ade | — |
| meta.definition.variable.name | #0DBB64de | — |
| meta.diff.header | #E3AF7Ade | — |
| meta.embedded | #D79E65de | — |
| meta.embedded.assembly | #98C4F0de | — |
| meta.function-call.arguments.python | #E3AF7Ade | — |
| meta.function-call.python | #46BB80de | — |
| meta.member.access.python | #44B67Dde | — |
| meta.method.java | #E379E3de | — |
| meta.object-literal.key | #0DBB64de | — |
| meta.paragraph.markdown | #DAA26Ade | — |
| meta.preprocessor | #50A5FBde | — |
| meta.preprocessor.numeric | #FC5DFCde | — |
| meta.preprocessor.string | #E279E2de | — |
| meta.scope.prerequisites.makefile | #44B47Cde | — |
| meta.structure.dictionary.json.comments | #A1A1A16e | — |
| meta.structure.dictionary.key.python | #0DD370de | — |
| meta.structure.dictionary.value.json.comments | #A1A1A16e | — |
| meta.template.expression | #7BB144de | — |
| meta.type.cast.expr | #F4A4CCde | — |
| meta.type.new.expr | #BB8CECde | — |
| parameter | #E780B3de | — |
| punctuation.character.set.begin.regexp | #62B40Ede | — |
| punctuation.character.set.end.regexp | #D0955Ade | — |
| punctuation.definition.array.begin.json | #0DD16Fde | — |
| punctuation.definition.character-class.regexp | #BC8CEBde | — |
| punctuation.definition.comment | #A1A1A16e | — |
| punctuation.definition.comment.json.comments | #A2A2A26e | — |
| punctuation.definition.comment.python | #A2A2A26e | — |
| punctuation.definition.dictionary.begin.json | #F4A4CCde | — |
| punctuation.definition.dictionary.end.json | #BC8CECde | — |
| punctuation.definition.group.assertion.regexp | #E680B3de | — |
| punctuation.definition.group.regexp | #F29EF2de | — |
| punctuation.definition.list.begin.json | #E0AA74de | — |
| punctuation.definition.list.begin.markdown | #5BD095de | — |
| punctuation.definition.list.begin.python | #D0955Bde | — |
| punctuation.definition.list.end.json | #E37BE3de | — |
| punctuation.definition.list.end.markdown | #E680B3de | — |
| punctuation.definition.list.end.python | #6EA5DDde | — |
| punctuation.definition.parameters.begin.python | #0CBB63de | — |
| punctuation.definition.parameters.end.bracket.round.java | #EE91BFde | — |
| punctuation.definition.quote.begin.markdown | #6EA5DDde | — |
| punctuation.definition.tag | #63B70Fde | — |
| punctuation.definition.template-expression.begin | #4EC489de | — |
| punctuation.definition.template-expression.end | #6FA6DDde | — |
| punctuation.section.class.begin.bracket.curly.java | #D0965Cde | — |
| punctuation.section.embedded | #85BF4Ade | — |
| punctuation.section.embedded.begin.php | #6DA5DCde | — |
| punctuation.section.embedded.end.php | #7BB244de | — |
| punctuation.terminator.java | #BC8DECde | — |
| source.cmake | #F58416de | — |
| source.coffee.embedded | #0CBA62de | — |
| source.cpp | #E37AE3de | — |
| source.css.less | #0CD973de | — |
| source.groovy.embedded | #E781B4de | — |
| source.java | #E37BE3de | — |
| source.java-properties | #BC8CEBde | — |
| source.json.comments | #A1A1A16e | — |
| source.makefile | #E279E2de | — |
| source.powershell | #6EA5DDde | — |
| source.powershell.variable.other.member | #0ABC63de | — |
| source.python | #D0955Bde | — |
| storage | #63B70Fde | — |
| storage.modifier | #CF965Bde | — |
| storage.modifier.import.java | #7BB144de | — |
| storage.modifier.package.java | #E781B3de | — |
| storage.type | #D39A60de | — |
| storage.type.annotation.groovy | #5BD095de | — |
| storage.type.annotation.java | #EB8BBBde | — |
| storage.type.boolean.go | #D0955Bde | — |
| storage.type.byte.go | #D0965Cde | — |
| storage.type.cs | #BC8CEBde | — |
| storage.type.error.go | #F58416de | — |
| storage.type.generic.cs | #0ABC63de | — |
| storage.type.generic.groovy | #60D39Ade | — |
| storage.type.generic.java | #6EA6DCde | — |
| storage.type.groovy | #E279E2de | — |
| storage.type.java | #CF955Ade | — |
| storage.type.modifier.cs | #0DCB6Dde | — |
| storage.type.numeric.go | #7AB144de | — |
| storage.type.object.array.groovy | #44B47Cde | — |
| storage.type.object.array.java | #0CBB63de | — |
| storage.type.parameters.groovy | #60B60Cde | — |
| storage.type.primitive.array.groovy | #7AB144de | — |
| storage.type.primitive.array.java | #E3AF7Ade | — |
| storage.type.primitive.groovy | #BC8DECde | — |
| storage.type.primitive.java | #DAA26Ade | — |
| storage.type.rune.go | #6EA6DDde | — |
| storage.type.string.go | #91BFEEde | — |
| storage.type.token.java | #E279E2de | — |
| storage.type.uintptr.go | #7BB244de | — |
| storage.type.variable.cs | #E67FB3de | — |
| string | #62B50Ede | — |
| string.quoted.docstring.multi.python | #A2A2A26e | — |
| string.regexp | #EB8CEBde | — |
| string.tag | #F48414de | — |
| string.value | #6FA5DDde | — |
| strong | #FC5FFCde | — |
| support.class | #BC8CEBde | — |
| support.constant.color | #74AAE0de | — |
| support.constant.dom | #61B80Ade | — |
| support.constant.font-name | #57CC91de | — |
| support.constant.handlebars | #BC8CEBde | — |
| support.constant.json | #60B60Cde | — |
| support.constant.math | #F58312de | — |
| support.constant.media | #7BB144de | — |
| support.constant.media-type | #E279E2de | — |
| support.constant.property-value | #63B80Dde | — |
| support.function | #E680B3de | — |
| support.function.git-rebase | #F098F0de | — |
| support.other.parenthesis.regexp | #E67FB3de | — |
| support.type | #D0955Bde | — |
| support.type.property-name | #80BB46de | — |
| support.type.vendored.property-name | #F58312de | — |
| support.variable | #6DA5DCde | — |
| token.debug-token | #D0965Cde | — |
| token.error-token | #BC8CECde | — |
| token.info-token | #74AAE0de | — |
| token.warn-token | #F48414de | — |
| variable | #E0AA74de | — |
| variable.css | #E680B3de | — |
| variable.language | #8BBBEBde | — |
| variable.language.wildcard.java | #62B40Ede | — |
| variable.other.constant | #F098F0de | — |
| variable.other.definition.java | #62B50Ede | — |
| variable.other.enummember | #7AB144de | — |
| variable.other.less | #E781B4de | — |
| variable.other.object.java | #BC8CECde | — |
| variable.other.object.property.java | #E27AE2de | — |
| variable.parameter.c | #E780B3de | — |
| variable.parameter.function.language.python | #D0955Bde | — |
| variable.parameter.java | #FC5DFCde | — |
| variable.scss | #CF965Bde | — |
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}!`;
}