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 | #9AC0F86e | — |
| comment.block.html | #8FB8F56e | — |
| comment.block.java | #98C1F86e | — |
| comment.block.javadoc.java | #93BBF66e | — |
| comment.block.powershell | #90BCF76e | — |
| comment.block.xml | #AACBFB6e | — |
| comment.line.double-slash.c | #A3BFF86e | — |
| comment.line.double-slash.cpp | #9DC1F86e | — |
| comment.line.double-slash.java | #A7C2F96e | — |
| comment.line.double-slash.js | #90BCF76e | — |
| comment.line.number-sign.makefile | #8BB5F56e | — |
| comment.line.number-sign.python | #88B7F56e | — |
| comment.line.number-sign.yaml | #88B7F56e | — |
| comment.line.percentage.erlang | #9FC6FA6e | — |
| comment.line.powershell | #A3BFF86e | — |
| comment.source.cmake | #B5D2FC6e | — |
| comment.source.cmakecache | #A6C8FA6e | — |
| constant.character | #F9B8A0de | — |
| constant.character.character-class.regexp | #F89DD2de | — |
| constant.character.escape | #9DBAF8de | — |
| constant.character.set.regexp | #26D6B9de | — |
| constant.language | #B7CB07de | — |
| constant.numeric | #58E858de | — |
| constant.numeric.dec.python | #FAC1ADde | — |
| constant.other.caps.python | #07E5C2de | — |
| constant.other.character-class.regexp | #F39E80de | — |
| constant.other.character-class.set.regexp | #C1D706de | — |
| constant.other.color.rgb-value | #F39D7Ede | — |
| constant.other.placeholder | #5EEA5Ede | — |
| constant.other.rgb-value | #08D0AFde | — |
| constant.regexp | #3EDF3Ede | — |
| constant.sha.git-rebase | #3CE0C6de | — |
| emphasis | #6CED6Cde | — |
| entity.name.class | #CD9EF8de | — |
| entity.name.function | #F9A1D4de | — |
| entity.name.function.preprocessor | #F7B198de | — |
| entity.name.function.python | #F8B69Dde | — |
| entity.name.label | #C2D807de | — |
| entity.name.namespace | #06DCBBde | — |
| entity.name.operator | #F8B59Dde | — |
| entity.name.operator.custom-literal | #64EC64de | — |
| entity.name.scope-resolution | #43E3C9de | — |
| entity.name.tag | #06E1BFde | — |
| entity.name.tag.css | #B0C8FAde | — |
| entity.name.type | #49E5CCde | — |
| entity.name.variable | #A4BEF8de | — |
| entity.other.attribute | #F5A689de | — |
| entity.other.attribute-name | #B2C226de | — |
| entity.other.attribute-name.class.css | #F799CFde | — |
| entity.other.attribute-name.class.mixin.css | #F8B39Bde | — |
| entity.other.attribute-name.id | #DAB6FBde | — |
| entity.other.attribute-name.id.css | #C8DB2Cde | — |
| entity.other.attribute-name.parent-selector.css | #07EA07de | — |
| entity.other.attribute-name.pseudo-class.css | #F8A2D4de | — |
| entity.other.attribute-name.pseudo-element.css | #96B4F7de | — |
| entity.other.attribute-name.scss | #F8B7A0de | — |
| entity.other.document.begin.yaml | #9CC4F96e | — |
| entity.other.inherited-class | #B8CE07de | — |
| header | #B9CEFBde | — |
| invalid | #07E3C0de | — |
| keyword | #CE9EF8de | — |
| keyword.codetag.notation.python | #B3C806de | — |
| keyword.control | #38DC38de | — |
| keyword.control.anchor.regexp | #4FE7CFde | — |
| keyword.control.import.python | #E1C3FCde | — |
| keyword.operator | #B9CEFBde | — |
| keyword.operator.alignas | #F9BBA5de | — |
| keyword.operator.alignof | #FABEA8de | — |
| keyword.operator.cast | #3CE0C6de | — |
| keyword.operator.delete | #E4C8FDde | — |
| keyword.operator.documentation.powershell | #88B7F56e | — |
| keyword.operator.expression | #4FE7CFde | — |
| keyword.operator.instanceof | #07D407de | — |
| keyword.operator.logical.python | #A9C3FAde | — |
| keyword.operator.minus.exponent | #07EE07de | — |
| keyword.operator.negation.regexp | #E4C8FDde | — |
| keyword.operator.new | #26D2B7de | — |
| keyword.operator.noexcept | #FBC5B2de | — |
| keyword.operator.or.regexp | #F9A5D6de | — |
| keyword.operator.plus.exponent | #5EEA5Ede | — |
| keyword.operator.quantifier.regexp | #C5D826de | — |
| keyword.operator.sizeof | #F8B8A1de | — |
| keyword.operator.typeid | #F89DD2de | — |
| keyword.operator.wordlike | #D1A5F9de | — |
| keyword.other.operator | #BED307de | — |
| keyword.other.package.java | #CADC30de | — |
| keyword.other.unit | #BED2FCde | — |
| keyword.other.using | #08DA08de | — |
| markup.bold | #D8B0FBde | — |
| markup.changed | #B3CAFBde | — |
| markup.deleted | #AEC207de | — |
| markup.fenced_code.block.markdown | #F5A68Ade | — |
| markup.heading | #AEC207de | — |
| markup.inline.raw | #A8C2FAde | — |
| markup.inserted | #35DEC2de | — |
| markup.italic | #AEC6FAde | — |
| markup.raw.block.markdown | #F39E7Fde | — |
| markup.strikethrough | #F9BCA6de | — |
| markup.underline | #BACFFCde | — |
| meta.block.c | #08D008de | — |
| meta.block.c | #2CD72Cde | — |
| meta.class.java | #DAB6FBde | — |
| meta.definition.variable.name | #07E807de | — |
| meta.diff.header | #9DBAF8de | — |
| meta.embedded | #F89DD2de | — |
| meta.embedded.assembly | #C6DE07de | — |
| meta.function-call.arguments.python | #97B5F7de | — |
| meta.function-call.python | #28D528de | — |
| meta.member.access.python | #9DBAF8de | — |
| meta.method.java | #F9A3D5de | — |
| meta.object-literal.key | #FCBCE1de | — |
| meta.paragraph.markdown | #ACC008de | — |
| meta.preprocessor | #56E9D2de | — |
| meta.preprocessor.numeric | #F6AC91de | — |
| meta.preprocessor.string | #D1A5F9de | — |
| meta.scope.prerequisites.makefile | #B2C9FBde | — |
| meta.structure.dictionary.json.comments | #B3D0FC6e | — |
| meta.structure.dictionary.key.python | #94B3F7de | — |
| meta.structure.dictionary.value.json.comments | #A2C5F96e | — |
| meta.template.expression | #D3A7F9de | — |
| meta.type.cast.expr | #F9A3D5de | — |
| meta.type.new.expr | #29D129de | — |
| parameter | #2CD72Cde | — |
| punctuation.character.set.begin.regexp | #BED406de | — |
| punctuation.character.set.end.regexp | #06D0B1de | — |
| punctuation.definition.array.begin.json | #3CE0C6de | — |
| punctuation.definition.character-class.regexp | #E1C2FCde | — |
| punctuation.definition.comment | #B7D3FC6e | — |
| punctuation.definition.comment.json.comments | #94BFF86e | — |
| punctuation.definition.comment.python | #9DC1F86e | — |
| punctuation.definition.dictionary.begin.json | #C0D3FCde | — |
| punctuation.definition.dictionary.end.json | #ABBE08de | — |
| punctuation.definition.group.assertion.regexp | #2CD72Cde | — |
| punctuation.definition.group.regexp | #B5CA07de | — |
| punctuation.definition.list.begin.json | #CADC2Fde | — |
| punctuation.definition.list.begin.markdown | #D9B4FBde | — |
| punctuation.definition.list.begin.python | #F9BAA3de | — |
| punctuation.definition.list.end.json | #41E041de | — |
| punctuation.definition.list.end.markdown | #44E144de | — |
| punctuation.definition.list.end.python | #A8C2FAde | — |
| punctuation.definition.parameters.begin.python | #C2D907de | — |
| punctuation.definition.parameters.end.bracket.round.java | #D7AFFAde | — |
| punctuation.definition.quote.begin.markdown | #26C9AFde | — |
| punctuation.definition.tag | #F9BAA3de | — |
| punctuation.definition.template-expression.begin | #F8B59Dde | — |
| punctuation.definition.template-expression.end | #F9A5D6de | — |
| punctuation.section.class.begin.bracket.curly.java | #A6C1F9de | — |
| punctuation.section.embedded | #38DC38de | — |
| punctuation.section.embedded.begin.php | #E0C0FCde | — |
| punctuation.section.embedded.end.php | #36DEC3de | — |
| punctuation.terminator.java | #07D7B5de | — |
| source.cmake | #FAB1DBde | — |
| source.coffee.embedded | #E2C4FCde | — |
| source.cpp | #B1C408de | — |
| source.css.less | #FAACD9de | — |
| source.groovy.embedded | #B6CCFBde | — |
| source.java | #94B3F7de | — |
| source.java-properties | #CE9FF8de | — |
| source.json.comments | #8CBAF66e | — |
| source.makefile | #F6AC90de | — |
| source.powershell | #D0A3F9de | — |
| source.powershell.variable.other.member | #07CCADde | — |
| source.python | #06E006de | — |
| storage | #FCBFE2de | — |
| storage.modifier | #65EC65de | — |
| storage.modifier.import.java | #F4A183de | — |
| storage.modifier.package.java | #FBB6DEde | — |
| storage.type | #A8C2F9de | — |
| storage.type.annotation.groovy | #F39E80de | — |
| storage.type.annotation.java | #FCBEE2de | — |
| storage.type.boolean.go | #06E3C1de | — |
| storage.type.byte.go | #DBB7FBde | — |
| storage.type.cs | #08CBACde | — |
| storage.type.error.go | #07E107de | — |
| storage.type.generic.cs | #F4A082de | — |
| storage.type.generic.groovy | #32D932de | — |
| storage.type.generic.java | #08D7B8de | — |
| storage.type.groovy | #95B4F7de | — |
| storage.type.java | #2FDBC0de | — |
| storage.type.modifier.cs | #FBB5DEde | — |
| storage.type.numeric.go | #ABBE08de | — |
| storage.type.object.array.groovy | #C6D928de | — |
| storage.type.object.array.java | #C0D3FCde | — |
| storage.type.parameters.groovy | #5EEA5Ede | — |
| storage.type.primitive.array.groovy | #B5CBFBde | — |
| storage.type.primitive.array.java | #F691CBde | — |
| storage.type.primitive.groovy | #D5ACFAde | — |
| storage.type.primitive.java | #AFC7FAde | — |
| storage.type.rune.go | #A2BEF9de | — |
| storage.type.string.go | #BCD207de | — |
| storage.type.token.java | #D3A8F9de | — |
| storage.type.uintptr.go | #B6CCFBde | — |
| storage.type.variable.cs | #FAAEDAde | — |
| string | #06E3C1de | — |
| string.quoted.docstring.multi.python | #88B7F56e | — |
| string.regexp | #BDD1FCde | — |
| string.tag | #AABD07de | — |
| string.value | #32D932de | — |
| strong | #07DC07de | — |
| support.class | #D5ACFAde | — |
| support.constant.color | #FCBBE0de | — |
| support.constant.dom | #A3BEF9de | — |
| support.constant.font-name | #C1D326de | — |
| support.constant.handlebars | #D0A2F9de | — |
| support.constant.json | #FCBDE1de | — |
| support.constant.math | #29D9BDde | — |
| support.constant.media | #A2BEF9de | — |
| support.constant.media-type | #C5DC05de | — |
| support.constant.property-value | #BDD1FCde | — |
| support.function | #CFA2F9de | — |
| support.function.git-rebase | #BCD207de | — |
| support.other.parenthesis.regexp | #BDD026de | — |
| support.type | #D9B4FBde | — |
| support.type.property-name | #9BB8F8de | — |
| support.type.vendored.property-name | #3CE0C6de | — |
| support.variable | #D8B2FBde | — |
| token.debug-token | #92B1F6de | — |
| token.error-token | #49E5CCde | — |
| token.info-token | #93B3F7de | — |
| token.warn-token | #F799D0de | — |
| variable | #B9CB26de | — |
| variable.css | #06DAB7de | — |
| variable.language | #BBD0FCde | — |
| variable.language.wildcard.java | #DCBBFBde | — |
| variable.other.constant | #06EBC6de | — |
| variable.other.definition.java | #F692CCde | — |
| variable.other.enummember | #06E9C6de | — |
| variable.other.less | #42E3C9de | — |
| variable.other.object.java | #A6C0F9de | — |
| variable.other.object.property.java | #2CD72Cde | — |
| variable.parameter.c | #C1D326de | — |
| variable.parameter.function.language.python | #07F007de | — |
| variable.parameter.java | #29D9BDde | — |
| variable.scss | #FCBDE1de | — |
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}!`;
}