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 | #3D2C126e | — |
| comment.block.html | #3D2D136e | — |
| comment.block.java | #3A2E156e | — |
| comment.block.javadoc.java | #3D2D136e | — |
| comment.block.powershell | #3A2E146e | — |
| comment.block.xml | #3D2D136e | — |
| comment.line.double-slash.c | #3A2E156e | — |
| comment.line.double-slash.cpp | #3D2C126e | — |
| comment.line.double-slash.java | #3D2D136e | — |
| comment.line.double-slash.js | #3D2C126e | — |
| comment.line.number-sign.makefile | #3A2E156e | — |
| comment.line.number-sign.python | #3D2D136e | — |
| comment.line.number-sign.yaml | #3A2E156e | — |
| comment.line.percentage.erlang | #3A2E146e | — |
| comment.line.powershell | #3D2C126e | — |
| comment.source.cmake | #3D2D136e | — |
| comment.source.cmakecache | #3A2E156e | — |
| constant.character | #3F1D63de | — |
| constant.character.character-class.regexp | #012383de | — |
| constant.character.escape | #421175de | — |
| constant.character.set.regexp | #522011de | — |
| constant.language | #2F2F2Fde | — |
| constant.numeric | #1D3162de | — |
| constant.numeric.dec.python | #6A2F1Fde | — |
| constant.other.caps.python | #430680de | — |
| constant.other.character-class.regexp | #203671de | — |
| constant.other.character-class.set.regexp | #163F38de | — |
| constant.other.color.rgb-value | #012383de | — |
| constant.other.placeholder | #4F2216de | — |
| constant.other.rgb-value | #5C0D38de | — |
| constant.regexp | #203671de | — |
| constant.sha.git-rebase | #1C2E5Bde | — |
| emphasis | #2F2F2Fde | — |
| entity.name.class | #3E0486de | — |
| entity.name.function | #2F2F2Fde | — |
| entity.name.function.preprocessor | #0E352Fde | — |
| entity.name.function.python | #0A4F43de | — |
| entity.name.label | #343814de | — |
| entity.name.namespace | #54271Bde | — |
| entity.name.operator | #434A0Dde | — |
| entity.name.operator.custom-literal | #192C5Fde | — |
| entity.name.scope-resolution | #2E3210de | — |
| entity.name.tag | #1F346Ade | — |
| entity.name.tag.css | #5B1C3Fde | — |
| entity.name.type | #182C61de | bold |
| entity.name.variable | #621D44de | — |
| entity.other.attribute | #434A0Fde | — |
| entity.other.attribute-name | #0E2873de | — |
| entity.other.attribute-name.class.css | #0F352Ede | — |
| entity.other.attribute-name.class.mixin.css | #5D1503de | — |
| entity.other.attribute-name.id | #5D1503de | — |
| entity.other.attribute-name.id.css | #2F2F2Fde | — |
| entity.other.attribute-name.parent-selector.css | #162C64de | — |
| entity.other.attribute-name.pseudo-class.css | #0D4F44de | — |
| entity.other.attribute-name.pseudo-element.css | #54183Ade | — |
| entity.other.attribute-name.scss | #401D62de | — |
| entity.other.document.begin.yaml | #3A2E156e | — |
| entity.other.inherited-class | #2F2F2Fde | — |
| header | #0D4F44de | — |
| invalid | #430680de | — |
| keyword | #5D1503de | bold |
| keyword.codetag.notation.python | #5D1503de | bold |
| keyword.control | #0B4F44de | bold |
| keyword.control.anchor.regexp | #1D3162de | bold |
| keyword.control.import.python | #424A07de | bold |
| keyword.operator | #411B66de | bold |
| keyword.operator.alignas | #0F352Ede | bold |
| keyword.operator.alignof | #0B4F44de | bold |
| keyword.operator.cast | #1A2D5Fde | bold |
| keyword.operator.delete | #522011de | bold |
| keyword.operator.documentation.powershell | #3A2E146e | bold |
| keyword.operator.expression | #192C5Fde | bold |
| keyword.operator.instanceof | #622D1Dde | bold |
| keyword.operator.logical.python | #2E320Ede | bold |
| keyword.operator.minus.exponent | #411B66de | bold |
| keyword.operator.negation.regexp | #434343de | bold |
| keyword.operator.new | #541E0Ede | bold |
| keyword.operator.noexcept | #42156Fde | bold |
| keyword.operator.or.regexp | #420C7Cde | bold |
| keyword.operator.plus.exponent | #1C2E5Bde | bold |
| keyword.operator.quantifier.regexp | #41186Bde | bold |
| keyword.operator.sizeof | #194D44de | bold |
| keyword.operator.typeid | #0B4F44de | bold |
| keyword.operator.wordlike | #441F6Ade | bold |
| keyword.other.operator | #3E0486de | bold |
| keyword.other.package.java | #441F6Ade | bold |
| keyword.other.unit | #482071de | bold |
| keyword.other.using | #424A09de | bold |
| markup.bold | #194D44de | — |
| markup.changed | #622D1Dde | — |
| markup.deleted | #581439de | — |
| markup.fenced_code.block.markdown | #182C61de | — |
| markup.heading | #0F352Ede | — |
| markup.inline.raw | #2D3303de | — |
| markup.inserted | #56163Ade | — |
| markup.italic | #012383de | — |
| markup.raw.block.markdown | #410185de | — |
| markup.strikethrough | #4D2419de | — |
| markup.underline | #2F2F2Fde | — |
| meta.block.c | #04362Cde | — |
| meta.block.c | #434A0Fde | — |
| meta.class.java | #6A2F1Fde | — |
| meta.definition.variable.name | #04362Cde | — |
| meta.diff.header | #313131de | — |
| meta.embedded | #4F2216de | — |
| meta.embedded.assembly | #132B68de | — |
| meta.function-call.arguments.python | #5C0D38de | — |
| meta.function-call.python | #6A2F1Fde | — |
| meta.member.access.python | #54183Ade | — |
| meta.method.java | #3E0486de | — |
| meta.object-literal.key | #581439de | — |
| meta.paragraph.markdown | #0F4F44de | — |
| meta.preprocessor | #6A1F48de | — |
| meta.preprocessor.numeric | #4D2419de | — |
| meta.preprocessor.string | #71204Dde | — |
| meta.scope.prerequisites.makefile | #2F2F2Fde | — |
| meta.structure.dictionary.json.comments | #3A2E146e | — |
| meta.structure.dictionary.key.python | #441F6Ade | — |
| meta.structure.dictionary.value.json.comments | #3A2E156e | — |
| meta.template.expression | #434A0Fde | — |
| meta.type.cast.expr | #41196Ade | bold |
| meta.type.new.expr | #162C64de | bold |
| parameter | #2F2F2Fde | — |
| punctuation.character.set.begin.regexp | #0E352Fde | — |
| punctuation.character.set.end.regexp | #2E320Ede | — |
| punctuation.definition.array.begin.json | #143832de | — |
| punctuation.definition.character-class.regexp | #4E2317de | — |
| punctuation.definition.comment | #3D2C126e | — |
| punctuation.definition.comment.json.comments | #3A2E146e | — |
| punctuation.definition.comment.python | #3D2C126e | — |
| punctuation.definition.dictionary.begin.json | #2F2F2Fde | — |
| punctuation.definition.dictionary.end.json | #343814de | — |
| punctuation.definition.group.assertion.regexp | #621D44de | — |
| punctuation.definition.group.regexp | #1C2E5Bde | — |
| punctuation.definition.list.begin.json | #132B68de | — |
| punctuation.definition.list.begin.markdown | #3F3F3Fde | — |
| punctuation.definition.list.begin.python | #713220de | — |
| punctuation.definition.list.end.json | #420C7Cde | — |
| punctuation.definition.list.end.markdown | #434A0Bde | — |
| punctuation.definition.list.end.python | #482071de | — |
| punctuation.definition.parameters.begin.python | #444A0Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #012383de | — |
| punctuation.definition.quote.begin.markdown | #2F2F2Fde | — |
| punctuation.definition.tag | #541E0Ede | — |
| punctuation.definition.template-expression.begin | #852205de | — |
| punctuation.definition.template-expression.end | #5B2A1Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #41196Ade | — |
| punctuation.section.embedded | #420C7Cde | — |
| punctuation.section.embedded.begin.php | #0E2873de | — |
| punctuation.section.embedded.end.php | #420C7Cde | — |
| punctuation.terminator.java | #5D0C34de | — |
| source.cmake | #434343de | — |
| source.coffee.embedded | #4D2419de | — |
| source.cpp | #541E0Ede | — |
| source.css.less | #2F2F2Fde | — |
| source.groovy.embedded | #192C5Fde | — |
| source.java | #012383de | — |
| source.java-properties | #713220de | — |
| source.json.comments | #3D2C126e | — |
| source.makefile | #3A3F16de | — |
| source.powershell | #2F2F2Fde | — |
| source.powershell.variable.other.member | #401D62de | — |
| source.python | #404617de | — |
| storage | #420C7Cde | — |
| storage.modifier | #401C65de | — |
| storage.modifier.import.java | #3F3F3Fde | — |
| storage.modifier.package.java | #1C2E5Bde | — |
| storage.type | #420C7Cde | bold |
| storage.type.annotation.groovy | #522011de | bold |
| storage.type.annotation.java | #482071de | bold |
| storage.type.boolean.go | #410185de | bold |
| storage.type.byte.go | #0B4F44de | bold |
| storage.type.cs | #5C0D38de | bold |
| storage.type.error.go | #852205de | bold |
| storage.type.generic.cs | #5F0637de | bold |
| storage.type.generic.groovy | #03362Dde | bold |
| storage.type.generic.java | #1A2D5Fde | bold |
| storage.type.groovy | #561839de | bold |
| storage.type.java | #852205de | bold |
| storage.type.modifier.cs | #203671de | bold |
| storage.type.numeric.go | #1F346Ade | bold |
| storage.type.object.array.groovy | #5D0C39de | bold |
| storage.type.object.array.java | #0E352Fde | bold |
| storage.type.parameters.groovy | #444A0Cde | bold |
| storage.type.primitive.array.groovy | #430680de | bold |
| storage.type.primitive.array.java | #194D44de | bold |
| storage.type.primitive.groovy | #3F3F3Fde | bold |
| storage.type.primitive.java | #182C61de | bold |
| storage.type.rune.go | #434A0Dde | bold |
| storage.type.string.go | #313131de | bold |
| storage.type.token.java | #3F1D63de | bold |
| storage.type.uintptr.go | #363636de | bold |
| storage.type.variable.cs | #163F38de | bold |
| string | #421175de | — |
| string.quoted.docstring.multi.python | #3D2C126e | — |
| string.regexp | #3E0486de | — |
| string.tag | #2F2F2Fde | — |
| string.value | #441F6Ade | — |
| strong | #41196Ade | — |
| support.class | #421175de | — |
| support.constant.color | #3A3A3Ade | — |
| support.constant.dom | #434A0Dde | — |
| support.constant.font-name | #363636de | — |
| support.constant.handlebars | #0D352Fde | — |
| support.constant.json | #41186Bde | — |
| support.constant.math | #1C2E5Bde | — |
| support.constant.media | #2F2F2Fde | — |
| support.constant.media-type | #482071de | bold |
| support.constant.property-value | #622D1Dde | — |
| support.function | #54183Ade | — |
| support.function.git-rebase | #713220de | — |
| support.other.parenthesis.regexp | #194D44de | — |
| support.type | #5B1C3Fde | bold |
| support.type.property-name | #434A0Fde | bold |
| support.type.vendored.property-name | #3E0486de | bold |
| support.variable | #012383de | — |
| token.debug-token | #424A09de | — |
| token.error-token | #2F2F2Fde | — |
| token.info-token | #0D4F44de | — |
| token.warn-token | #2F2F2Fde | — |
| variable | #0A4F43de | — |
| variable.css | #2F2F2Fde | — |
| variable.language | #411B66de | — |
| variable.language.wildcard.java | #2D3208de | — |
| variable.other.constant | #1F346Ade | — |
| variable.other.definition.java | #621D44de | — |
| variable.other.enummember | #132B68de | — |
| variable.other.less | #363636de | — |
| variable.other.object.java | #0E2873de | — |
| variable.other.object.property.java | #421175de | — |
| variable.parameter.c | #5B2A1Cde | — |
| variable.parameter.function.language.python | #5B2A1Cde | — |
| variable.parameter.java | #163F38de | — |
| variable.scss | #0D4F44de | — |
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}!`;
}