Oxford Dark
Publisher: trystendsmythThemes in package: 1
A deep Oxford Dark theme for VSCode
A deep Oxford Dark theme for VSCode
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, keyword.control.flow.python, keyword.control.import.python | — | italic |
| strong | — | bold |
| none | #ECECEC | — |
| keyword.operator.bitwise, keyword.operator.channel, keyword.operator.logical | #3DC0EF | — |
| keyword.other.special-method | #4A91DA | — |
| entity.name.namespace, punctuation.definition.bold | #EAC705 | — |
| punctuation.section.embedded, variable, variable.interpolation | #DE473B | — |
| constant.numeric, keyword.other.unit, punctuation.definition.constant, support.constant.font-name | #EB9E11 | — |
| block.scope.begin, block.scope.end | #ECECEC | — |
| meta.diff.header.from-file, meta.diff.header.to-file, punctuation.definition.from-file.diff, punctuation.definition.to-file.diff | #4A91DA | — |
| markup.inserted.diff | #34A151 | — |
| markup.deleted.diff | #DE473B | — |
| markup.changed.diff | #EAC705 | — |
| invalid.illegal, invalid.illegal.bad-ampersand.html, invalid.broken, invalid.deprecated, invalid.unimplemented | #ECECEC | — |
| meta.definition.variable, meta.definition.variable.name.groovy | #DE473B | — |
| meta.definition.class.inherited.classes.groovy | #34A151 | — |
| meta.brace.square, meta.class.body, meta.method, meta.method-call, meta.separator, meta.tag, meta.template.expression | #ECECEC | — |
| markup.underline | — | underline |
| markup.bold, todo.bold | #EB9E11 | bold |
| markup.italic.markdown | — | italic |
| emphasis md, markup.italic, punctuation.definition.italic, todo.emphasis | #9549B5 | italic |
| entity.name.label.cs, entity.name.variable.local.cs, markup.heading, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #DE473B | bold |
| markup.heading punctuation.definition.heading, entity.name.section | #4A91DA | bold |
| comment markup.link | #4A627A | — |
| entity.name.section.markdown, punctuation.definition.heading.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.list.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.metadata.markdown, beginning.punctuation.definition.list.markdown | #DE473B | — |
| string.other.link | #DE473B | — |
| entity.name.type.namespace, entity.name.type.class, entity.name.class, entity.name.class.identifier.namespace.type, support.class | #EAC705 | — |
| entity.other.inherited-class | #EAC705 | — |
| 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, variable.parameter.function.language.special.self.python | #EAC705 | italic |
| comment, comment.block.documentation, comment.line.double-slash, punctuation.definition.comment, unused.comment, wildcard.comment | #4A627A | italic |
| constant, variable.other.constant | #EB9E11 | — |
| constant.character.escape, constant.other.color, constant.other.symbol | #3DC0EF | — |
| entity.name.tag, selector.sass | #DE473B | — |
| support.constant.color.w3c-standard-color-name.css, support.constant.color.w3c-standard-color-name.scss | #EB9E11 | — |
| keyword.operator.css, keyword.operator.scss, keyword.operator.less | #3DC0EF | — |
| support.type.vendored.property-name.css | #3DC0EF | — |
| support.constant.property-value.css, support.constant.property-value.scss | #EB9E11 | — |
| entity.other.attribute-name.class.css | #EB9E11 | — |
| entity.other.attribute-name.id | #4A91DA | — |
| entity.other.attribute-name | #EB9E11 | — |
| control.elements, keyword.operator.less | #EB9E11 | — |
| entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class | #3DC0EF | — |
| entity.name.function, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, meta.require, support.function.any-method, keyword.operator.function.infix, variable.function | #4A91DA | — |
| variable.parameter, variable.parameter.function | #ECECEC | — |
| keyword, keyword.control, keyword.operator.assignment.compound, keyword.operator.delete, keyword.operator.expression.instanceof, keyword.operator.expression.keyof, keyword.operator.new, keyword.operator.optional, keyword.operator.ternary | #9549B5 | — |
| keyword.operator | #ECECEC | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.decrement, keyword.operator.increment, keyword.operator.relational | #3DC0EF | — |
| meta.selector | #9549B5 | — |
| support.function | #3DC0EF | — |
| support.type.property-name, support.constant.property-value | #ECECEC | — |
| punctuation.separator.key-value, punctuation.separator.delimiter, punctuation.separator.list.comma.css | #ECECEC | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, punctuation.section.embedded.begin, punctuation.section.embedded.end | #9549B5 | — |
| punctuation.definition.delayed.unison, punctuation.definition.list.begin.unison, punctuation.definition.list.end.unison, punctuation.definition.ability.begin.unison, punctuation.definition.ability.end.unison, punctuation.operator.assignment.as.unison, punctuation.separator.pipe.unison, punctuation.separator.delimiter.unison, punctuation.definition.hash.unison | #9549B5 | — |
| source.ini | #34A151 | — |
| meta.scope.prerequisites.makefile | #DE473B | — |
| source.makefile | #EAC705 | — |
| punctuation.definition.block.sequence.item.yaml | #ECECEC | — |
| storage | #9549B5 | — |
| entity.name.type, import.storage.java, keyword.other.array.phpdoc.php, keyword.other.type.php, keyword.primitive-datatypes.swift, keyword.type.cs, meta.other.type.phpdoc.php, 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.annotation.java, storage.type.object.array.java, storage.type.java, storage.type.generic.java, 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, token.storage.type.java | #EAC705 | — |
| storage.modifier.import.groovy, storage.modifier.import.java | #EAC705 | — |
| storage.modifier.lifetime.rust | #ECECEC | — |
| string.regexp | #3DC0EF | — |
| constant.other.character-class.set.regexp | #DE473B | — |
| keyword.operator.quantifier.regexp | #EB9E11 | — |
| string | #34A151 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #34A151 | — |
| variable, constant.other.key.perl | #DE473B | — |
| variable.other.generic-type.haskell | #9549B5 | — |
| punctuation.section.block.begin.bracket.curly.cpp, punctuation.section.block.end.bracket.curly.cpp, punctuation.terminator.statement.c, punctuation.section.block.begin.bracket.curly.c, punctuation.section.block.end.bracket.curly.c, punctuation.section.parens.begin.bracket.round.c, punctuation.section.parens.end.bracket.round.c, punctuation.section.parameters.begin.bracket.round.c, punctuation.section.parameters.end.bracket.round.c" | #ECECEC | — |
| meta.function.c, meta.function.cpp | #DE473B | — |
| 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, keyword.operator.sizeof.c, keyword.operator.sizeof.cpp | #9549B5 | — |
| punctuation.separator.c, punctuation.separator.cpp | #9549B5 | — |
| support.type.posix-reserved.c, support.type.posix-reserved.cpp | #3DC0EF | — |
| variable.c | #ECECEC | — |
| entity.name.label.cs, entity.name.scope-resolution.function.call, entity.name.scope-resolution.function.definition | #EAC705 | — |
| entity.global.clojure | #EAC705 | — |
| meta.symbol.clojure | #DE473B | — |
| constant.keyword.clojure | #3DC0EF | — |
| entity.name.package.go, keyword.operator.assignment.go | #EAC705 | — |
| keyword.operator.arithmetic.go, keyword.operator.address.go | #9549B5 | — |
| meta.definition.variable.name.java, source.java | #DE473B | — |
| keyword.operator.instanceof.java | #9549B5 | — |
| meta.method.java | #4A91DA | — |
| meta.method.body.java, meta.method-call.java, meta.method.identifier.java, punctuation.section.block.begin.java, punctuation.section.block.end.java, punctuation.definition.method-parameters.begin.java, punctuation.definition.method-parameters.end.java, punctuation.section.method.begin.java, punctuation.section.method.end.java, punctuation.terminator.java, punctuation.section.class.begin.java, punctuation.section.class.end.java, punctuation.section.inner-class.begin.java, punctuation.section.inner-class.end.java, punctuation.section.class.begin.bracket.curly.java, punctuation.section.class.end.bracket.curly.java, punctuation.section.method.begin.bracket.curly.java, punctuation.section.method.end.bracket.curly.java, punctuation.separator.period.java, punctuation.bracket.angle.java, punctuation.definition.annotation.java | #ECECEC | — |
| support.type.object.dom | #3DC0EF | — |
| support.variable.dom, support.variable.property.dom | #DE473B | — |
| keyword.operator.expression.import, support.type.type.flowtype | #4A91DA | — |
| keyword.control.default.js, keyword.control.default.ts, keyword.control.default.tsx | #DE473B | — |
| keyword.operator.assignment, keyword.operator.assignment.compound.js, keyword.operator.assignment.compound.ts | #3DC0EF | — |
| variable.other.class.js, variable.other.class.ts | #EAC705 | — |
| support.constant.math | #EAC705 | — |
| support.constant.property.math, support.variable.property.process | #EB9E11 | — |
| support.module.node, support.type.object.module, support.type.primitive, entity.name.type.module, keyword.operator.module | #EAC705 | — |
| function.brace, function.parameter | #ECECEC | — |
| variable.other.readwrite, meta.object-literal.key, support.variable.property, support.variable.object.process, support.variable.object.node | #ECECEC | — |
| variable.other.readwrite.alias | #DE473B | — |
| meta.property.object, variable.parameter.function.js | #DE473B | — |
| token.storage, keyword.operator.expression.delete, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.instanceof, keyword.operator.expression.typeof, keyword.operator.expression.void | #9549B5 | — |
| support.type.object.console | #DE473B | — |
| entity.name.function, support.function.console | #4A91DA | — |
| support.constant.json | #EB9E11 | — |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx | #EAC705 | — |
| support.type.property-name.json, support.type.property-name.json punctuation | #DE473B | — |
| source.json meta.structure.dictionary.json > string.quoted.json, source.json meta.structure.dictionary.json > string.quoted.json > punctuation.string | #DE473B | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #3DC0EF | — |
| 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 | #34A151 | — |
| keyword.other.template.begin, keyword.other.template.end, keyword.other.substitution.begin, keyword.other.substitution.end | #34A151 | — |
| text.html.laravel-blade source.php.embedded.line.html entity.name.tag.laravel-blade, text.html.laravel-blade source.php.embedded.line.html support.constant.laravel-blade | #9549B5 | — |
| variable.other.class.php | #DE473B | — |
| support.constant.ext.php, support.constant.std.php, support.constant.core.php, support.constant.parser-token.php | #EB9E11 | — |
| support.other.namespace.use.php, support.other.namespace.use-as.php, support.other.namespace.php, entity.other.alias.php, meta.interface.php | #EAC705 | — |
| keyword.operator.error-control.php, keyword.operator.type.php | #9549B5 | — |
| punctuation.definition.parameters.begin.bracket.round.php, punctuation.definition.parameters.end.bracket.round.php, punctuation.separator.delimiter.php, punctuation.section.scope.begin.php, punctuation.section.scope.end.php, punctuation.terminator.expression.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.definition.storage-type.begin.bracket.round.php, punctuation.definition.storage-type.end.bracket.round.php, punctuation.definition.array.begin.bracket.round.php, punctuation.definition.array.end.bracket.round.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.begin.bracket.curly.php, punctuation.definition.end.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.definition.section.switch-block.start.bracket.curly.php, punctuation.definition.section.switch-block.begin.bracket.curly.php, punctuation.definition.section.switch-block.end.bracket.curly.php, punctuation.section.array.begin.php, punctuation.section.array.end.php | #ECECEC | — |
| invalid.illegal.non-null-typehinted.php | #DE473B | — |
| entity.name.goto-label.php, support.other.php | #4A91DA | — |
| keyword.operator.logical.php, keyword.operator.bitwise.php, keyword.operator.arithmetic.php, keyword.operator.comparison.php | #3DC0EF | — |
| keyword.operator.regexp.php, keyword.operator.heredoc.php, keyword.operator.nowdoc.php | #9549B5 | — |
| support.variable.magic.python | #DE473B | — |
| keyword.operator.logical.python | #9549B5 | — |
| punctuation.separator.period.python, punctuation.separator.element.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python | #DE473B | — |
| constant.character.format.placeholder.other.python, variable.parameter.function.language.python, variable.parameter.function.python | #EB9E11 | — |
| meta.function.decorator.identifier.python, support.token.decorator.python, support.type.python | #3DC0EF | — |
| meta.function-call.generic.python, meta.function.decorator.python | #4A91DA | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, punctuation.definition.list.begin.python, punctuation.definition.list.end.python, punctuation.separator.arguments.python | #ECECEC | — |
| function.parameter.ruby, function.parameter.cs | #ECECEC | — |
| constant.language.symbol.ruby | #3DC0EF | — |
| variable.language.rust | #DE473B | — |
| support.function.std.rust | #4A91DA | — |
| support.constant.core.rust | #EB9E11 | — |
| entity.name.lifetime.rust | #EAC705 | — |
| keyword.operator.sigil.rust | #9549B5 | — |
| keyword.operator.misc.rust | #ECECEC | — |
| support.constant.edge | #9549B5 | — |
| constant.language.symbol.elixir | #3DC0EF | — |
| token.package.keyword | #9549B5 | — |
| token.package, token.variable.parameter.java | #ECECEC | — |
| token.info-token | #4A91DA | — |
| token.warn-token | #EB9E11 | — |
| token.error-token | #DE473B | — |
| token.debug-token | #9549B5 | — |
| punctuation.quasi.element | #9549B5 | — |
| rgb-value, support.type.prelude.elm | #3DC0EF | — |
| inline-color-decoration rgb-value, less rgb-value, support.constant.elm | #EB9E11 | — |
| constant.character.entity, text.bracketed, text.variable | #DE473B | — |
| support.type.swift, support.type.vb.asp, support.variable.semantic.hlsl | #EAC705 | — |
| 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 | #9549B5 | — |
| log.error | #B83529 | bold |
| log.warning | #EAC705 | bold |
| log.info | #3D7CBA | bold |
| invalid.xi, constant.other.color.rgb-value.xi | #ECECEC | — |
| constant.character.character-class.regexp.xi | #DE473B | — |
| wikiword.xi | #EB9E11 | — |
| entity.name.function.xi | #EAC705 | — |
| beginning.punctuation.definition.quote.markdown.xi | #34A151 | — |
| entity.name.class.xi, keyword.control.xi | #3DC0EF | — |
| accent.xi, constant.character.xi | #4A91DA | — |
| constant.regexp.xi | #9549B5 | — |
| beginning.punctuation.definition.list.markdown.xi, punctuation.definition.tag.xi | #4A627A | — |
| markup.heading.setext | #ECECEC | — |
| punctuation.definition.bold.markdown | #EB9E11 | bold |
| markup.inline.raw.markdown, markup.inline.raw.string.markdown | #34A151 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #9549B5 | underline |
| string.other.link.title.markdown, string.other.link.description.markdown | #4A91DA | — |
| markup.quote.markdown | #4A627A | — |
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}!`;
}