Oil theme
Publisher: Brody MacLeanThemes in package: 1
A visually appealing dark theme designed for clarity, created by Brody MacLean. Enhancing the coding experience with a well-thought-out color palette.
A visually appealing dark theme designed for clarity, created by Brody MacLean. Enhancing the coding experience with a well-thought-out color palette.
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 |
|---|---|---|
| Global settings | #CDD6F4 | — |
| comment, punctuation.definition.comment | #585B70 | italic |
| comment.line.double-slash | #585B70 | — |
| string | #F7D790 | — |
| string.quoted, variable.other.readwrite.js | #F7D790 | — |
| string.regexp, string.regexp keyword.other | #4CB7E4 | — |
| string.template meta.template.expression | #B84A4A | — |
| string.template punctuation.definition.string | #CDD6F4 | — |
| constant.numeric, constant.character.numeric | #DE8B8B | |
| constant.language, punctuation.definition.constant, variable.other.constant | #89B4FA | — |
| constant.character, constant.other | #89B4FA | — |
| constant.character.escape | #DE8B8B | — |
| constant.other.color | #F7D790 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #DE8B8B | — |
| support.constant.math | #A6E3A1 | — |
| constant.language.boolean | #E74C7B | — |
| constant.language.null | #E74C7B | — |
| variable | #A6E3A1 | — |
| variable.parameter.function | #74D4C8 | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #AFE9F2 | — |
| variable.other.object.property | #F9E2AF | italic |
| variable.other.object.js | — | |
| variable.function | #89B4FA | — |
| variable.interpolation | #D75C75 | — |
| variable.language | #74D4C8 | — |
| variable.parameter | #F7D790 | — |
| punctuation.accessor, keyword | #BD8DF3 | italic |
| keyword.operator | #74D4C8 | |
| keyword.operator.relational | #BD8DF3 | italic |
| keyword.operator.assignment | #BD8DF3 | — |
| keyword.operator.arithmetic | #BD8DF3 | — |
| keyword.operator.bitwise | #BD8DF3 | — |
| keyword.operator.increment | #BD8DF3 | — |
| keyword.operator.ternary | #BD8DF3 | — |
| keyword.operator.logical | #BD8DF3 | |
| keyword.control.operator | #74D4C8 | — |
| keyword.other.unit | #F7D790 | — |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #BD8DF3 | italic |
| storage.type | #BD8DF3 | — |
| storage.type.function.arrow.js | — | |
| entity.name.function | #89B4FA | italic |
| meta.function-call | #89B4FA | — |
| support.function, support.constant | #89B4FA | — |
| support.function | #A6E3A1 | — |
| support.constant, keyword.other.special-method, keyword.other.new, keyword.other.debugger, keyword.control | #74D4C8 | — |
| meta.function punctuation.separator.comma | #313244 | — |
| entity.name.class, meta.class entity.name.type.class | #F7D790 | — |
| entity.other.inherited-class | #A6E3A1 | — |
| support.type, support.class | #A6E3A1 | — |
| support.variable.dom | #A6E3A1 | — |
| support.variable.property | #74D4C8 | — |
| support.constant.meta.property-value | #74D4C8 | — |
| entity.name.tag.custom | #DE8B8B | — |
| punctuation.definition.tag, meta.tag | #74D4C8 | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, meta.tag.js, meta.tag.tsx, meta.tag.html | #D3F4EE | |
| entity.other.attribute-name | #A6E3A1 | italic |
| entity.other.attribute-name.id | #F3BD56 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #BD8DF3 | italic |
| punctuation.definition.string | #E4F7E1 | — |
| punctuation.definition.string.begin.markdown | #E74C7B | — |
| punctuation.definition.parameters | #E4F7E1 | — |
| punctuation.section.embedded | #B84A4A | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #CDD6F4 | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #E4F7E1 | — |
| meta.brace | #CDD6F4 | — |
| meta.delimiter.period | #BD8DF3 | italic |
| meta.selector | #BD8DF3 | italic |
| meta.property-name | #74D4C8 | — |
| object | #D4F4F9 | — |
| object.comma | #FAF6FE | — |
| invalid | #FAF6FE | — |
| invalid.deprecated | #FAF6FE | — |
| invalid.broken | #11111B | — |
| invalid.unimplemented | #FAF6FE | — |
| invalid.illegal | #FAF6FE | — |
| italic | #BD8DF3 | italic |
| bold | #A6E3A1 | bold |
| quote | #585B70 | italic |
| raw | #74D4C8 | — |
| markup.heading, markup.heading.setext.1, markup.heading.setext.2 | #89B4FA | — |
| markup.italic | #BD8DF3 | italic |
| markup.bold | #A6E3A1 | bold |
| markup.quote | #585B70 | italic |
| markup.inline.raw | #74D4C8 | — |
| markup.underline.link, markup.underline.link.image | #F38BA8 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #CDD6F4 | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #89B4FA | — |
| punctuation.definition.metadata.markdown | #74D4C8 | — |
| beginning.punctuation.definition.list.markdown | #89B4FA | — |
| markup.inline.raw.string.markdown | #A6E3A1 | — |
| markup.deleted | #E43F12 | — |
| markup.inserted | #255922 | — |
| markup.underline | — | underline |
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #B4BEFE | italic |
| markup.deleted.diff | #CE656590 | italic |
| markup.inserted.diff | #A6E3A1ff | italic |
| meta.class entity.name.type.class.js | #F7D790 | — |
| meta.method.declaration storage.type.js | #89B4FA | — |
| terminator.js | #CDD6F4 | — |
| meta.js punctuation.definition.js | #CDD6F4 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #CDD6F4 | — |
| variable.parameter.function.js | #7F85FA | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #CDD6F4 | — |
| variable.js, variable.other.js | #CDD6F4 | — |
| entity.name.type.js, entity.name.type.module.js | #F7D790 | |
| support.class.js | #CDD6F4 | — |
| variable.other.object.js | #74D4C8 | italic |
| variable.language.this.js | #3ABCD6 | italic |
| variable.other.readwrite.js, variable.parameter | #CDD6F4 | — |
| keyword.operator.comparison, keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #BD8DF3 | italic |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts | #BD8DF3 | |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #313244 | — |
| variable.other.jsdoc, variable.other.phpdoc | #74C7EC | — |
| support.class.component.js, support.class.component.tsx | #DE8B8B | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #CDD6F4 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #CDD6F4 | — |
| entity.name.type.ts, entity.name.type.tsx | #F7D790 | — |
| support.class.node.ts, support.class.node.tsx | #89B4FA | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #313244 | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #CDD6F4 | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #89B4FA | — |
| meta.tag.js meta.jsx.children.tsx | #89B4FA | — |
| meta.class entity.name.type.class.tsx | #F7D790 | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #F7D790 | — |
| meta.class.ts meta.var.expr.ts storage.type.ts, meta.class.tsx meta.var.expr.tsx storage.type.tsx | #BD8DF3 | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #89B4FA | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, support.constant.property-value.css | #E74C7B | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #74D4C8 | — |
| keyword.other.unit.css, keyword.other.unit.less | #F7D790 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute, variable.other.readwrite.js | #DE8B8B | — |
| support.type.vendor.property-name, support.constant.vendor.property-value, support.type.property-name, meta.property-list entity.name.tag | #74D4C8 | |
| meta.property-list entity.name.tag.reference | #74C7EC | — |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #A6E3A1 | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #BAC2DE | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #DE8B8B | — |
| entity.name.tag.scss, entity.name.tag.sass | #74D4C8 | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #F7D790 | — |
| entity.name.tag.less | #74D4C8 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #DE8B8B | — |
| entity.other.attribute-name.id.html | #A6E3A1 | — |
| punctuation.definition.tag.html | #89DCEB | — |
| meta.tag.sgml.doctype.html | #BD8DF3 | italic |
| support.type.property-name.json | #74D4C8 | — |
| support.constant.json | #A6E3A1 | — |
| meta.structure.dictionary.value.json string.quoted.double | #BD8DF3 | — |
| string.quoted.double.json punctuation.definition.string.json | #89DCEB | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #E74C7B | — |
| entity.name.tag.yaml | #74D4C8 | — |
| constant.language.python | #E74C7B | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #89B4FA | — |
| meta.function-call.python, meta.function-call.generic.python | #BAC2DE | — |
| punctuation.python | #CDD6F4 | — |
| entity.name.function.decorator.python | #A6E3A1 | — |
| source.python variable.language.special | #89B4FA | — |
| keyword.control | #BD8DF3 | italic |
| variable.other.ruby | #CDD6F4 | — |
| entity.name.type.class.ruby | #F7D790 | — |
| constant.language.symbol.hashkey.ruby | #74D4C8 | — |
| constant.language.symbol.ruby | #74D4C8 | — |
| source.go meta.function-call.go | #F5E0DC | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #BD8DF3 | italic |
| source.go constant.language.go, source.go constant.other.placeholder.go | #E74C7B | — |
| entity.name.function.preprocessor.cpp, entity.scope.name.cpp | #74D4C8ff | — |
| meta.namespace-block.cpp | #F2CDCD | — |
| storage.type.language.primitive.cpp | #E74C7B | — |
| meta.preprocessor.macro.cpp | #CDD6F4 | — |
| variable.other.readwrite.cs | #CDD6F4 | — |
| entity.name.type.class.cs, storage.type.cs | #F7D790 | — |
| entity.name.type.namespace.cs | #BAC2DE | — |
| string.unquoted.preprocessor.message.cs | #CDD6F4 | — |
| punctuation.separator.hash.cs, keyword.preprocessor.region.cs, keyword.preprocessor.endregion.cs | #F7D790 | bold |
| variable.other.object.cs | #BAC2DE | — |
| entity.name.type.enum.cs | #A6E3A1 | — |
| variable.other.php, variable.other.property.php | #BAC2DE | — |
| support.class.php | #F7D790 | — |
| meta.function-call.php punctuation | #CDD6F4 | — |
| variable.other.global.php | #A6E3A1 | — |
| variable.other.global.php punctuation.definition.variable | #A6E3A1 | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #89B4FA | — |
| source.elixir entity.name.function | #A6E3A1 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #89B4FA | — |
| source.elixir punctuation.definition.string | #A6E3A1 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #A6E3A1 | — |
| source.elixir .punctuation.binary.elixir | #BD8DF3 | italic |
| string.interpolated.single.dart, string.interpolated.double.dart | #F7D790 | — |
| support.class.dart | #F7D790 | — |
| variable.assignment.coffee | #74D4C8 | — |
| variable.parameter.function.coffee | #CDD6F4 | — |
| constant.keyword.clojure | #74D4C8 | — |
| variable.other.readwrite.powershell | #89B4FA | — |
| support.function.powershell | #74D4C8ff | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, variable.other.readwrite.js, storage.type, source.css, string.quoted | — | |
| constant.other.symbol | #74D4C8 | — |
| token.info-token | #89B4FA | — |
| token.warn-token | #EFA530 | — |
| token.error-token | #CE6565 | — |
| token.debug-token | #BD8DF3 | — |
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}!`;
}