Orange Ocean Theme
Publisher: Ender BonnetThemes in package: 1
Orange flavores dark theme
Orange flavores dark theme
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 | #c94324 | — |
| source | #c986ff | — |
| entity.name.type.class | #f47c20 | bold |
| keyword.other.this, variable.language, variable.parameter.function.language.special | #f47c20 | — |
| entity.other.inherited-class | #f47c20 | — |
| support.class.builtin | — | — |
| comment, punctuation.definition.comment, unused.comment, wildcard.comment | #f798505e | italic |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation storage.type.class | — | italic |
| comment.block.documentation variable | — | italic |
| constant | #9c4430 | — |
| variable.other.constant | #f47c20 | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #38a8a8 | — |
| constant.other.date, constant.other.timestamp | — | — |
| support.variable, variable.other.predefined | — | — |
| meta.definition.function, meta.definition.method | #38a8a8 | bold |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, variable.parameter | #c94324 | — |
| meta.function-call.generic, meta.function-call.object, meta.function-call.static, keyword.operator.function.infix | #38a8a8 | — |
| meta.decorator variable.other.readwrite, meta.decorator variable.other.property, meta.decorator variable.other.object | — | — |
| support.function.magic | #38a8a8 | — |
| keyword, punctuation.definition.keyword | #c986ff | — |
| keyword.control.new, keyword.operator.new | — | bold |
| entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.definition.entity.other.inherited-class, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, punctuation.separator.annotation, punctuation.accessor | #f8f4f9 | — |
| 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.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, string.template meta.brace | #f8f4f9 | — |
| 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.end | #f8f4f9 | — |
| string, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #2a7f7f | — |
| storage | #c986ff | — |
| entity.name.type | #f47c20 | — |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #f47c20 | — |
| storage.modifier | #f47c20 | — |
| variable, support.variable.property | #9c4430 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property | #f47c20 | — |
| meta.import variable.other.readwrite.alias | #f8f4f9 | — |
| storage.type.c | #f47c20 | — |
| punctuation.section.embedded.coffee | #c94324 | — |
| meta.variable.assignment.destructured.object.coffee variable | #c94324 | — |
| meta.variable.assignment.destructured.object.coffee variable variable | #c94324 | — |
| punctuation.definition.tag.cs | #f47c20 | — |
| keyword.type.cs, storage.type.cs | #f47c20 | — |
| meta.diff, meta.diff.header | #38a8a8 | — |
| markup.inserted | #2a7f7f | — |
| markup.deleted | #c94324 | — |
| markup.changed | #f47c20 | — |
| invalid | #ffffff | underline italic |
| invalid.deprecated | #ffffff | underline italic |
| entity.name.filename | #f47c20 | — |
| markup.error | #94151b | — |
| entity.name.function.elixir | #38a8a8 | — |
| constant.other.symbol.elixir, constant.language.symbol.elixir | #38a8a8 | — |
| documentation.heredoc.elixir | — | |
| entity.name.type.module.elixir | #f47c20 | — |
| variable.other.readwrite.module.elixir, variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #c94324 | — |
| punctuation.separator.method.elixir | #c986ff | — |
| punctuation.section.embedded.elixir | #c986ff | — |
| variable.other.anonymous.elixir punctuation.definition.variable.elixir | #c986ff | — |
| punctuation.other.period.go, punctuation.other.colon.go | #c986ff | — |
| source.go storage.type | #f47c20 | — |
| entity.name.type.go | #f47c20 | — |
| entity.name.function.go | #38a8a8 | — |
| support.function.go | #38a8a8 | — |
| punctuation.definition.tag.begin.js, punctuation.definition.tag.end.js, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #f798505e | — |
| entity.name.tag | #c94324 | — |
| entity.name.tag support.class.component.js, entity.name.tag support.class.component.tsx | #c986ff | — |
| meta.selector | #c986ff | — |
| entity.other.attribute-name.parent-selector | #c986ff | — |
| meta.attribute-selector.scss | #38a8a8 | — |
| punctuation.definition.attribute-selector.end.bracket.square.scss, punctuation.definition.attribute-selector.begin.bracket.square.scss | #c94324 | — |
| entity.other.attribute-name | #38a8a8 | — |
| 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 | #f8f4f9 | — |
| support.constant.property-value.css | #2a7f7f | — |
| keyword.control.at-rule.media.scss, keyword.control.at-rule.media.scss punctuation.definition.keyword.scss | #38a8a8 | — |
| meta.method-call.java meta.method | #f8f4f9 | — |
| storage.type.generic.java | #f47c20 | — |
| source.java storage.type | #f47c20 | — |
| keyword.operator.dereference.java, storage.modifier.import | #f8f4f9 | — |
| support.variable.property.js | #9c4430 | — |
| variable.other.constant.js | #f47c20 | — |
| support.class.console.js, support.type.object.module.js, support.class.promise.js, support.constant.json.js | #f47c20 | — |
| support.class.js | #f47c20 | — |
| meta.object-literal.key.js entity.name.function.js, meta.var.expr.js meta.definition.variable.js entity.name.function.js, meta.definition.property.js entity.name.function.js | #c94324 | — |
| meta.function-call.js | #38a8a8 | — |
| punctuation.definition.variable.makefile | #f47c20 | — |
| entity.name.function.target.makefile | #f47c20 | — |
| meta.scope.prerequisites.makefile | #c94324 | — |
| markup.underline | — | underline |
| markup.bold | #9c4430 | bold |
| markup.heading | #c94324 | bold |
| markup.italic | #c986ff | italic |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #c94324 | — |
| markup.inline.raw, markup.raw.restructuredtext | #2a7f7f | — |
| markup.underline.link, markup.underline.link.image | #c986ff | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #38a8a8 | — |
| entity.name.directive.restructuredtext, markup.quote | #f798505e | italic |
| meta.separator.markdown | #c94324 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #c94324 | — |
| punctuation.definition.constant.restructuredtext | #c94324 | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #c94324 | — |
| meta.paragraph.markdown punctuation.definition.string.begin, meta.paragraph.markdown punctuation.definition.string.end | #c94324 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #c94324 | — |
| meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc | #f47c20 | — |
| meta.protocol-list.objc, meta.return-type.objc, storage.type.objc | #f47c20 | — |
| entity.name.function.python | #38a8a8 | — |
| meta.function-call.python support.type.python, meta.function-call.python support.function.builtin.python | #38a8a8 | — |
| punctuation.separator.period.python, punctuation.separator.colon.python, punctuation.separator.dict.python, punctuation.section.function.begin.python | #f8f4f9 | — |
| source.shell variable.other | #c94324 | — |
| meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string | #c94324 | — |
| meta.group.double.toml, meta.group.toml | #c94324 | — |
| entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #38a8a8 | — |
| support.variable.property.ts, support.variable.property.tsx | #c94324 | — |
| variable.other.constant.ts, variable.other.constant.tsx | #f47c20 | — |
| support.class.console.ts, support.type.object.module.ts, support.class.promise.ts, support.constant.json.ts, support.class.console.tsx, support.type.object.module.tsx, support.class.promise.tsx, support.constant.json.tsx | #f47c20 | — |
| support.class.ts, support.class.tsx | #f47c20 | — |
| meta.object-literal.key.ts entity.name.function.ts, meta.var.expr.ts meta.definition.variable.ts entity.name.function.ts, meta.definition.property.ts entity.name.function.ts, meta.object-literal.key.tsx entity.name.function.tsx, meta.var.expr.tsx meta.definition.variable.tsx entity.name.function.tsx, meta.definition.property.tsx entity.name.function.tsx | #c94324 | — |
| meta.function-call.ts, meta.function-call.tsx | #38a8a8 | — |
| entity.name.type.alias.ts, entity.name.type.interface.ts, entity.name.type.enum.ts, entity.name.type.alias.tsx, entity.name.type.interface.tsx, entity.name.type.enum.tsx | #f47c20 | — |
| support.type.primitive.ts, support.type.builtin.ts, entity.name.type.ts, support.type.primitive.tsx, support.type.builtin.tsx, entity.name.type.tsx | #f47c20 | — |
| meta.type.parameters.ts support.type.primitive.ts, meta.type.parameters.ts entity.name.type.ts, meta.type.parameters.tsx support.type.primitive.tsx, meta.type.parameters.tsx entity.name.type.tsx | #f47c20 | — |
| punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, punctuation.definition.typeparameters.begin.tsx, punctuation.definition.typeparameters.end.tsx | #38a8a8 | — |
| punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.separator.key-value.mapping.yaml, support.other.chomping-indicator.yaml | #9c4430 | — |
| entity.name.tag.yaml | #c986ff | — |
| variable.other.alias.yaml | #c986ff | underline |
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}!`;
}