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 | #501F0Fde | — |
| constant.character.character-class.regexp | #501939de | — |
| constant.character.escape | #501F0Fde | — |
| constant.character.set.regexp | #0F342Dde | — |
| constant.language | #153731de | — |
| constant.numeric | #104D42de | — |
| constant.numeric.dec.python | #772355de | — |
| constant.other.caps.python | #094E42de | — |
| constant.other.character-class.regexp | #41490Dde | — |
| constant.other.character-class.set.regexp | #153731de | — |
| constant.other.color.rgb-value | #683221de | — |
| constant.other.placeholder | #4E2112de | — |
| constant.other.rgb-value | #3F067Ede | — |
| constant.regexp | #223970de | — |
| constant.sha.git-rebase | #414810de | — |
| emphasis | #0B4E42de | — |
| entity.name.class | #142B5Fde | — |
| entity.name.function | #41480Ede | — |
| entity.name.function.preprocessor | #421F61de | — |
| entity.name.function.python | #4A2317de | — |
| entity.name.label | #2B3100de | — |
| entity.name.namespace | #1C2C55de | — |
| entity.name.operator | #1F3361de | — |
| entity.name.operator.custom-literal | #0F350Fde | — |
| entity.name.scope-resolution | #492318de | — |
| entity.name.tag | #2A3101de | — |
| entity.name.tag.css | #411766de | — |
| entity.name.type | #42027Ede | bold |
| entity.name.variable | #173E17de | — |
| entity.other.attribute | #03352Cde | — |
| entity.other.attribute-name | #022579de | — |
| entity.other.attribute-name.class.css | #5D0337de | — |
| entity.other.attribute-name.class.mixin.css | #570F3Ade | — |
| entity.other.attribute-name.id | #1B4C1Bde | — |
| entity.other.attribute-name.id.css | #0F350Fde | — |
| entity.other.attribute-name.parent-selector.css | #0A500Ade | — |
| entity.other.attribute-name.pseudo-class.css | #414810de | — |
| entity.other.attribute-name.pseudo-element.css | #5A1E41de | — |
| entity.other.attribute-name.scss | #104D42de | — |
| entity.other.document.begin.yaml | #2E2E2E6e | — |
| entity.other.inherited-class | #41490Dde | — |
| header | #104D42de | — |
| invalid | #414810de | — |
| keyword | #1F3361de | bold |
| keyword.codetag.notation.python | #3A3E17de | bold |
| keyword.control | #104D42de | bold |
| keyword.control.anchor.regexp | #501939de | bold |
| keyword.control.import.python | #0B4E42de | bold |
| keyword.operator | #2A3101de | bold |
| keyword.operator.alignas | #0F4D42de | bold |
| keyword.operator.alignof | #0A500Ade | bold |
| keyword.operator.cast | #702250de | bold |
| keyword.operator.delete | #4E2112de | bold |
| keyword.operator.documentation.powershell | #2E2E2E6e | bold |
| keyword.operator.expression | #102968de | bold |
| keyword.operator.instanceof | #430877de | bold |
| keyword.operator.logical.python | #832104de | bold |
| keyword.operator.minus.exponent | #612F1Fde | bold |
| keyword.operator.negation.regexp | #570F3Ade | bold |
| keyword.operator.new | #194519de | bold |
| keyword.operator.noexcept | #56123Bde | bold |
| keyword.operator.or.regexp | #421F61de | bold |
| keyword.operator.plus.exponent | #192C56de | bold |
| keyword.operator.quantifier.regexp | #56123Bde | bold |
| keyword.operator.sizeof | #043604de | bold |
| keyword.operator.typeid | #094E42de | bold |
| keyword.operator.wordlike | #0E4D43de | bold |
| keyword.other.operator | #4A2317de | bold |
| keyword.other.package.java | #0F350Fde | bold |
| keyword.other.unit | #173E37de | bold |
| keyword.other.using | #223970de | bold |
| markup.bold | #0F350Fde | — |
| markup.changed | #41490Ade | — |
| markup.deleted | #3F1D5Ede | — |
| markup.fenced_code.block.markdown | #102968de | — |
| markup.heading | #213668de | — |
| markup.inline.raw | #0C4E42de | — |
| markup.inserted | #561907de | — |
| markup.italic | #421F61de | — |
| markup.raw.block.markdown | #401962de | — |
| markup.strikethrough | #103510de | — |
| markup.underline | #3F1D5Ede | — |
| meta.block.c | #591703de | — |
| meta.block.c | #501F0Fde | — |
| meta.class.java | #580E3Ade | — |
| meta.definition.variable.name | #0F350Fde | — |
| meta.diff.header | #1A2C55de | — |
| meta.embedded | #421F61de | — |
| meta.embedded.assembly | #501939de | — |
| meta.function-call.arguments.python | #0C500Cde | — |
| meta.function-call.python | #492318de | — |
| meta.member.access.python | #2A3100de | — |
| meta.method.java | #0C4E42de | — |
| meta.object-literal.key | #022579de | — |
| meta.paragraph.markdown | #333715de | — |
| meta.preprocessor | #561907de | — |
| meta.preprocessor.numeric | #0D350Dde | — |
| meta.preprocessor.string | #41490Ade | — |
| meta.scope.prerequisites.makefile | #1B4C43de | — |
| meta.structure.dictionary.json.comments | #2E2E2E6e | — |
| meta.structure.dictionary.key.python | #1F3361de | — |
| meta.structure.dictionary.value.json.comments | #2E2E2E6e | — |
| meta.template.expression | #56123Bde | — |
| meta.type.cast.expr | #404519de | bold |
| meta.type.new.expr | #213668de | bold |
| parameter | #1C2C55de | — |
| punctuation.character.set.begin.regexp | #102968de | — |
| punctuation.character.set.end.regexp | #4E2112de | — |
| punctuation.definition.array.begin.json | #511739de | — |
| punctuation.definition.character-class.regexp | #07227Dde | — |
| punctuation.definition.comment | #2E2E2E6e | — |
| punctuation.definition.comment.json.comments | #2E2E2E6e | — |
| punctuation.definition.comment.python | #2E2E2E6e | — |
| punctuation.definition.dictionary.begin.json | #832104de | — |
| punctuation.definition.dictionary.end.json | #0F350Fde | — |
| punctuation.definition.group.assertion.regexp | #142B5Fde | — |
| punctuation.definition.group.regexp | #5A2C1Ede | — |
| punctuation.definition.list.begin.json | #085008de | — |
| punctuation.definition.list.begin.markdown | #1F3361de | — |
| punctuation.definition.list.begin.python | #3F067Ede | — |
| punctuation.definition.list.end.json | #172B5Bde | — |
| punctuation.definition.list.end.markdown | #41490Ade | — |
| punctuation.definition.list.end.python | #06342Cde | — |
| punctuation.definition.parameters.begin.python | #1C2C53de | — |
| punctuation.definition.parameters.end.bracket.round.java | #401962de | — |
| punctuation.definition.quote.begin.markdown | #501F0Fde | — |
| punctuation.definition.tag | #404519de | — |
| punctuation.definition.template-expression.begin | #1C2C53de | — |
| punctuation.definition.template-expression.end | #5A1E41de | — |
| punctuation.section.class.begin.bracket.curly.java | #213668de | — |
| punctuation.section.embedded | #3F1D5Ede | — |
| punctuation.section.embedded.begin.php | #561907de | — |
| punctuation.section.embedded.end.php | #41490Cde | — |
| punctuation.terminator.java | #4A2317de | — |
| source.cmake | #41490Dde | — |
| source.coffee.embedded | #4C2215de | — |
| source.cpp | #03352Cde | — |
| source.css.less | #561907de | — |
| source.groovy.embedded | #501A3Ade | — |
| source.java | #4C261Bde | — |
| source.java-properties | #192C56de | — |
| source.json.comments | #2E2E2E6e | — |
| source.makefile | #192C56de | — |
| source.powershell | #421F61de | — |
| source.powershell.variable.other.member | #1A2C55de | — |
| source.python | #2A3100de | — |
| storage | #5A1E41de | — |
| storage.modifier | #0F350Fde | — |
| storage.modifier.import.java | #172B5Bde | — |
| storage.modifier.package.java | #4B2270de | — |
| storage.type | #472168de | bold |
| storage.type.annotation.groovy | #1B4C1Bde | bold |
| storage.type.annotation.java | #1C2C53de | bold |
| storage.type.boolean.go | #173E37de | bold |
| storage.type.byte.go | #501A3Ade | bold |
| storage.type.cs | #142B5Fde | bold |
| storage.type.error.go | #3F067Ede | bold |
| storage.type.generic.cs | #414810de | bold |
| storage.type.generic.groovy | #3F067Ede | bold |
| storage.type.generic.java | #414810de | bold |
| storage.type.groovy | #430877de | bold |
| storage.type.java | #41490Dde | bold |
| storage.type.modifier.cs | #501F0Fde | bold |
| storage.type.numeric.go | #41480Ede | bold |
| storage.type.object.array.groovy | #043604de | bold |
| storage.type.object.array.java | #0A500Ade | bold |
| storage.type.parameters.groovy | #03352Cde | bold |
| storage.type.primitive.array.groovy | #511739de | bold |
| storage.type.primitive.array.java | #173E37de | bold |
| storage.type.primitive.groovy | #421F61de | bold |
| storage.type.primitive.java | #411766de | bold |
| storage.type.rune.go | #580E38de | bold |
| storage.type.string.go | #411766de | bold |
| storage.type.token.java | #2A3100de | bold |
| storage.type.uintptr.go | #511739de | bold |
| storage.type.variable.cs | #421F61de | bold |
| string | #03352Cde | — |
| string.quoted.docstring.multi.python | #2E2E2E6e | — |
| string.regexp | #4C261Bde | — |
| string.tag | #19453Dde | — |
| string.value | #802407de | — |
| strong | #2C300Ade | — |
| support.class | #56123Bde | — |
| support.constant.color | #085008de | — |
| support.constant.dom | #1C2C55de | — |
| support.constant.font-name | #10332Cde | — |
| support.constant.handlebars | #41490Cde | — |
| support.constant.json | #213668de | — |
| support.constant.math | #10332Cde | — |
| support.constant.media | #172B5Bde | — |
| support.constant.media-type | #07227Dde | bold |
| support.constant.property-value | #2A3101de | — |
| support.function | #033603de | — |
| support.function.git-rebase | #5A2C1Ede | — |
| support.other.parenthesis.regexp | #41490Ade | — |
| support.type | #5A1E41de | bold |
| support.type.property-name | #085008de | bold |
| support.type.vendored.property-name | #404519de | bold |
| support.variable | #102968de | — |
| token.debug-token | #68214Bde | — |
| token.error-token | #570F3Ade | — |
| token.info-token | #3E1D5Cde | — |
| token.warn-token | #0F342Dde | — |
| variable | #3E1E5Ade | — |
| variable.css | #142B5Fde | — |
| variable.language | #094E42de | — |
| variable.language.wildcard.java | #414908de | — |
| variable.other.constant | #421F61de | — |
| variable.other.definition.java | #501A3Ade | — |
| variable.other.enummember | #033603de | — |
| variable.other.less | #683221de | — |
| variable.other.object.java | #42136Bde | — |
| variable.other.object.property.java | #0F332Dde | — |
| variable.parameter.c | #420E72de | — |
| variable.parameter.function.language.python | #0A276Fde | — |
| variable.parameter.java | #5A1E41de | — |
| variable.scss | #192C56de | — |
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}!`;
}