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 | #74D6D66e | — |
| comment.block.html | #7CD4D46e | — |
| comment.block.java | #76D5D56e | — |
| comment.block.javadoc.java | #7CD4D46e | — |
| comment.block.powershell | #7CD4D46e | — |
| comment.block.xml | #74D6D66e | — |
| comment.line.double-slash.c | #7CD4D46e | — |
| comment.line.double-slash.cpp | #7BD4D46e | — |
| comment.line.double-slash.java | #7BD4D46e | — |
| comment.line.double-slash.js | #7CD4D46e | — |
| comment.line.number-sign.makefile | #7CD4D46e | — |
| comment.line.number-sign.python | #7BD4D46e | — |
| comment.line.number-sign.yaml | #76D5D56e | — |
| comment.line.percentage.erlang | #7CD4D46e | — |
| comment.line.powershell | #76D5D56e | — |
| comment.source.cmake | #76D5D56e | — |
| comment.source.cmakecache | #7CD4D46e | — |
| constant.character | #AF9AF1de | — |
| constant.character.character-class.regexp | #F280E4de | — |
| constant.character.escape | #A7A7A7de | — |
| constant.character.set.regexp | #EDC20Cde | — |
| constant.language | #AAAAAAde | — |
| constant.numeric | #F9A5EEde | — |
| constant.numeric.dec.python | #0CE385de | — |
| constant.other.caps.python | #AF99F4de | — |
| constant.other.character-class.regexp | #C5C5C5de | — |
| constant.other.character-class.set.regexp | #80C0F2de | — |
| constant.other.color.rgb-value | #EE7EE0de | — |
| constant.other.placeholder | #ECC20Ede | — |
| constant.other.rgb-value | #B3B3B3de | — |
| constant.regexp | #4FE30Cde | — |
| constant.sha.git-rebase | #4DE30Ade | — |
| emphasis | #96CCF6de | — |
| entity.name.class | #E9C20Cde | — |
| entity.name.function | #C5C5C5de | — |
| entity.name.function.preprocessor | #F9A5EEde | — |
| entity.name.function.python | #0FE386de | — |
| entity.name.label | #F17BE2de | — |
| entity.name.namespace | #0BE385de | — |
| entity.name.operator | #C0ACFAde | — |
| entity.name.operator.custom-literal | #B09AF3de | — |
| entity.name.scope-resolution | #ECC10Ede | — |
| entity.name.tag | #6BB4EDde | — |
| entity.name.tag.css | #4EE30Bde | — |
| entity.name.type | #4FE10Ade | — |
| entity.name.variable | #F89DECde | — |
| entity.other.attribute | #B099F6de | — |
| entity.other.attribute-name | #AAAAAAde | — |
| entity.other.attribute-name.class.css | #0CE385de | — |
| entity.other.attribute-name.class.mixin.css | #50E20Ede | — |
| entity.other.attribute-name.id | #EF7EE1de | — |
| entity.other.attribute-name.id.css | #A7A7A7de | — |
| entity.other.attribute-name.parent-selector.css | #0CE284de | — |
| entity.other.attribute-name.pseudo-class.css | #B099F6de | — |
| entity.other.attribute-name.pseudo-element.css | #79BCF1de | — |
| entity.other.attribute-name.scss | #C4C4C4de | — |
| entity.other.document.begin.yaml | #7CD4D46e | — |
| entity.other.inherited-class | #ECC20Ede | — |
| header | #4EE20Cde | — |
| invalid | #F696EAde | — |
| keyword | #F07CE1de | — |
| keyword.codetag.notation.python | #A7A7A7de | — |
| keyword.control | #AAAAAAde | — |
| keyword.control.anchor.regexp | #50E20Ede | — |
| keyword.control.import.python | #EBC20Cde | — |
| keyword.operator | #F696EAde | — |
| keyword.operator.alignas | #EEC10Ade | — |
| keyword.operator.alignof | #61AEE9de | — |
| keyword.operator.cast | #ECC20Ede | — |
| keyword.operator.delete | #F17BE2de | — |
| keyword.operator.documentation.powershell | #76D5D56e | — |
| keyword.operator.expression | #0FE386de | — |
| keyword.operator.instanceof | #F89DECde | — |
| keyword.operator.logical.python | #EE7EE0de | — |
| keyword.operator.minus.exponent | #AF9AF1de | — |
| keyword.operator.negation.regexp | #0AE185de | — |
| keyword.operator.new | #F696EAde | — |
| keyword.operator.noexcept | #AF99F4de | — |
| keyword.operator.or.regexp | #C6C6C6de | — |
| keyword.operator.plus.exponent | #C0ACFAde | — |
| keyword.operator.quantifier.regexp | #8CCDFDde | — |
| keyword.operator.sizeof | #4FE10Ade | — |
| keyword.operator.typeid | #ECC10Bde | — |
| keyword.operator.wordlike | #AF99F4de | — |
| keyword.other.operator | #C6B4FBde | — |
| keyword.other.package.java | #ECC10Ede | — |
| keyword.other.unit | #EBC20Cde | — |
| keyword.other.using | #0FE285de | — |
| markup.bold | #B09AF5de | — |
| markup.changed | #B09AF3de | — |
| markup.deleted | #CCBCFBde | — |
| markup.fenced_code.block.markdown | #FEAAF4de | — |
| markup.heading | #61AEE9de | — |
| markup.inline.raw | #EBC30Ede | — |
| markup.inserted | #B49DF8de | — |
| markup.italic | #C4C4C4de | — |
| markup.raw.block.markdown | #B099F6de | — |
| markup.strikethrough | #51E30Ede | — |
| markup.underline | #8EC8F5de | — |
| meta.block.c | #EAC10Dde | — |
| meta.block.c | #AF99F4de | — |
| meta.class.java | #CDBCFEde | — |
| meta.definition.variable.name | #FAACF0de | — |
| meta.diff.header | #F58EE8de | — |
| meta.embedded | #C4C4C4de | — |
| meta.embedded.assembly | #51E30Ede | — |
| meta.function-call.arguments.python | #AAAAAAde | — |
| meta.function-call.python | #FAACF0de | — |
| meta.member.access.python | #50E10Ede | — |
| meta.method.java | #0CE284de | — |
| meta.object-literal.key | #C6B4FBde | — |
| meta.paragraph.markdown | #0CE286de | — |
| meta.preprocessor | #8ECDFEde | — |
| meta.preprocessor.numeric | #C6C6C6de | — |
| meta.preprocessor.string | #C6C6C6de | — |
| meta.scope.prerequisites.makefile | #EAC20Ade | — |
| meta.structure.dictionary.json.comments | #74D6D66e | — |
| meta.structure.dictionary.key.python | #6BB4EDde | — |
| meta.structure.dictionary.value.json.comments | #7CD4D46e | — |
| meta.template.expression | #B099F6de | — |
| meta.type.cast.expr | #FEABF4de | — |
| meta.type.new.expr | #0FE386de | — |
| parameter | #F89DECde | — |
| punctuation.character.set.begin.regexp | #C5C5C5de | — |
| punctuation.character.set.end.regexp | #0EE285de | — |
| punctuation.definition.array.begin.json | #EAC10Ede | — |
| punctuation.definition.character-class.regexp | #64B0EBde | — |
| punctuation.definition.comment | #76D5D56e | — |
| punctuation.definition.comment.json.comments | #74D6D66e | — |
| punctuation.definition.comment.python | #7BD4D46e | — |
| punctuation.definition.dictionary.begin.json | #8ECDFEde | — |
| punctuation.definition.dictionary.end.json | #50E10Ede | — |
| punctuation.definition.group.assertion.regexp | #A7A7A7de | — |
| punctuation.definition.group.regexp | #0AE384de | — |
| punctuation.definition.list.begin.json | #C4C4C4de | — |
| punctuation.definition.list.begin.markdown | #ECC20Ede | — |
| punctuation.definition.list.begin.python | #E9C20Cde | — |
| punctuation.definition.list.end.json | #ECC20Ede | — |
| punctuation.definition.list.end.markdown | #EAC10Fde | — |
| punctuation.definition.list.end.python | #FEAAF4de | — |
| punctuation.definition.parameters.begin.python | #4DE30Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #0CE385de | — |
| punctuation.definition.quote.begin.markdown | #8ECDFEde | — |
| punctuation.definition.tag | #BAA5F9de | — |
| punctuation.definition.template-expression.begin | #50E20Cde | — |
| punctuation.definition.template-expression.end | #EE7EE0de | — |
| punctuation.section.class.begin.bracket.curly.java | #B3B3B3de | — |
| punctuation.section.embedded | #ECC10Bde | — |
| punctuation.section.embedded.begin.php | #96CCF6de | — |
| punctuation.section.embedded.end.php | #FAACF0de | — |
| punctuation.terminator.java | #EAC10Dde | — |
| source.cmake | #EE7EE0de | — |
| source.coffee.embedded | #0AE185de | — |
| source.cpp | #71B8EFde | — |
| source.css.less | #ED7EE0de | — |
| source.groovy.embedded | #B099F1de | — |
| source.java | #C6C6C6de | — |
| source.java-properties | #50E20Fde | — |
| source.json.comments | #74D6D66e | — |
| source.makefile | #4DE30Ade | — |
| source.powershell | #0EE285de | — |
| source.powershell.variable.other.member | #0FE285de | — |
| source.python | #EAC10Ede | — |
| storage | #C4C4C4de | — |
| storage.modifier | #87C4F4de | — |
| storage.modifier.import.java | #71B8EFde | — |
| storage.modifier.package.java | #B099F6de | — |
| storage.type | #EAC20Ade | — |
| storage.type.annotation.groovy | #0AE384de | — |
| storage.type.annotation.java | #EF7EE1de | — |
| storage.type.boolean.go | #F17BE2de | — |
| storage.type.byte.go | #8ECDFEde | — |
| storage.type.cs | #51E30Fde | — |
| storage.type.error.go | #8CCDFDde | — |
| storage.type.generic.cs | #BCBCBCde | — |
| storage.type.generic.groovy | #8ECDFEde | — |
| storage.type.generic.java | #AF99F4de | — |
| storage.type.groovy | #ECC20Ede | — |
| storage.type.java | #0FE386de | — |
| storage.type.modifier.cs | #4DE30Ade | — |
| storage.type.numeric.go | #BCBCBCde | — |
| storage.type.object.array.groovy | #64B0EBde | — |
| storage.type.object.array.java | #AF99F4de | — |
| storage.type.parameters.groovy | #71B8EFde | — |
| storage.type.primitive.array.groovy | #ECC10Ede | — |
| storage.type.primitive.array.java | #61AEE9de | — |
| storage.type.primitive.groovy | #F696EAde | — |
| storage.type.primitive.java | #FEAAF4de | — |
| storage.type.rune.go | #ECC10Bde | — |
| storage.type.string.go | #B49DF8de | — |
| storage.type.token.java | #EBC20Cde | — |
| storage.type.uintptr.go | #F17BE2de | — |
| storage.type.variable.cs | #A7A7A7de | — |
| string | #4EE20Cde | — |
| string.quoted.docstring.multi.python | #76D5D56e | — |
| string.regexp | #50E10Ede | — |
| string.tag | #FEAAF4de | — |
| string.value | #0FE285de | — |
| strong | #ECC20Ede | — |
| support.class | #8EC8F5de | — |
| support.constant.color | #C5C5C5de | — |
| support.constant.dom | #AF99F4de | — |
| support.constant.font-name | #C4C4C4de | — |
| support.constant.handlebars | #CDBCFEde | — |
| support.constant.json | #0FE285de | — |
| support.constant.math | #C6C6C6de | — |
| support.constant.media | #ECC20Ede | — |
| support.constant.media-type | #BCBCBCde | — |
| support.constant.property-value | #8DCDFDde | — |
| support.function | #50E20Fde | — |
| support.function.git-rebase | #F280E4de | — |
| support.other.parenthesis.regexp | #71B8EFde | — |
| support.type | #F696EAde | — |
| support.type.property-name | #F487E6de | — |
| support.type.vendored.property-name | #AF9AF1de | — |
| support.variable | #50E20Fde | — |
| token.debug-token | #ECC10Bde | — |
| token.error-token | #50E20Fde | — |
| token.info-token | #F89DECde | — |
| token.warn-token | #ECC20Ede | — |
| variable | #F58EE8de | — |
| variable.css | #ECC10Ede | — |
| variable.language | #AEAEAEde | — |
| variable.language.wildcard.java | #0BE385de | — |
| variable.other.constant | #EAC20Ade | — |
| variable.other.definition.java | #0FE285de | — |
| variable.other.enummember | #0AE185de | — |
| variable.other.less | #F487E6de | — |
| variable.other.object.java | #F07CE1de | — |
| variable.other.object.property.java | #B099F6de | — |
| variable.parameter.c | #FAACF0de | — |
| variable.parameter.function.language.python | #4EE20Cde | — |
| variable.parameter.java | #0EE285de | — |
| variable.scss | #4EE20Cde | — |
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}!`;
}