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 | #C1C1C16e | — |
| comment.block.html | #C1C1C16e | — |
| comment.block.java | #C0C0C06e | — |
| comment.block.javadoc.java | #C1C1C16e | — |
| comment.block.powershell | #C0C0C06e | — |
| comment.block.xml | #C0C0C06e | — |
| comment.line.double-slash.c | #C1C1C16e | — |
| comment.line.double-slash.cpp | #C0C0C06e | — |
| comment.line.double-slash.java | #C1C1C16e | — |
| comment.line.double-slash.js | #C1C1C16e | — |
| comment.line.number-sign.makefile | #C1C1C16e | — |
| comment.line.number-sign.python | #C1C1C16e | — |
| comment.line.number-sign.yaml | #C1C1C16e | — |
| comment.line.percentage.erlang | #C0C0C06e | — |
| comment.line.powershell | #C1C1C16e | — |
| comment.source.cmake | #C1C1C16e | — |
| comment.source.cmakecache | #C1C1C16e | — |
| constant.character | #A3BCFEde | — |
| constant.character.character-class.regexp | #12D9B1de | — |
| constant.character.escape | #11DF11de | — |
| constant.character.set.regexp | #05DAADde | — |
| constant.language | #11DAB2de | — |
| constant.numeric | #EF7CC1de | — |
| constant.numeric.dec.python | #A3BCFEde | — |
| constant.other.caps.python | #0ED8B0de | — |
| constant.other.character-class.regexp | #A8C0FEde | — |
| constant.other.character-class.set.regexp | #EA8870de | — |
| constant.other.color.rgb-value | #FEA5DAde | — |
| constant.other.placeholder | #F29F8Ade | — |
| constant.other.rgb-value | #10D9B0de | — |
| constant.regexp | #91ABF4de | — |
| constant.sha.git-rebase | #B4CD11de | — |
| emphasis | #B5CD12de | — |
| entity.name.class | #EC7DC0de | — |
| entity.name.function | #B5CD11de | — |
| entity.name.function.preprocessor | #12DAB2de | — |
| entity.name.function.python | #0FD8B1de | — |
| entity.name.label | #EF7CC1de | — |
| entity.name.namespace | #0AE00Ade | — |
| entity.name.operator | #85A0EEde | — |
| entity.name.operator.custom-literal | #F79FD4de | — |
| entity.name.scope-resolution | #F4A591de | — |
| entity.name.tag | #C28BF1de | — |
| entity.name.tag.css | #D2A7F8de | — |
| entity.name.type | #0ED8B0de | — |
| entity.name.variable | #F4A591de | — |
| entity.other.attribute | #83A0F1de | — |
| entity.other.attribute-name | #FEAC98de | — |
| entity.other.attribute-name.class.css | #D6AEF9de | — |
| entity.other.attribute-name.class.mixin.css | #CE9FF7de | — |
| entity.other.attribute-name.id | #F79FD4de | — |
| entity.other.attribute-name.id.css | #B4CD0Dde | — |
| entity.other.attribute-name.parent-selector.css | #F29F8Ade | — |
| entity.other.attribute-name.pseudo-class.css | #F4A591de | — |
| entity.other.attribute-name.pseudo-element.css | #10DAB3de | — |
| entity.other.attribute-name.scss | #FEAD99de | — |
| entity.other.document.begin.yaml | #C1C1C16e | — |
| entity.other.inherited-class | #CA98F5de | — |
| header | #12D9B1de | — |
| invalid | #11DF11de | — |
| keyword | #FEA3DAde | — |
| keyword.codetag.notation.python | #0FD8B1de | — |
| keyword.control | #11DF11de | — |
| keyword.control.anchor.regexp | #EF7CC1de | — |
| keyword.control.import.python | #C18DEFde | — |
| keyword.operator | #F28AC9de | — |
| keyword.operator.alignas | #C28BF1de | — |
| keyword.operator.alignof | #11DF11de | — |
| keyword.operator.cast | #C18DF0de | — |
| keyword.operator.delete | #FEAC98de | — |
| keyword.operator.documentation.powershell | #C1C1C16e | — |
| keyword.operator.expression | #11DF11de | — |
| keyword.operator.instanceof | #C18BF0de | — |
| keyword.operator.logical.python | #10E010de | — |
| keyword.operator.minus.exponent | #10DF10de | — |
| keyword.operator.negation.regexp | #B2CC12de | — |
| keyword.operator.new | #0EDF0Ede | — |
| keyword.operator.noexcept | #A7BCF8de | — |
| keyword.operator.or.regexp | #B2CB08de | — |
| keyword.operator.plus.exponent | #FEA993de | — |
| keyword.operator.quantifier.regexp | #B4CD0Dde | — |
| keyword.operator.sizeof | #FEAC98de | — |
| keyword.operator.typeid | #F4A591de | — |
| keyword.operator.wordlike | #F19983de | — |
| keyword.other.operator | #11DF11de | — |
| keyword.other.package.java | #EA8870de | — |
| keyword.other.unit | #0EDF0Ede | — |
| keyword.other.using | #AFCC05de | — |
| markup.bold | #FEAD99de | — |
| markup.changed | #B4CD12de | — |
| markup.deleted | #FEAD99de | — |
| markup.fenced_code.block.markdown | #F79FD4de | — |
| markup.heading | #0CD9B1de | — |
| markup.inline.raw | #EA8870de | — |
| markup.inserted | #B2CC0Fde | — |
| markup.italic | #A7BFFEde | — |
| markup.raw.block.markdown | #05DAADde | — |
| markup.strikethrough | #FEAC97de | — |
| markup.underline | #0AE00Ade | — |
| meta.block.c | #FEAC97de | — |
| meta.block.c | #F5AB98de | — |
| meta.class.java | #12DAB1de | — |
| meta.definition.variable.name | #FEA6DBde | — |
| meta.diff.header | #B4CD0Dde | — |
| meta.embedded | #A7BCF8de | — |
| meta.embedded.assembly | #A3BCFEde | — |
| meta.function-call.arguments.python | #FEA993de | — |
| meta.function-call.python | #C08CEDde | — |
| meta.member.access.python | #FEAC98de | — |
| meta.method.java | #F598D0de | — |
| meta.object-literal.key | #12D9B1de | — |
| meta.paragraph.markdown | #EF937Cde | — |
| meta.preprocessor | #D6AEF9de | — |
| meta.preprocessor.numeric | #FEAD99de | — |
| meta.preprocessor.string | #F79FD4de | — |
| meta.scope.prerequisites.makefile | #B4CC13de | — |
| meta.structure.dictionary.json.comments | #C0C0C06e | — |
| meta.structure.dictionary.key.python | #8AA6F2de | — |
| meta.structure.dictionary.value.json.comments | #C0C0C06e | — |
| meta.template.expression | #85A1EDde | — |
| meta.type.cast.expr | #B4CD11de | — |
| meta.type.new.expr | #C18BF0de | — |
| parameter | #C08CEEde | — |
| punctuation.character.set.begin.regexp | #C08CEDde | — |
| punctuation.character.set.end.regexp | #A7BFFEde | — |
| punctuation.definition.array.begin.json | #B3CD07de | — |
| punctuation.definition.character-class.regexp | #D8ACFEde | — |
| punctuation.definition.comment | #C0C0C06e | — |
| punctuation.definition.comment.json.comments | #C1C1C16e | — |
| punctuation.definition.comment.python | #C1C1C16e | — |
| punctuation.definition.dictionary.begin.json | #A8C0FEde | — |
| punctuation.definition.dictionary.end.json | #B3CD07de | — |
| punctuation.definition.group.assertion.regexp | #D2A7F8de | — |
| punctuation.definition.group.regexp | #F4A591de | — |
| punctuation.definition.list.begin.json | #FEAD99de | — |
| punctuation.definition.list.begin.markdown | #83A0F1de | — |
| punctuation.definition.list.begin.python | #A8C0FEde | — |
| punctuation.definition.list.end.json | #EB886Fde | — |
| punctuation.definition.list.end.markdown | #11DF11de | — |
| punctuation.definition.list.end.python | #CE9FF7de | — |
| punctuation.definition.parameters.begin.python | #0EDF0Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #D2A7F8de | — |
| punctuation.definition.quote.begin.markdown | #F79FD4de | — |
| punctuation.definition.tag | #B3CD07de | — |
| punctuation.definition.template-expression.begin | #ED8E76de | — |
| punctuation.definition.template-expression.end | #FEA5DAde | — |
| punctuation.section.class.begin.bracket.curly.java | #98B1F5de | — |
| punctuation.section.embedded | #0CD9B1de | — |
| punctuation.section.embedded.begin.php | #B4CD0Dde | — |
| punctuation.section.embedded.end.php | #11E011de | — |
| punctuation.terminator.java | #FEAD99de | — |
| source.cmake | #B2CC0Fde | — |
| source.coffee.embedded | #F598D0de | — |
| source.cpp | #F79FD4de | — |
| source.css.less | #A3BCFEde | — |
| source.groovy.embedded | #A7BCF8de | — |
| source.java | #05DAADde | — |
| source.java-properties | #A7BCF8de | — |
| source.json.comments | #C1C1C16e | — |
| source.makefile | #C18DEFde | — |
| source.powershell | #FEA6DBde | — |
| source.powershell.variable.other.member | #B3CD07de | — |
| source.python | #0BD9B0de | — |
| storage | #CA98F5de | — |
| storage.modifier | #B4CD13de | — |
| storage.modifier.import.java | #C18DF0de | — |
| storage.modifier.package.java | #B3CD13de | — |
| storage.type | #98B1F5de | — |
| storage.type.annotation.groovy | #B3CC0Fde | — |
| storage.type.annotation.java | #F29F8Ade | — |
| storage.type.boolean.go | #83A0F1de | — |
| storage.type.byte.go | #85A1EDde | — |
| storage.type.cs | #12D9B1de | — |
| storage.type.error.go | #F19983de | — |
| storage.type.generic.cs | #D6AEF9de | — |
| storage.type.generic.groovy | #10DF10de | — |
| storage.type.generic.java | #A7BFFEde | — |
| storage.type.groovy | #A3BCFEde | — |
| storage.type.java | #B4CD13de | — |
| storage.type.modifier.cs | #A7BFFEde | — |
| storage.type.numeric.go | #0CE00Cde | — |
| storage.type.object.array.groovy | #A9C0FEde | — |
| storage.type.object.array.java | #FEAC98de | — |
| storage.type.parameters.groovy | #CE9FF7de | — |
| storage.type.primitive.array.groovy | #B4CD11de | — |
| storage.type.primitive.array.java | #B5CD12de | — |
| storage.type.primitive.groovy | #AAC0FEde | — |
| storage.type.primitive.java | #AFCC05de | — |
| storage.type.rune.go | #EF7CC1de | — |
| storage.type.string.go | #EF7CC1de | — |
| storage.type.token.java | #B2CC12de | — |
| storage.type.uintptr.go | #12DAB1de | — |
| storage.type.variable.cs | #EF7CC1de | — |
| string | #F8A7D7de | — |
| string.quoted.docstring.multi.python | #C1C1C16e | — |
| string.regexp | #CA98F5de | — |
| string.tag | #A9C0FEde | — |
| string.value | #EF7CC1de | — |
| strong | #0CE00Cde | — |
| support.class | #B2CC0Fde | — |
| support.constant.color | #AFCC05de | — |
| support.constant.dom | #F29F8Ade | — |
| support.constant.font-name | #0BD9B0de | — |
| support.constant.handlebars | #FEAD99de | — |
| support.constant.json | #11DF11de | — |
| support.constant.math | #11D9B1de | — |
| support.constant.media | #FEA993de | — |
| support.constant.media-type | #EC7DC0de | — |
| support.constant.property-value | #0FDF0Fde | — |
| support.function | #91ABF4de | — |
| support.function.git-rebase | #0CE00Cde | — |
| support.other.parenthesis.regexp | #CA98F5de | — |
| support.type | #A9C0FEde | — |
| support.type.property-name | #12DAB1de | — |
| support.type.vendored.property-name | #C28AF2de | — |
| support.variable | #ED7CC0de | — |
| token.debug-token | #D9B0FEde | — |
| token.error-token | #FEAD98de | — |
| token.info-token | #F19983de | — |
| token.warn-token | #83A0EFde | — |
| variable | #A8C0FEde | — |
| variable.css | #83A0F1de | — |
| variable.language | #C691F4de | — |
| variable.language.wildcard.java | #B4CD12de | — |
| variable.other.constant | #10D9B0de | — |
| variable.other.definition.java | #FEAD99de | — |
| variable.other.enummember | #B4CD11de | — |
| variable.other.less | #F8A7D7de | — |
| variable.other.object.java | #F598D0de | — |
| variable.other.object.property.java | #F598D0de | — |
| variable.parameter.c | #B5CD11de | — |
| variable.parameter.function.language.python | #0ED8B0de | — |
| variable.parameter.java | #10DAB3de | — |
| variable.scss | #12DAB1de | — |
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}!`;
}