Oceanic Rift
Publisher: Jeff SchuilThemes in package: 1
A deep-ocean dark theme for VS Code, adapted from the Oceanic Reef Atom syntax.
A deep-ocean dark theme for VS Code, adapted from the Oceanic Reef Atom syntax.
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 |
|---|---|---|
| storage.modifier | #D95757 | — |
| storage.type | #FFB266 | italic |
| keyword.operator, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #8AD6F2 | — |
| entity.name.tag, meta.tag.sgml | #92E89D | — |
| punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #F7FCA2 | — |
| variable.parameter.handlebars | #FFFFFF | — |
| meta.function-call, meta.block-level | #F2AAEC | — |
| support.other.variable, string.other.link | #E47D80 | — |
| support.constant | #FFB266 | — |
| constant.character | #56D1A7 | — |
| constant.other | #56D1A7 | — |
| variable.parameter | #FFD2A6 | italic |
| string, constant.other.symbol, constant.other.key | #8AD6F2 | normal |
| entity.other.inherited-class, markup.heading, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #F2AAEC | normal |
| entity.name.class, entity.name.type.class | #FFFFFF | — |
| support.type, support.class | #F7FCA2 | — |
| variable.language | — | italic |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #F2AAEC | italic |
| markup.inserted | #92E89D | — |
| markup.deleted | #E47D80 | — |
| markup.changed | #8AD6F2 | — |
| support.constant.edge | #D95757 | — |
| constant.other.character-class.regexp | #FFD2A6 | — |
| keyword.operator.quantifier.regexp | #8AD6F2 | — |
| punctuation.definition.string.begin,punctuation.definition.string.end | #8AD6F2 | — |
| variable.parameter.function | #FFD2A6 | — |
| comment markup.link | #6D6D6D | — |
| markup.changed.diff | #56D1A7 | — |
| meta.diff.header.from-file, punctuation.definition.from-file.diff | #E47D80 | — |
| meta.diff.header.to-file, punctuation.definition.to-file.diff | #92E89D | — |
| meta.diff.range, meta.diff.range.unified, meta.diff.range.normal, punctuation.definition.range.diff | #C792EA | — |
| meta.diff.header.git | #F2AAEC | — |
| markup.inserted.diff, punctuation.definition.inserted.diff | #92E89D | — |
| markup.deleted.diff, punctuation.definition.deleted.diff | #E47D80 | — |
| punctuation.separator.key-value | #F8F8F2 | — |
| keyword.operator.expression.import | #F2AAEC | — |
| variable.other.constant | #FCC672 | — |
| string.quoted.double.interpolated.ruby | #F2AAEC | — |
| keyword.operator.logical | #E47D80 | — |
| keyword.operator.bitwise | #E47D80 | — |
| keyword.operator.channel | #E47D80 | — |
| support.constant.property-value.scss,support.constant.property-value.css | #FFD2A6 | — |
| keyword.operator.css,keyword.operator.scss,keyword.operator.less | #E47D80 | — |
| support.constant.color.w3c-standard-color-name.css,support.constant.color.w3c-standard-color-name.scss | #8AD6F2 | — |
| punctuation.separator.list.comma.css | #F8F8F2 | — |
| support.constant.color.w3c-standard-color-name.css | #8AD6F2 | — |
| support.type.vendored.property-name.css | #E47D80 | — |
| support.module.node,support.type.object.module,support.module.node | #56D1A7 | — |
| entity.name.type.module | #56D1A7 | — |
| variable.other.readwrite,meta.object-literal.key,support.variable.property,support.variable.object.process,support.variable.object.node | #FCC672 | — |
| variable.other.readwrite.alias.js | #F8F8F2 | — |
| support.constant.json | #8AD6F2 | — |
| keyword.operator.expression.instanceof, keyword.operator.new, keyword.operator.ternary, keyword.operator.optional, keyword.operator.expression.keyof | #D95757 | — |
| support.type.object.console | #FFD2A6 | — |
| support.variable.property.process | #8AD6F2 | — |
| entity.name.function,support.function.console | #F2AAEC | — |
| keyword.operator.delete | #D95757 | — |
| support.type.object.dom | #E47D80 | — |
| support.variable.dom,support.variable.property.dom | #FFD2A6 | — |
| keyword.operator.arithmetic,keyword.operator.comparison,keyword.operator.decrement,keyword.operator.increment,keyword.operator.relational | #E47D80 | — |
| keyword.operator.assignment.c,keyword.operator.comparison.c,keyword.operator.c,keyword.operator.increment.c,keyword.operator.decrement.c,keyword.operator.bitwise.shift.c,keyword.operator.assignment.cpp,keyword.operator.comparison.cpp,keyword.operator.cpp,keyword.operator.increment.cpp,keyword.operator.decrement.cpp,keyword.operator.bitwise.shift.cpp | #D95757 | — |
| punctuation | #FCC672 | — |
| punctuation.separator.delimiter | #F8F8F2 | — |
| keyword.operator | #F8F8F2 | — |
| keyword.operator.assignment.compound | #D95757 | — |
| keyword | #D95757 | — |
| entity.name.namespace | #56D1A7 | — |
| variable | #FCC672 | — |
| variable.language | #FCC672 | — |
| token.package.keyword | #D95757 | — |
| token.package | #F8F8F2 | — |
| entity.name.function, meta.require, support.function.any-method, variable.function | #F2AAEC | — |
| entity.name.type.namespace | #56D1A7 | — |
| support.class, entity.name.type.class | #F8F8F2 | — |
| entity.name.class.identifier.namespace.type | #56D1A7 | — |
| entity.name.type | #56D1A7 | — |
| keyword.control | #E47D80 | — |
| control.elements, keyword.operator.less | #8AD6F2 | — |
| keyword.other.special-method | #F2AAEC | — |
| storage | #D95757 | — |
| token.storage | #D95757 | — |
| keyword.operator.expression.delete,keyword.operator.expression.in,keyword.operator.expression.of,keyword.operator.expression.instanceof,keyword.operator.new,keyword.operator.expression.typeof,keyword.operator.expression.void | #D95757 | — |
| support.function | #E47D80 | — |
| support.type.property-name | #F7FCA2 | — |
| support.constant.property-value | #F8F8F2 | — |
| support.constant.font-name | #8AD6F2 | — |
| meta.tag | #F8F8F2 | — |
| string | #8AD6F2 | — |
| entity.other.inherited-class | #56D1A7 | — |
| constant.other.symbol | #E47D80 | — |
| constant.other.symbol.hashkey.parameter.function | #56D1A7 | — |
| constant.numeric | #8AD6F2 | — |
| constant | #8AD6F2 | — |
| punctuation.definition.constant | #8AD6F2 | — |
| entity.name.tag | #92E89D | — |
| entity.other.attribute-name | #8AD6F2 | — |
| entity.other.attribute-name.id | #F2AAEC | normal |
| entity.other.attribute-name.class.css | #92E89D | normal |
| meta.selector | #D95757 | — |
| markup.heading | #FFD2A6 | — |
| markup.heading punctuation.definition.heading, entity.name.section | #F2AAEC | — |
| keyword.other.unit | #FFD2A6 | — |
| markup.bold,todo.bold | #8AD6F2 | — |
| punctuation.definition.bold | #56D1A7 | — |
| markup.italic, punctuation.definition.italic,todo.emphasis | #D95757 | — |
| emphasis md | #D95757 | — |
| entity.name.section.markdown | #FFD2A6 | — |
| punctuation.definition.heading.markdown | #FFD2A6 | — |
| punctuation.definition.list.begin.markdown | #FFD2A6 | — |
| markup.heading.setext | #F8F8F2 | — |
| punctuation.definition.bold.markdown | #8AD6F2 | — |
| markup.inline.raw.markdown | #8AD6F2 | — |
| markup.inline.raw.string.markdown | #8AD6F2 | — |
| punctuation.definition.list.markdown | #FFD2A6 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown | #FFD2A6 | — |
| beginning.punctuation.definition.list.markdown | #FFD2A6 | — |
| punctuation.definition.metadata.markdown | #FFD2A6 | — |
| markup.underline.link.markdown,markup.underline.link.image.markdown | #E47D80 | — |
| string.other.link.title.markdown,string.other.link.description.markdown | #F2AAEC | — |
| string.regexp | #E47D80 | — |
| constant.character.escape | #E47D80 | — |
| punctuation.section.embedded, variable.interpolation | #FFD2A6 | — |
| punctuation.section.embedded.begin,punctuation.section.embedded.end | #D95757 | — |
| invalid.illegal | #FFFFFF | — |
| invalid.illegal.bad-ampersand.html | #F8F8F2 | — |
| invalid.broken | #FFFFFF | — |
| invalid.deprecated | #FFFFFF | — |
| invalid.unimplemented | #FFFFFF | — |
| source.json meta.structure.dictionary.json > string.quoted.json | #FFD2A6 | — |
| source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #FFD2A6 | — |
| source.json meta.structure.dictionary.json > value.json > string.quoted.json,source.json meta.structure.array.json > value.json > string.quoted.json,source.json meta.structure.dictionary.json > value.json > string.quoted.json > punctuation,source.json meta.structure.array.json > value.json > string.quoted.json > punctuation | #8AD6F2 | — |
| source.json meta.structure.dictionary.json > constant.language.json,source.json meta.structure.array.json > constant.language.json | #E47D80 | — |
| support.type.property-name.json | #FFD2A6 | — |
| support.type.property-name.json punctuation | #FFD2A6 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade | #D95757 | — |
| text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #D95757 | — |
| support.other.namespace.use.php,support.other.namespace.use-as.php,support.other.namespace.php,entity.other.alias.php,meta.interface.php | #56D1A7 | — |
| function.parameter | #F8F8F2 | — |
| function.brace | #F8F8F2 | — |
| constant.language | #56D1A7 | — |
| constant.language.boolean | #C792EA | — |
| constant.language.symbol.ruby | #56D1A7 | — |
| rgb-value | #E47D80 | — |
| inline-color-decoration rgb-value | #8AD6F2 | — |
| less rgb-value | #8AD6F2 | — |
| selector.sass | #FFD2A6 | — |
| support.type.primitive.ts,support.type.builtin.ts,support.type.primitive.tsx,support.type.builtin.tsx | #56D1A7 | — |
| block.scope.end,block.scope.begin | #F8F8F2 | — |
| storage.type.cs | #56D1A7 | — |
| entity.name.variable.local.cs | #FFD2A6 | — |
| token.info-token | #F2AAEC | — |
| token.warn-token | #8AD6F2 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #D95757 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #D95757 | — |
| meta.template.expression | #F8F8F2 | — |
| keyword.operator.module | #D95757 | — |
| support.type.type.flowtype | #F2AAEC | — |
| support.type.primitive | #56D1A7 | — |
| meta.property.object | #FFD2A6 | — |
| source.js | #F8F8F2 | — |
| variable.parameter.function.js | #FFD2A6 | — |
| keyword.other.template.begin | #8AD6F2 | — |
| keyword.other.template.end | #8AD6F2 | — |
| keyword.other.substitution.begin | #8AD6F2 | — |
| keyword.other.substitution.end | #8AD6F2 | — |
| keyword.operator.assignment | #E47D80 | — |
| punctuation.quasi.element | #D95757 | — |
| constant.character.entity | #FFD2A6 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #E47D80 | — |
| entity.global.clojure | #56D1A7 | — |
| meta.symbol.clojure | #FFD2A6 | — |
| constant.keyword.clojure | #E47D80 | — |
| source.ini | #8AD6F2 | — |
| meta.scope.prerequisites.makefile | #FFD2A6 | — |
| source.makefile | #56D1A7 | — |
| support.variable.semantic.hlsl | #56D1A7 | — |
| support.type.texture.hlsl, support.type.sampler.hlsl, support.type.object.hlsl, support.type.object.rw.hlsl, support.type.fx.hlsl, support.type.object.hlsl | #D95757 | — |
| text.variable, text.bracketed | #FFD2A6 | — |
| support.type.swift, support.type.vb.asp | #56D1A7 | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #56D1A7 | — |
| entity.name.label.cs, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #FFD2A6 | — |
| meta.brace.square | #F8F8F2 | — |
| comment, punctuation.definition.comment, punctuation.section.comment | #7F848E | italic |
| markup.quote.markdown | #7F848E | — |
| punctuation.definition.block.sequence.item.yaml | #F8F8F2 | — |
| entity.other.attribute-name.js,entity.other.attribute-name.ts,entity.other.attribute-name.jsx,entity.other.attribute-name.tsx,variable.parameter,variable.language.super | — | italic |
| variable.language.this.js | #F8F8F2 | — |
| variable.other.object.js | #F8F8F2 | — |
| comment.line.double-slash,comment.block.documentation | — | italic |
| markup.italic.markdown | — | italic |
| ref.matchtext | #000000 | — |
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}!`;
}