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 | #7FD4D46e | — |
| comment.block.html | #85D3D36e | — |
| comment.block.java | #84D4D46e | — |
| comment.block.javadoc.java | #7FD4D46e | — |
| comment.block.powershell | #7ED5D56e | — |
| comment.block.xml | #7FD4D46e | — |
| comment.line.double-slash.c | #84D4D46e | — |
| comment.line.double-slash.cpp | #84D4D46e | — |
| comment.line.double-slash.java | #85D3D36e | — |
| comment.line.double-slash.js | #7ED5D56e | — |
| comment.line.number-sign.makefile | #7ED5D56e | — |
| comment.line.number-sign.python | #84D4D46e | — |
| comment.line.number-sign.yaml | #85D3D36e | — |
| comment.line.percentage.erlang | #85D3D36e | — |
| comment.line.powershell | #84D4D46e | — |
| comment.source.cmake | #85D3D36e | — |
| comment.source.cmakecache | #7ED5D56e | — |
| constant.character | #8DA4F1de | — |
| constant.character.character-class.regexp | #B4D40Ede | — |
| constant.character.escape | #0DDEBCde | — |
| constant.character.set.regexp | #FEB59Fde | — |
| constant.language | #B4C5FEde | — |
| constant.numeric | #FEAED8de | — |
| constant.numeric.dec.python | #B4D30Ede | — |
| constant.other.caps.python | #B3C5FEde | — |
| constant.other.character-class.regexp | #FEB29Ade | — |
| constant.other.character-class.set.regexp | #8FA4EDde | — |
| constant.other.color.rgb-value | #B3B3B3de | — |
| constant.other.placeholder | #B3B3B3de | — |
| constant.other.rgb-value | #DCB6FEde | — |
| constant.regexp | #0BDDBBde | — |
| constant.sha.git-rebase | #0CDFC0de | — |
| emphasis | #C690F4de | — |
| entity.name.class | #EA8F75de | — |
| entity.name.function | #F598CAde | — |
| entity.name.function.preprocessor | #EA8F73de | — |
| entity.name.function.python | #C6C6C6de | — |
| entity.name.label | #12DFC0de | — |
| entity.name.namespace | #FEB59Fde | — |
| entity.name.operator | #B5D213de | — |
| entity.name.operator.custom-literal | #0CDFC0de | — |
| entity.name.scope-resolution | #B3D40Bde | — |
| entity.name.tag | #C0C0C0de | — |
| entity.name.tag.css | #B3B3B3de | — |
| entity.name.type | #F8A6D2de | — |
| entity.name.variable | #B3B3B3de | — |
| entity.other.attribute | #C492F0de | — |
| entity.other.attribute-name | #EC86BDde | — |
| entity.other.attribute-name.class.css | #EC86BDde | — |
| entity.other.attribute-name.class.mixin.css | #B2D20Cde | — |
| entity.other.attribute-name.id | #C0C0C0de | — |
| entity.other.attribute-name.id.css | #BCBCBCde | — |
| entity.other.attribute-name.parent-selector.css | #8DA4F1de | — |
| entity.other.attribute-name.pseudo-class.css | #B3C5FEde | — |
| entity.other.attribute-name.pseudo-element.css | #BCBCBCde | — |
| entity.other.attribute-name.scss | #8DA4EFde | — |
| entity.other.document.begin.yaml | #84D4D46e | — |
| entity.other.inherited-class | #8EA4F0de | — |
| header | #FEB5A0de | — |
| invalid | #EF85BDde | — |
| keyword | #EE84BDde | — |
| keyword.codetag.notation.python | #F598CAde | — |
| keyword.control | #B3C5FEde | — |
| keyword.control.anchor.regexp | #F4A790de | — |
| keyword.control.import.python | #ED85BDde | — |
| keyword.operator | #B4C5FEde | — |
| keyword.operator.alignas | #0CDFC0de | — |
| keyword.operator.alignof | #AEAEAEde | — |
| keyword.operator.cast | #11DEBEde | — |
| keyword.operator.delete | #11DEBEde | — |
| keyword.operator.documentation.powershell | #7FD4D46e | — |
| keyword.operator.expression | #B4C4FEde | — |
| keyword.operator.instanceof | #FEAED9de | — |
| keyword.operator.logical.python | #0DDEBCde | — |
| keyword.operator.minus.exponent | #10DEBFde | — |
| keyword.operator.negation.regexp | #11DEBEde | — |
| keyword.operator.new | #DCB6FEde | — |
| keyword.operator.noexcept | #EA8F73de | — |
| keyword.operator.or.regexp | #0DDEBCde | — |
| keyword.operator.plus.exponent | #90A7F4de | — |
| keyword.operator.quantifier.regexp | #12DFC0de | — |
| keyword.operator.sizeof | #11DFBFde | — |
| keyword.operator.typeid | #B3D30Dde | — |
| keyword.operator.wordlike | #EC9175de | — |
| keyword.other.operator | #FEB59Fde | — |
| keyword.other.package.java | #EC9175de | — |
| keyword.other.unit | #C6C6C6de | — |
| keyword.other.using | #FDB59Fde | — |
| markup.bold | #B6D311de | — |
| markup.changed | #EA8F73de | — |
| markup.deleted | #FEAED9de | — |
| markup.fenced_code.block.markdown | #F4A790de | — |
| markup.heading | #B4C4FEde | — |
| markup.inline.raw | #FEB49Fde | — |
| markup.inserted | #8DA4EEde | — |
| markup.italic | #C5C5C5de | — |
| markup.raw.block.markdown | #0BDDBBde | — |
| markup.strikethrough | #FEB29Ade | — |
| markup.underline | #D2A6F8de | — |
| meta.block.c | #9FB3F6de | — |
| meta.block.c | #EF85BDde | — |
| meta.class.java | #C6C6C6de | — |
| meta.definition.variable.name | #B6D311de | — |
| meta.diff.header | #B4D213de | — |
| meta.embedded | #12DFC0de | — |
| meta.embedded.assembly | #F5AD98de | — |
| meta.function-call.arguments.python | #B6D311de | — |
| meta.function-call.python | #DAB5FAde | — |
| meta.member.access.python | #A7A7A7de | — |
| meta.method.java | #A7A7A7de | — |
| meta.object-literal.key | #0EDFBDde | — |
| meta.paragraph.markdown | #B4C4FEde | — |
| meta.preprocessor | #C492EFde | — |
| meta.preprocessor.numeric | #F598CAde | — |
| meta.preprocessor.string | #F289C2de | — |
| meta.scope.prerequisites.makefile | #C6C6C6de | — |
| meta.structure.dictionary.json.comments | #7FD4D46e | — |
| meta.structure.dictionary.key.python | #F598CAde | — |
| meta.structure.dictionary.value.json.comments | #85D3D36e | — |
| meta.template.expression | #FEAED8de | — |
| meta.type.cast.expr | #8DA4F1de | — |
| meta.type.new.expr | #F598CAde | — |
| parameter | #AAAAAAde | — |
| punctuation.character.set.begin.regexp | #12DFC0de | — |
| punctuation.character.set.end.regexp | #B7B7B7de | — |
| punctuation.definition.array.begin.json | #F9AED6de | — |
| punctuation.definition.character-class.regexp | #8EA4F0de | — |
| punctuation.definition.comment | #85D3D36e | — |
| punctuation.definition.comment.json.comments | #85D3D36e | — |
| punctuation.definition.comment.python | #85D3D36e | — |
| punctuation.definition.dictionary.begin.json | #0EDEBDde | — |
| punctuation.definition.dictionary.end.json | #EC86BDde | — |
| punctuation.definition.group.assertion.regexp | #EF85BDde | — |
| punctuation.definition.group.regexp | #8DA4EEde | — |
| punctuation.definition.list.begin.json | #B6D312de | — |
| punctuation.definition.list.begin.markdown | #8EA4F0de | — |
| punctuation.definition.list.begin.python | #A7A7A7de | — |
| punctuation.definition.list.end.json | #D2A6F8de | — |
| punctuation.definition.list.end.markdown | #EC86BDde | — |
| punctuation.definition.list.end.python | #8DA4F2de | — |
| punctuation.definition.parameters.begin.python | #F289C2de | — |
| punctuation.definition.parameters.end.bracket.round.java | #F5AD98de | — |
| punctuation.definition.quote.begin.markdown | #C593F0de | — |
| punctuation.definition.tag | #C6C6C6de | — |
| punctuation.definition.template-expression.begin | #0EDEBDde | — |
| punctuation.definition.template-expression.end | #90A7F4de | — |
| punctuation.section.class.begin.bracket.curly.java | #9FB3F6de | — |
| punctuation.section.embedded | #EC86BDde | — |
| punctuation.section.embedded.begin.php | #ED85BDde | — |
| punctuation.section.embedded.end.php | #B4C4FEde | — |
| punctuation.terminator.java | #F9AED6de | — |
| source.cmake | #F5AD98de | — |
| source.coffee.embedded | #C493EDde | — |
| source.cpp | #10DEBFde | — |
| source.css.less | #10DFBEde | — |
| source.groovy.embedded | #B6D313de | — |
| source.java | #98ADF5de | — |
| source.java-properties | #12DFC0de | — |
| source.json.comments | #84D4D46e | — |
| source.makefile | #F289C2de | — |
| source.powershell | #BCBCBCde | — |
| source.powershell.variable.other.member | #B6D311de | — |
| source.python | #11DFBFde | — |
| storage | #EA8F75de | — |
| storage.modifier | #FEB5A0de | — |
| storage.modifier.import.java | #8EA4F0de | — |
| storage.modifier.package.java | #8DA4EFde | — |
| storage.type | #EA8F75de | — |
| storage.type.annotation.groovy | #0BDDBBde | — |
| storage.type.annotation.java | #FEAED9de | — |
| storage.type.boolean.go | #F598CAde | — |
| storage.type.byte.go | #C692F1de | — |
| storage.type.cs | #C593F0de | — |
| storage.type.error.go | #8DA4EFde | — |
| storage.type.generic.cs | #F083BEde | — |
| storage.type.generic.groovy | #8FA4EDde | — |
| storage.type.generic.java | #FDB59Fde | — |
| storage.type.groovy | #C492EFde | — |
| storage.type.java | #F083BEde | — |
| storage.type.modifier.cs | #B3D40Bde | — |
| storage.type.numeric.go | #B6D313de | — |
| storage.type.object.array.groovy | #B3D30Dde | — |
| storage.type.object.array.java | #12DFC0de | — |
| storage.type.parameters.groovy | #EA8F73de | — |
| storage.type.primitive.array.groovy | #C4C4C4de | — |
| storage.type.primitive.array.java | #EE84BDde | — |
| storage.type.primitive.groovy | #FEAED9de | — |
| storage.type.primitive.java | #0EDEBDde | — |
| storage.type.rune.go | #BCBCBCde | — |
| storage.type.string.go | #C5C5C5de | — |
| storage.type.token.java | #8EA4F0de | — |
| storage.type.uintptr.go | #C6C6C6de | — |
| storage.type.variable.cs | #0BDDBBde | — |
| string | #C6C6C6de | — |
| string.quoted.docstring.multi.python | #7ED5D56e | — |
| string.regexp | #12DFC0de | — |
| string.tag | #EA8F73de | — |
| string.value | #CE9FF6de | — |
| strong | #ED85BDde | — |
| support.class | #FDB59Fde | — |
| support.constant.color | #C690F4de | — |
| support.constant.dom | #C4C4C4de | — |
| support.constant.font-name | #12DFC0de | — |
| support.constant.handlebars | #C691F2de | — |
| support.constant.json | #FEAED9de | — |
| support.constant.math | #8DA4F2de | — |
| support.constant.media | #FEAED9de | — |
| support.constant.media-type | #B3D40Bde | — |
| support.constant.property-value | #C691F2de | — |
| support.function | #12DFC0de | — |
| support.function.git-rebase | #ED85BDde | — |
| support.other.parenthesis.regexp | #C6C6C6de | — |
| support.type | #F6B39Fde | — |
| support.type.property-name | #F69FCEde | — |
| support.type.vendored.property-name | #B5D213de | — |
| support.variable | #D6AEF9de | — |
| token.debug-token | #B6D312de | — |
| token.error-token | #98ADF5de | — |
| token.info-token | #11DFBFde | — |
| token.warn-token | #C492EFde | — |
| variable | #FEB59Fde | — |
| variable.css | #C392EEde | — |
| variable.language | #C6C6C6de | — |
| variable.language.wildcard.java | #C5C5C5de | — |
| variable.other.constant | #90A7F4de | — |
| variable.other.definition.java | #FEB59Fde | — |
| variable.other.enummember | #B4D310de | — |
| variable.other.less | #0BDDBBde | — |
| variable.other.object.java | #F69FCEde | — |
| variable.other.object.property.java | #C6C6C6de | — |
| variable.parameter.c | #CA98F5de | — |
| variable.parameter.function.language.python | #F289C2de | — |
| variable.parameter.java | #B4C4FEde | — |
| variable.scss | #8DA4EEde | — |
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}!`;
}