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 | #EF7CEF6e | — |
| comment.block.html | #B3B3B36e | — |
| comment.block.java | #F89DF86e | — |
| comment.block.javadoc.java | #A9A9A96e | — |
| comment.block.powershell | #F99EF96e | — |
| comment.block.xml | #F287F26e | — |
| comment.line.double-slash.c | #F48EF46e | — |
| comment.line.double-slash.cpp | #B4B4B46e | — |
| comment.line.double-slash.java | #EF7CEF6e | — |
| comment.line.double-slash.js | #F17EF16e | — |
| comment.line.number-sign.makefile | #C0C0C06e | — |
| comment.line.number-sign.python | #B5B5B56e | — |
| comment.line.number-sign.yaml | #F385F36e | — |
| comment.line.percentage.erlang | #BCBCBC6e | — |
| comment.line.powershell | #B0B0B06e | — |
| comment.source.cmake | #F9A5F96e | — |
| comment.source.cmakecache | #A9A9A96e | — |
| constant.character | #AEC80Cde | — |
| constant.character.character-class.regexp | #F2A396de | — |
| constant.character.escape | #F5A2D1de | — |
| constant.character.set.regexp | #A6BF0Cde | — |
| constant.language | #4FD1ACde | — |
| constant.numeric | #F6B4A9de | — |
| constant.numeric.dec.python | #D0B3F8de | — |
| constant.other.caps.python | #A9BFF6de | — |
| constant.other.character-class.regexp | #EF8CC5de | — |
| constant.other.character-class.set.regexp | #EE9B8Cde | — |
| constant.other.color.rgb-value | #F6A9D5de | — |
| constant.other.placeholder | #EC9384de | — |
| constant.other.rgb-value | #4FD1ACde | — |
| constant.regexp | #0BC38Fde | — |
| constant.sha.git-rebase | #F1A295de | — |
| emphasis | #55D455de | — |
| entity.name.class | #3DBE98de | — |
| entity.name.function | #0BDB0Bde | — |
| entity.name.function.preprocessor | #54D454de | — |
| entity.name.function.python | #9FB7F4de | — |
| entity.name.label | #F195CAde | — |
| entity.name.namespace | #0AD80Ade | — |
| entity.name.operator | #ED9687de | — |
| entity.name.operator.custom-literal | #9BB30Bde | — |
| entity.name.scope-resolution | #CDACF7de | — |
| entity.name.tag | #EF8EC5de | — |
| entity.name.tag.css | #5FDB5Fde | — |
| entity.name.type | #4ACDA8de | — |
| entity.name.variable | #B3CF0Bde | — |
| entity.other.attribute | #0CCC95de | — |
| entity.other.attribute-name | #CAA9F6de | — |
| entity.other.attribute-name.class.css | #F6A9D5de | — |
| entity.other.attribute-name.class.mixin.css | #EB9181de | — |
| entity.other.attribute-name.id | #F299CCde | — |
| entity.other.attribute-name.id.css | #AEC13Dde | — |
| entity.other.attribute-name.parent-selector.css | #F6A7D4de | — |
| entity.other.attribute-name.pseudo-class.css | #59D8B3de | — |
| entity.other.attribute-name.pseudo-element.css | #09C992de | — |
| entity.other.attribute-name.scss | #0CCC95de | — |
| entity.other.document.begin.yaml | #C3C3C36e | — |
| entity.other.inherited-class | #54D4B0de | — |
| header | #A7C109de | — |
| invalid | #C6A2F5de | — |
| keyword | #8DA9EFde | — |
| keyword.codetag.notation.python | #D7BCFAde | — |
| keyword.control | #AFC4F8de | — |
| keyword.control.anchor.regexp | #0AE0A3de | — |
| keyword.control.import.python | #D4B8F9de | — |
| keyword.operator | #CEB0F7de | — |
| keyword.operator.alignas | #54D4B0de | — |
| keyword.operator.alignof | #C19BF3de | — |
| keyword.operator.cast | #A9C30Cde | — |
| keyword.operator.delete | #ACBE3Dde | — |
| keyword.operator.documentation.powershell | #F385F36e | — |
| keyword.operator.expression | #CAA9F6de | — |
| keyword.operator.instanceof | #C4A0F4de | — |
| keyword.operator.logical.python | #F7B7ADde | — |
| keyword.operator.minus.exponent | #0BE20Bde | — |
| keyword.operator.negation.regexp | #F6A9D5de | — |
| keyword.operator.new | #B1CD09de | — |
| keyword.operator.noexcept | #8FABF0de | — |
| keyword.operator.or.regexp | #A7B93Dde | — |
| keyword.operator.plus.exponent | #0BE1A4de | — |
| keyword.operator.quantifier.regexp | #ABC50Dde | — |
| keyword.operator.sizeof | #46C9A4de | — |
| keyword.operator.typeid | #F6A7D4de | — |
| keyword.operator.wordlike | #4FD1ACde | — |
| keyword.other.operator | #9BB4F3de | — |
| keyword.other.package.java | #A6BDF6de | — |
| keyword.other.unit | #C39EF4de | — |
| keyword.other.using | #4ACD4Ade | — |
| markup.bold | #8EAAEFde | — |
| markup.changed | #C19BF3de | — |
| markup.deleted | #F39CCDde | — |
| markup.fenced_code.block.markdown | #F5AEA2de | — |
| markup.heading | #0BE50Bde | — |
| markup.inline.raw | #98B3F2de | — |
| markup.inserted | #BACD4Ade | — |
| markup.italic | #62DCBAde | — |
| markup.raw.block.markdown | #9FB7F4de | — |
| markup.strikethrough | #95AFF1de | — |
| markup.underline | #F5B1A5de | — |
| meta.block.c | #F4A0D0de | — |
| meta.block.c | #A2BA0Dde | — |
| meta.class.java | #54D454de | — |
| meta.definition.variable.name | #5AD75Ade | — |
| meta.diff.header | #EF8DC5de | — |
| meta.embedded | #A7B93Dde | — |
| meta.embedded.assembly | #ED9688de | — |
| meta.function-call.arguments.python | #CBAAF7de | — |
| meta.function-call.python | #A0B13Cde | — |
| meta.member.access.python | #F8AFD8de | — |
| meta.method.java | #94AFF1de | — |
| meta.object-literal.key | #4FD14Fde | — |
| meta.paragraph.markdown | #CAA9F6de | — |
| meta.preprocessor | #A3BC0Dde | — |
| meta.preprocessor.numeric | #A0B80Cde | — |
| meta.preprocessor.string | #F1A295de | — |
| meta.scope.prerequisites.makefile | #93AEF0de | — |
| meta.structure.dictionary.json.comments | #B7B7B76e | — |
| meta.structure.dictionary.key.python | #D1B4F8de | — |
| meta.structure.dictionary.value.json.comments | #B9B9B96e | — |
| meta.template.expression | #C6A2F5de | — |
| meta.type.cast.expr | #0CD299de | — |
| meta.type.new.expr | #3DC19Bde | — |
| parameter | #54D454de | — |
| punctuation.character.set.begin.regexp | #66DF66de | — |
| punctuation.character.set.end.regexp | #C8A5F6de | — |
| punctuation.definition.array.begin.json | #F5A2D2de | — |
| punctuation.definition.character-class.regexp | #95AFF1de | — |
| punctuation.definition.comment | #C4C4C46e | — |
| punctuation.definition.comment.json.comments | #FAA2FA6e | — |
| punctuation.definition.comment.python | #F488F46e | — |
| punctuation.definition.dictionary.begin.json | #0CD70Cde | — |
| punctuation.definition.dictionary.end.json | #0CC892de | — |
| punctuation.definition.group.assertion.regexp | #9CB40Cde | — |
| punctuation.definition.group.regexp | #46C9A4de | — |
| punctuation.definition.list.begin.json | #51D2ADde | — |
| punctuation.definition.list.begin.markdown | #F2A396de | — |
| punctuation.definition.list.begin.python | #5AD7B3de | — |
| punctuation.definition.list.end.json | #B0CB0Bde | — |
| punctuation.definition.list.end.markdown | #F6A9D5de | — |
| punctuation.definition.list.end.python | #D0B2F8de | — |
| punctuation.definition.parameters.begin.python | #CCACF7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F195C9de | — |
| punctuation.definition.quote.begin.markdown | #0BD10Bde | — |
| punctuation.definition.tag | #A0B13Cde | — |
| punctuation.definition.template-expression.begin | #C099F2de | — |
| punctuation.definition.template-expression.end | #97B1F1de | — |
| punctuation.section.class.begin.bracket.curly.java | #0CDA0Cde | — |
| punctuation.section.embedded | #C5A2F5de | — |
| punctuation.section.embedded.begin.php | #EF90C7de | — |
| punctuation.section.embedded.end.php | #C6A2F5de | — |
| punctuation.terminator.java | #EE9889de | — |
| source.cmake | #5FDB5Fde | — |
| source.coffee.embedded | #CDADF7de | — |
| source.cpp | #F5A6D4de | — |
| source.css.less | #91ACF0de | — |
| source.groovy.embedded | #D3B6F9de | — |
| source.java | #F297CBde | — |
| source.java-properties | #EF8EC5de | — |
| source.json.comments | #BCBCBC6e | — |
| source.makefile | #C9A7F6de | — |
| source.powershell | #AAC509de | — |
| source.powershell.variable.other.member | #F7B6ACde | — |
| source.python | #0CD299de | — |
| storage | #A6C00Cde | — |
| storage.modifier | #C19BF3de | — |
| storage.modifier.import.java | #A9C30Cde | — |
| storage.modifier.package.java | #D5BAF9de | — |
| storage.type | #D5BAF9de | — |
| storage.type.annotation.groovy | #0AD49Bde | — |
| storage.type.annotation.java | #F29ACCde | — |
| storage.type.boolean.go | #AFC4F8de | — |
| storage.type.byte.go | #A6BCF5de | — |
| storage.type.cs | #A7B93Dde | — |
| storage.type.error.go | #64DE64de | — |
| storage.type.generic.cs | #3CC23Cde | — |
| storage.type.generic.groovy | #09C58Fde | — |
| storage.type.generic.java | #CAAAF6de | — |
| storage.type.groovy | #EF8CC4de | — |
| storage.type.java | #A7B93Dde | — |
| storage.type.modifier.cs | #EB9183de | — |
| storage.type.numeric.go | #A0B8F4de | — |
| storage.type.object.array.groovy | #BF98F2de | — |
| storage.type.object.array.java | #F29ACCde | — |
| storage.type.parameters.groovy | #C19BF3de | — |
| storage.type.primitive.array.groovy | #09E609de | — |
| storage.type.primitive.array.java | #0BCC95de | — |
| storage.type.primitive.groovy | #CCABF7de | — |
| storage.type.primitive.java | #F39DCEde | — |
| storage.type.rune.go | #F7B7ACde | — |
| storage.type.string.go | #F1A194de | — |
| storage.type.token.java | #F3A99Cde | — |
| storage.type.uintptr.go | #F49FCFde | — |
| storage.type.variable.cs | #F1A294de | — |
| string | #96B0F1de | — |
| string.quoted.docstring.multi.python | #FBADFB6e | — |
| string.regexp | #AAC0F6de | — |
| string.tag | #F6B5AAde | — |
| string.value | #63DD63de | — |
| strong | #0BDD0Bde | — |
| support.class | #F6B4A9de | — |
| support.constant.color | #F2A598de | — |
| support.constant.dom | #A5BCF5de | — |
| support.constant.font-name | #C6A4F5de | — |
| support.constant.handlebars | #4FD1ACde | — |
| support.constant.json | #9AB4F3de | — |
| support.constant.math | #ACC70Cde | — |
| support.constant.media | #B0C5F8de | — |
| support.constant.media-type | #EF8EC6de | — |
| support.constant.property-value | #F5AEA2de | — |
| support.function | #96B0F2de | — |
| support.function.git-rebase | #0BC994de | — |
| support.other.parenthesis.regexp | #41C541de | — |
| support.type | #9EB50Cde | — |
| support.type.property-name | #ED9687de | — |
| support.type.vendored.property-name | #A9BFF6de | — |
| support.variable | #C9A7F6de | — |
| token.debug-token | #A5BE0Dde | — |
| token.error-token | #9BB5F3de | — |
| token.info-token | #A0B80Cde | — |
| token.warn-token | #5FDB5Fde | — |
| variable | #B1C5F8de | — |
| variable.css | #F7ABD6de | — |
| variable.language | #B1CE0Cde | — |
| variable.language.wildcard.java | #09DA9Dde | — |
| variable.other.constant | #BED14Fde | — |
| variable.other.definition.java | #4ACDA8de | — |
| variable.other.enummember | #97B1F2de | — |
| variable.other.less | #F7B6AAde | — |
| variable.other.object.java | #0CC40Cde | — |
| variable.other.object.property.java | #D1B3F8de | — |
| variable.parameter.c | #A8BFF6de | — |
| variable.parameter.function.language.python | #C19BF3de | — |
| variable.parameter.java | #F1A295de | — |
| variable.scss | #0CD10Cde | — |
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}!`;
}