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 | #2E2E2E6e | — |
| comment.block.html | #2E2E2E6e | — |
| comment.block.java | #2E2E2E6e | — |
| comment.block.javadoc.java | #2E2E2E6e | — |
| comment.block.powershell | #2E2E2E6e | — |
| comment.block.xml | #2E2E2E6e | — |
| comment.line.double-slash.c | #2E2E2E6e | — |
| comment.line.double-slash.cpp | #2E2E2E6e | — |
| comment.line.double-slash.java | #2E2E2E6e | — |
| comment.line.double-slash.js | #2E2E2E6e | — |
| comment.line.number-sign.makefile | #2E2E2E6e | — |
| comment.line.number-sign.python | #2E2E2E6e | — |
| comment.line.number-sign.yaml | #2E2E2E6e | — |
| comment.line.percentage.erlang | #2E2E2E6e | — |
| comment.line.powershell | #2E2E2E6e | — |
| comment.source.cmake | #2E2E2E6e | — |
| comment.source.cmakecache | #2E2E2E6e | — |
| constant.character | #264638de | — |
| constant.character.character-class.regexp | #362A54de | — |
| constant.character.escape | #052C61de | — |
| constant.character.set.regexp | #303030de | — |
| constant.language | #332458de | — |
| constant.numeric | #134E35de | — |
| constant.numeric.dec.python | #0D4F32de | — |
| constant.other.caps.python | #462626de | — |
| constant.other.character-class.regexp | #143327de | — |
| constant.other.character-class.set.regexp | #2E2E2Ede | — |
| constant.other.color.rgb-value | #2E2E2Ede | — |
| constant.other.placeholder | #194F11de | — |
| constant.other.rgb-value | #343434de | — |
| constant.regexp | #303030de | — |
| constant.sha.git-rebase | #114E34de | — |
| emphasis | #28384Dde | — |
| entity.name.class | #21331Ede | — |
| entity.name.function | #184F0Fde | — |
| entity.name.function.preprocessor | #332458de | — |
| entity.name.function.python | #194F11de | — |
| entity.name.label | #531B1Bde | — |
| entity.name.namespace | #581616de | — |
| entity.name.operator | #442239de | — |
| entity.name.operator.custom-literal | #48213Cde | — |
| entity.name.scope-resolution | #4D2842de | — |
| entity.name.tag | #54133Ede | — |
| entity.name.tag.css | #4D2828de | — |
| entity.name.type | #682F58de | bold |
| entity.name.variable | #3C2D61de | — |
| entity.other.attribute | #342163de | — |
| entity.other.attribute-name | #3F2F68de | — |
| entity.other.attribute-name.class.css | #32284Dde | — |
| entity.other.attribute-name.class.mixin.css | #322654de | — |
| entity.other.attribute-name.id | #682F58de | — |
| entity.other.attribute-name.id.css | #122E52de | — |
| entity.other.attribute-name.parent-selector.css | #2E2E2Ede | — |
| entity.other.attribute-name.pseudo-class.css | #1D4F14de | — |
| entity.other.attribute-name.pseudo-element.css | #5C1111de | — |
| entity.other.attribute-name.scss | #462424de | — |
| entity.other.document.begin.yaml | #2E2E2E6e | — |
| entity.other.inherited-class | #2E2E2Ede | — |
| header | #612D2Dde | — |
| invalid | #194F11de | — |
| keyword | #4F1F1Fde | bold |
| keyword.codetag.notation.python | #551242de | bold |
| keyword.control | #682F2Fde | bold |
| keyword.control.anchor.regexp | #551242de | bold |
| keyword.control.import.python | #0F4E33de | bold |
| keyword.operator | #612D52de | bold |
| keyword.operator.alignas | #2E2E2Ede | bold |
| keyword.operator.alignof | #682F2Fde | bold |
| keyword.operator.cast | #213A2Fde | bold |
| keyword.operator.delete | #542A48de | bold |
| keyword.operator.documentation.powershell | #2E2E2E6e | bold |
| keyword.operator.expression | #581616de | bold |
| keyword.operator.instanceof | #414141de | bold |
| keyword.operator.logical.python | #343434de | bold |
| keyword.operator.minus.exponent | #4B2121de | bold |
| keyword.operator.negation.regexp | #163326de | bold |
| keyword.operator.new | #322654de | bold |
| keyword.operator.noexcept | #193416de | bold |
| keyword.operator.or.regexp | #481F3Cde | bold |
| keyword.operator.plus.exponent | #193514de | bold |
| keyword.operator.quantifier.regexp | #4F1F1Fde | bold |
| keyword.operator.sizeof | #2A3C54de | bold |
| keyword.operator.typeid | #5C1111de | bold |
| keyword.operator.wordlike | #392C5Ade | bold |
| keyword.other.operator | #1B2F4Ade | bold |
| keyword.other.package.java | #004194de | bold |
| keyword.other.unit | #3F2F68de | bold |
| keyword.other.using | #023520de | bold |
| markup.bold | #54133Ede | — |
| markup.changed | #143327de | — |
| markup.deleted | #342163de | — |
| markup.fenced_code.block.markdown | #472323de | — |
| markup.heading | #5B0544de | — |
| markup.inline.raw | #0B3605de | — |
| markup.inserted | #114E34de | — |
| markup.italic | #143527de | — |
| markup.raw.block.markdown | #264638de | — |
| markup.strikethrough | #5B0544de | — |
| markup.underline | #5A2C4Dde | — |
| meta.block.c | #5A2C4Dde | — |
| meta.block.c | #30284Cde | — |
| meta.class.java | #2E2E2Ede | — |
| meta.definition.variable.name | #2E2E2Ede | — |
| meta.diff.header | #612D2Dde | — |
| meta.embedded | #172E4Dde | — |
| meta.embedded.assembly | #341D6Bde | — |
| meta.function-call.arguments.python | #2E2E2Ede | — |
| meta.function-call.python | #342163de | — |
| meta.member.access.python | #193416de | — |
| meta.method.java | #4D2828de | — |
| meta.object-literal.key | #243A21de | — |
| meta.paragraph.markdown | #48213Cde | — |
| meta.preprocessor | #30284Cde | — |
| meta.preprocessor.numeric | #193416de | — |
| meta.preprocessor.string | #414141de | — |
| meta.scope.prerequisites.makefile | #004194de | — |
| meta.structure.dictionary.json.comments | #2E2E2E6e | — |
| meta.structure.dictionary.key.python | #1D4F14de | — |
| meta.structure.dictionary.value.json.comments | #2E2E2E6e | — |
| meta.template.expression | #5A2C2Cde | — |
| meta.type.cast.expr | #392C5Ade | bold |
| meta.type.new.expr | #542A2Ade | bold |
| parameter | #193514de | — |
| punctuation.character.set.begin.regexp | #143327de | — |
| punctuation.character.set.end.regexp | #052C61de | — |
| punctuation.definition.array.begin.json | #2A3C54de | — |
| punctuation.definition.character-class.regexp | #263446de | — |
| punctuation.definition.comment | #2E2E2E6e | — |
| punctuation.definition.comment.json.comments | #2E2E2E6e | — |
| punctuation.definition.comment.python | #2E2E2E6e | — |
| punctuation.definition.dictionary.begin.json | #184F0Fde | — |
| punctuation.definition.dictionary.end.json | #232F40de | — |
| punctuation.definition.group.assertion.regexp | #263446de | — |
| punctuation.definition.group.regexp | #264638de | — |
| punctuation.definition.list.begin.json | #2B0194de | — |
| punctuation.definition.list.begin.markdown | #2A3C54de | — |
| punctuation.definition.list.begin.python | #134E35de | — |
| punctuation.definition.list.end.json | #4F1F1Fde | — |
| punctuation.definition.list.end.markdown | #053521de | — |
| punctuation.definition.list.end.python | #5C1111de | — |
| punctuation.definition.parameters.begin.python | #2E2E2Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #3C2D61de | — |
| punctuation.definition.quote.begin.markdown | #4D1B3Fde | — |
| punctuation.definition.tag | #0D4F32de | — |
| punctuation.definition.template-expression.begin | #143527de | — |
| punctuation.definition.template-expression.end | #322654de | — |
| punctuation.section.class.begin.bracket.curly.java | #143527de | — |
| punctuation.section.embedded | #274023de | — |
| punctuation.section.embedded.begin.php | #542A48de | — |
| punctuation.section.embedded.end.php | #542A48de | — |
| punctuation.terminator.java | #2A0790de | — |
| source.cmake | #392C5Ade | — |
| source.coffee.embedded | #303030de | — |
| source.cpp | #32284Dde | — |
| source.css.less | #143327de | — |
| source.groovy.embedded | #362A54de | — |
| source.java | #51173Ede | — |
| source.java-properties | #004194de | — |
| source.json.comments | #2E2E2E6e | — |
| source.makefile | #263446de | — |
| source.powershell | #114E34de | — |
| source.powershell.variable.other.member | #2E2E2Ede | — |
| source.python | #154E36de | — |
| storage | #264638de | — |
| storage.modifier | #142E4Fde | — |
| storage.modifier.import.java | #5A2C2Cde | — |
| storage.modifier.package.java | #053521de | — |
| storage.type | #1F2E45de | bold |
| storage.type.annotation.groovy | #4D2828de | bold |
| storage.type.annotation.java | #1B2F4Ade | bold |
| storage.type.boolean.go | #3D3D3Dde | bold |
| storage.type.byte.go | #053601de | bold |
| storage.type.cs | #172E4Dde | bold |
| storage.type.error.go | #2E2E2Ede | bold |
| storage.type.generic.cs | #2D4461de | bold |
| storage.type.generic.groovy | #243A21de | bold |
| storage.type.generic.java | #193514de | bold |
| storage.type.groovy | #15500Cde | bold |
| storage.type.java | #143527de | bold |
| storage.type.modifier.cs | #194F11de | bold |
| storage.type.numeric.go | #0D4F32de | bold |
| storage.type.object.array.groovy | #232F40de | bold |
| storage.type.object.array.java | #193416de | bold |
| storage.type.parameters.groovy | #462424de | bold |
| storage.type.primitive.array.groovy | #5A2C2Cde | bold |
| storage.type.primitive.array.java | #54133Ede | bold |
| storage.type.primitive.groovy | #2E2E2Ede | bold |
| storage.type.primitive.java | #0B3605de | bold |
| storage.type.rune.go | #154E36de | bold |
| storage.type.string.go | #0F4E33de | bold |
| storage.type.token.java | #052C61de | bold |
| storage.type.uintptr.go | #4B2121de | bold |
| storage.type.variable.cs | #462424de | bold |
| string | #1F2E45de | — |
| string.quoted.docstring.multi.python | #2E2E2E6e | — |
| string.regexp | #4D1B3Fde | — |
| string.tag | #122E52de | — |
| string.value | #2B0194de | — |
| strong | #194F11de | — |
| support.class | #303030de | — |
| support.constant.color | #143527de | — |
| support.constant.dom | #542A2Ade | — |
| support.constant.font-name | #2E2E2Ede | — |
| support.constant.handlebars | #093522de | — |
| support.constant.json | #481F3Cde | — |
| support.constant.math | #343434de | — |
| support.constant.media | #2A4626de | — |
| support.constant.media-type | #163326de | bold |
| support.constant.property-value | #462626de | — |
| support.function | #053601de | — |
| support.function.git-rebase | #2E2E2Ede | — |
| support.other.parenthesis.regexp | #2B0194de | — |
| support.type | #5B0544de | bold |
| support.type.property-name | #1B2F4Ade | bold |
| support.type.vendored.property-name | #2E2E2Ede | bold |
| support.variable | #1D4F14de | — |
| token.debug-token | #362A54de | — |
| token.error-token | #172E4Dde | — |
| token.info-token | #682F58de | — |
| token.warn-token | #114E34de | — |
| variable | #28384Dde | — |
| variable.css | #3F2F68de | — |
| variable.language | #322654de | — |
| variable.language.wildcard.java | #2E2E2Ede | — |
| variable.other.constant | #004194de | — |
| variable.other.definition.java | #172E4Dde | — |
| variable.other.enummember | #114E34de | — |
| variable.other.less | #610505de | — |
| variable.other.object.java | #193514de | — |
| variable.other.object.property.java | #2E2E2Ede | — |
| variable.parameter.c | #053521de | — |
| variable.parameter.function.language.python | #114E34de | — |
| variable.parameter.java | #263446de | — |
| variable.scss | #4D2842de | — |
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}!`;
}