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 | #BBBBF96e | — |
| comment.block.html | #BABAFA6e | — |
| comment.block.java | #BABAFA6e | — |
| comment.block.javadoc.java | #BABAFB6e | — |
| comment.block.powershell | #BBBBF96e | — |
| comment.block.xml | #BABAFA6e | — |
| comment.line.double-slash.c | #BBBBF96e | — |
| comment.line.double-slash.cpp | #BABAFC6e | — |
| comment.line.double-slash.java | #BABAFC6e | — |
| comment.line.double-slash.js | #BABAFA6e | — |
| comment.line.number-sign.makefile | #BBBBF96e | — |
| comment.line.number-sign.python | #BBBBF96e | — |
| comment.line.number-sign.yaml | #BABAFC6e | — |
| comment.line.percentage.erlang | #BABAFA6e | — |
| comment.line.powershell | #BABAFB6e | — |
| comment.source.cmake | #BABAFC6e | — |
| comment.source.cmakecache | #BABAFC6e | — |
| constant.character | #EE847Dde | — |
| constant.character.character-class.regexp | #71A3ECde | — |
| constant.character.escape | #98C1FEde | — |
| constant.character.set.regexp | #10DB93de | — |
| constant.language | #25DD0Ade | — |
| constant.numeric | #C6C610de | — |
| constant.numeric.dec.python | #26DE0Cde | — |
| constant.other.caps.python | #B28FF4de | — |
| constant.other.character-class.regexp | #27DD0Fde | — |
| constant.other.character-class.set.regexp | #ED79CBde | — |
| constant.other.color.rgb-value | #99C2FEde | — |
| constant.other.placeholder | #C4C408de | — |
| constant.other.rgb-value | #FEA2E4de | — |
| constant.regexp | #0DDB92de | — |
| constant.sha.git-rebase | #C5C511de | — |
| emphasis | #28DE0Fde | — |
| entity.name.class | #CFB3FEde | — |
| entity.name.function | #10DB93de | — |
| entity.name.function.preprocessor | #27DE0Fde | — |
| entity.name.function.python | #F0837Cde | — |
| entity.name.label | #F9AAA5de | — |
| entity.name.namespace | #0DDB92de | — |
| entity.name.operator | #25DE0Cde | — |
| entity.name.operator.custom-literal | #F8A39Ede | — |
| entity.name.scope-resolution | #0FDA92de | — |
| entity.name.tag | #B290F1de | — |
| entity.name.tag.css | #F8A39Ede | — |
| entity.name.type | #79AAF1de | — |
| entity.name.variable | #CFB3FEde | — |
| entity.other.attribute | #F89EDDde | — |
| entity.other.attribute-name | #27DE0Fde | — |
| entity.other.attribute-name.class.css | #FEA3E3de | — |
| entity.other.attribute-name.class.mixin.css | #0ADB90de | — |
| entity.other.attribute-name.id | #FEA2E4de | — |
| entity.other.attribute-name.id.css | #FEA2E4de | — |
| entity.other.attribute-name.parent-selector.css | #0ADA90de | — |
| entity.other.attribute-name.pseudo-class.css | #F179CDde | — |
| entity.other.attribute-name.pseudo-element.css | #F58FD7de | — |
| entity.other.attribute-name.scss | #BD9EF8de | — |
| entity.other.document.begin.yaml | #BABAFB6e | — |
| entity.other.inherited-class | #25DD0Fde | — |
| header | #C6C60Fde | — |
| invalid | #0FDA92de | — |
| keyword | #27DE0Fde | — |
| keyword.codetag.notation.python | #73A6EFde | — |
| keyword.control | #C5C510de | — |
| keyword.control.anchor.regexp | #C6C60Cde | — |
| keyword.control.import.python | #C6C607de | — |
| keyword.operator | #98C3FEde | — |
| keyword.operator.alignas | #FEA8A3de | — |
| keyword.operator.alignof | #F28781de | — |
| keyword.operator.cast | #B190F0de | — |
| keyword.operator.delete | #C6C610de | — |
| keyword.operator.documentation.powershell | #BABAFB6e | — |
| keyword.operator.expression | #F9A5E0de | — |
| keyword.operator.instanceof | #C8ACFEde | — |
| keyword.operator.logical.python | #81AFF2de | — |
| keyword.operator.minus.exponent | #25DD0Ade | — |
| keyword.operator.negation.regexp | #0CDA90de | — |
| keyword.operator.new | #FEA9A4de | — |
| keyword.operator.noexcept | #FEA2E4de | — |
| keyword.operator.or.regexp | #C6C60Dde | — |
| keyword.operator.plus.exponent | #F9AAA5de | — |
| keyword.operator.quantifier.regexp | #27DE0Fde | — |
| keyword.operator.sizeof | #C6C610de | — |
| keyword.operator.typeid | #FEA9A4de | — |
| keyword.operator.wordlike | #F9A5E0de | — |
| keyword.other.operator | #0DDB92de | — |
| keyword.other.package.java | #99C1FEde | — |
| keyword.other.unit | #0ADB90de | — |
| keyword.other.using | #22DC08de | — |
| markup.bold | #0CDA91de | — |
| markup.changed | #27DE0Fde | — |
| markup.deleted | #FEAAA4de | — |
| markup.fenced_code.block.markdown | #08DA91de | — |
| markup.heading | #C5C507de | — |
| markup.inline.raw | #0FDB92de | — |
| markup.inserted | #79AAF1de | — |
| markup.italic | #F58FD7de | — |
| markup.raw.block.markdown | #F281D1de | — |
| markup.strikethrough | #22DC08de | — |
| markup.underline | #25DE0Cde | — |
| meta.block.c | #10DA93de | — |
| meta.block.c | #C6C60Fde | — |
| meta.class.java | #C6C611de | — |
| meta.definition.variable.name | #FEABA5de | — |
| meta.diff.header | #F179CDde | — |
| meta.embedded | #FEA2E2de | — |
| meta.embedded.assembly | #F69C96de | — |
| meta.function-call.arguments.python | #EE847Dde | — |
| meta.function-call.python | #25DD0Ade | — |
| meta.member.access.python | #0FDB93de | — |
| meta.method.java | #27DE0Fde | — |
| meta.object-literal.key | #27DE0Fde | — |
| meta.paragraph.markdown | #EE847Dde | — |
| meta.preprocessor | #C4C408de | — |
| meta.preprocessor.numeric | #27DE0Fde | — |
| meta.preprocessor.string | #C5C507de | — |
| meta.scope.prerequisites.makefile | #97C2FEde | — |
| meta.structure.dictionary.json.comments | #BABAFB6e | — |
| meta.structure.dictionary.key.python | #88B4F4de | — |
| meta.structure.dictionary.value.json.comments | #BABAFB6e | — |
| meta.template.expression | #C6C60Dde | — |
| meta.type.cast.expr | #EE847Dde | — |
| meta.type.new.expr | #08DA91de | — |
| parameter | #EE827Cde | — |
| punctuation.character.set.begin.regexp | #25DD0Ade | — |
| punctuation.character.set.end.regexp | #F9A5E0de | — |
| punctuation.definition.array.begin.json | #F48E88de | — |
| punctuation.definition.character-class.regexp | #B38FF5de | — |
| punctuation.definition.comment | #BABAFA6e | — |
| punctuation.definition.comment.json.comments | #BABAFB6e | — |
| punctuation.definition.comment.python | #BBBBF96e | — |
| punctuation.definition.dictionary.begin.json | #EE847Dde | — |
| punctuation.definition.dictionary.end.json | #FEA2E4de | — |
| punctuation.definition.group.assertion.regexp | #C6C607de | — |
| punctuation.definition.group.regexp | #C6C610de | — |
| punctuation.definition.list.begin.json | #27DD0Fde | — |
| punctuation.definition.list.begin.markdown | #23DD0Ade | — |
| punctuation.definition.list.begin.python | #70A3EDde | — |
| punctuation.definition.list.end.json | #28DE0Fde | — |
| punctuation.definition.list.end.markdown | #C5C50Cde | — |
| punctuation.definition.list.end.python | #98C1FEde | — |
| punctuation.definition.parameters.begin.python | #0FDB93de | — |
| punctuation.definition.parameters.end.bracket.round.java | #B290F1de | — |
| punctuation.definition.quote.begin.markdown | #24DD0Dde | — |
| punctuation.definition.tag | #0FDB92de | — |
| punctuation.definition.template-expression.begin | #97C2FEde | — |
| punctuation.definition.template-expression.end | #0CDB93de | — |
| punctuation.section.class.begin.bracket.curly.java | #CEB3FEde | — |
| punctuation.section.embedded | #27DE0Fde | — |
| punctuation.section.embedded.begin.php | #8FB9F5de | — |
| punctuation.section.embedded.end.php | #0FDB93de | — |
| punctuation.terminator.java | #08DA91de | — |
| source.cmake | #0CDB93de | — |
| source.coffee.embedded | #F8A39Ede | — |
| source.cpp | #99C2FEde | — |
| source.css.less | #27DE0Fde | — |
| source.groovy.embedded | #0CDA90de | — |
| source.java | #0DDB92de | — |
| source.java-properties | #23DD0Ade | — |
| source.json.comments | #BABAFB6e | — |
| source.makefile | #C6C60Cde | — |
| source.powershell | #98C3FEde | — |
| source.powershell.variable.other.member | #B290F1de | — |
| source.python | #FEA2E4de | — |
| storage | #C6C611de | — |
| storage.modifier | #C5C50Fde | — |
| storage.modifier.import.java | #FEAAA4de | — |
| storage.modifier.package.java | #25DE0Cde | — |
| storage.type | #F69C96de | — |
| storage.type.annotation.groovy | #25DD0Ade | — |
| storage.type.annotation.java | #10DA92de | — |
| storage.type.boolean.go | #28DD0Ede | — |
| storage.type.byte.go | #96BEF6de | — |
| storage.type.cs | #24DE0Bde | — |
| storage.type.error.go | #10DB92de | — |
| storage.type.generic.cs | #10DA92de | — |
| storage.type.generic.groovy | #FEABA5de | — |
| storage.type.generic.java | #C8ADFAde | — |
| storage.type.groovy | #79AAF1de | — |
| storage.type.java | #C5C50Cde | — |
| storage.type.modifier.cs | #C5C511de | — |
| storage.type.numeric.go | #70A3EDde | — |
| storage.type.object.array.groovy | #23DD0Ade | — |
| storage.type.object.array.java | #F48E88de | — |
| storage.type.parameters.groovy | #C6C607de | — |
| storage.type.primitive.array.groovy | #FEA2E4de | — |
| storage.type.primitive.array.java | #F8A39Ede | — |
| storage.type.primitive.groovy | #EC79CAde | — |
| storage.type.primitive.java | #97C2FEde | — |
| storage.type.rune.go | #B896F6de | — |
| storage.type.string.go | #EE827Cde | — |
| storage.type.token.java | #B290F2de | — |
| storage.type.uintptr.go | #F48E88de | — |
| storage.type.variable.cs | #EC79CAde | — |
| string | #C6C611de | — |
| string.quoted.docstring.multi.python | #BABAFA6e | — |
| string.regexp | #27DD0Fde | — |
| string.tag | #0FDA92de | — |
| string.value | #B390F3de | — |
| strong | #C5C507de | — |
| support.class | #C6C60Fde | — |
| support.constant.color | #27DD0Fde | — |
| support.constant.dom | #26DE0Cde | — |
| support.constant.font-name | #C5C507de | — |
| support.constant.handlebars | #27DE0Fde | — |
| support.constant.json | #8FB9F5de | — |
| support.constant.math | #0CDA91de | — |
| support.constant.media | #10DB93de | — |
| support.constant.media-type | #FEAAA4de | — |
| support.constant.property-value | #ED79CBde | — |
| support.function | #28DD0Ede | — |
| support.function.git-rebase | #98C3FEde | — |
| support.other.parenthesis.regexp | #FEABA5de | — |
| support.type | #0FDB93de | — |
| support.type.property-name | #0DDB92de | — |
| support.type.vendored.property-name | #C3A5F9de | — |
| support.variable | #28DE0Fde | — |
| token.debug-token | #10DA92de | — |
| token.error-token | #C5C510de | — |
| token.info-token | #27DE0Fde | — |
| token.warn-token | #CFB3FEde | — |
| variable | #79AAF1de | — |
| variable.css | #B28FF3de | — |
| variable.language | #27DD0Fde | — |
| variable.language.wildcard.java | #F1817Ade | — |
| variable.other.constant | #CDB3FEde | — |
| variable.other.definition.java | #F179CDde | — |
| variable.other.enummember | #F9A5E0de | — |
| variable.other.less | #EE77CBde | — |
| variable.other.object.java | #27DE0Fde | — |
| variable.other.object.property.java | #B290F1de | — |
| variable.parameter.c | #FEA3E3de | — |
| variable.parameter.function.language.python | #BD9EF8de | — |
| variable.parameter.java | #22DC08de | — |
| variable.scss | #B290F2de | — |
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}!`;
}