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 | #BABAFC6e | — |
| comment.block.html | #BABAFC6e | — |
| comment.block.java | #BABAF96e | — |
| comment.block.javadoc.java | #BABAF86e | — |
| comment.block.powershell | #BABAF86e | — |
| comment.block.xml | #BABAF96e | — |
| comment.line.double-slash.c | #BABAF96e | — |
| comment.line.double-slash.cpp | #BBBBFB6e | — |
| comment.line.double-slash.java | #BABAF96e | — |
| comment.line.double-slash.js | #BBBBFB6e | — |
| comment.line.number-sign.makefile | #BABAF96e | — |
| comment.line.number-sign.python | #BBBBFB6e | — |
| comment.line.number-sign.yaml | #BABAF96e | — |
| comment.line.percentage.erlang | #BABAF96e | — |
| comment.line.powershell | #BBBBFB6e | — |
| comment.source.cmake | #BABAFC6e | — |
| comment.source.cmakecache | #BABAF96e | — |
| constant.character | #81C8FDde | — |
| constant.character.character-class.regexp | #81C8FDde | — |
| constant.character.escape | #4FDB16de | — |
| constant.character.set.regexp | #F0B829de | — |
| constant.language | #B2B2B2de | — |
| constant.numeric | #A498EAde | — |
| constant.numeric.dec.python | #F0B828de | — |
| constant.other.caps.python | #16DC6Ade | — |
| constant.other.character-class.regexp | #4FDB16de | — |
| constant.other.character-class.set.regexp | #4BDC13de | — |
| constant.other.color.rgb-value | #F4B71Dde | — |
| constant.other.placeholder | #F2B724de | — |
| constant.other.rgb-value | #C1B7FEde | — |
| constant.regexp | #AFA3F5de | — |
| constant.sha.git-rebase | #7FC8FCde | — |
| emphasis | #C1C1C1de | — |
| entity.name.class | #E87DD9de | — |
| entity.name.function | #F0B82Cde | — |
| entity.name.function.preprocessor | #B7B7B7de | — |
| entity.name.function.python | #BBBBBBde | — |
| entity.name.label | #BBBBBBde | — |
| entity.name.namespace | #EB83DCde | — |
| entity.name.operator | #4ADC11de | — |
| entity.name.operator.custom-literal | #A397EFde | — |
| entity.name.scope-resolution | #F1B82Cde | — |
| entity.name.tag | #16DD6Cde | — |
| entity.name.tag.css | #15DC6Ade | — |
| entity.name.type | #83BEEBde | — |
| entity.name.variable | #4ADC0Fde | — |
| entity.other.attribute | #C1C1C1de | — |
| entity.other.attribute-name | #F196E4de | — |
| entity.other.attribute-name.class.css | #FEA2F2de | — |
| entity.other.attribute-name.class.mixin.css | #4CDC10de | — |
| entity.other.attribute-name.id | #A396F0de | — |
| entity.other.attribute-name.id.css | #F0B829de | — |
| entity.other.attribute-name.parent-selector.css | #FEA2F1de | — |
| entity.other.attribute-name.pseudo-class.css | #81C8FDde | — |
| entity.other.attribute-name.pseudo-element.css | #B7B7B7de | — |
| entity.other.attribute-name.scss | #F0B829de | — |
| entity.other.document.begin.yaml | #BABAF96e | — |
| entity.other.inherited-class | #4ADD0Ede | — |
| header | #E57CD6de | — |
| invalid | #C1C1C1de | — |
| keyword | #C1B8F9de | — |
| keyword.codetag.notation.python | #15DD6Bde | — |
| keyword.control | #E87DD9de | — |
| keyword.control.anchor.regexp | #C1C1C1de | — |
| keyword.control.import.python | #0EDD66de | — |
| keyword.operator | #14DD6Cde | — |
| keyword.operator.alignas | #15DD6Bde | — |
| keyword.operator.alignof | #F39CE7de | — |
| keyword.operator.cast | #A396F1de | — |
| keyword.operator.delete | #84C8FCde | — |
| keyword.operator.documentation.powershell | #BABAF96e | — |
| keyword.operator.expression | #F2B82Cde | — |
| keyword.operator.instanceof | #A396F1de | — |
| keyword.operator.logical.python | #F2B724de | — |
| keyword.operator.minus.exponent | #6CAEE0de | — |
| keyword.operator.negation.regexp | #BBBBBBde | — |
| keyword.operator.new | #8FC6EFde | — |
| keyword.operator.noexcept | #F0B829de | — |
| keyword.operator.or.regexp | #13DD6Ade | — |
| keyword.operator.plus.exponent | #F0B829de | — |
| keyword.operator.quantifier.regexp | #F0B82Cde | — |
| keyword.operator.sizeof | #BBBBBBde | — |
| keyword.operator.typeid | #80C8FEde | — |
| keyword.operator.wordlike | #4BDC13de | — |
| keyword.other.operator | #4FDB16de | — |
| keyword.other.package.java | #E67BD7de | — |
| keyword.other.unit | #A9A9A9de | — |
| keyword.other.using | #C3B8FEde | — |
| markup.bold | #A397ECde | — |
| markup.changed | #4FDB16de | — |
| markup.deleted | #C1C1C1de | — |
| markup.fenced_code.block.markdown | #4FDC16de | — |
| markup.heading | #B5AAF6de | — |
| markup.inline.raw | #E67BD7de | — |
| markup.inserted | #4DDD13de | — |
| markup.italic | #13DD6Ade | — |
| markup.raw.block.markdown | #A5A5A5de | — |
| markup.strikethrough | #15DD6Bde | — |
| markup.underline | #80C8FEde | — |
| meta.block.c | #B7B7B7de | — |
| meta.block.c | #F0B828de | — |
| meta.class.java | #A9A9A9de | — |
| meta.definition.variable.name | #A99CF3de | — |
| meta.diff.header | #C1C1C1de | — |
| meta.embedded | #F2B82Ade | — |
| meta.embedded.assembly | #A99CF3de | — |
| meta.function-call.arguments.python | #4ADC0Fde | — |
| meta.function-call.python | #A397EFde | — |
| meta.member.access.python | #15DC6Ade | — |
| meta.method.java | #B5AAF6de | — |
| meta.object-literal.key | #FEA2F1de | — |
| meta.paragraph.markdown | #81C8FDde | — |
| meta.preprocessor | #4ADC0Fde | — |
| meta.preprocessor.numeric | #4FDB16de | — |
| meta.preprocessor.string | #4BDC13de | — |
| meta.scope.prerequisites.makefile | #BBB1F8de | — |
| meta.structure.dictionary.json.comments | #BABAFC6e | — |
| meta.structure.dictionary.key.python | #F0B829de | — |
| meta.structure.dictionary.value.json.comments | #BABAF96e | — |
| meta.template.expression | #B7B7B7de | — |
| meta.type.cast.expr | #4EDC15de | — |
| meta.type.new.expr | #15DC6Ade | — |
| parameter | #77B6E6de | — |
| punctuation.character.set.begin.regexp | #C1C1C1de | — |
| punctuation.character.set.end.regexp | #F0B829de | — |
| punctuation.definition.array.begin.json | #F1B82Bde | — |
| punctuation.definition.character-class.regexp | #4ADD0Ede | — |
| punctuation.definition.comment | #BABAFC6e | — |
| punctuation.definition.comment.json.comments | #BABAF96e | — |
| punctuation.definition.comment.python | #BABAF96e | — |
| punctuation.definition.dictionary.begin.json | #4ADC0Fde | — |
| punctuation.definition.dictionary.end.json | #4FDB16de | — |
| punctuation.definition.group.assertion.regexp | #16DD6Cde | — |
| punctuation.definition.group.regexp | #AEAEAEde | — |
| punctuation.definition.list.begin.json | #4FDB16de | — |
| punctuation.definition.list.begin.markdown | #FEA2F1de | — |
| punctuation.definition.list.begin.python | #7DBAE8de | — |
| punctuation.definition.list.end.json | #4FDB16de | — |
| punctuation.definition.list.end.markdown | #A397ECde | — |
| punctuation.definition.list.end.python | #EF8FE2de | — |
| punctuation.definition.parameters.begin.python | #C1C1C1de | — |
| punctuation.definition.parameters.end.bracket.round.java | #82C8FCde | — |
| punctuation.definition.quote.begin.markdown | #4EDC15de | — |
| punctuation.definition.tag | #FEA2F1de | — |
| punctuation.definition.template-expression.begin | #F39CE7de | — |
| punctuation.definition.template-expression.end | #13DC69de | — |
| punctuation.section.class.begin.bracket.curly.java | #8FC6EFde | — |
| punctuation.section.embedded | #83C7FDde | — |
| punctuation.section.embedded.begin.php | #F2B82Ade | — |
| punctuation.section.embedded.end.php | #B2B2B2de | — |
| punctuation.terminator.java | #4ADC0Fde | — |
| source.cmake | #F4B71Dde | — |
| source.coffee.embedded | #E67BD7de | — |
| source.cpp | #16DC6Ade | — |
| source.css.less | #4FDB16de | — |
| source.groovy.embedded | #E57CD6de | — |
| source.java | #E57CD6de | — |
| source.java-properties | #FEA1F1de | — |
| source.json.comments | #BBBBFB6e | — |
| source.makefile | #0EDD66de | — |
| source.powershell | #C0B5FEde | — |
| source.powershell.variable.other.member | #13DD6Ade | — |
| source.python | #17DC6Bde | — |
| storage | #4BDC13de | — |
| storage.modifier | #A397ECde | — |
| storage.modifier.import.java | #FEA2F2de | — |
| storage.modifier.package.java | #C1C1C1de | — |
| storage.type | #A396F1de | — |
| storage.type.annotation.groovy | #11DE67de | — |
| storage.type.annotation.java | #A397EBde | — |
| storage.type.boolean.go | #50DC17de | — |
| storage.type.byte.go | #F1B826de | — |
| storage.type.cs | #C0B5FEde | — |
| storage.type.error.go | #15DD6Bde | — |
| storage.type.generic.cs | #F39CE7de | — |
| storage.type.generic.groovy | #F4B71Dde | — |
| storage.type.generic.java | #4FDC16de | — |
| storage.type.groovy | #0FDC6Ade | — |
| storage.type.java | #16DD6Cde | — |
| storage.type.modifier.cs | #F0B829de | — |
| storage.type.numeric.go | #C1C1C1de | — |
| storage.type.object.array.groovy | #4EDC15de | — |
| storage.type.object.array.java | #EF8FE2de | — |
| storage.type.parameters.groovy | #C1B7FEde | — |
| storage.type.primitive.array.groovy | #48DD0Dde | — |
| storage.type.primitive.array.java | #71B2E3de | — |
| storage.type.primitive.groovy | #FE9DF0de | — |
| storage.type.primitive.java | #F2B82Cde | — |
| storage.type.rune.go | #50DC17de | — |
| storage.type.string.go | #80C8FEde | — |
| storage.type.token.java | #C1C1C1de | — |
| storage.type.uintptr.go | #16DD6Cde | — |
| storage.type.variable.cs | #ED89DFde | — |
| string | #4FDB16de | — |
| string.quoted.docstring.multi.python | #BABAFC6e | — |
| string.regexp | #A397ECde | — |
| string.tag | #BBBBBBde | — |
| string.value | #C0C0C0de | — |
| strong | #4CDC10de | — |
| support.class | #A2A2A2de | — |
| support.constant.color | #EB83DCde | — |
| support.constant.dom | #C1C1C1de | — |
| support.constant.font-name | #AEAEAEde | — |
| support.constant.handlebars | #81C8FDde | — |
| support.constant.json | #80C8FEde | — |
| support.constant.math | #FE9DF0de | — |
| support.constant.media | #A397EFde | — |
| support.constant.media-type | #FEA2F1de | — |
| support.constant.property-value | #81C8FDde | — |
| support.function | #17DC6Bde | — |
| support.function.git-rebase | #A99CF3de | — |
| support.other.parenthesis.regexp | #FE9DF0de | — |
| support.type | #ED89DFde | — |
| support.type.property-name | #80C8FEde | — |
| support.type.vendored.property-name | #F1B826de | — |
| support.variable | #F196E4de | — |
| token.debug-token | #FEA2F1de | — |
| token.error-token | #A9A9A9de | — |
| token.info-token | #F1B82Bde | — |
| token.warn-token | #FEA1F1de | — |
| variable | #14DD6Cde | — |
| variable.css | #C1C1C1de | — |
| variable.language | #C3B8FEde | — |
| variable.language.wildcard.java | #4FDB16de | — |
| variable.other.constant | #F2B82Ade | — |
| variable.other.definition.java | #FEA2F1de | — |
| variable.other.enummember | #C1C1C1de | — |
| variable.other.less | #F1B826de | — |
| variable.other.object.java | #F0B828de | — |
| variable.other.object.property.java | #4ADD0Ede | — |
| variable.parameter.c | #B2B2B2de | — |
| variable.parameter.function.language.python | #C1C1C1de | — |
| variable.parameter.java | #E87DD9de | — |
| variable.scss | #4FDB16de | — |
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}!`;
}