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 | #5C12126e | — |
| comment.block.html | #5A14146e | — |
| comment.block.java | #5A14146e | — |
| comment.block.javadoc.java | #5B12126e | — |
| comment.block.powershell | #5C12126e | — |
| comment.block.xml | #5B12126e | — |
| comment.line.double-slash.c | #5B13136e | — |
| comment.line.double-slash.cpp | #5B13136e | — |
| comment.line.double-slash.java | #5B12126e | — |
| comment.line.double-slash.js | #5B13136e | — |
| comment.line.number-sign.makefile | #5A14146e | — |
| comment.line.number-sign.python | #5B13136e | — |
| comment.line.number-sign.yaml | #5A14146e | — |
| comment.line.percentage.erlang | #5C12126e | — |
| comment.line.powershell | #5C12126e | — |
| comment.source.cmake | #5B13136e | — |
| comment.source.cmakecache | #5A14146e | — |
| constant.character | #0F4E39de | — |
| constant.character.character-class.regexp | #4E1C40de | — |
| constant.character.escape | #3B186Fde | — |
| constant.character.set.regexp | #2E2E2Ede | — |
| constant.language | #13500Bde | — |
| constant.numeric | #143511de | — |
| constant.numeric.dec.python | #143511de | — |
| constant.other.caps.python | #214E1Cde | — |
| constant.other.character-class.regexp | #16500Ede | — |
| constant.other.character-class.set.regexp | #3E3E3Ede | — |
| constant.other.color.rgb-value | #541B18de | — |
| constant.other.placeholder | #4F1940de | — |
| constant.other.rgb-value | #391D68de | — |
| constant.regexp | #1A4738de | — |
| constant.sha.git-rebase | #6A2256de | — |
| emphasis | #5B120Ede | — |
| entity.name.class | #103428de | — |
| entity.name.function | #511841de | — |
| entity.name.function.preprocessor | #591613de | — |
| entity.name.function.python | #3A0585de | — |
| entity.name.label | #5B130Fde | — |
| entity.name.namespace | #390E7Ede | — |
| entity.name.operator | #391E64de | — |
| entity.name.operator.custom-literal | #14500Cde | — |
| entity.name.scope-resolution | #412371de | — |
| entity.name.tag | #521C1Ade | — |
| entity.name.tag.css | #3B186Fde | — |
| entity.name.type | #5B120Ede | bold |
| entity.name.variable | #2E2E2Ede | — |
| entity.other.attribute | #37018Bde | — |
| entity.other.attribute-name | #113427de | — |
| entity.other.attribute-name.class.css | #0E2E55de | — |
| entity.other.attribute-name.class.mixin.css | #521640de | — |
| entity.other.attribute-name.id | #5B0442de | — |
| entity.other.attribute-name.id.css | #541D45de | — |
| entity.other.attribute-name.parent-selector.css | #103428de | — |
| entity.other.attribute-name.pseudo-class.css | #16392Ede | — |
| entity.other.attribute-name.pseudo-element.css | #54201Dde | — |
| entity.other.attribute-name.scss | #093603de | — |
| entity.other.document.begin.yaml | #5A14146e | — |
| entity.other.inherited-class | #2E2E2Ede | — |
| header | #103428de | — |
| invalid | #541D45de | — |
| keyword | #13500Bde | bold |
| keyword.codetag.notation.python | #2E2E2Ede | bold |
| keyword.control | #102E53de | bold |
| keyword.control.anchor.regexp | #3E3E3Ede | bold |
| keyword.control.import.python | #6A2622de | bold |
| keyword.operator | #214E1Cde | bold |
| keyword.operator.alignas | #234671de | bold |
| keyword.operator.alignof | #143510de | bold |
| keyword.operator.cast | #3E3E3Ede | bold |
| keyword.operator.delete | #115009de | bold |
| keyword.operator.documentation.powershell | #5A14146e | bold |
| keyword.operator.expression | #083525de | bold |
| keyword.operator.instanceof | #3A2063de | bold |
| keyword.operator.logical.python | #712723de | bold |
| keyword.operator.minus.exponent | #632420de | bold |
| keyword.operator.negation.regexp | #551042de | bold |
| keyword.operator.new | #2E2E2Ede | bold |
| keyword.operator.noexcept | #103428de | bold |
| keyword.operator.or.regexp | #5C221Fde | bold |
| keyword.operator.plus.exponent | #360689de | bold |
| keyword.operator.quantifier.regexp | #0C3607de | bold |
| keyword.operator.sizeof | #381F62de | bold |
| keyword.operator.typeid | #103428de | bold |
| keyword.operator.wordlike | #192F4Ade | bold |
| keyword.other.operator | #1A4738de | bold |
| keyword.other.package.java | #600903de | bold |
| keyword.other.unit | #424242de | bold |
| keyword.other.using | #511D1Bde | bold |
| markup.bold | #0C3607de | — |
| markup.changed | #3A1E64de | — |
| markup.deleted | #1D3654de | — |
| markup.fenced_code.block.markdown | #103428de | — |
| markup.heading | #0F4E39de | — |
| markup.inline.raw | #353535de | — |
| markup.inserted | #203E63de | — |
| markup.italic | #16392Ede | — |
| markup.raw.block.markdown | #424242de | — |
| markup.strikethrough | #3A0585de | — |
| markup.underline | #13500Bde | — |
| meta.block.c | #1A2F4Ade | — |
| meta.block.c | #511D1Bde | — |
| meta.class.java | #541B18de | — |
| meta.definition.variable.name | #3B186Fde | — |
| meta.diff.header | #2E2E2Ede | — |
| meta.embedded | #032D5Fde | — |
| meta.embedded.assembly | #0E2D59de | — |
| meta.function-call.arguments.python | #551A16de | — |
| meta.function-call.python | #093603de | — |
| meta.member.access.python | #184033de | — |
| meta.method.java | #6A2622de | — |
| meta.object-literal.key | #6A2622de | — |
| meta.paragraph.markdown | #521C1Ade | — |
| meta.preprocessor | #16392Ede | — |
| meta.preprocessor.numeric | #6A2622de | — |
| meta.preprocessor.string | #102E53de | — |
| meta.scope.prerequisites.makefile | #303030de | — |
| meta.structure.dictionary.json.comments | #5B12126e | — |
| meta.structure.dictionary.key.python | #531342de | — |
| meta.structure.dictionary.value.json.comments | #5A14146e | — |
| meta.template.expression | #391E64de | — |
| meta.type.cast.expr | #153511de | bold |
| meta.type.new.expr | #103428de | bold |
| parameter | #6A2622de | — |
| punctuation.character.set.begin.regexp | #511D1Bde | — |
| punctuation.character.set.end.regexp | #3B186Fde | — |
| punctuation.definition.array.begin.json | #71235Cde | — |
| punctuation.definition.character-class.regexp | #1C4018de | — |
| punctuation.definition.comment | #5B13136e | — |
| punctuation.definition.comment.json.comments | #5A14146e | — |
| punctuation.definition.comment.python | #5B13136e | — |
| punctuation.definition.dictionary.begin.json | #17500Fde | — |
| punctuation.definition.dictionary.end.json | #1A4738de | — |
| punctuation.definition.group.assertion.regexp | #2E2E2Ede | — |
| punctuation.definition.group.regexp | #5C221Fde | — |
| punctuation.definition.list.begin.json | #0E2D59de | — |
| punctuation.definition.list.begin.markdown | #1A3916de | — |
| punctuation.definition.list.begin.python | #103428de | — |
| punctuation.definition.list.end.json | #551A16de | — |
| punctuation.definition.list.end.markdown | #1D3654de | — |
| punctuation.definition.list.end.python | #1F3A5Cde | — |
| punctuation.definition.parameters.begin.python | #2E2E2Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #2E2E2Ede | — |
| punctuation.definition.quote.begin.markdown | #71235Cde | — |
| punctuation.definition.tag | #0F4E39de | — |
| punctuation.definition.template-expression.begin | #2E2E2Ede | — |
| punctuation.definition.template-expression.end | #192F4Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #5B0343de | — |
| punctuation.section.embedded | #102E53de | — |
| punctuation.section.embedded.begin.php | #600903de | — |
| punctuation.section.embedded.end.php | #0C3607de | — |
| punctuation.terminator.java | #3A1476de | — |
| source.cmake | #632050de | — |
| source.coffee.embedded | #083525de | — |
| source.cpp | #16500Ede | — |
| source.css.less | #1C324Ede | — |
| source.groovy.embedded | #1C324Ede | — |
| source.java | #393939de | — |
| source.java-properties | #2E2E2Ede | — |
| source.json.comments | #5B13136e | — |
| source.makefile | #412371de | — |
| source.powershell | #162F4Ede | — |
| source.powershell.variable.other.member | #3B186Fde | — |
| source.python | #632420de | — |
| storage | #5B120Ede | — |
| storage.modifier | #632420de | — |
| storage.modifier.import.java | #3A1E64de | — |
| storage.modifier.package.java | #16392Ede | — |
| storage.type | #3B1A6Cde | bold |
| storage.type.annotation.groovy | #71235Cde | bold |
| storage.type.annotation.java | #032D5Fde | bold |
| storage.type.boolean.go | #5B120Ede | bold |
| storage.type.byte.go | #094F38de | bold |
| storage.type.cs | #184033de | bold |
| storage.type.error.go | #541B18de | bold |
| storage.type.generic.cs | #632050de | bold |
| storage.type.generic.groovy | #632050de | bold |
| storage.type.generic.java | #0E2E55de | bold |
| storage.type.groovy | #632420de | bold |
| storage.type.java | #1A4738de | bold |
| storage.type.modifier.cs | #5B0442de | bold |
| storage.type.numeric.go | #16392Ede | bold |
| storage.type.object.array.groovy | #162F4Ede | bold |
| storage.type.object.array.java | #2E2E2Ede | bold |
| storage.type.parameters.groovy | #192F4Ade | bold |
| storage.type.primitive.array.groovy | #551A16de | bold |
| storage.type.primitive.array.java | #424242de | bold |
| storage.type.primitive.groovy | #102E53de | bold |
| storage.type.primitive.java | #4F1940de | bold |
| storage.type.rune.go | #14500Cde | bold |
| storage.type.string.go | #1D3654de | bold |
| storage.type.token.java | #4F1940de | bold |
| storage.type.uintptr.go | #580E42de | bold |
| storage.type.variable.cs | #0C3607de | bold |
| string | #14500Cde | — |
| string.quoted.docstring.multi.python | #5B12126e | — |
| string.regexp | #3B1A6Cde | — |
| string.tag | #4F1940de | — |
| string.value | #71235Cde | — |
| strong | #032D5Fde | — |
| support.class | #1F3A5Cde | — |
| support.constant.color | #2E2E2Ede | — |
| support.constant.dom | #360689de | — |
| support.constant.font-name | #5D0F0Cde | — |
| support.constant.handlebars | #14500Cde | — |
| support.constant.json | #084F37de | — |
| support.constant.math | #6A2622de | — |
| support.constant.media | #4E1C40de | — |
| support.constant.media-type | #182F4Bde | bold |
| support.constant.property-value | #2E2E2Ede | — |
| support.function | #5C1F4Bde | — |
| support.function.git-rebase | #0E2D59de | — |
| support.other.parenthesis.regexp | #093603de | — |
| support.type | #0B4F38de | bold |
| support.type.property-name | #142F4Ede | bold |
| support.type.vendored.property-name | #712723de | bold |
| support.variable | #712723de | — |
| token.debug-token | #192F4Ade | — |
| token.error-token | #3E3E3Ede | — |
| token.info-token | #3B1A6Cde | — |
| token.warn-token | #123428de | — |
| variable | #570E43de | — |
| variable.css | #0E2D59de | — |
| variable.language | #16500Ede | — |
| variable.language.wildcard.java | #0F4E39de | — |
| variable.other.constant | #2E2E2Ede | — |
| variable.other.definition.java | #551A16de | — |
| variable.other.enummember | #22426Ade | — |
| variable.other.less | #6A2256de | — |
| variable.other.object.java | #142F4Ede | — |
| variable.other.object.property.java | #580E42de | — |
| variable.parameter.c | #103428de | — |
| variable.parameter.function.language.python | #541D45de | — |
| variable.parameter.java | #032D5Fde | — |
| variable.scss | #142F4Ede | — |
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}!`;
}