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 | #F9B4B46e | — |
| comment.block.html | #F7B4B46e | — |
| comment.block.java | #F6B5B56e | — |
| comment.block.javadoc.java | #F6B5B56e | — |
| comment.block.powershell | #F9B4B46e | — |
| comment.block.xml | #F6B5B56e | — |
| comment.line.double-slash.c | #F9B4B46e | — |
| comment.line.double-slash.cpp | #F9B4B46e | — |
| comment.line.double-slash.java | #F6B5B56e | — |
| comment.line.double-slash.js | #F7B4B46e | — |
| comment.line.number-sign.makefile | #F6B5B56e | — |
| comment.line.number-sign.python | #F7B4B46e | — |
| comment.line.number-sign.yaml | #F7B4B46e | — |
| comment.line.percentage.erlang | #F6B5B56e | — |
| comment.line.powershell | #F7B4B46e | — |
| comment.source.cmake | #FAB4B46e | — |
| comment.source.cmakecache | #F7B4B46e | — |
| constant.character | #BFA9F6de | — |
| constant.character.character-class.regexp | #FEA7FEde | — |
| constant.character.escape | #15E18Ade | — |
| constant.character.set.regexp | #0FE188de | — |
| constant.language | #E3C515de | — |
| constant.numeric | #E4C513de | — |
| constant.numeric.dec.python | #E4C30Dde | — |
| constant.other.caps.python | #12E289de | — |
| constant.other.character-class.regexp | #E0C415de | — |
| constant.other.character-class.set.regexp | #FEA4FEde | — |
| constant.other.color.rgb-value | #E681E6de | — |
| constant.other.placeholder | #15E28Ade | — |
| constant.other.rgb-value | #8DCCFDde | — |
| constant.regexp | #8EC5EFde | — |
| constant.sha.git-rebase | #12E289de | — |
| emphasis | #A6A6A6de | — |
| entity.name.class | #C4B0F8de | — |
| entity.name.function | #CAB5FEde | — |
| entity.name.function.preprocessor | #E1C50Fde | — |
| entity.name.function.python | #87C1EDde | — |
| entity.name.label | #B29AEFde | — |
| entity.name.namespace | #E681E6de | — |
| entity.name.operator | #15E189de | — |
| entity.name.operator.custom-literal | #94C9F1de | — |
| entity.name.scope-resolution | #12E289de | — |
| entity.name.tag | #AAAAAAde | — |
| entity.name.tag.css | #CEBBFEde | — |
| entity.name.type | #E780E7de | — |
| entity.name.variable | #EB81EBde | — |
| entity.other.attribute | #4FE215de | — |
| entity.other.attribute-name | #15E188de | — |
| entity.other.attribute-name.class.css | #4EE115de | — |
| entity.other.attribute-name.class.mixin.css | #50E114de | — |
| entity.other.attribute-name.id | #B198F0de | — |
| entity.other.attribute-name.id.css | #4CE30Fde | — |
| entity.other.attribute-name.parent-selector.css | #4EE212de | — |
| entity.other.attribute-name.pseudo-class.css | #50E115de | — |
| entity.other.attribute-name.pseudo-element.css | #7BBAE9de | — |
| entity.other.attribute-name.scss | #CAB7F9de | — |
| entity.other.document.begin.yaml | #F6B5B56e | — |
| entity.other.inherited-class | #CAB7F9de | — |
| header | #8BCCFEde | — |
| invalid | #4FE115de | — |
| keyword | #CAB5FEde | — |
| keyword.codetag.notation.python | #14E189de | — |
| keyword.control | #4EE115de | — |
| keyword.control.anchor.regexp | #4EE212de | — |
| keyword.control.import.python | #15E18Ade | — |
| keyword.operator | #4FE115de | — |
| keyword.operator.alignas | #ED87EDde | — |
| keyword.operator.alignof | #AAAAAAde | — |
| keyword.operator.cast | #75B5E6de | — |
| keyword.operator.delete | #FEA7FEde | — |
| keyword.operator.documentation.powershell | #FAB4B46e | — |
| keyword.operator.expression | #75B5E6de | — |
| keyword.operator.instanceof | #E1C515de | — |
| keyword.operator.logical.python | #4FE215de | — |
| keyword.operator.minus.exponent | #8DCCFDde | — |
| keyword.operator.negation.regexp | #C6C6C6de | — |
| keyword.operator.new | #50E114de | — |
| keyword.operator.noexcept | #0DE285de | — |
| keyword.operator.or.regexp | #A6A6A6de | — |
| keyword.operator.plus.exponent | #4FE115de | — |
| keyword.operator.quantifier.regexp | #10E288de | — |
| keyword.operator.sizeof | #E1C414de | — |
| keyword.operator.typeid | #CAB5FEde | — |
| keyword.operator.wordlike | #4CE210de | — |
| keyword.other.operator | #15E189de | — |
| keyword.other.package.java | #F194F1de | — |
| keyword.other.unit | #E1C415de | — |
| keyword.other.using | #C6C6C6de | — |
| markup.bold | #CAB5FEde | — |
| markup.changed | #94C9F1de | — |
| markup.deleted | #C5C5C5de | — |
| markup.fenced_code.block.markdown | #8EC5EFde | — |
| markup.heading | #A6A6A6de | — |
| markup.inline.raw | #A6A6A6de | — |
| markup.inserted | #E1C415de | — |
| markup.italic | #15E18Ade | — |
| markup.raw.block.markdown | #C6C6C6de | — |
| markup.strikethrough | #B7B7B7de | — |
| markup.underline | #EF8EEFde | — |
| meta.block.c | #10E288de | — |
| meta.block.c | #C6C6C6de | — |
| meta.class.java | #F6A9F6de | — |
| meta.definition.variable.name | #B199EEde | — |
| meta.diff.header | #F5A2F5de | — |
| meta.embedded | #50E114de | — |
| meta.embedded.assembly | #75B5E6de | — |
| meta.function-call.arguments.python | #15E18Ade | — |
| meta.function-call.python | #15E189de | — |
| meta.member.access.python | #E0C40Ede | — |
| meta.method.java | #E0C415de | — |
| meta.object-literal.key | #4AE210de | — |
| meta.paragraph.markdown | #87C1EDde | — |
| meta.preprocessor | #E4C410de | — |
| meta.preprocessor.numeric | #94C9F1de | — |
| meta.preprocessor.string | #4EE115de | — |
| meta.scope.prerequisites.makefile | #75B5E6de | — |
| meta.structure.dictionary.json.comments | #F9B4B46e | — |
| meta.structure.dictionary.key.python | #15E18Ade | — |
| meta.structure.dictionary.value.json.comments | #F7B4B46e | — |
| meta.template.expression | #EF8EEFde | — |
| meta.type.cast.expr | #B29AEFde | — |
| meta.type.new.expr | #E2C412de | — |
| parameter | #15E188de | — |
| punctuation.character.set.begin.regexp | #50E114de | — |
| punctuation.character.set.end.regexp | #EB81EBde | — |
| punctuation.definition.array.begin.json | #B3B3B3de | — |
| punctuation.definition.character-class.regexp | #50E114de | — |
| punctuation.definition.comment | #FAB4B46e | — |
| punctuation.definition.comment.json.comments | #F9B4B46e | — |
| punctuation.definition.comment.python | #F6B5B56e | — |
| punctuation.definition.dictionary.begin.json | #C6C6C6de | — |
| punctuation.definition.dictionary.end.json | #8CCCFEde | — |
| punctuation.definition.group.assertion.regexp | #C6C6C6de | — |
| punctuation.definition.group.regexp | #FEA7FEde | — |
| punctuation.definition.list.begin.json | #FEA8FEde | — |
| punctuation.definition.list.begin.markdown | #B198F0de | — |
| punctuation.definition.list.begin.python | #15E18Ade | — |
| punctuation.definition.list.end.json | #4FE215de | — |
| punctuation.definition.list.end.markdown | #8ECDFDde | — |
| punctuation.definition.list.end.python | #B7B7B7de | — |
| punctuation.definition.parameters.begin.python | #C6C6C6de | — |
| punctuation.definition.parameters.end.bracket.round.java | #CEBBFEde | — |
| punctuation.definition.quote.begin.markdown | #15E188de | — |
| punctuation.definition.tag | #4FE215de | — |
| punctuation.definition.template-expression.begin | #F194F1de | — |
| punctuation.definition.template-expression.end | #E1C415de | — |
| punctuation.section.class.begin.bracket.curly.java | #6FB1E3de | — |
| punctuation.section.embedded | #10E288de | — |
| punctuation.section.embedded.begin.php | #15E18Ade | — |
| punctuation.section.embedded.end.php | #E97EE9de | — |
| punctuation.terminator.java | #4AE210de | — |
| source.cmake | #F5A2F5de | — |
| source.coffee.embedded | #FEA8FEde | — |
| source.cpp | #E1C414de | — |
| source.css.less | #C5C5C5de | — |
| source.groovy.embedded | #50E115de | — |
| source.java | #E780E7de | — |
| source.java-properties | #14E189de | — |
| source.json.comments | #FAB4B46e | — |
| source.makefile | #8ECDFDde | — |
| source.powershell | #CAB5FEde | — |
| source.powershell.variable.other.member | #E97EE9de | — |
| source.python | #10E289de | — |
| storage | #7BBAE9de | — |
| storage.modifier | #8CCDFDde | — |
| storage.modifier.import.java | #BFA9F6de | — |
| storage.modifier.package.java | #E0C415de | — |
| storage.type | #AFAFAFde | — |
| storage.type.annotation.groovy | #E2C412de | — |
| storage.type.annotation.java | #CEBBFEde | — |
| storage.type.boolean.go | #C6C6C6de | — |
| storage.type.byte.go | #81BEEBde | — |
| storage.type.cs | #E4C513de | — |
| storage.type.error.go | #94C9F1de | — |
| storage.type.generic.cs | #0DE285de | — |
| storage.type.generic.groovy | #B19AEBde | — |
| storage.type.generic.java | #87C1EDde | — |
| storage.type.groovy | #15E18Ade | — |
| storage.type.java | #E1C515de | — |
| storage.type.modifier.cs | #87C1EDde | — |
| storage.type.numeric.go | #0DE285de | — |
| storage.type.object.array.groovy | #E3C515de | — |
| storage.type.object.array.java | #49E20Dde | — |
| storage.type.parameters.groovy | #0FE188de | — |
| storage.type.primitive.array.groovy | #75B5E6de | — |
| storage.type.primitive.array.java | #C6C6C6de | — |
| storage.type.primitive.groovy | #8DCDFDde | — |
| storage.type.primitive.java | #B3B3B3de | — |
| storage.type.rune.go | #E1C415de | — |
| storage.type.string.go | #8BCDFDde | — |
| storage.type.token.java | #8BCDFDde | — |
| storage.type.uintptr.go | #0FE188de | — |
| storage.type.variable.cs | #15E18Ade | — |
| string | #B19AEBde | — |
| string.quoted.docstring.multi.python | #FAB4B46e | — |
| string.regexp | #B29AEEde | — |
| string.tag | #E1C414de | — |
| string.value | #14E189de | — |
| strong | #4AE20Ede | — |
| support.class | #12E289de | — |
| support.constant.color | #CAB7F9de | — |
| support.constant.dom | #C6C6C6de | — |
| support.constant.font-name | #8BCDFDde | — |
| support.constant.handlebars | #B19AECde | — |
| support.constant.json | #CAB5FEde | — |
| support.constant.math | #B49BF3de | — |
| support.constant.media | #FEA7FEde | — |
| support.constant.media-type | #EF8EEFde | — |
| support.constant.property-value | #50E114de | — |
| support.function | #A6A6A6de | — |
| support.function.git-rebase | #7BBAE9de | — |
| support.other.parenthesis.regexp | #E780E7de | — |
| support.type | #E1C415de | — |
| support.type.property-name | #CEBBFEde | — |
| support.type.vendored.property-name | #50E114de | — |
| support.variable | #F194F1de | — |
| token.debug-token | #69ADE1de | — |
| token.error-token | #CEBBFEde | — |
| token.info-token | #B3B3B3de | — |
| token.warn-token | #BFA9F6de | — |
| variable | #69ADE1de | — |
| variable.css | #C6C6C6de | — |
| variable.language | #CAB5FEde | — |
| variable.language.wildcard.java | #C5C5C5de | — |
| variable.other.constant | #C6C6C6de | — |
| variable.other.definition.java | #15E189de | — |
| variable.other.enummember | #E4C513de | — |
| variable.other.less | #E4C410de | — |
| variable.other.object.java | #14E189de | — |
| variable.other.object.property.java | #4FE215de | — |
| variable.parameter.c | #E0C40Ede | — |
| variable.parameter.function.language.python | #B198F0de | — |
| variable.parameter.java | #E0C415de | — |
| variable.scss | #C6C6C6de | — |
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}!`;
}