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 | #574A2F6e | — |
| comment.block.html | #524A2F6e | — |
| comment.block.java | #574A2F6e | — |
| comment.block.javadoc.java | #594B306e | — |
| comment.block.powershell | #574A2F6e | — |
| comment.block.xml | #524A2F6e | — |
| comment.line.double-slash.c | #594B306e | — |
| comment.line.double-slash.cpp | #594B306e | — |
| comment.line.double-slash.java | #594B306e | — |
| comment.line.double-slash.js | #524A2F6e | — |
| comment.line.number-sign.makefile | #574A2F6e | — |
| comment.line.number-sign.python | #574A2F6e | — |
| comment.line.number-sign.yaml | #524A2F6e | — |
| comment.line.percentage.erlang | #524A2F6e | — |
| comment.line.powershell | #594B306e | — |
| comment.source.cmake | #574A2F6e | — |
| comment.source.cmakecache | #524A2F6e | — |
| constant.character | #48391Dde | — |
| constant.character.character-class.regexp | #850B8Fde | — |
| constant.character.escape | #0A4157de | — |
| constant.character.set.regexp | #48391Dde | — |
| constant.language | #48391Dde | — |
| constant.numeric | #860A8Fde | — |
| constant.numeric.dec.python | #8B2A37de | — |
| constant.other.caps.python | #9C0A1Ede | — |
| constant.other.character-class.regexp | #3A2ED1de | — |
| constant.other.character-class.set.regexp | #9C081Dde | — |
| constant.other.color.rgb-value | #6E2773de | — |
| constant.other.placeholder | #094760de | — |
| constant.other.rgb-value | #870892de | — |
| constant.regexp | #2A5707de | — |
| constant.sha.git-rebase | #0A5927de | — |
| emphasis | #564321de | — |
| entity.name.class | #094760de | — |
| entity.name.function | #0A5927de | — |
| entity.name.function.preprocessor | #2A5806de | — |
| entity.name.function.python | #0A5927de | — |
| entity.name.label | #870990de | — |
| entity.name.namespace | #392ED1de | — |
| entity.name.operator | #214756de | — |
| entity.name.operator.custom-literal | #694609de | — |
| entity.name.scope-resolution | #9C081Dde | — |
| entity.name.tag | #870892de | — |
| entity.name.tag.css | #564321de | — |
| entity.name.type | #382DD0de | bold |
| entity.name.variable | #564321de | — |
| entity.other.attribute | #382EC3de | — |
| entity.other.attribute-name | #5D4822de | — |
| entity.other.attribute-name.class.css | #36531Fde | — |
| entity.other.attribute-name.class.mixin.css | #9C091Ede | — |
| entity.other.attribute-name.id | #68470Bde | — |
| entity.other.attribute-name.id.css | #224C5Dde | — |
| entity.other.attribute-name.parent-selector.css | #4F3E1Fde | — |
| entity.other.attribute-name.pseudo-class.css | #684607de | — |
| entity.other.attribute-name.pseudo-element.css | #2A5809de | — |
| entity.other.attribute-name.scss | #7A2880de | — |
| entity.other.document.begin.yaml | #594B306e | — |
| entity.other.inherited-class | #68470Bde | — |
| header | #9D061Bde | — |
| invalid | #0A4157de | — |
| keyword | #1605FDde | bold |
| keyword.codetag.notation.python | #392DCFde | bold |
| keyword.control | #2B570Ade | bold |
| keyword.control.anchor.regexp | #0A5725de | bold |
| keyword.control.import.python | #235165de | bold |
| keyword.operator | #362DAAde | bold |
| keyword.operator.alignas | #36531Fde | bold |
| keyword.operator.alignof | #3A2ECFde | bold |
| keyword.operator.cast | #0A5826de | bold |
| keyword.operator.delete | #0B4157de | bold |
| keyword.operator.documentation.powershell | #6049326e | bold |
| keyword.operator.expression | #0A4861de | bold |
| keyword.operator.instanceof | #9D0519de | bold |
| keyword.operator.logical.python | #9C0A1Ede | bold |
| keyword.operator.minus.exponent | #8B2A38de | bold |
| keyword.operator.negation.regexp | #2B560Ade | bold |
| keyword.operator.new | #0A506Dde | bold |
| keyword.operator.noexcept | #732732de | bold |
| keyword.operator.or.regexp | #8C2937de | bold |
| keyword.operator.plus.exponent | #8C2937de | bold |
| keyword.operator.quantifier.regexp | #3B2DD0de | bold |
| keyword.operator.sizeof | #332C99de | bold |
| keyword.operator.typeid | #2B570Bde | bold |
| keyword.operator.wordlike | #2B570Ade | bold |
| keyword.other.operator | #9D071Dde | bold |
| keyword.other.package.java | #9D071Cde | bold |
| keyword.other.unit | #870692de | bold |
| keyword.other.using | #2A550Ade | bold |
| markup.bold | #382EC3de | — |
| markup.changed | #8B2A37de | — |
| markup.deleted | #8C2938de | — |
| markup.fenced_code.block.markdown | #2A5808de | — |
| markup.heading | #68470Bde | — |
| markup.inline.raw | #68470Ade | — |
| markup.inserted | #870692de | — |
| markup.italic | #0B445Bde | — |
| markup.raw.block.markdown | #3B2DD0de | — |
| markup.strikethrough | #870591de | — |
| markup.underline | #59225Dde | — |
| meta.block.c | #295805de | — |
| meta.block.c | #235165de | — |
| meta.class.java | #094B20de | — |
| meta.definition.variable.name | #235061de | — |
| meta.diff.header | #870991de | — |
| meta.embedded | #850B8Fde | — |
| meta.embedded.assembly | #312A8Ade | — |
| meta.function-call.arguments.python | #732732de | — |
| meta.function-call.python | #870991de | — |
| meta.member.access.python | #295805de | — |
| meta.method.java | #0A506Dde | — |
| meta.object-literal.key | #8B2A37de | — |
| meta.paragraph.markdown | #694609de | — |
| meta.preprocessor | #850B8Fde | — |
| meta.preprocessor.numeric | #205634de | — |
| meta.preprocessor.string | #0B445Bde | — |
| meta.scope.prerequisites.makefile | #2A550Ade | — |
| meta.structure.dictionary.json.comments | #574A2F6e | — |
| meta.structure.dictionary.key.python | #8C2937de | — |
| meta.structure.dictionary.value.json.comments | #6049326e | — |
| meta.template.expression | #1F4F30de | — |
| meta.type.cast.expr | #68470Bde | bold |
| meta.type.new.expr | #094760de | bold |
| parameter | #7B2834de | — |
| punctuation.character.set.begin.regexp | #860A8Fde | — |
| punctuation.character.set.end.regexp | #8B2A38de | — |
| punctuation.definition.array.begin.json | #085122de | — |
| punctuation.definition.character-class.regexp | #0B526Fde | — |
| punctuation.definition.comment | #574A2F6e | — |
| punctuation.definition.comment.json.comments | #574A2F6e | — |
| punctuation.definition.comment.python | #594B306e | — |
| punctuation.definition.dictionary.begin.json | #245264de | — |
| punctuation.definition.dictionary.end.json | #3B2DCFde | — |
| punctuation.definition.group.assertion.regexp | #8C2938de | — |
| punctuation.definition.group.regexp | #5C4721de | — |
| punctuation.definition.list.begin.json | #2A550Ade | — |
| punctuation.definition.list.begin.markdown | #085122de | — |
| punctuation.definition.list.begin.python | #69460Ade | — |
| punctuation.definition.list.end.json | #3B2DCFde | — |
| punctuation.definition.list.end.markdown | #0B5370de | — |
| punctuation.definition.list.end.python | #67460Ade | — |
| punctuation.definition.parameters.begin.python | #59225Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #0A4157de | — |
| punctuation.definition.quote.begin.markdown | #860B90de | — |
| punctuation.definition.tag | #7C2982de | — |
| punctuation.definition.template-expression.begin | #205533de | — |
| punctuation.definition.template-expression.end | #850A8Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #3B2DD0de | — |
| punctuation.section.embedded | #235165de | — |
| punctuation.section.embedded.begin.php | #68470Bde | — |
| punctuation.section.embedded.end.php | #2B560Ade | — |
| punctuation.terminator.java | #7B2881de | — |
| source.cmake | #2B570Ade | — |
| source.coffee.embedded | #2A550Ade | — |
| source.cpp | #8A2936de | — |
| source.css.less | #362DAAde | — |
| source.groovy.embedded | #694608de | — |
| source.java | #352CA2de | — |
| source.java-properties | #9C0A1Ede | — |
| source.json.comments | #574A2F6e | — |
| source.makefile | #5C4721de | — |
| source.powershell | #2A5808de | — |
| source.powershell.variable.other.member | #2A5806de | — |
| source.python | #0B4157de | — |
| storage | #372DB2de | — |
| storage.modifier | #850B8Fde | — |
| storage.modifier.import.java | #59225Dde | — |
| storage.modifier.package.java | #7B2881de | — |
| storage.type | #6A4505de | bold |
| storage.type.annotation.groovy | #8B2A37de | bold |
| storage.type.annotation.java | #344F1Fde | bold |
| storage.type.boolean.go | #0B526Fde | bold |
| storage.type.byte.go | #0B5726de | bold |
| storage.type.cs | #3A2ED1de | bold |
| storage.type.error.go | #382DBAde | bold |
| storage.type.generic.cs | #245264de | bold |
| storage.type.generic.groovy | #8A2936de | bold |
| storage.type.generic.java | #684607de | bold |
| storage.type.groovy | #1605FDde | bold |
| storage.type.java | #0A506Dde | bold |
| storage.type.modifier.cs | #0B526Fde | bold |
| storage.type.numeric.go | #5D4822de | bold |
| storage.type.object.array.groovy | #245264de | bold |
| storage.type.object.array.java | #245264de | bold |
| storage.type.parameters.groovy | #2A5809de | bold |
| storage.type.primitive.array.groovy | #392ECBde | bold |
| storage.type.primitive.array.java | #382DD1de | bold |
| storage.type.primitive.groovy | #1508BEde | bold |
| storage.type.primitive.java | #2B570Ade | bold |
| storage.type.rune.go | #87078Fde | bold |
| storage.type.string.go | #0A5826de | bold |
| storage.type.token.java | #2B570Bde | bold |
| storage.type.uintptr.go | #2A5707de | bold |
| storage.type.variable.cs | #69460Ade | bold |
| string | #1D3C48de | — |
| string.quoted.docstring.multi.python | #574A2F6e | — |
| string.regexp | #6A4505de | — |
| string.tag | #3A2ED1de | — |
| string.value | #205634de | — |
| strong | #3B2ED1de | — |
| support.class | #0B5826de | — |
| support.constant.color | #5D4822de | — |
| support.constant.dom | #375520de | — |
| support.constant.font-name | #694606de | — |
| support.constant.handlebars | #372DB2de | — |
| support.constant.json | #9D071Dde | — |
| support.constant.math | #9D0A1Fde | — |
| support.constant.media | #7B2881de | — |
| support.constant.media-type | #860990de | bold |
| support.constant.property-value | #245264de | — |
| support.function | #7B2834de | — |
| support.function.git-rebase | #75287Bde | — |
| support.other.parenthesis.regexp | #68470Bde | — |
| support.type | #7B2880de | bold |
| support.type.property-name | #0B5826de | bold |
| support.type.vendored.property-name | #375520de | bold |
| support.variable | #0B5370de | — |
| token.debug-token | #2A550Ade | — |
| token.error-token | #602464de | — |
| token.info-token | #59225Dde | — |
| token.warn-token | #5C4721de | — |
| variable | #7A2880de | — |
| variable.css | #69460Ade | — |
| variable.language | #245264de | — |
| variable.language.wildcard.java | #0A5825de | — |
| variable.other.constant | #094157de | — |
| variable.other.definition.java | #344F1Fde | — |
| variable.other.enummember | #295805de | — |
| variable.other.less | #214756de | — |
| variable.other.object.java | #235063de | — |
| variable.other.object.property.java | #5C4721de | — |
| variable.parameter.c | #604922de | — |
| variable.parameter.function.language.python | #0A5826de | — |
| variable.parameter.java | #0B5370de | — |
| variable.scss | #30481Dde | — |
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}!`;
}