Ohlala
Publisher: ilariaventuriniThemes in package: 1
A fresh dark theme for VS Code
A fresh dark theme for VS Code
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 |
|---|---|---|
| meta.diff, meta.diff.header | #68737DFF | — |
| markup.inserted | #51FBDEFF | — |
| markup.deleted | #FF6B9DFF | — |
| markup.changed | #9B6DFFFF | — |
| markup.error | #FF6B9DFF | underline italic |
| invalid, invalid.illegal | #FF6B9DFF | underline italic |
| invalid.deprecated | #FF6B9DFF | underline italic |
| entity.name.filename | #9A89B4FF | — |
| meta.paragraph.markdown, text.html.markdown | #D9E0E8FF | — |
| markup.underline | — | underline |
| markup.bold | #00B2FFFF | bold |
| markup.heading | #9B6DFFFF | bold underline |
| markup.italic | #FED604FF | italic |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #D9E0E8FF | bold |
| markup.inline.raw, markup.raw.restructuredtext | #FF6B9DFF | — |
| fenced_code.block.language.markdown, fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #68737DFF | italic |
| markup.underline.link, markup.underline.link.image | #68737DFF | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #51FBDEFF | bold |
| markup.quote, entity.name.directive.restructuredtext, markup.quote.markdown | #FF9970FF | — |
| meta.separator.markdown | #FF5CD3FF | bold |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #68737DFF | — |
| entity.name.type.class | #D9E0E8FF | underline |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #9B6DFFFF | italic |
| entity.other.inherited-class | #D9E0E8FF | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #68737DFF | bold |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | #68737DFF | underline |
| constant, variable.other.constant | #FFFFFFFF | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #51FBDEFF | — |
| entity.name.tag | #FF6B9DFF | bold |
| punctuation.definition.tag.begin.html, meta.tag.structure.body.start.html | #D9E0E8FF | bold |
| string.quoted.double.html | #D9E0E8FF | — |
| meta.attribute.src.html | — | italic |
| entity.other.attribute-name.parent-selector | #FF6B9DFF | — |
| entity.other.attribute-name | #9B6DFFFF | bold |
| entity.name.function, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix | #00B2FFFF | bold |
| meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method | #00B2FFFF | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter | #D9E0E8FF | bold |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property | #D9E0E8FF | italic |
| meta.decorator variable.other.object | #D9E0E8FF | — |
| string | #9A89B4FF | italic |
| keyword, punctuation.definition.keyword | #9B6DFFFF | — |
| keyword.control.new, keyword.operator.new | — | bold |
| support | #D9E0E8FF | — |
| support.function, support.type.property-name | #00B2FFFF | — |
| constant.other.symbol.hashkey punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.group.double.toml, meta.group.toml, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.entity.other.inherited-class, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation | #D9E0E8FF | bold |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #D9E0E8FF | bold |
| meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.definition.variable.makefile | #D9E0E8FF | — |
| entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | — | italic |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #FF6B9DFF | — |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml | #51FBDEFF | underline |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #FF6B9DFF | bold |
| storage.modifier | #9B6DFFFF | — |
| variable, constant.other.key.perl, support.variable.property, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #D9E0E8FF | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #D9E0E8FF | — |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #D9E0E8FF | — |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #D9E0E8FF | bold |
| source.shell variable.other | #9B6DFFFF | — |
| support.constant | #9B6DFFFF | — |
| meta.scope.prerequisites.makefile | #FED604FF | — |
| meta.attribute-selector.scss | #FED604FF | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #D9E0E8FF | — |
| meta.preprocessor.haskell | #68737DFF | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #9A89B4FF | — |
| punctuation.definition.group.capture.regexp | #FF6B9DFF | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #51FBDEFF | — |
| punctuation.definition.character-class.regexp | #00B2FFFF | — |
| punctuation.definition.group.regexp | #FF6B9DFF | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #FF6B9DFF | — |
| meta.assertion.look-ahead.regexp | #51FBDEFF | — |
| meta.object | #51FBDEFF | — |
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}!`;
}