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 | #A1C5F56e | — |
| comment.block.html | #9DC7F06e | — |
| comment.block.java | #9DC7F06e | — |
| comment.block.javadoc.java | #A6C5F36e | — |
| comment.block.powershell | #ACC3F36e | — |
| comment.block.xml | #A6C5F36e | — |
| comment.line.double-slash.c | #A1C5F56e | — |
| comment.line.double-slash.cpp | #A6C5F36e | — |
| comment.line.double-slash.java | #ACC3F36e | — |
| comment.line.double-slash.js | #ACC3F36e | — |
| comment.line.number-sign.makefile | #ACC3F36e | — |
| comment.line.number-sign.python | #A1C5F56e | — |
| comment.line.number-sign.yaml | #A6C5F36e | — |
| comment.line.percentage.erlang | #A6C5F36e | — |
| comment.line.powershell | #ACC3F36e | — |
| comment.source.cmake | #A1C5F56e | — |
| comment.source.cmakecache | #9DC7F06e | — |
| constant.character | #10E145de | — |
| constant.character.character-class.regexp | #12E146de | — |
| constant.character.escape | #12E045de | — |
| constant.character.set.regexp | #C2C2C2de | — |
| constant.language | #34D4F6de | — |
| constant.numeric | #ECB176de | — |
| constant.numeric.dec.python | #DE83F0de | — |
| constant.other.caps.python | #F598AFde | — |
| constant.other.character-class.regexp | #EAAD70de | — |
| constant.other.character-class.set.regexp | #F0A9FEde | — |
| constant.other.color.rgb-value | #F0839Ede | — |
| constant.other.placeholder | #25D4F6de | — |
| constant.other.rgb-value | #25D4F6de | — |
| constant.regexp | #F9AEC1de | — |
| constant.sha.git-rebase | #C2C2C2de | — |
| emphasis | #C2C2C2de | — |
| entity.name.class | #86D713de | — |
| entity.name.function | #85D713de | — |
| entity.name.function.preprocessor | #F391AAde | — |
| entity.name.function.python | #10E145de | — |
| entity.name.label | #F0A9FEde | — |
| entity.name.namespace | #85D810de | — |
| entity.name.operator | #10E044de | — |
| entity.name.operator.custom-literal | #F0A9FEde | — |
| entity.name.scope-resolution | #E08AF1de | — |
| entity.name.tag | #2FD4F5de | — |
| entity.name.tag.css | #85D710de | — |
| entity.name.type | #12E145de | — |
| entity.name.variable | #86D713de | — |
| entity.other.attribute | #63CFE5de | — |
| entity.other.attribute-name | #63CFE5de | — |
| entity.other.attribute-name.class.css | #EC849Dde | — |
| entity.other.attribute-name.class.mixin.css | #C2C2C2de | — |
| entity.other.attribute-name.id | #85D713de | — |
| entity.other.attribute-name.id.css | #D983EAde | — |
| entity.other.attribute-name.parent-selector.css | #32D4F4de | — |
| entity.other.attribute-name.pseudo-class.css | #D983EAde | — |
| entity.other.attribute-name.pseudo-element.css | #DB82EDde | — |
| entity.other.attribute-name.scss | #85D713de | — |
| entity.other.document.begin.yaml | #9DC7F06e | — |
| entity.other.inherited-class | #FDB368de | — |
| header | #EC849Dde | — |
| invalid | #86D713de | — |
| keyword | #85D713de | — |
| keyword.codetag.notation.python | #F598AFde | — |
| keyword.control | #12E045de | — |
| keyword.control.anchor.regexp | #E391F3de | — |
| keyword.control.import.python | #82D80Dde | — |
| keyword.operator | #A6A6A6de | — |
| keyword.operator.alignas | #E7A869de | — |
| keyword.operator.alignof | #12E045de | — |
| keyword.operator.cast | #12E145de | — |
| keyword.operator.delete | #FBB46Ede | — |
| keyword.operator.documentation.powershell | #ACC3F36e | — |
| keyword.operator.expression | #DC80EEde | — |
| keyword.operator.instanceof | #34D4F6de | — |
| keyword.operator.logical.python | #E7A869de | — |
| keyword.operator.minus.exponent | #F69FB5de | — |
| keyword.operator.negation.regexp | #0AE041de | — |
| keyword.operator.new | #12E146de | — |
| keyword.operator.noexcept | #35D4F5de | — |
| keyword.operator.or.regexp | #FBB46Cde | — |
| keyword.operator.plus.exponent | #85D712de | — |
| keyword.operator.quantifier.regexp | #FCB46Fde | — |
| keyword.operator.sizeof | #AFAFAFde | — |
| keyword.operator.typeid | #C2C2C2de | — |
| keyword.operator.wordlike | #A6A6A6de | — |
| keyword.other.operator | #85D710de | — |
| keyword.other.package.java | #FBB46Cde | — |
| keyword.other.unit | #11E146de | — |
| keyword.other.using | #FEACC1de | — |
| markup.bold | #DE83F0de | — |
| markup.changed | #2ED4F4de | — |
| markup.deleted | #FCB46Ede | — |
| markup.fenced_code.block.markdown | #F18AA4de | — |
| markup.heading | #11E146de | — |
| markup.inline.raw | #EFA3FEde | — |
| markup.inserted | #12E145de | — |
| markup.italic | #EB859Fde | — |
| markup.raw.block.markdown | #12E046de | — |
| markup.strikethrough | #EAA7F7de | — |
| markup.underline | #0CE043de | — |
| meta.block.c | #2ED4F4de | — |
| meta.block.c | #82D80Dde | — |
| meta.class.java | #EE849Ede | — |
| meta.definition.variable.name | #F69FB5de | — |
| meta.diff.header | #35D4F5de | — |
| meta.embedded | #86D713de | — |
| meta.embedded.assembly | #FCB46Bde | — |
| meta.function-call.arguments.python | #F9AEC1de | — |
| meta.function-call.python | #EC849Dde | — |
| meta.member.access.python | #12E145de | — |
| meta.method.java | #85D812de | — |
| meta.object-literal.key | #EEB57Dde | — |
| meta.paragraph.markdown | #10E145de | — |
| meta.preprocessor | #EE849Ede | — |
| meta.preprocessor.numeric | #C1C1C1de | — |
| meta.preprocessor.string | #2BD4F6de | — |
| meta.scope.prerequisites.makefile | #EE839Ede | — |
| meta.structure.dictionary.json.comments | #9DC7F06e | — |
| meta.structure.dictionary.key.python | #85D812de | — |
| meta.structure.dictionary.value.json.comments | #A1C5F56e | — |
| meta.template.expression | #12E145de | — |
| meta.type.cast.expr | #EEB57Dde | — |
| meta.type.new.expr | #E391F3de | — |
| parameter | #86D713de | — |
| punctuation.character.set.begin.regexp | #11E146de | — |
| punctuation.character.set.end.regexp | #63CFE5de | — |
| punctuation.definition.array.begin.json | #E7A869de | — |
| punctuation.definition.character-class.regexp | #C2C2C2de | — |
| punctuation.definition.comment | #9DC7F06e | — |
| punctuation.definition.comment.json.comments | #ACC3F36e | — |
| punctuation.definition.comment.python | #9DC7F06e | — |
| punctuation.definition.dictionary.begin.json | #AFAFAFde | — |
| punctuation.definition.dictionary.end.json | #EFAAFEde | — |
| punctuation.definition.group.assertion.regexp | #30D4F4de | — |
| punctuation.definition.group.regexp | #EFAAFEde | — |
| punctuation.definition.list.begin.json | #35D4F5de | — |
| punctuation.definition.list.begin.markdown | #12E046de | — |
| punctuation.definition.list.begin.python | #85D810de | — |
| punctuation.definition.list.end.json | #FEABC0de | — |
| punctuation.definition.list.end.markdown | #10E145de | — |
| punctuation.definition.list.end.python | #B3B3B3de | — |
| punctuation.definition.parameters.begin.python | #12E146de | — |
| punctuation.definition.parameters.end.bracket.round.java | #82D80Dde | — |
| punctuation.definition.quote.begin.markdown | #FCB46Ede | — |
| punctuation.definition.tag | #FCB46Cde | — |
| punctuation.definition.template-expression.begin | #2FD4F5de | — |
| punctuation.definition.template-expression.end | #EAAD70de | — |
| punctuation.section.class.begin.bracket.curly.java | #83D90Bde | — |
| punctuation.section.embedded | #E89FF6de | — |
| punctuation.section.embedded.begin.php | #AFAFAFde | — |
| punctuation.section.embedded.end.php | #B8B8B8de | — |
| punctuation.terminator.java | #F7A7BBde | — |
| source.cmake | #EFAAFEde | — |
| source.coffee.embedded | #83D90Bde | — |
| source.cpp | #FBB46Ade | — |
| source.css.less | #0CE143de | — |
| source.groovy.embedded | #C2C2C2de | — |
| source.java | #F391AAde | — |
| source.java-properties | #25D4F6de | — |
| source.json.comments | #ACC3F36e | — |
| source.makefile | #F598AFde | — |
| source.powershell | #C2C2C2de | — |
| source.powershell.variable.other.member | #FCB46Bde | — |
| source.python | #85D710de | — |
| storage | #DE83F0de | — |
| storage.modifier | #C2C2C2de | — |
| storage.modifier.import.java | #85D812de | — |
| storage.modifier.package.java | #FBB46Cde | — |
| storage.type | #FCB46Ede | — |
| storage.type.annotation.groovy | #F18AA4de | — |
| storage.type.annotation.java | #2BD4F6de | — |
| storage.type.boolean.go | #EEB57Dde | — |
| storage.type.byte.go | #0CE143de | — |
| storage.type.cs | #EFA3FEde | — |
| storage.type.error.go | #12E146de | — |
| storage.type.generic.cs | #ECB176de | — |
| storage.type.generic.groovy | #85D712de | — |
| storage.type.generic.java | #FEB369de | — |
| storage.type.groovy | #35D4F5de | — |
| storage.type.java | #10E044de | — |
| storage.type.modifier.cs | #FCB46Fde | — |
| storage.type.numeric.go | #34D4F6de | — |
| storage.type.object.array.groovy | #86D713de | — |
| storage.type.object.array.java | #2ED4F4de | — |
| storage.type.parameters.groovy | #C2C2C2de | — |
| storage.type.primitive.array.groovy | #27D4F6de | — |
| storage.type.primitive.array.java | #32D4F4de | — |
| storage.type.primitive.groovy | #DA82ECde | — |
| storage.type.primitive.java | #12E045de | — |
| storage.type.rune.go | #83D90Bde | — |
| storage.type.string.go | #ECB176de | — |
| storage.type.token.java | #F0A9FEde | — |
| storage.type.uintptr.go | #0EE143de | — |
| storage.type.variable.cs | #0EE143de | — |
| string | #AFAFAFde | — |
| string.quoted.docstring.multi.python | #ACC3F36e | — |
| string.regexp | #0AE041de | — |
| string.tag | #C1C1C1de | — |
| string.value | #12E145de | — |
| strong | #30D4F4de | — |
| support.class | #85D713de | — |
| support.constant.color | #C2C2C2de | — |
| support.constant.dom | #F7A7BBde | — |
| support.constant.font-name | #EFAAFEde | — |
| support.constant.handlebars | #85D712de | — |
| support.constant.json | #C2C2C2de | — |
| support.constant.math | #EB859Fde | — |
| support.constant.media | #D982EBde | — |
| support.constant.media-type | #ECB176de | — |
| support.constant.property-value | #FEB369de | — |
| support.function | #84D810de | — |
| support.function.git-rebase | #C2C2C2de | — |
| support.other.parenthesis.regexp | #B8B8B8de | — |
| support.type | #2ED4F4de | — |
| support.type.property-name | #2ED4F4de | — |
| support.type.vendored.property-name | #86D713de | — |
| support.variable | #12E045de | — |
| token.debug-token | #E391F3de | — |
| token.error-token | #C2C2C2de | — |
| token.info-token | #F0A9FEde | — |
| token.warn-token | #EAAD70de | — |
| variable | #DB82EDde | — |
| variable.css | #85D713de | — |
| variable.language | #FEABC0de | — |
| variable.language.wildcard.java | #85D713de | — |
| variable.other.constant | #FEB369de | — |
| variable.other.definition.java | #FEACC1de | — |
| variable.other.enummember | #DC80EEde | — |
| variable.other.less | #E89FF6de | — |
| variable.other.object.java | #C2C2C2de | — |
| variable.other.object.property.java | #C2C2C2de | — |
| variable.parameter.c | #31D4F4de | — |
| variable.parameter.function.language.python | #85D713de | — |
| variable.parameter.java | #0CE143de | — |
| variable.scss | #E7A869de | — |
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}!`;
}