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 | #6E350Ede | — |
| constant.character.character-class.regexp | #482B55de | — |
| constant.character.escape | #303669de | — |
| constant.character.set.regexp | #262B52de | — |
| constant.language | #203522de | — |
| constant.numeric | #243300de | — |
| constant.numeric.dec.python | #16341Cde | — |
| constant.other.caps.python | #3E291Cde | — |
| constant.other.character-class.regexp | #273112de | — |
| constant.other.character-class.set.regexp | #4B2209de | — |
| constant.other.color.rgb-value | #3A4A16de | — |
| constant.other.placeholder | #0E3513de | — |
| constant.other.rgb-value | #56142Ede | — |
| constant.regexp | #394A13de | — |
| constant.sha.git-rebase | #412817de | — |
| emphasis | #27482Ade | — |
| entity.name.class | #532E62de | — |
| entity.name.function | #0D188Ede | — |
| entity.name.function.preprocessor | #05360Ade | — |
| entity.name.function.python | #223B25de | — |
| entity.name.label | #4E2938de | — |
| entity.name.namespace | #274848de | — |
| entity.name.operator | #3B2C22de | — |
| entity.name.operator.custom-literal | #2E3362de | — |
| entity.name.scope-resolution | #16341Ade | — |
| entity.name.tag | #303669de | — |
| entity.name.tag.css | #553B2Bde | — |
| entity.name.type | #223B3Bde | bold |
| entity.name.variable | #5E062Ade | — |
| entity.other.attribute | #343B22de | — |
| entity.other.attribute-name | #134F19de | — |
| entity.other.attribute-name.class.css | #532E62de | — |
| entity.other.attribute-name.class.mixin.css | #3E291Cde | — |
| entity.other.attribute-name.id | #273112de | — |
| entity.other.attribute-name.id.css | #303669de | — |
| entity.other.attribute-name.parent-selector.css | #483427de | — |
| entity.other.attribute-name.pseudo-class.css | #05360Ade | — |
| entity.other.attribute-name.pseudo-element.css | #6E350Ede | — |
| entity.other.attribute-name.scss | #154C4Cde | — |
| entity.other.document.begin.yaml | #2E2E2E6e | — |
| entity.other.inherited-class | #273112de | — |
| header | #394B0Ede | — |
| invalid | #462230de | — |
| keyword | #2D315Bde | bold |
| keyword.codetag.notation.python | #3D2447de | bold |
| keyword.control | #3B2C22de | bold |
| keyword.control.anchor.regexp | #2B3016de | bold |
| keyword.control.import.python | #154F1Bde | bold |
| keyword.operator | #303669de | bold |
| keyword.operator.alignas | #0E3513de | bold |
| keyword.operator.alignof | #303669de | bold |
| keyword.operator.cast | #244127de | bold |
| keyword.operator.delete | #491261de | bold |
| keyword.operator.documentation.powershell | #2E2E2E6e | bold |
| keyword.operator.expression | #163232de | bold |
| keyword.operator.instanceof | #000F9Ade | bold |
| keyword.operator.logical.python | #743107de | bold |
| keyword.operator.minus.exponent | #3B2C22de | bold |
| keyword.operator.negation.regexp | #57132Ede | bold |
| keyword.operator.new | #10217Dde | bold |
| keyword.operator.noexcept | #431C55de | bold |
| keyword.operator.or.regexp | #47175Cde | bold |
| keyword.operator.plus.exponent | #552B3Bde | bold |
| keyword.operator.quantifier.regexp | #394124de | bold |
| keyword.operator.sizeof | #3E291Cde | bold |
| keyword.operator.typeid | #412819de | bold |
| keyword.operator.wordlike | #2E3362de | bold |
| keyword.other.operator | #4D2D5Bde | bold |
| keyword.other.package.java | #43294Ede | bold |
| keyword.other.unit | #3D2447de | bold |
| keyword.other.using | #3D2348de | bold |
| markup.bold | #552B3Bde | — |
| markup.changed | #203522de | — |
| markup.deleted | #343B22de | — |
| markup.fenced_code.block.markdown | #412819de | — |
| markup.heading | #3B2C22de | — |
| markup.inline.raw | #5B2D3Fde | — |
| markup.inserted | #183232de | — |
| markup.italic | #223B3Bde | — |
| markup.raw.block.markdown | #2B2F55de | — |
| markup.strikethrough | #16341Ade | — |
| markup.underline | #583069de | — |
| meta.block.c | #4B2209de | — |
| meta.block.c | #253207de | — |
| meta.class.java | #532E62de | — |
| meta.definition.variable.name | #4D2D5Bde | — |
| meta.diff.header | #43294Ede | — |
| meta.embedded | #41204Ede | — |
| meta.embedded.assembly | #412817de | — |
| meta.function-call.arguments.python | #253207de | — |
| meta.function-call.python | #482B55de | — |
| meta.member.access.python | #16341Cde | — |
| meta.method.java | #384A11de | — |
| meta.object-literal.key | #16341Ade | — |
| meta.paragraph.markdown | #243305de | — |
| meta.preprocessor | #17341Ade | — |
| meta.preprocessor.numeric | #154F1Bde | — |
| meta.preprocessor.string | #292C4Ede | — |
| meta.scope.prerequisites.makefile | #232959de | — |
| meta.structure.dictionary.json.comments | #2E2E2E6e | — |
| meta.structure.dictionary.key.python | #252B53de | — |
| meta.structure.dictionary.value.json.comments | #2E2E2E6e | — |
| meta.template.expression | #244141de | — |
| meta.type.cast.expr | #03360Bde | bold |
| meta.type.new.expr | #482B55de | bold |
| parameter | #05360Ade | — |
| punctuation.character.set.begin.regexp | #743107de | — |
| punctuation.character.set.end.regexp | #243300de | — |
| punctuation.definition.array.begin.json | #3E2748de | — |
| punctuation.definition.character-class.regexp | #053434de | — |
| punctuation.definition.comment | #2E2E2E6e | — |
| punctuation.definition.comment.json.comments | #2E2E2E6e | — |
| punctuation.definition.comment.python | #2E2E2E6e | — |
| punctuation.definition.dictionary.begin.json | #552B3Bde | — |
| punctuation.definition.dictionary.end.json | #053434de | — |
| punctuation.definition.group.assertion.regexp | #422716de | — |
| punctuation.definition.group.regexp | #482734de | — |
| punctuation.definition.list.begin.json | #4B046Dde | — |
| punctuation.definition.list.begin.markdown | #103333de | — |
| punctuation.definition.list.begin.python | #053434de | — |
| punctuation.definition.list.end.json | #462230de | — |
| punctuation.definition.list.end.markdown | #10217Dde | — |
| punctuation.definition.list.end.python | #54182Fde | — |
| punctuation.definition.parameters.begin.python | #4B2209de | — |
| punctuation.definition.parameters.end.bracket.round.java | #16341Cde | — |
| punctuation.definition.quote.begin.markdown | #4B046Dde | — |
| punctuation.definition.tag | #053434de | — |
| punctuation.definition.template-expression.begin | #343B22de | — |
| punctuation.definition.template-expression.end | #482B55de | — |
| punctuation.section.class.begin.bracket.curly.java | #244141de | — |
| punctuation.section.embedded | #282C4Ede | — |
| punctuation.section.embedded.begin.php | #5B2D3Fde | — |
| punctuation.section.embedded.end.php | #2D315Bde | — |
| punctuation.terminator.java | #583069de | — |
| source.cmake | #27482Ade | — |
| source.coffee.embedded | #462230de | — |
| source.cpp | #203535de | — |
| source.css.less | #183232de | — |
| source.groovy.embedded | #47175Cde | — |
| source.java | #3C2546de | — |
| source.java-properties | #3E2748de | — |
| source.json.comments | #2E2E2E6e | — |
| source.makefile | #2A301Ade | — |
| source.powershell | #3E291Cde | — |
| source.powershell.variable.other.member | #05360Ade | — |
| source.python | #282C4Ede | — |
| storage | #422716de | — |
| storage.modifier | #243305de | — |
| storage.modifier.import.java | #282C4Ede | — |
| storage.modifier.package.java | #4D2106de | — |
| storage.type | #0D5012de | bold |
| storage.type.annotation.groovy | #431C55de | bold |
| storage.type.annotation.java | #274848de | bold |
| storage.type.boolean.go | #482B55de | bold |
| storage.type.byte.go | #0F5015de | bold |
| storage.type.cs | #1F2764de | bold |
| storage.type.error.go | #272B4Bde | bold |
| storage.type.generic.cs | #10217Dde | bold |
| storage.type.generic.groovy | #413024de | bold |
| storage.type.generic.java | #124C4Cde | bold |
| storage.type.groovy | #3C2546de | bold |
| storage.type.java | #693047de | bold |
| storage.type.modifier.cs | #482B55de | bold |
| storage.type.numeric.go | #553B2Bde | bold |
| storage.type.object.array.groovy | #053434de | bold |
| storage.type.object.array.java | #482734de | bold |
| storage.type.parameters.groovy | #2D315Bde | bold |
| storage.type.primitive.array.groovy | #154C4Cde | bold |
| storage.type.primitive.array.java | #223B3Bde | bold |
| storage.type.primitive.groovy | #282C4Ede | bold |
| storage.type.primitive.java | #2D315Bde | bold |
| storage.type.rune.go | #272B4Bde | bold |
| storage.type.string.go | #0D188Ede | bold |
| storage.type.token.java | #412817de | bold |
| storage.type.uintptr.go | #583069de | bold |
| storage.type.variable.cs | #483427de | bold |
| string | #552B3Bde | — |
| string.quoted.docstring.multi.python | #2E2E2E6e | — |
| string.regexp | #244127de | — |
| string.tag | #17341Ade | — |
| string.value | #70340Bde | — |
| strong | #462230de | — |
| support.class | #4E2938de | — |
| support.constant.color | #3E4827de | — |
| support.constant.dom | #491261de | — |
| support.constant.font-name | #452431de | — |
| support.constant.handlebars | #2F3520de | — |
| support.constant.json | #303669de | — |
| support.constant.math | #17341Ade | — |
| support.constant.media | #3D2447de | — |
| support.constant.media-type | #412817de | bold |
| support.constant.property-value | #272B4Bde | — |
| support.function | #583069de | — |
| support.function.git-rebase | #154F1Bde | — |
| support.other.parenthesis.regexp | #384A11de | — |
| support.type | #3C2546de | bold |
| support.type.property-name | #57132Ede | bold |
| support.type.vendored.property-name | #16341Ade | bold |
| support.variable | #16341Ade | — |
| token.debug-token | #0E3513de | — |
| token.error-token | #27482Ade | — |
| token.info-token | #27482Ade | — |
| token.warn-token | #532E62de | — |
| variable | #4D2106de | — |
| variable.css | #462230de | — |
| variable.language | #203535de | — |
| variable.language.wildcard.java | #3A4A16de | — |
| variable.other.constant | #2B3016de | — |
| variable.other.definition.java | #05360Ade | — |
| variable.other.enummember | #3C2546de | — |
| variable.other.less | #54182Fde | — |
| variable.other.object.java | #0F5015de | — |
| variable.other.object.property.java | #622E43de | — |
| variable.parameter.c | #4E1D2Fde | — |
| variable.parameter.function.language.python | #492030de | — |
| variable.parameter.java | #03360Bde | — |
| variable.scss | #144C4Cde | — |
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}!`;
}