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 | #F0B8A56e | — |
| comment.block.html | #EDBB9A6e | — |
| comment.block.java | #EDBB956e | — |
| comment.block.javadoc.java | #EDBB9A6e | — |
| comment.block.powershell | #F0B8A56e | — |
| comment.block.xml | #EDBB956e | — |
| comment.line.double-slash.c | #F0B8A56e | — |
| comment.line.double-slash.cpp | #F0B8A56e | — |
| comment.line.double-slash.java | #EDBB956e | — |
| comment.line.double-slash.js | #F0B8A56e | — |
| comment.line.number-sign.makefile | #F1B9986e | — |
| comment.line.number-sign.python | #F1B9986e | — |
| comment.line.number-sign.yaml | #F0B8A56e | — |
| comment.line.percentage.erlang | #EDBB956e | — |
| comment.line.powershell | #EDBB9A6e | — |
| comment.source.cmake | #F1B9986e | — |
| comment.source.cmakecache | #F0B8A56e | — |
| constant.character | #F7B3B3de | — |
| constant.character.character-class.regexp | #B7B7FEde | — |
| constant.character.escape | #17E417de | — |
| constant.character.set.regexp | #F5ADF5de | — |
| constant.language | #9F9FEEde | — |
| constant.numeric | #9E9EEAde | — |
| constant.numeric.dec.python | #B7B7FEde | — |
| constant.other.caps.python | #FEAEAEde | — |
| constant.other.character-class.regexp | #EE9393de | — |
| constant.other.character-class.set.regexp | #EB8D8Dde | — |
| constant.other.color.rgb-value | #F2A0A0de | — |
| constant.other.placeholder | #E88D8Dde | — |
| constant.other.rgb-value | #9E9EEFde | — |
| constant.regexp | #9E9EEAde | — |
| constant.sha.git-rebase | #E68D8Dde | — |
| emphasis | #FEA6FEde | — |
| entity.name.class | #16E316de | — |
| entity.name.function | #F09999de | — |
| entity.name.function.preprocessor | #FEA6FEde | — |
| entity.name.function.python | #E988E9de | — |
| entity.name.label | #A0A0F2de | — |
| entity.name.namespace | #9F9FE7de | — |
| entity.name.operator | #FEA6FEde | — |
| entity.name.operator.custom-literal | #9E9EEDde | — |
| entity.name.scope-resolution | #E481E4de | — |
| entity.name.tag | #F5ADF5de | — |
| entity.name.tag.css | #E98B8Bde | — |
| entity.name.type | #E88D8Dde | — |
| entity.name.variable | #FEA6FEde | — |
| entity.other.attribute | #9E9EEDde | — |
| entity.other.attribute-name | #FEA7FEde | — |
| entity.other.attribute-name.class.css | #18E418de | — |
| entity.other.attribute-name.class.mixin.css | #E682E6de | — |
| entity.other.attribute-name.id | #9E9EEFde | — |
| entity.other.attribute-name.id.css | #E283E2de | — |
| entity.other.attribute-name.parent-selector.css | #16E316de | — |
| entity.other.attribute-name.pseudo-class.css | #B3B3F7de | — |
| entity.other.attribute-name.pseudo-element.css | #FEAEAEde | — |
| entity.other.attribute-name.scss | #9F9FE7de | — |
| entity.other.document.begin.yaml | #F0B8A56e | — |
| entity.other.inherited-class | #E988E9de | — |
| header | #15E315de | — |
| invalid | #E88D8Dde | — |
| keyword | #B7B7FEde | — |
| keyword.codetag.notation.python | #EE9393de | — |
| keyword.control | #FEB0B0de | — |
| keyword.control.anchor.regexp | #A0A0F2de | — |
| keyword.control.import.python | #E68D8Dde | — |
| keyword.operator | #9E9EEDde | — |
| keyword.operator.alignas | #13E413de | — |
| keyword.operator.alignof | #18E418de | — |
| keyword.operator.cast | #E682E6de | — |
| keyword.operator.delete | #E68D8Dde | — |
| keyword.operator.documentation.powershell | #EDBB9A6e | — |
| keyword.operator.expression | #0FE30Fde | — |
| keyword.operator.instanceof | #F7B3B3de | — |
| keyword.operator.logical.python | #E481E4de | — |
| keyword.operator.minus.exponent | #9E9EEFde | — |
| keyword.operator.negation.regexp | #9E9EEBde | — |
| keyword.operator.new | #EB8D8Dde | — |
| keyword.operator.noexcept | #EB8D8Dde | — |
| keyword.operator.or.regexp | #EE9393de | — |
| keyword.operator.plus.exponent | #A0A0F2de | — |
| keyword.operator.quantifier.regexp | #9E9EEDde | — |
| keyword.operator.sizeof | #FEAEAEde | — |
| keyword.operator.typeid | #18E318de | — |
| keyword.operator.wordlike | #EB8D8Dde | — |
| keyword.other.operator | #FEAEAEde | — |
| keyword.other.package.java | #18E418de | — |
| keyword.other.unit | #9E9EEAde | — |
| keyword.other.using | #0FE30Fde | — |
| markup.bold | #18E418de | — |
| markup.changed | #15E415de | — |
| markup.deleted | #EE93EEde | — |
| markup.fenced_code.block.markdown | #E88D8Dde | — |
| markup.heading | #10E410de | — |
| markup.inline.raw | #9E9EEFde | — |
| markup.inserted | #B7B7FEde | — |
| markup.italic | #10E410de | — |
| markup.raw.block.markdown | #16E316de | — |
| markup.strikethrough | #9F9FEEde | — |
| markup.underline | #9F9FE7de | — |
| meta.block.c | #17E417de | — |
| meta.block.c | #E58E8Ede | — |
| meta.class.java | #9E9EEFde | — |
| meta.definition.variable.name | #9E9EEDde | — |
| meta.diff.header | #F09999de | — |
| meta.embedded | #FEA6FEde | — |
| meta.embedded.assembly | #9E9EEAde | — |
| meta.function-call.arguments.python | #EE9393de | — |
| meta.function-call.python | #EE9393de | — |
| meta.member.access.python | #FEA6FEde | — |
| meta.method.java | #A6A6F4de | — |
| meta.object-literal.key | #F2A0A0de | — |
| meta.paragraph.markdown | #9E9EEBde | — |
| meta.preprocessor | #FEA6FEde | — |
| meta.preprocessor.numeric | #F7B3B3de | — |
| meta.preprocessor.string | #13E213de | — |
| meta.scope.prerequisites.makefile | #9E9EF0de | — |
| meta.structure.dictionary.json.comments | #F1B9986e | — |
| meta.structure.dictionary.key.python | #10E410de | — |
| meta.structure.dictionary.value.json.comments | #F1B9986e | — |
| meta.template.expression | #17E417de | — |
| meta.type.cast.expr | #18E418de | — |
| meta.type.new.expr | #9F9FEEde | — |
| parameter | #BFBFFEde | — |
| punctuation.character.set.begin.regexp | #18E418de | — |
| punctuation.character.set.end.regexp | #B3B3F7de | — |
| punctuation.definition.array.begin.json | #F4A6A6de | — |
| punctuation.definition.character-class.regexp | #E68D8Dde | — |
| punctuation.definition.comment | #EDBB9A6e | — |
| punctuation.definition.comment.json.comments | #EDBB9A6e | — |
| punctuation.definition.comment.python | #F0B8A56e | — |
| punctuation.definition.dictionary.begin.json | #F7B3B3de | — |
| punctuation.definition.dictionary.end.json | #E48F8Fde | — |
| punctuation.definition.group.assertion.regexp | #0FE30Fde | — |
| punctuation.definition.group.regexp | #E98B8Bde | — |
| punctuation.definition.list.begin.json | #BFBFFEde | — |
| punctuation.definition.list.begin.markdown | #BFBFFEde | — |
| punctuation.definition.list.begin.python | #18E418de | — |
| punctuation.definition.list.end.json | #10E410de | — |
| punctuation.definition.list.end.markdown | #F4A6A6de | — |
| punctuation.definition.list.end.python | #E68D8Dde | — |
| punctuation.definition.parameters.begin.python | #E98B8Bde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F09999de | — |
| punctuation.definition.quote.begin.markdown | #E48F8Fde | — |
| punctuation.definition.tag | #B3B3F7de | — |
| punctuation.definition.template-expression.begin | #18E418de | — |
| punctuation.definition.template-expression.end | #E682E6de | — |
| punctuation.section.class.begin.bracket.curly.java | #E481E4de | — |
| punctuation.section.embedded | #F7B3B3de | — |
| punctuation.section.embedded.begin.php | #9E9EEDde | — |
| punctuation.section.embedded.end.php | #17E417de | — |
| punctuation.terminator.java | #B3B3F7de | — |
| source.cmake | #FEA6FEde | — |
| source.coffee.embedded | #9F9FEEde | — |
| source.cpp | #9E9EEBde | — |
| source.css.less | #BABAF8de | — |
| source.groovy.embedded | #15E415de | — |
| source.java | #E48F8Fde | — |
| source.java-properties | #B3B3F7de | — |
| source.json.comments | #F1B9986e | — |
| source.makefile | #9F9FE9de | — |
| source.powershell | #FEB1B1de | — |
| source.powershell.variable.other.member | #E98B8Bde | — |
| source.python | #18E418de | — |
| storage | #13E413de | — |
| storage.modifier | #ADADF5de | — |
| storage.modifier.import.java | #18E318de | — |
| storage.modifier.package.java | #18E318de | — |
| storage.type | #18E418de | — |
| storage.type.annotation.groovy | #9F9FE7de | — |
| storage.type.annotation.java | #E988E9de | — |
| storage.type.boolean.go | #E48F8Fde | — |
| storage.type.byte.go | #17E417de | — |
| storage.type.cs | #F7B3B3de | — |
| storage.type.error.go | #9E9EEAde | — |
| storage.type.generic.cs | #FEAEAEde | — |
| storage.type.generic.groovy | #A0A0F2de | — |
| storage.type.generic.java | #13E213de | — |
| storage.type.groovy | #18E318de | — |
| storage.type.java | #10E410de | — |
| storage.type.modifier.cs | #9F9FEEde | — |
| storage.type.numeric.go | #9F9FE9de | — |
| storage.type.object.array.groovy | #FEB1B1de | — |
| storage.type.object.array.java | #EB8D8Dde | — |
| storage.type.parameters.groovy | #FEA6FEde | — |
| storage.type.primitive.array.groovy | #FEA6FEde | — |
| storage.type.primitive.array.java | #FEAEAEde | — |
| storage.type.primitive.groovy | #F5ADADde | — |
| storage.type.primitive.java | #9F9FEEde | — |
| storage.type.rune.go | #E283E2de | — |
| storage.type.string.go | #13E413de | — |
| storage.type.token.java | #9E9EEBde | — |
| storage.type.uintptr.go | #E88D8Dde | — |
| storage.type.variable.cs | #EB8D8Dde | — |
| string | #E48F8Fde | — |
| string.quoted.docstring.multi.python | #EDBB9A6e | — |
| string.regexp | #18E418de | — |
| string.tag | #18E318de | — |
| string.value | #F5ADADde | — |
| strong | #17E317de | — |
| support.class | #17E317de | — |
| support.constant.color | #13E213de | — |
| support.constant.dom | #F5ADADde | — |
| support.constant.font-name | #E68D8Dde | — |
| support.constant.handlebars | #E58E8Ede | — |
| support.constant.json | #13E213de | — |
| support.constant.math | #BFBFFEde | — |
| support.constant.media | #E58E8Ede | — |
| support.constant.media-type | #9F9FEEde | — |
| support.constant.property-value | #9F9FE9de | — |
| support.function | #18E318de | — |
| support.function.git-rebase | #A6A6F4de | — |
| support.other.parenthesis.regexp | #10E410de | — |
| support.type | #17E417de | — |
| support.type.property-name | #FEB0B0de | — |
| support.type.vendored.property-name | #18E318de | — |
| support.variable | #9E9EEFde | — |
| token.debug-token | #FEA6FEde | — |
| token.error-token | #10E410de | — |
| token.info-token | #B3B3F7de | — |
| token.warn-token | #FEA6FEde | — |
| variable | #A0A0F2de | — |
| variable.css | #BABAF8de | — |
| variable.language | #17E317de | — |
| variable.language.wildcard.java | #F4A6A6de | — |
| variable.other.constant | #18E318de | — |
| variable.other.definition.java | #16E316de | — |
| variable.other.enummember | #18E318de | — |
| variable.other.less | #E88D8Dde | — |
| variable.other.object.java | #FEA7FEde | — |
| variable.other.object.property.java | #FEA6FEde | — |
| variable.parameter.c | #FEB0B0de | — |
| variable.parameter.function.language.python | #9F9FEEde | — |
| variable.parameter.java | #F4A6A6de | — |
| variable.scss | #15E315de | — |
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}!`;
}