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 | #32BF326e | — |
| comment.block.html | #42D6426e | — |
| comment.block.java | #3ED43E6e | — |
| comment.block.javadoc.java | #30CB306e | — |
| comment.block.powershell | #48DD486e | — |
| comment.block.xml | #39D0396e | — |
| comment.line.double-slash.c | #33BE336e | — |
| comment.line.double-slash.cpp | #41DA416e | — |
| comment.line.double-slash.java | #3BD23B6e | — |
| comment.line.double-slash.js | #45DB456e | — |
| comment.line.number-sign.makefile | #3ED43E6e | — |
| comment.line.number-sign.python | #3FD83F6e | — |
| comment.line.number-sign.yaml | #3CD63C6e | — |
| comment.line.percentage.erlang | #30CF306e | — |
| comment.line.powershell | #33C3336e | — |
| comment.source.cmake | #33C3336e | — |
| comment.source.cmakecache | #37D3376e | — |
| constant.character | #7BD908de | — |
| constant.character.character-class.regexp | #AAAAF9de | — |
| constant.character.escape | #E082F3de | — |
| constant.character.set.regexp | #B6B6FBde | — |
| constant.language | #E48DF5de | — |
| constant.numeric | #E89F56de | — |
| constant.numeric.dec.python | #E89BF8de | — |
| constant.other.caps.python | #72C708de | — |
| constant.other.character-class.regexp | #E89F55de | — |
| constant.other.character-class.set.regexp | #07D033de | — |
| constant.other.color.rgb-value | #07CBE3de | — |
| constant.other.placeholder | #E798F7de | — |
| constant.other.rgb-value | #A0A0F8de | — |
| constant.regexp | #F58DAAde | — |
| constant.sha.git-rebase | #F382A1de | — |
| emphasis | #07E239de | — |
| entity.name.class | #3CCEE0de | — |
| entity.name.function | #76CF07de | — |
| entity.name.function.preprocessor | #07C7DFde | — |
| entity.name.function.python | #07D2EBde | — |
| entity.name.label | #9E9EF8de | — |
| entity.name.namespace | #27C94Bde | — |
| entity.name.operator | #F68DAAde | — |
| entity.name.operator.custom-literal | #08C232de | — |
| entity.name.scope-resolution | #E69B4Fde | — |
| entity.name.tag | #06D6F1de | — |
| entity.name.tag.css | #77CF08de | — |
| entity.name.type | #7EDB07de | — |
| entity.name.variable | #06D6F0de | — |
| entity.other.attribute | #FDB56Ade | — |
| entity.other.attribute-name | #71C608de | — |
| entity.other.attribute-name.class.css | #71C408de | — |
| entity.other.attribute-name.class.mixin.css | #AEAEFAde | — |
| entity.other.attribute-name.id | #E69B50de | — |
| entity.other.attribute-name.id.css | #BEBEFCde | — |
| entity.other.attribute-name.parent-selector.css | #A8A8F9de | — |
| entity.other.attribute-name.pseudo-class.css | #E48EF6de | — |
| entity.other.attribute-name.pseudo-element.css | #EAA25Ade | — |
| entity.other.attribute-name.scss | #E69B4Fde | — |
| entity.other.document.begin.yaml | #4BDB4B6e | — |
| entity.other.inherited-class | #08BACFde | — |
| header | #BBBBFCde | — |
| invalid | #B1B1FAde | — |
| keyword | #F1B578de | — |
| keyword.codetag.notation.python | #81C927de | — |
| keyword.control | #6DBD08de | — |
| keyword.control.anchor.regexp | #E6994Ede | — |
| keyword.control.import.python | #27B7C9de | — |
| keyword.operator | #86D227de | — |
| keyword.operator.alignas | #08BBD2de | — |
| keyword.operator.alignof | #9D9DF8de | — |
| keyword.operator.cast | #F3B980de | — |
| keyword.operator.delete | #08C732de | — |
| keyword.operator.documentation.powershell | #48DD486e | — |
| keyword.operator.expression | #DF7FF3de | — |
| keyword.operator.instanceof | #F693AEde | — |
| keyword.operator.logical.python | #07BAD0de | — |
| keyword.operator.minus.exponent | #08BDD3de | — |
| keyword.operator.negation.regexp | #F2B77Bde | — |
| keyword.operator.new | #ECAAF9de | — |
| keyword.operator.noexcept | #EAA35Dde | — |
| keyword.operator.or.regexp | #E69B4Fde | — |
| keyword.operator.plus.exponent | #FB9B3Ade | — |
| keyword.operator.quantifier.regexp | #E287F4de | — |
| keyword.operator.sizeof | #E590F6de | — |
| keyword.operator.typeid | #AAAAFAde | — |
| keyword.operator.wordlike | #E99DF8de | — |
| keyword.other.operator | #F9A3BAde | — |
| keyword.other.package.java | #08C732de | — |
| keyword.other.unit | #8BD82Ade | — |
| keyword.other.using | #FAAEC3de | — |
| markup.bold | #B7B7FBde | — |
| markup.changed | #6DBE08de | — |
| markup.deleted | #3CE061de | — |
| markup.fenced_code.block.markdown | #EEAD6Cde | — |
| markup.heading | #F798B2de | — |
| markup.inline.raw | #F1B578de | — |
| markup.inserted | #B7B7FBde | — |
| markup.italic | #73CB08de | — |
| markup.raw.block.markdown | #7CD907de | — |
| markup.strikethrough | #8BD82Ade | — |
| markup.underline | #F488A6de | — |
| meta.block.c | #EFAE6Dde | — |
| meta.block.c | #F385A4de | — |
| meta.class.java | #74CA07de | — |
| meta.definition.variable.name | #27C94Bde | — |
| meta.diff.header | #FA8F25de | — |
| meta.embedded | #F793AFde | — |
| meta.embedded.assembly | #FAACC2de | — |
| meta.function-call.arguments.python | #27D44Dde | — |
| meta.function-call.python | #A6A6F9de | — |
| meta.member.access.python | #F0B171de | — |
| meta.method.java | #E69B4Fde | — |
| meta.object-literal.key | #F796B1de | — |
| meta.paragraph.markdown | #08C633de | — |
| meta.preprocessor | #F8A0B9de | — |
| meta.preprocessor.numeric | #27C54Ade | — |
| meta.preprocessor.string | #07B5CBde | — |
| meta.scope.prerequisites.makefile | #ECA864de | — |
| meta.structure.dictionary.json.comments | #41DA416e | — |
| meta.structure.dictionary.key.python | #DF7FF3de | — |
| meta.structure.dictionary.value.json.comments | #37D3376e | — |
| meta.template.expression | #E48CF5de | — |
| meta.type.cast.expr | #FCA54Ede | — |
| meta.type.new.expr | #27B8CBde | — |
| parameter | #27C94Bde | — |
| punctuation.character.set.begin.regexp | #E797F7de | — |
| punctuation.character.set.end.regexp | #E797F7de | — |
| punctuation.definition.array.begin.json | #74CA07de | — |
| punctuation.definition.character-class.regexp | #74CA07de | — |
| punctuation.definition.comment | #30C7306e | — |
| punctuation.definition.comment.json.comments | #3FD83F6e | — |
| punctuation.definition.comment.python | #33C8336e | — |
| punctuation.definition.dictionary.begin.json | #F487A5de | — |
| punctuation.definition.dictionary.end.json | #27D24Dde | — |
| punctuation.definition.group.assertion.regexp | #ECA864de | — |
| punctuation.definition.group.regexp | #08C032de | — |
| punctuation.definition.list.begin.json | #EEAD6Bde | — |
| punctuation.definition.list.begin.markdown | #F489A6de | — |
| punctuation.definition.list.begin.python | #B1B1FAde | — |
| punctuation.definition.list.end.json | #E799F7de | — |
| punctuation.definition.list.end.markdown | #E5984Bde | — |
| punctuation.definition.list.end.python | #A5A5F9de | — |
| punctuation.definition.parameters.begin.python | #AFAFFAde | — |
| punctuation.definition.parameters.end.bracket.round.java | #E69B4Fde | — |
| punctuation.definition.quote.begin.markdown | #E69A4Fde | — |
| punctuation.definition.tag | #A0A0F8de | — |
| punctuation.definition.template-expression.begin | #E9A0F8de | — |
| punctuation.definition.template-expression.end | #F89CB5de | — |
| punctuation.section.class.begin.bracket.curly.java | #E798F7de | — |
| punctuation.section.embedded | #9D9DF8de | — |
| punctuation.section.embedded.begin.php | #29D850de | — |
| punctuation.section.embedded.end.php | #06D1EBde | — |
| punctuation.terminator.java | #3CCDE0de | — |
| source.cmake | #07E237de | — |
| source.coffee.embedded | #06C6DDde | — |
| source.cpp | #F691AEde | — |
| source.css.less | #27C249de | — |
| source.groovy.embedded | #BBBBFCde | — |
| source.java | #FB942Cde | — |
| source.java-properties | #30DB56de | — |
| source.json.comments | #33C8336e | — |
| source.makefile | #86D227de | — |
| source.powershell | #BFBFFCde | — |
| source.powershell.variable.other.member | #F3B980de | — |
| source.python | #F9A7BEde | — |
| storage | #8AD829de | — |
| storage.modifier | #7CC127de | — |
| storage.modifier.import.java | #F8A2BAde | — |
| storage.modifier.package.java | #EDADFAde | — |
| storage.type | #06B7CCde | — |
| storage.type.annotation.groovy | #75CF06de | — |
| storage.type.annotation.java | #F1B478de | — |
| storage.type.boolean.go | #06C42Fde | — |
| storage.type.byte.go | #BCBCFCde | — |
| storage.type.cs | #FAAAC0de | — |
| storage.type.error.go | #F486A4de | — |
| storage.type.generic.cs | #75CC08de | — |
| storage.type.generic.groovy | #FA8F25de | — |
| storage.type.generic.java | #36CBDDde | — |
| storage.type.groovy | #3ADF5Fde | — |
| storage.type.java | #07CFE8de | — |
| storage.type.modifier.cs | #E080F3de | — |
| storage.type.numeric.go | #A0A0F8de | — |
| storage.type.object.array.groovy | #E49749de | — |
| storage.type.object.array.java | #86D227de | — |
| storage.type.parameters.groovy | #B5B5FBde | — |
| storage.type.primitive.array.groovy | #76B726de | — |
| storage.type.primitive.array.java | #42D0E2de | — |
| storage.type.primitive.groovy | #30C8DBde | — |
| storage.type.primitive.java | #07CBE3de | — |
| storage.type.rune.go | #30C8DBde | — |
| storage.type.string.go | #08BF32de | — |
| storage.type.token.java | #F89BB5de | — |
| storage.type.uintptr.go | #E69B4Fde | — |
| storage.type.variable.cs | #9E9EF8de | — |
| string | #E9A058de | — |
| string.quoted.docstring.multi.python | #38D5386e | — |
| string.regexp | #F89DB6de | — |
| string.tag | #F1B579de | — |
| string.value | #08BED4de | — |
| strong | #08C732de | — |
| support.class | #9D9DF8de | — |
| support.constant.color | #ECA864de | — |
| support.constant.dom | #07C9E2de | — |
| support.constant.font-name | #B9B9FBde | — |
| support.constant.handlebars | #A6A6F9de | — |
| support.constant.json | #F68FACde | — |
| support.constant.math | #F797B2de | — |
| support.constant.media | #E592F6de | — |
| support.constant.media-type | #F691ADde | — |
| support.constant.property-value | #2AC5D8de | — |
| support.function | #B9B9FBde | — |
| support.function.git-rebase | #B3B3FBde | — |
| support.other.parenthesis.regexp | #06D432de | — |
| support.type | #07CC33de | — |
| support.type.property-name | #8BD82Ade | — |
| support.type.vendored.property-name | #BBBBFBde | — |
| support.variable | #B5B5FBde | — |
| token.debug-token | #07DC36de | — |
| token.error-token | #74CB07de | — |
| token.info-token | #06BED4de | — |
| token.warn-token | #F0B172de | — |
| variable | #E38CF5de | — |
| variable.css | #F9A3BAde | — |
| variable.language | #F3B87Dde | — |
| variable.language.wildcard.java | #07C8DFde | — |
| variable.other.constant | #B1B1FAde | — |
| variable.other.definition.java | #F9A4BBde | — |
| variable.other.enummember | #F58BA9de | — |
| variable.other.less | #F690ADde | — |
| variable.other.object.java | #78B827de | — |
| variable.other.object.property.java | #F3B97Fde | — |
| variable.parameter.c | #B1B1FBde | — |
| variable.parameter.function.language.python | #07D2EAde | — |
| variable.parameter.java | #30DB56de | — |
| variable.scss | #FAB0C5de | — |
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}!`;
}