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 | #9DC1F86e | — |
| comment.block.html | #8BB8F56e | — |
| comment.block.java | #7AABF36e | — |
| comment.block.javadoc.java | #81AEF26e | — |
| comment.block.powershell | #9DC2FA6e | — |
| comment.block.xml | #81AEF26e | — |
| comment.line.double-slash.c | #91BAF86e | — |
| comment.line.double-slash.cpp | #94B5F86e | — |
| comment.line.double-slash.java | #9DC1F86e | — |
| comment.line.double-slash.js | #A0BEFA6e | — |
| comment.line.number-sign.makefile | #91BAF86e | — |
| comment.line.number-sign.python | #A8C4FB6e | — |
| comment.line.number-sign.yaml | #7EACF16e | — |
| comment.line.percentage.erlang | #81A7F46e | — |
| comment.line.powershell | #88ADF56e | — |
| comment.source.cmake | #86B2F66e | — |
| comment.source.cmakecache | #A8C4FB6e | — |
| constant.character | #E897F7de | — |
| constant.character.character-class.regexp | #06C02Ede | — |
| constant.character.escape | #06CC30de | — |
| constant.character.set.regexp | #F9A8BEde | — |
| constant.language | #E690F6de | — |
| constant.numeric | #07BCD2de | — |
| constant.numeric.dec.python | #E99BF8de | — |
| constant.other.caps.python | #F487A4de | — |
| constant.other.character-class.regexp | #FAABC0de | — |
| constant.other.character-class.set.regexp | #ACACFAde | — |
| constant.other.color.rgb-value | #E898F8de | — |
| constant.other.placeholder | #82C525de | — |
| constant.other.rgb-value | #FAAAC0de | — |
| constant.regexp | #71BE07de | — |
| constant.sha.git-rebase | #2FC9DBde | — |
| emphasis | #EFB26Fde | — |
| entity.name.class | #9D9DF8de | — |
| entity.name.function | #F2B878de | — |
| entity.name.function.preprocessor | #EDAC63de | — |
| entity.name.function.python | #FAADC2de | — |
| entity.name.label | #08CF32de | — |
| entity.name.namespace | #06CBE4de | — |
| entity.name.operator | #ECA5F9de | — |
| entity.name.operator.custom-literal | #FAABBFde | — |
| entity.name.scope-resolution | #F68FAAde | — |
| entity.name.tag | #F89EB6de | — |
| entity.name.tag.css | #9D9DF8de | — |
| entity.name.type | #EBA75Dde | — |
| entity.name.variable | #07C62Fde | — |
| entity.other.attribute | #36DE59de | — |
| entity.other.attribute-name | #07CFE7de | — |
| entity.other.attribute-name.class.css | #AAAAFAde | — |
| entity.other.attribute-name.class.mixin.css | #F68FAAde | — |
| entity.other.attribute-name.id | #26B9CBde | — |
| entity.other.attribute-name.id.css | #EBA1F9de | — |
| entity.other.attribute-name.parent-selector.css | #EA9CF8de | — |
| entity.other.attribute-name.pseudo-class.css | #9E9EF8de | — |
| entity.other.attribute-name.pseudo-element.css | #08C02Fde | — |
| entity.other.attribute-name.scss | #E9A356de | — |
| entity.other.document.begin.yaml | #9CBBF96e | — |
| entity.other.inherited-class | #F383A1de | — |
| header | #F587A3de | — |
| invalid | #08C02Fde | — |
| keyword | #26BDCFde | — |
| keyword.codetag.notation.python | #B6B6FBde | — |
| keyword.control | #F588A5de | — |
| keyword.control.anchor.regexp | #ADADFAde | — |
| keyword.control.import.python | #F487A4de | — |
| keyword.operator | #07C3DAde | — |
| keyword.operator.alignas | #71BD08de | — |
| keyword.operator.alignof | #07D432de | — |
| keyword.operator.cast | #80C226de | — |
| keyword.operator.delete | #F0B471de | — |
| keyword.operator.documentation.powershell | #7CAEF16e | — |
| keyword.operator.expression | #85CB26de | — |
| keyword.operator.instanceof | #7BCF06de | — |
| keyword.operator.logical.python | #F58BA7de | — |
| keyword.operator.minus.exponent | #F796AFde | — |
| keyword.operator.negation.regexp | #A4A4F9de | — |
| keyword.operator.new | #44D3E4de | — |
| keyword.operator.noexcept | #F89DB5de | — |
| keyword.operator.or.regexp | #F98F17de | — |
| keyword.operator.plus.exponent | #82C425de | — |
| keyword.operator.quantifier.regexp | #73C107de | — |
| keyword.operator.sizeof | #07CD31de | — |
| keyword.operator.typeid | #26C5D7de | — |
| keyword.operator.wordlike | #26B9CBde | — |
| keyword.other.operator | #06D6EFde | — |
| keyword.other.package.java | #FAA8BDde | — |
| keyword.other.unit | #07C02Ede | — |
| keyword.other.using | #8ED826de | — |
| markup.bold | #08B8CCde | — |
| markup.changed | #77C806de | — |
| markup.deleted | #AEAEFAde | — |
| markup.fenced_code.block.markdown | #F8A0B8de | — |
| markup.heading | #07D834de | — |
| markup.inline.raw | #80C226de | — |
| markup.inserted | #EEADFAde | — |
| markup.italic | #F58AA6de | — |
| markup.raw.block.markdown | #08BACFde | — |
| markup.strikethrough | #7CCF08de | — |
| markup.underline | #29C6D9de | — |
| meta.block.c | #76C707de | — |
| meta.block.c | #76C707de | — |
| meta.class.java | #FCA03Bde | — |
| meta.definition.variable.name | #F68CA7de | — |
| meta.diff.header | #E58FF6de | — |
| meta.embedded | #E58EF6de | — |
| meta.embedded.assembly | #F589A6de | — |
| meta.function-call.arguments.python | #06E435de | — |
| meta.function-call.python | #36CCDEde | — |
| meta.member.access.python | #BBBBFBde | — |
| meta.method.java | #3CE05Ede | — |
| meta.object-literal.key | #AEAEFAde | — |
| meta.paragraph.markdown | #71BD08de | — |
| meta.preprocessor | #E998F7de | — |
| meta.preprocessor.numeric | #07D432de | — |
| meta.preprocessor.string | #74C307de | — |
| meta.scope.prerequisites.makefile | #F0B26Ede | — |
| meta.structure.dictionary.json.comments | #A4C1FA6e | — |
| meta.structure.dictionary.key.python | #B1B1FAde | — |
| meta.structure.dictionary.value.json.comments | #99BFF76e | — |
| meta.template.expression | #E387F4de | — |
| meta.type.cast.expr | #BDBDFCde | — |
| meta.type.new.expr | #48D4E5de | — |
| parameter | #9D9DF8de | — |
| punctuation.character.set.begin.regexp | #75C506de | — |
| punctuation.character.set.end.regexp | #F98C12de | — |
| punctuation.definition.array.begin.json | #E58FF6de | — |
| punctuation.definition.character-class.regexp | #F9A5BBde | — |
| punctuation.definition.comment | #8FBBF66e | — |
| punctuation.definition.comment.json.comments | #A8C4FB6e | — |
| punctuation.definition.comment.python | #8FBBF66e | — |
| punctuation.definition.dictionary.begin.json | #49D4E5de | — |
| punctuation.definition.dictionary.end.json | #07C4DAde | — |
| punctuation.definition.group.assertion.regexp | #08CA31de | — |
| punctuation.definition.group.regexp | #EEB06Ade | — |
| punctuation.definition.list.begin.json | #08CC32de | — |
| punctuation.definition.list.begin.markdown | #8FD928de | — |
| punctuation.definition.list.begin.python | #EA9DF8de | — |
| punctuation.definition.list.end.json | #E79F4Fde | — |
| punctuation.definition.list.end.markdown | #07DA33de | — |
| punctuation.definition.list.end.python | #75C407de | — |
| punctuation.definition.parameters.begin.python | #E895F7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #FEB05Bde | — |
| punctuation.definition.quote.begin.markdown | #BDBDFCde | — |
| punctuation.definition.tag | #3CCFE0de | — |
| punctuation.definition.template-expression.begin | #EBAA60de | — |
| punctuation.definition.template-expression.end | #EDAC63de | — |
| punctuation.section.class.begin.bracket.curly.java | #8AD326de | — |
| punctuation.section.embedded | #07D833de | — |
| punctuation.section.embedded.begin.php | #77C806de | — |
| punctuation.section.embedded.end.php | #A6A6F9de | — |
| punctuation.terminator.java | #F9A4BAde | — |
| source.cmake | #36CCDEde | — |
| source.coffee.embedded | #A8A8F9de | — |
| source.cpp | #ECA5F9de | — |
| source.css.less | #EDA9FAde | — |
| source.groovy.embedded | #76C807de | — |
| source.java | #8AD326de | — |
| source.java-properties | #9F9FF8de | — |
| source.json.comments | #91BAF86e | — |
| source.makefile | #E895F7de | — |
| source.powershell | #07DA33de | — |
| source.powershell.variable.other.member | #F68CA8de | — |
| source.python | #A6A6F9de | — |
| storage | #7BCC08de | — |
| storage.modifier | #F2B878de | — |
| storage.modifier.import.java | #E7A050de | — |
| storage.modifier.package.java | #06D3EBde | — |
| storage.type | #F68EA9de | — |
| storage.type.annotation.groovy | #75C507de | — |
| storage.type.annotation.java | #7ED607de | — |
| storage.type.boolean.go | #8FD929de | — |
| storage.type.byte.go | #E894F6de | — |
| storage.type.cs | #F2B97Bde | — |
| storage.type.error.go | #B4B4FBde | — |
| storage.type.generic.cs | #E9A355de | — |
| storage.type.generic.groovy | #85CB26de | — |
| storage.type.generic.java | #F799B2de | — |
| storage.type.groovy | #07D233de | — |
| storage.type.java | #26CB49de | — |
| storage.type.modifier.cs | #E79F4Fde | — |
| storage.type.numeric.go | #E794F7de | — |
| storage.type.object.array.groovy | #81D807de | — |
| storage.type.object.array.java | #29C6D9de | — |
| storage.type.parameters.groovy | #07C02Ede | — |
| storage.type.primitive.array.groovy | #F9A4BBde | — |
| storage.type.primitive.array.java | #78CA07de | — |
| storage.type.primitive.groovy | #F796AFde | — |
| storage.type.primitive.java | #F0B471de | — |
| storage.type.rune.go | #26C5D7de | — |
| storage.type.string.go | #EBA75Dde | — |
| storage.type.token.java | #7CD207de | — |
| storage.type.uintptr.go | #8AD326de | — |
| storage.type.variable.cs | #B2B2FBde | — |
| string | #26C247de | — |
| string.quoted.docstring.multi.python | #9FC5F96e | — |
| string.regexp | #EA9DF8de | — |
| string.tag | #9C9CF8de | — |
| string.value | #26B9CBde | — |
| strong | #F58AA7de | — |
| support.class | #26C1D3de | — |
| support.constant.color | #75C508de | — |
| support.constant.dom | #B5B5FBde | — |
| support.constant.font-name | #F796AFde | — |
| support.constant.handlebars | #36CCDEde | — |
| support.constant.json | #E899F7de | — |
| support.constant.math | #E29742de | — |
| support.constant.media | #A7A7F9de | — |
| support.constant.media-type | #2FCADCde | — |
| support.constant.property-value | #07C2D9de | — |
| support.function | #F0B471de | — |
| support.function.git-rebase | #42D2E3de | — |
| support.other.parenthesis.regexp | #F89AB3de | — |
| support.type | #71BE08de | — |
| support.type.property-name | #E285F4de | — |
| support.type.vendored.property-name | #F68FAAde | — |
| support.variable | #E387F5de | — |
| token.debug-token | #F9A6BCde | — |
| token.error-token | #3FD1E2de | — |
| token.info-token | #B6B6FBde | — |
| token.warn-token | #FCA341de | — |
| variable | #FB9F39de | — |
| variable.css | #BFBFFCde | — |
| variable.language | #FCAA4Fde | — |
| variable.language.wildcard.java | #EBA75Dde | — |
| variable.other.constant | #F691ABde | — |
| variable.other.definition.java | #7CD306de | — |
| variable.other.enummember | #E89F50de | — |
| variable.other.less | #29D94Ede | — |
| variable.other.object.java | #F89EB6de | — |
| variable.other.object.property.java | #07D132de | — |
| variable.parameter.c | #7ACF07de | — |
| variable.parameter.function.language.python | #F9A5BBde | — |
| variable.parameter.java | #F483A1de | — |
| variable.scss | #07C5DCde | — |
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}!`;
}