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 | #36D3D36e | — |
| comment.block.html | #36CECE6e | — |
| comment.block.java | #38D5D56e | — |
| comment.block.javadoc.java | #3ED4D46e | — |
| comment.block.powershell | #30C7C76e | — |
| comment.block.xml | #36CECE6e | — |
| comment.line.double-slash.c | #33CCCC6e | — |
| comment.line.double-slash.cpp | #33B9B96e | — |
| comment.line.double-slash.java | #32BABA6e | — |
| comment.line.double-slash.js | #3ED8D86e | — |
| comment.line.number-sign.makefile | #30BDBD6e | — |
| comment.line.number-sign.python | #33B9B96e | — |
| comment.line.number-sign.yaml | #34D1D16e | — |
| comment.line.percentage.erlang | #33CCCC6e | — |
| comment.line.powershell | #3CD2D26e | — |
| comment.source.cmake | #3FD8D86e | — |
| comment.source.cmakecache | #37D3D36e | — |
| constant.character | #7DCAFEde | — |
| constant.character.character-class.regexp | #3BC509de | — |
| constant.character.escape | #F89D9Dde | — |
| constant.character.set.regexp | #B49CF7de | — |
| constant.language | #3FD708de | — |
| constant.numeric | #C3AFFAde | — |
| constant.numeric.dec.python | #F8A3A3de | — |
| constant.other.caps.python | #F89DF2de | — |
| constant.other.character-class.regexp | #F48A8Ade | — |
| constant.other.character-class.set.regexp | #C8AE08de | — |
| constant.other.color.rgb-value | #79C0F0de | — |
| constant.other.placeholder | #C9B7FBde | — |
| constant.other.rgb-value | #37DA8Ede | — |
| constant.regexp | #F48BEEde | — |
| constant.sha.git-rebase | #F17CE9de | — |
| emphasis | #F697F0de | — |
| entity.name.class | #5DB1E9de | — |
| entity.name.function | #B7A0F8de | — |
| entity.name.function.preprocessor | #FAAEAEde | — |
| entity.name.function.python | #BEA9F9de | — |
| entity.name.label | #F9AAAAde | — |
| entity.name.namespace | #51BC2Ade | — |
| entity.name.operator | #51BC2Ade | — |
| entity.name.operator.custom-literal | #F69696de | — |
| entity.name.scope-resolution | #8BCAF4de | — |
| entity.name.tag | #BCA6F9de | — |
| entity.name.tag.css | #F59191de | — |
| entity.name.type | #40D808de | — |
| entity.name.variable | #F079E8de | — |
| entity.other.attribute | #F693EFde | — |
| entity.other.attribute-name | #29C77Dde | — |
| entity.other.attribute-name.class.css | #C7B4FAde | — |
| entity.other.attribute-name.class.mixin.css | #D5BE2Bde | — |
| entity.other.attribute-name.id | #F79A9Ade | — |
| entity.other.attribute-name.id.css | #F17BE9de | — |
| entity.other.attribute-name.parent-selector.css | #B39BF7de | — |
| entity.other.attribute-name.pseudo-class.css | #CBBAFBde | — |
| entity.other.attribute-name.pseudo-element.css | #39BF09de | — |
| entity.other.attribute-name.scss | #59D52Bde | — |
| entity.other.document.begin.yaml | #32BABA6e | — |
| entity.other.inherited-class | #CBB9FBde | — |
| header | #2AC57Cde | — |
| invalid | #07D274de | — |
| keyword | #F8A5F3de | — |
| keyword.codetag.notation.python | #CDB82Ade | — |
| keyword.control | #F58EEEde | — |
| keyword.control.anchor.regexp | #5DB1E9de | — |
| keyword.control.import.python | #F8A5F3de | — |
| keyword.operator | #F69393de | — |
| keyword.operator.alignas | #F9A9A9de | — |
| keyword.operator.alignof | #F696F0de | — |
| keyword.operator.cast | #08CE72de | — |
| keyword.operator.delete | #F48C8Cde | — |
| keyword.operator.documentation.powershell | #31CFCF6e | — |
| keyword.operator.expression | #08C86Fde | — |
| keyword.operator.instanceof | #F48787de | — |
| keyword.operator.logical.python | #F59090de | — |
| keyword.operator.minus.exponent | #80C5F2de | — |
| keyword.operator.negation.regexp | #5EB2E9de | — |
| keyword.operator.new | #F9AAF4de | — |
| keyword.operator.noexcept | #F488ECde | — |
| keyword.operator.or.regexp | #7CC2F1de | — |
| keyword.operator.plus.exponent | #F694EFde | — |
| keyword.operator.quantifier.regexp | #BBA5F9de | — |
| keyword.operator.sizeof | #F48787de | — |
| keyword.operator.typeid | #78C0F0de | — |
| keyword.operator.wordlike | #B69EF8de | — |
| keyword.other.operator | #51BC2Ade | — |
| keyword.other.package.java | #F078E9de | — |
| keyword.other.unit | #33D98Cde | — |
| keyword.other.using | #CCB108de | — |
| markup.bold | #07C66Cde | — |
| markup.changed | #F696F0de | — |
| markup.deleted | #F79D9Dde | — |
| markup.fenced_code.block.markdown | #F48787de | — |
| markup.heading | #3ABE09de | — |
| markup.inline.raw | #55CC29de | — |
| markup.inserted | #BAA4F8de | — |
| markup.italic | #F69393de | — |
| markup.raw.block.markdown | #BEA8F9de | — |
| markup.strikethrough | #8ECCF5de | — |
| markup.underline | #5ED831de | — |
| meta.block.c | #C8B6FBde | — |
| meta.block.c | #F58EEEde | — |
| meta.class.java | #BBA5F8de | — |
| meta.definition.variable.name | #41DE08de | — |
| meta.diff.header | #09BF6Ade | — |
| meta.embedded | #2AC57Cde | — |
| meta.embedded.assembly | #5DB1E9de | — |
| meta.function-call.arguments.python | #B7A0F8de | — |
| meta.function-call.python | #F89F9Fde | — |
| meta.member.access.python | #51BC2Ade | — |
| meta.method.java | #B299F7de | — |
| meta.object-literal.key | #87C8F3de | — |
| meta.paragraph.markdown | #40DE95de | — |
| meta.preprocessor | #BBA4F8de | — |
| meta.preprocessor.numeric | #F89E9Ede | — |
| meta.preprocessor.string | #C5B02Ade | — |
| meta.scope.prerequisites.makefile | #3AC209de | — |
| meta.structure.dictionary.json.comments | #30C6C66e | — |
| meta.structure.dictionary.key.python | #F387ECde | — |
| meta.structure.dictionary.value.json.comments | #30B8B86e | — |
| meta.template.expression | #3DCD09de | — |
| meta.type.cast.expr | #59AEE8de | — |
| meta.type.new.expr | #3DD308de | — |
| parameter | #57ADE6de | — |
| punctuation.character.set.begin.regexp | #DAC537de | — |
| punctuation.character.set.end.regexp | #DAC537de | — |
| punctuation.definition.array.begin.json | #3ED807de | — |
| punctuation.definition.character-class.regexp | #D6BF2Cde | — |
| punctuation.definition.comment | #33CDCD6e | — |
| punctuation.definition.comment.json.comments | #37D3D36e | — |
| punctuation.definition.comment.python | #44D8D86e | — |
| punctuation.definition.dictionary.begin.json | #3BC808de | — |
| punctuation.definition.dictionary.end.json | #59D62Cde | — |
| punctuation.definition.group.assertion.regexp | #F79B9Bde | — |
| punctuation.definition.group.regexp | #F9A8A8de | — |
| punctuation.definition.list.begin.json | #F59191de | — |
| punctuation.definition.list.begin.markdown | #B299F7de | — |
| punctuation.definition.list.begin.python | #DBBF08de | — |
| punctuation.definition.list.end.json | #5DB1E9de | — |
| punctuation.definition.list.end.markdown | #6FBCEEde | — |
| punctuation.definition.list.end.python | #C7AD07de | — |
| punctuation.definition.parameters.begin.python | #F58EEEde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F9A6F3de | — |
| punctuation.definition.quote.begin.markdown | #F694F0de | — |
| punctuation.definition.tag | #D8C131de | — |
| punctuation.definition.template-expression.begin | #F179E9de | — |
| punctuation.definition.template-expression.end | #B097F6de | — |
| punctuation.section.class.begin.bracket.curly.java | #09C86Ede | — |
| punctuation.section.embedded | #F17CE9de | — |
| punctuation.section.embedded.begin.php | #79C0F0de | — |
| punctuation.section.embedded.end.php | #D8BC08de | — |
| punctuation.terminator.java | #CAB9FBde | — |
| source.cmake | #E1C408de | — |
| source.coffee.embedded | #3ED508de | — |
| source.cpp | #07BE68de | — |
| source.css.less | #F38585de | — |
| source.groovy.embedded | #F48AECde | — |
| source.java | #2ACD81de | — |
| source.java-properties | #C6B4FAde | — |
| source.json.comments | #32C4C46e | — |
| source.makefile | #7CC2F1de | — |
| source.powershell | #D9BD07de | — |
| source.powershell.variable.other.member | #87C8F3de | — |
| source.python | #55CD29de | — |
| storage | #08D275de | — |
| storage.modifier | #64B5EBde | — |
| storage.modifier.import.java | #3CCC08de | — |
| storage.modifier.package.java | #5CB1E9de | — |
| storage.type | #34DA8Cde | — |
| storage.type.annotation.groovy | #35DA8Dde | — |
| storage.type.annotation.java | #D2B707de | — |
| storage.type.boolean.go | #F17EEAde | — |
| storage.type.byte.go | #DBC007de | — |
| storage.type.cs | #C8AF08de | — |
| storage.type.error.go | #6EBAEDde | — |
| storage.type.generic.cs | #C0ABF9de | — |
| storage.type.generic.groovy | #F8A0F2de | — |
| storage.type.generic.java | #6DBAEDde | — |
| storage.type.groovy | #CDB82Ade | — |
| storage.type.java | #3AC808de | — |
| storage.type.modifier.cs | #BBA5F8de | — |
| storage.type.numeric.go | #F8A2A2de | — |
| storage.type.object.array.groovy | #F280EAde | — |
| storage.type.object.array.java | #F696F0de | — |
| storage.type.parameters.groovy | #56CD2Ade | — |
| storage.type.primitive.array.groovy | #63DA37de | — |
| storage.type.primitive.array.java | #59D52Bde | — |
| storage.type.primitive.groovy | #C8B6FBde | — |
| storage.type.primitive.java | #F590EEde | — |
| storage.type.rune.go | #08D775de | — |
| storage.type.string.go | #C5B02Ade | — |
| storage.type.token.java | #80C4F2de | — |
| storage.type.uintptr.go | #F48BEDde | — |
| storage.type.variable.cs | #C8B6FBde | — |
| string | #C5B02Ade | — |
| string.quoted.docstring.multi.python | #3ED4D46e | — |
| string.regexp | #C1A807de | — |
| string.tag | #3FDE94de | — |
| string.value | #6BB9EDde | — |
| strong | #B59DF7de | — |
| support.class | #31D88Ade | — |
| support.constant.color | #C5B029de | — |
| support.constant.dom | #83C5F3de | — |
| support.constant.font-name | #5BD72Ede | — |
| support.constant.handlebars | #D8BC08de | — |
| support.constant.json | #F693EFde | — |
| support.constant.math | #DCC008de | — |
| support.constant.media | #08C66Ede | — |
| support.constant.media-type | #C5B02Ade | — |
| support.constant.property-value | #DABD08de | — |
| support.function | #F8A5F3de | — |
| support.function.git-rebase | #F384EBde | — |
| support.other.parenthesis.regexp | #62B3EAde | — |
| support.type | #BAA3F8de | — |
| support.type.property-name | #D4B908de | — |
| support.type.vendored.property-name | #64B5EBde | — |
| support.variable | #B59DF7de | — |
| token.debug-token | #F58EEEde | — |
| token.error-token | #F698F0de | — |
| token.info-token | #3FD908de | — |
| token.warn-token | #F58E8Ede | — |
| variable | #5EB2E9de | — |
| variable.css | #69C2FDde | — |
| variable.language | #B8A0F8de | — |
| variable.language.wildcard.java | #08C86Fde | — |
| variable.other.constant | #08C66Dde | — |
| variable.other.definition.java | #F8A3A3de | — |
| variable.other.enummember | #F17FEAde | — |
| variable.other.less | #F58DEDde | — |
| variable.other.object.java | #07BE68de | — |
| variable.other.object.property.java | #DAC537de | — |
| variable.parameter.c | #CBB9FBde | — |
| variable.parameter.function.language.python | #F9A5A5de | — |
| variable.parameter.java | #CDB629de | — |
| variable.scss | #F79DF1de | — |
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}!`;
}