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 | #9999F96e | — |
| comment.block.html | #9A9AF76e | — |
| comment.block.java | #9B9BF86e | — |
| comment.block.javadoc.java | #9A9AF76e | — |
| comment.block.powershell | #9A9AF76e | — |
| comment.block.xml | #9999F96e | — |
| comment.line.double-slash.c | #9B9BF86e | — |
| comment.line.double-slash.cpp | #9898F86e | — |
| comment.line.double-slash.java | #9999F96e | — |
| comment.line.double-slash.js | #9999F96e | — |
| comment.line.number-sign.makefile | #9A9AF76e | — |
| comment.line.number-sign.python | #9B9BF86e | — |
| comment.line.number-sign.yaml | #9A9AF76e | — |
| comment.line.percentage.erlang | #9999F96e | — |
| comment.line.powershell | #9999F96e | — |
| comment.source.cmake | #9B9BF86e | — |
| comment.source.cmakecache | #9898F86e | — |
| constant.character | #C987F1de | — |
| constant.character.character-class.regexp | #EF7BB5de | — |
| constant.character.escape | #08D1B8de | — |
| constant.character.set.regexp | #87B009de | — |
| constant.language | #08DE15de | — |
| constant.numeric | #E48C57de | — |
| constant.numeric.dec.python | #899DF2de | — |
| constant.other.caps.python | #C986F1de | — |
| constant.other.character-class.regexp | #EF7BB5de | — |
| constant.other.character-class.set.regexp | #2DB6A5de | — |
| constant.other.color.rgb-value | #E38B57de | — |
| constant.other.placeholder | #C985F1de | — |
| constant.other.rgb-value | #2ECE38de | — |
| constant.regexp | #87B009de | — |
| constant.sha.git-rebase | #D69FF7de | — |
| emphasis | #08BD14de | — |
| entity.name.class | #93B52Ede | — |
| entity.name.function | #44DB4Dde | — |
| entity.name.function.preprocessor | #E48B57de | — |
| entity.name.function.python | #08DE15de | — |
| entity.name.label | #EE7BB5de | — |
| entity.name.namespace | #899DF3de | — |
| entity.name.operator | #88B307de | — |
| entity.name.operator.custom-literal | #86AF0Ade | — |
| entity.name.scope-resolution | #E38C56de | — |
| entity.name.tag | #E38C57de | — |
| entity.name.tag.css | #84AF07de | — |
| entity.name.type | #A6CE2Ede | — |
| entity.name.variable | #09C4ADde | — |
| entity.other.attribute | #2ECEBAde | — |
| entity.other.attribute-name | #C986F1de | — |
| entity.other.attribute-name.class.css | #93B52Ede | — |
| entity.other.attribute-name.class.mixin.css | #899DF2de | — |
| entity.other.attribute-name.id | #07B7A0de | — |
| entity.other.attribute-name.id.css | #C987F1de | — |
| entity.other.attribute-name.parent-selector.css | #EB9E6Fde | — |
| entity.other.attribute-name.pseudo-class.css | #899DF2de | — |
| entity.other.attribute-name.pseudo-element.css | #C985F2de | — |
| entity.other.attribute-name.scss | #44DB4Dde | — |
| entity.other.document.begin.yaml | #9999F96e | — |
| entity.other.inherited-class | #87B10Ade | — |
| header | #07D3BAde | — |
| invalid | #EF7BB5de | — |
| keyword | #E38B58de | — |
| keyword.codetag.notation.python | #EF7CB5de | — |
| keyword.control | #C985F1de | — |
| keyword.control.anchor.regexp | #C985F1de | — |
| keyword.control.import.python | #CA86F2de | — |
| keyword.operator | #2EBB36de | — |
| keyword.operator.alignas | #07B7A0de | — |
| keyword.operator.alignof | #C885F2de | — |
| keyword.operator.cast | #899DF2de | — |
| keyword.operator.delete | #EB9E6Fde | — |
| keyword.operator.documentation.powershell | #9999F96e | — |
| keyword.operator.expression | #2DB5A4de | — |
| keyword.operator.instanceof | #C885F2de | — |
| keyword.operator.logical.python | #C986F1de | — |
| keyword.operator.minus.exponent | #EF7BB4de | — |
| keyword.operator.negation.regexp | #E79462de | — |
| keyword.operator.new | #08B5A0de | — |
| keyword.operator.noexcept | #EF7BB5de | — |
| keyword.operator.or.regexp | #A6CE2Ede | — |
| keyword.operator.plus.exponent | #09CC16de | — |
| keyword.operator.quantifier.regexp | #08D814de | — |
| keyword.operator.sizeof | #899DF3de | — |
| keyword.operator.typeid | #C985F1de | — |
| keyword.operator.wordlike | #EF7AB5de | — |
| keyword.other.operator | #08D815de | — |
| keyword.other.package.java | #8DAD2Dde | — |
| keyword.other.unit | #E38B57de | — |
| keyword.other.using | #E38C58de | — |
| markup.bold | #09CEB5de | — |
| markup.changed | #09CCB5de | — |
| markup.deleted | #EF7AB5de | — |
| markup.fenced_code.block.markdown | #EF7CB6de | — |
| markup.heading | #C986F1de | — |
| markup.inline.raw | #899DF2de | — |
| markup.inserted | #C985F2de | — |
| markup.italic | #FB8037de | — |
| markup.raw.block.markdown | #08B5A0de | — |
| markup.strikethrough | #899DF2de | — |
| markup.underline | #09CEB5de | — |
| meta.block.c | #2EBDABde | — |
| meta.block.c | #899DF2de | — |
| meta.class.java | #09CB15de | — |
| meta.definition.variable.name | #F491C3de | — |
| meta.diff.header | #899DF3de | — |
| meta.embedded | #8A9DF2de | — |
| meta.embedded.assembly | #EF7BB5de | — |
| meta.function-call.arguments.python | #86B108de | — |
| meta.function-call.python | #E99969de | — |
| meta.member.access.python | #86AF09de | — |
| meta.method.java | #8B9EF3de | — |
| meta.object-literal.key | #F183BAde | — |
| meta.paragraph.markdown | #86AF0Ade | — |
| meta.preprocessor | #EF7BB5de | — |
| meta.preprocessor.numeric | #EF7BB5de | — |
| meta.preprocessor.string | #FB8037de | — |
| meta.scope.prerequisites.makefile | #F183BAde | — |
| meta.structure.dictionary.json.comments | #9B9BF86e | — |
| meta.structure.dictionary.key.python | #F1AC83de | — |
| meta.structure.dictionary.value.json.comments | #9A9AF76e | — |
| meta.template.expression | #C985F1de | — |
| meta.type.cast.expr | #F491C3de | — |
| meta.type.new.expr | #09CEB5de | — |
| parameter | #2ECEBAde | — |
| punctuation.character.set.begin.regexp | #899DF2de | — |
| punctuation.character.set.end.regexp | #08B5A0de | — |
| punctuation.definition.array.begin.json | #87B009de | — |
| punctuation.definition.character-class.regexp | #9FB0F7de | — |
| punctuation.definition.comment | #9898F86e | — |
| punctuation.definition.comment.json.comments | #9999F96e | — |
| punctuation.definition.comment.python | #9898F86e | — |
| punctuation.definition.dictionary.begin.json | #C985F1de | — |
| punctuation.definition.dictionary.end.json | #09BD16de | — |
| punctuation.definition.group.assertion.regexp | #2DB5A4de | — |
| punctuation.definition.group.regexp | #86B00Ade | — |
| punctuation.definition.list.begin.json | #EF7CB6de | — |
| punctuation.definition.list.begin.markdown | #2EBA36de | — |
| punctuation.definition.list.begin.python | #2EC538de | — |
| punctuation.definition.list.end.json | #899DF3de | — |
| punctuation.definition.list.end.markdown | #09C715de | — |
| punctuation.definition.list.end.python | #EF7BB5de | — |
| punctuation.definition.parameters.begin.python | #EE7BB5de | — |
| punctuation.definition.parameters.end.bracket.round.java | #E99969de | — |
| punctuation.definition.quote.begin.markdown | #09B8A1de | — |
| punctuation.definition.tag | #08BD13de | — |
| punctuation.definition.template-expression.begin | #07BB13de | — |
| punctuation.definition.template-expression.end | #85AF0Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #09BD16de | — |
| punctuation.section.embedded | #EF7BB5de | — |
| punctuation.section.embedded.begin.php | #EF7CB5de | — |
| punctuation.section.embedded.end.php | #889DF2de | — |
| punctuation.terminator.java | #C985F1de | — |
| source.cmake | #F3B18Ade | — |
| source.coffee.embedded | #CA86F2de | — |
| source.cpp | #2EBD37de | — |
| source.css.less | #44DB4Dde | — |
| source.groovy.embedded | #44DB4Dde | — |
| source.java | #87B00Ade | — |
| source.java-properties | #08D815de | — |
| source.json.comments | #9999F96e | — |
| source.makefile | #07BB14de | — |
| source.powershell | #9FB0F7de | — |
| source.powershell.variable.other.member | #E38C57de | — |
| source.python | #99BD2Ede | — |
| storage | #C986F2de | — |
| storage.modifier | #87B009de | — |
| storage.modifier.import.java | #2EBA36de | — |
| storage.modifier.package.java | #2DBA36de | — |
| storage.type | #88B307de | — |
| storage.type.annotation.groovy | #99BD2Ede | — |
| storage.type.annotation.java | #E79462de | — |
| storage.type.boolean.go | #2DB6A5de | — |
| storage.type.byte.go | #C985F2de | — |
| storage.type.cs | #84AF07de | — |
| storage.type.error.go | #EF7CB6de | — |
| storage.type.generic.cs | #08D815de | — |
| storage.type.generic.groovy | #85AF0Ade | — |
| storage.type.generic.java | #2DBA36de | — |
| storage.type.groovy | #EB9E6Fde | — |
| storage.type.java | #09C4ADde | — |
| storage.type.modifier.cs | #2EC5B3de | — |
| storage.type.numeric.go | #2DB5A4de | — |
| storage.type.object.array.groovy | #EF7BB4de | — |
| storage.type.object.array.java | #2DBA36de | — |
| storage.type.parameters.groovy | #EF7AB4de | — |
| storage.type.primitive.array.groovy | #86B00Ade | — |
| storage.type.primitive.array.java | #C986F2de | — |
| storage.type.primitive.groovy | #C987F1de | — |
| storage.type.primitive.java | #86B00Ade | — |
| storage.type.rune.go | #09C9B2de | — |
| storage.type.string.go | #08D815de | — |
| storage.type.token.java | #F1AC83de | — |
| storage.type.uintptr.go | #C985F1de | — |
| storage.type.variable.cs | #EF7BB5de | — |
| string | #08D1B8de | — |
| string.quoted.docstring.multi.python | #9898F86e | — |
| string.regexp | #2DB6A5de | — |
| string.tag | #E48C57de | — |
| string.value | #C985F2de | — |
| strong | #08B5A0de | — |
| support.class | #EDA376de | — |
| support.constant.color | #08BD14de | — |
| support.constant.dom | #2EBD37de | — |
| support.constant.font-name | #08B5A0de | — |
| support.constant.handlebars | #E38C58de | — |
| support.constant.json | #889DF2de | — |
| support.constant.math | #91A4F4de | — |
| support.constant.media | #85AF09de | — |
| support.constant.media-type | #2EBD37de | — |
| support.constant.property-value | #8B9EF3de | — |
| support.function | #EF7BB5de | — |
| support.function.git-rebase | #E38B56de | — |
| support.other.parenthesis.regexp | #C985F1de | — |
| support.type | #EE7BB5de | — |
| support.type.property-name | #99BD2Ede | — |
| support.type.vendored.property-name | #A0C52Ede | — |
| support.variable | #86AF0Ade | — |
| token.debug-token | #EF7BB5de | — |
| token.error-token | #A0C52Ede | — |
| token.info-token | #EF7BB5de | — |
| token.warn-token | #08DE15de | — |
| variable | #EF7CB5de | — |
| variable.css | #2EBDABde | — |
| variable.language | #2ECE38de | — |
| variable.language.wildcard.java | #E99969de | — |
| variable.other.constant | #EF7BB5de | — |
| variable.other.definition.java | #8DAD2Dde | — |
| variable.other.enummember | #C986F2de | — |
| variable.other.less | #2EC538de | — |
| variable.other.object.java | #87B10Ade | — |
| variable.other.object.property.java | #CA86F2de | — |
| variable.parameter.c | #99BD2Ede | — |
| variable.parameter.function.language.python | #EF7AB4de | — |
| variable.parameter.java | #EF7CB6de | — |
| variable.scss | #08BD14de | — |
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}!`;
}