Oceanic Voivode
Publisher: Oceanic VoivodeThemes in package: 1
A dark theme for Visual Studio Code, inspired by the Material Oceanic theme for IntelliJ on the workbench and the Dracula theme in the editor.
A dark theme for Visual Studio Code, inspired by the Material Oceanic theme for IntelliJ on the workbench and the Dracula theme in the editor.
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| header | #BD93F9 | — |
| meta.diff, meta.diff.header | #77B767 | — |
| markup.inserted | #50FA7B | — |
| markup.deleted | #FF5555 | — |
| markup.changed | #FFB86C | — |
| invalid | #FF5555 | underline italic |
| invalid.deprecated | #F8F8F2 | underline italic |
| entity.name.filename | #F1FA8C | — |
| markup.error | #FF5555 | — |
| markup.underline | — | underline |
| markup.bold | #FFB86C | bold |
| markup.heading | #BD93F9 | bold |
| markup.italic | #F1FA8C | italic |
| punctuation.definition.list.begin.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.link.restructuredtext | #8BE9FD | — |
| markup.inline.raw, markup.raw.block, markup.raw.restructuredtext | #77B767 | — |
| markup.underline.link, markup.underline.link.image | #8BE9FD | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #FF79C6 | — |
| entity.name.directive.restructuredtext, markup.quote | #F1FA8C | italic |
| meta.separator.markdown | #77B767 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #50FA7B | — |
| punctuation.definition.constant.restructuredtext | #BD93F9 | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #BD93F9 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #F8F8F2 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #F1FA8C | — |
| entity.name.type.class, entity.name.class, support.class | #8BE9FD | |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.parameter.function.language.special | #FF79C6 | italic |
| entity.other.inherited-class | #50FA7B | italic |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #77B767 | — |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | #FF79C6 | — |
| comment.block.documentation entity.name.type | #8BE9FD | italic |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #8BE9FD | — |
| comment.block.documentation variable | #FFB86C | italic |
| constant, constant.numeric, constant.language.boolean, constant.language.undefined, constant.language.null, constant.language.merge, constant.language.symbol.ruby, constant.language.symbol.hashkey.ruby, variable.other.constant.ruby, entity.name.type.option.rust, entity.name.type.result.rust, meta.structure.dictionary.value.json constant.language.json | #BD93F9 | — |
| constant.character.escape, constant.character.format.placeholder.other, constant.character.string.escape, constant.regexp, entity.name.type.numeric | #FF79C6 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end | #FF79C6 | — |
| entity.name.tag | #BD93F9 | — |
| entity.other.attribute-name.parent-selector | #FF79C6 | — |
| entity.other.attribute-name | #50FA7B | italic |
| punctuation.definition.string.begin.html, punctuation.definition.string.end.html, string.quoted.single.html, string.quoted.double.html | #F1FA8C | — |
| meta.embedded.block.html | #F8F8F2 | — |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function, support.function.any-method.lua | #50FA7B | — |
| keyword.operator.function.infix, support.function.builtin, support.function.kernel, entity.name.function.macro | #50FA7B | italic underline |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.block.parameters variable.other.block, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter, variable.other.positional.shell, meta.function.parameters variable.other.go | #FFB86C | — |
| entity.name.type.annotation, meta.decorator meta.function-call entity.name.function, meta.decorator variable.other.readwrite, meta.decorator variable.other.property, meta.attribute.rust, entity.name.function.decorator | #BBB529 | — |
| meta.decorator variable.other.object | #50FA7B | — |
| keyword, keyword.control, keyword.control.new, keyword.operator, keyword.operator.new, keyword.operator.assignment, keyword.operator.logical, keyword.operator.comparison, keyword.operator.expression, punctuation.definition.keyword | #FF79C6 | — |
| meta.selector, meta.block.parameters | #FF79C6 | — |
| support, support.type.primitive.go | #8BE9FD | italic |
| support.type.primitive | #FF79C6 | |
| support.function.magic, support.variable, variable.other.predefined, variable.other.enummember | #BD93F9 | |
| support.function, support.type.property-name | — | |
| 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 | #FF79C6 | — |
| 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 | #F8F8F2 | — |
| meta.template.expression, 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 | #FF79C6 | — |
| punctuation.decorator, punctuation.definition.decorator | #BBB529 | |
| support.type.property-name.json, entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #8BE9FD | — |
| constant.other.date, constant.other.timestamp | #FFB86C | — |
| variable.other.alias.yaml | #50FA7B | italic underline |
| storage, storage.type.type, storage.type.class, storage.type.alias, storage.type.func, storage.type.function, storage.type.interface, storage.type.import, storage.type.package, storage.type.namespace, storage.type.var, storage.type.const, storage.type.variable, storage.type.object, storage.type.property, storage.type.struct, meta.var.expr storage.type, meta.method.declaration storage.type, meta.method.declaration storage.type.ts, meta.method.declaration storage.type.property.ts, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def | #FF79C6 | |
| entity.name.type, keyword.primitive-datatypes.swift, keyword.type.cs, meta.function.parameters.python, 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 | #8BE9FD | italic |
| entity.name.interface, entity.name.type.interface | #F1FA8C | italic |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #8BE9FD | — |
| storage.modifier, support.type.object.module | #FF79C6 | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #F1FA8C | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #F1FA8C | — |
| punctuation.definition.character-class.regexp, punctuation.definition.group.regexp | #8BE9FD | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, keyword.other.back-reference.regexp, keyword.operator.negation.regexp, punctuation.definition.group.assertion.regexp | #FF79C6 | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp | #BD93F9 | — |
| string.regexp constant.character.escape.backslash.regexp, punctuation.definition.group.capture.regexp | #F8F8F2 | — |
| meta.group.regexp | #50FA7B | — |
| string, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.quoted punctuation.definition.string.begin, string.quoted punctuation.definition.string.end, string.interpolated.dollar.shell string.quoted punctuation.definition.string.begin.shell, string.interpolated.dollar.shell string.quoted punctuation.definition.string.end.shell | #F1FA8C | — |
| string.interpolated.dollar.shell punctuation.definition.string.begin.shell, string.interpolated.dollar.shell punctuation.definition.string.end.shell, variable.other.bracket.shell punctuation.definition.variable.shell, variable.other.normal.shell punctuation.definition.variable.shell, variable.other.positional.shell punctuation.definition.variable.shell | #FF79C6 | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #77B767 | — |
| variable.other.property, variable.other.readwrite.instance.ruby, variable.other.readwrite.class.ruby, support.variable.property | #BD93F9 | — |
| variable, constant.other.key.perl, variable.other.constant, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #F8F8F2 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #FFB86C | italic |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #F8F8F2 | |
| entity.name.type.lifetime, storage.modifier.lifetime.rust | #467EDA | — |
| meta.selectionset.graphql variable | #F1FA8C | — |
| meta.selectionset.graphql meta.arguments variable | #F8F8F2 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #8BE9FD | — |
| 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.if-block.shell punctuation.definition.string.begin, meta.scope.if-block.shell punctuation.definition.string.end, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, 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, punctuation.separator.parameters.python, constant.language.empty-list.haskell | #F8F8F2 | — |
| variable.other.readwrite.global.pre-defined.ruby, variable.other.special.shell | #8BE9FD | underline italic |
| source.shell variable.other | #BD93F9 | — |
| support.constant | #BD93F9 | |
| meta.scope.prerequisites.makefile | #F1FA8C | — |
| meta.attribute-selector.scss | #F1FA8C | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #F8F8F2 | — |
| meta.preprocessor.haskell | #77B767 | — |
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}!`;
}