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 | #4F154F6e | — |
| comment.block.html | #4F154F6e | — |
| comment.block.java | #2F2F2F6e | — |
| comment.block.javadoc.java | #4F154F6e | — |
| comment.block.powershell | #4F174F6e | — |
| comment.block.xml | #4F154F6e | — |
| comment.line.double-slash.c | #2F2F2F6e | — |
| comment.line.double-slash.cpp | #4F154F6e | — |
| comment.line.double-slash.java | #4F174F6e | — |
| comment.line.double-slash.js | #2F2F2F6e | — |
| comment.line.number-sign.makefile | #4F174F6e | — |
| comment.line.number-sign.python | #4F174F6e | — |
| comment.line.number-sign.yaml | #4F154F6e | — |
| comment.line.percentage.erlang | #2F2F2F6e | — |
| comment.line.powershell | #4F174F6e | — |
| comment.source.cmake | #2F2F2F6e | — |
| comment.source.cmakecache | #4F154F6e | — |
| constant.character | #592136de | — |
| constant.character.character-class.regexp | #113618de | — |
| constant.character.escape | #12361Ade | — |
| constant.character.set.regexp | #103436de | — |
| constant.language | #0D5119de | — |
| constant.numeric | #1E494Cde | — |
| constant.numeric.dec.python | #223403de | — |
| constant.other.caps.python | #5E0A29de | — |
| constant.other.character-class.regexp | #05370Fde | — |
| constant.other.character-class.set.regexp | #212470de | — |
| constant.other.color.rgb-value | #094D51de | — |
| constant.other.placeholder | #12361Ade | — |
| constant.other.rgb-value | #212768de | — |
| constant.regexp | #1C4245de | — |
| constant.sha.git-rebase | #104D52de | — |
| emphasis | #09129Cde | — |
| entity.name.class | #2C3818de | — |
| entity.name.function | #402B18de | — |
| entity.name.function.preprocessor | #422910de | — |
| entity.name.function.python | #1F2375de | — |
| entity.name.label | #1A3E21de | — |
| entity.name.namespace | #1C4245de | — |
| entity.name.operator | #0D5119de | — |
| entity.name.operator.custom-literal | #263310de | — |
| entity.name.scope-resolution | #593D21de | — |
| entity.name.tag | #1E4C26de | — |
| entity.name.tag.css | #344D0Cde | — |
| entity.name.type | #620326de | bold |
| entity.name.variable | #56182Fde | — |
| entity.other.attribute | #501D30de | — |
| entity.other.attribute-name | #223403de | — |
| entity.other.attribute-name.class.css | #1C4523de | — |
| entity.other.attribute-name.class.mixin.css | #354C10de | — |
| entity.other.attribute-name.id | #0B5119de | — |
| entity.other.attribute-name.id.css | #68243Dde | — |
| entity.other.attribute-name.parent-selector.css | #693A0Cde | — |
| entity.other.attribute-name.pseudo-class.css | #422910de | — |
| entity.other.attribute-name.pseudo-element.css | #412A13de | — |
| entity.other.attribute-name.scss | #232766de | — |
| entity.other.document.begin.yaml | #2F2F2F6e | — |
| entity.other.inherited-class | #422A11de | — |
| header | #68243Dde | — |
| invalid | #2C3818de | — |
| keyword | #0F511Bde | bold |
| keyword.codetag.notation.python | #4B2159de | bold |
| keyword.control | #212768de | bold |
| keyword.control.anchor.regexp | #103437de | bold |
| keyword.control.import.python | #113436de | bold |
| keyword.operator | #103437de | bold |
| keyword.operator.alignas | #103436de | bold |
| keyword.operator.alignof | #104D52de | bold |
| keyword.operator.cast | #094D51de | bold |
| keyword.operator.delete | #0D4D51de | bold |
| keyword.operator.documentation.powershell | #2F2F2F6e | bold |
| keyword.operator.expression | #402A15de | bold |
| keyword.operator.instanceof | #242866de | bold |
| keyword.operator.logical.python | #242868de | bold |
| keyword.operator.minus.exponent | #5C102Bde | bold |
| keyword.operator.negation.regexp | #58142Dde | bold |
| keyword.operator.new | #620326de | bold |
| keyword.operator.noexcept | #242868de | bold |
| keyword.operator.or.regexp | #242866de | bold |
| keyword.operator.plus.exponent | #5C0E2Bde | bold |
| keyword.operator.quantifier.regexp | #4D0F62de | bold |
| keyword.operator.sizeof | #461C53de | bold |
| keyword.operator.typeid | #60233Ade | bold |
| keyword.operator.wordlike | #12361Ade | bold |
| keyword.other.operator | #402B18de | bold |
| keyword.other.package.java | #402A15de | bold |
| keyword.other.unit | #103617de | bold |
| keyword.other.using | #451D52de | bold |
| markup.bold | #4B2159de | — |
| markup.changed | #344D0Cde | — |
| markup.deleted | #095117de | — |
| markup.fenced_code.block.markdown | #1A3E21de | — |
| markup.heading | #451F53de | — |
| markup.inline.raw | #402A15de | — |
| markup.inserted | #242866de | — |
| markup.italic | #223403de | — |
| markup.raw.block.markdown | #212470de | — |
| markup.strikethrough | #3E2C1Ade | — |
| markup.underline | #5C102Bde | — |
| meta.block.c | #09129Cde | — |
| meta.block.c | #05370Fde | — |
| meta.class.java | #593D21de | — |
| meta.definition.variable.name | #243309de | — |
| meta.diff.header | #501D30de | — |
| meta.embedded | #422910de | — |
| meta.embedded.assembly | #531A30de | — |
| meta.function-call.arguments.python | #4C351Ede | — |
| meta.function-call.python | #4C351Ede | — |
| meta.member.access.python | #242866de | — |
| meta.method.java | #12361Ade | — |
| meta.object-literal.key | #354C10de | — |
| meta.paragraph.markdown | #232766de | — |
| meta.preprocessor | #4C351Ede | — |
| meta.preprocessor.numeric | #1C4245de | — |
| meta.preprocessor.string | #23286Ade | — |
| meta.scope.prerequisites.makefile | #512360de | — |
| meta.structure.dictionary.json.comments | #4F154F6e | — |
| meta.structure.dictionary.key.python | #183638de | — |
| meta.structure.dictionary.value.json.comments | #4F174F6e | — |
| meta.template.expression | #412A13de | — |
| meta.type.cast.expr | #10501Cde | bold |
| meta.type.new.expr | #212470de | bold |
| parameter | #461F52de | — |
| punctuation.character.set.begin.regexp | #521F32de | — |
| punctuation.character.set.end.regexp | #501D30de | — |
| punctuation.definition.array.begin.json | #252A6Fde | — |
| punctuation.definition.character-class.regexp | #0B4D51de | — |
| punctuation.definition.comment | #2F2F2F6e | — |
| punctuation.definition.comment.json.comments | #4F154F6e | — |
| punctuation.definition.comment.python | #4F174F6e | — |
| punctuation.definition.dictionary.begin.json | #572468de | — |
| punctuation.definition.dictionary.end.json | #462708de | — |
| punctuation.definition.group.assertion.regexp | #451F53de | — |
| punctuation.definition.group.regexp | #05370Fde | — |
| punctuation.definition.list.begin.json | #1A3C3Ede | — |
| punctuation.definition.list.begin.markdown | #113618de | — |
| punctuation.definition.list.begin.python | #412A13de | — |
| punctuation.definition.list.end.json | #4D0D63de | — |
| punctuation.definition.list.end.markdown | #521F32de | — |
| punctuation.definition.list.end.python | #242868de | — |
| punctuation.definition.parameters.begin.python | #354C11de | — |
| punctuation.definition.parameters.end.bracket.round.java | #344C0Ede | — |
| punctuation.definition.quote.begin.markdown | #263311de | — |
| punctuation.definition.tag | #4B2159de | — |
| punctuation.definition.template-expression.begin | #263311de | — |
| punctuation.definition.template-expression.end | #232766de | — |
| punctuation.section.class.begin.bracket.curly.java | #35451Cde | — |
| punctuation.section.embedded | #5E0A29de | — |
| punctuation.section.embedded.begin.php | #462708de | — |
| punctuation.section.embedded.end.php | #1F2375de | — |
| punctuation.terminator.java | #103617de | — |
| source.cmake | #422A11de | — |
| source.coffee.embedded | #2C3818de | — |
| source.cpp | #5C256Fde | — |
| source.css.less | #18381Ede | — |
| source.groovy.embedded | #1C217Cde | — |
| source.java | #273214de | — |
| source.java-properties | #0B5119de | — |
| source.json.comments | #4F174F6e | — |
| source.makefile | #113618de | — |
| source.powershell | #1E494Cde | — |
| source.powershell.variable.other.member | #354C11de | — |
| source.python | #68243Dde | — |
| storage | #243309de | — |
| storage.modifier | #103617de | — |
| storage.modifier.import.java | #592136de | — |
| storage.modifier.package.java | #113618de | — |
| storage.type | #52391Fde | bold |
| storage.type.annotation.groovy | #232766de | bold |
| storage.type.annotation.java | #1E494Cde | bold |
| storage.type.boolean.go | #69390Ade | bold |
| storage.type.byte.go | #263311de | bold |
| storage.type.cs | #1A3E21de | bold |
| storage.type.error.go | #1A3C3Ede | bold |
| storage.type.generic.cs | #1C4245de | bold |
| storage.type.generic.groovy | #1E4C26de | bold |
| storage.type.generic.java | #104D52de | bold |
| storage.type.groovy | #242868de | bold |
| storage.type.java | #0D5119de | bold |
| storage.type.modifier.cs | #512360de | bold |
| storage.type.numeric.go | #113618de | bold |
| storage.type.object.array.groovy | #56182Fde | bold |
| storage.type.object.array.java | #521F32de | bold |
| storage.type.parameters.groovy | #1C4523de | bold |
| storage.type.primitive.array.groovy | #0B5119de | bold |
| storage.type.primitive.array.java | #10501Cde | bold |
| storage.type.primitive.groovy | #222768de | bold |
| storage.type.primitive.java | #462708de | bold |
| storage.type.rune.go | #482703de | bold |
| storage.type.string.go | #344D0Cde | bold |
| storage.type.token.java | #223403de | bold |
| storage.type.uintptr.go | #35451Cde | bold |
| storage.type.variable.cs | #461F52de | bold |
| string | #6C3807de | — |
| string.quoted.docstring.multi.python | #2F2F2F6e | — |
| string.regexp | #113618de | — |
| string.tag | #501D30de | — |
| string.value | #4E0C64de | — |
| strong | #033538de | — |
| support.class | #223403de | — |
| support.constant.color | #212470de | — |
| support.constant.dom | #500368de | — |
| support.constant.font-name | #461C53de | — |
| support.constant.handlebars | #103617de | — |
| support.constant.json | #482703de | — |
| support.constant.math | #133337de | — |
| support.constant.media | #56182Fde | — |
| support.constant.media-type | #1C4245de | bold |
| support.constant.property-value | #18381Ede | — |
| support.function | #344D0Ade | — |
| support.function.git-rebase | #0D5119de | — |
| support.other.parenthesis.regexp | #592136de | — |
| support.type | #103437de | bold |
| support.type.property-name | #232768de | bold |
| support.type.vendored.property-name | #5C0E2Bde | bold |
| support.variable | #402A15de | — |
| token.debug-token | #0B4D51de | — |
| token.error-token | #1A3E21de | — |
| token.info-token | #103437de | — |
| token.warn-token | #05370Fde | — |
| variable | #113618de | — |
| variable.css | #09129Cde | — |
| variable.language | #232768de | — |
| variable.language.wildcard.java | #620326de | — |
| variable.other.constant | #620326de | — |
| variable.other.definition.java | #500368de | — |
| variable.other.enummember | #35451Cde | — |
| variable.other.less | #133337de | — |
| variable.other.object.java | #5C102Bde | — |
| variable.other.object.property.java | #4D0D63de | — |
| variable.parameter.c | #693A0Cde | — |
| variable.parameter.function.language.python | #113618de | — |
| variable.parameter.java | #212470de | — |
| variable.scss | #10501Cde | — |
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}!`;
}