Ochre
Publisher: ochre-craftsThemes in package: 4
A minimal theme with warm artisan tones
A minimal theme with warm artisan tones
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 |
|---|---|---|
| comment, comment.line, comment.block, comment.block.documentation | #6e7d87 | italic |
| comment.line keyword, comment keyword.codetag.notation | #5c3e1e | italic bold |
| keyword, keyword.control, keyword.other | #7c5c35 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.default | #7c5c35 | — |
| storage, storage.type, storage.modifier | #7c5c35 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise | #737373 | — |
| punctuation, punctuation.definition, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.bracket, punctuation.definition.parameters, meta.brace | #737373 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #7c5c35 | — |
| string, string.quoted, string.quoted.single, string.quoted.double | #6b4d2e | — |
| string.template, string.quoted.template | #6b4d2e | — |
| string.regexp | #5c3e1e | — |
| constant.character.escape, string constant.other.placeholder | #7c5c35 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float | #5c3e1e | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nil, constant.language.nan | #5c3e1e | — |
| constant, constant.other | #5c3e1e | — |
| entity.name.function, meta.function entity.name.function, meta.definition.function entity.name.function | #6b5e52 | — |
| meta.function-call entity.name.function, meta.function-call support.function, variable.function, support.function | #6b5e52 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, entity.other.inherited-class, support.type, support.class | #7c5c35 | — |
| meta.type.annotation, meta.return.type, meta.type.parameters, entity.name.type.ts, entity.name.type.tsx | #7c5c35 | — |
| entity.name.namespace, entity.name.module, support.other.namespace | #7c5c35 | — |
| variable, variable.other, variable.other.readwrite | #171717 | — |
| variable.parameter, meta.function.parameters variable | #404040 | — |
| variable.other.property, variable.other.object.property, support.variable.property, meta.object-literal.key | #262626 | — |
| variable.language.this, variable.language.self, variable.language.super | #7c5c35 | — |
| entity.name.function.decorator, punctuation.decorator, meta.decorator, storage.type.annotation | #7c5c35 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.tsx, punctuation.definition.tag.jsx | #a3a3a3 | — |
| entity.name.tag, meta.tag entity.name.tag | #5c3e1e | — |
| support.class.component, support.class.component.tsx, support.class.component.jsx | #7c5c35 | — |
| entity.other.attribute-name, meta.tag entity.other.attribute-name | #7c5c35 | — |
| entity.other.attribute-name.tsx, entity.other.attribute-name.jsx | #6b5e52 | — |
| entity.other.attribute-name.event | #6b5e52 | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #737373 | — |
| meta.tag.sgml.html, meta.tag.sgml keyword | #737373 | — |
| entity.name.tag.css | #5c3e1e | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #6b5e52 | — |
| support.type.property-name.css, support.type.property-name, meta.property-name | #7c5c35 | — |
| support.constant.property-value, meta.property-value, support.constant.font-name, support.constant.media-type | #6b4d2e | — |
| keyword.other.unit.css, keyword.other.unit | #5c3e1e | — |
| keyword.control.at-rule, keyword.control.at-rule.media | #7c5c35 | — |
| variable.css, variable.argument.css, support.variable.css | #6b5e52 | — |
| support.type.property-name.json, meta.structure.dictionary.json string.quoted | #7c5c35 | — |
| markup.heading, markup.heading entity.name | #7c5c35 | bold |
| markup.bold | #171717 | bold |
| markup.italic | #171717 | italic |
| markup.underline.link, string.other.link | #6b4d2e | — |
| markup.inline.raw, markup.raw.inline | #6b5e52 | — |
| markup.fenced_code.block, markup.raw.block | #6b5e52 | — |
| markup.quote | #737373 | italic |
| markup.list, punctuation.definition.list.begin.markdown | #5c3e1e | — |
| meta.separator, meta.separator.markdown | #d4d4d4 | — |
| entity.name.tag.yaml | #7c5c35 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #6b5e52 | — |
| comment.line.shebang | #6e7d87 | italic |
| variable.other.normal.shell, variable.other.special.shell, variable.other.positional.shell, variable.other.bracket.shell | #171717 | — |
| support.function.builtin.shell | #7c5c35 | — |
| meta.subshell.shell, punctuation.definition.subshell.shell | #737373 | — |
| punctuation.definition.string.end.heredoc.shell, keyword.operator.heredoc.shell | #737373 | — |
| string.unquoted.argument.shell, constant.other.option.shell | #404040 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python | #7c5c35 | italic |
| entity.name.function.magic.python, support.function.magic.python | #6b5e52 | italic |
| support.type.python, support.type.exception.python | #7c5c35 | — |
| support.function.builtin.python | #6b5e52 | — |
| entity.name.function.decorator.python, meta.function.decorator.python support.type.python | #7c5c35 | — |
| meta.fstring.python, punctuation.definition.interpolation.begin.python, punctuation.definition.interpolation.end.python | #6b4d2e | — |
| storage.type.format.python, meta.format.brace.python | #7c5c35 | — |
| variable.other.enummember.ts, variable.other.enummember.tsx | #5c3e1e | — |
| keyword.operator.expression.typeof.ts, keyword.operator.expression.typeof.tsx, keyword.operator.expression.keyof.ts, keyword.operator.expression.keyof.tsx, keyword.operator.expression.infer.ts, keyword.operator.expression.satisfies.ts, keyword.operator.expression.satisfies.tsx | #7c5c35 | — |
| storage.modifier.ts, storage.modifier.tsx, keyword.other.typescript | #7c5c35 | — |
| keyword.declaration.namespace.ts, keyword.declaration.module.ts | #7c5c35 | — |
| support.function.builtin.go | #6b5e52 | — |
| constant.other.placeholder.go | #7c5c35 | — |
| entity.name.package.go, string.quoted.double.go entity.name.import.go | #7c5c35 | — |
| meta.struct-tag.go, string.quoted.raw.go meta.struct-tag | #6e7d87 | — |
| meta.type-assertion.go entity.name.type.go | #7c5c35 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #6b5e52 | italic |
| entity.name.function.macro.rust, support.macro.rust, meta.macro.rust entity.name.function | #7c5c35 | — |
| punctuation.definition.macro.rust | #7c5c35 | — |
| meta.attribute.rust, meta.attribute.rust entity.name.function.attribute, meta.attribute.rust meta.path.rust, punctuation.definition.attribute.rust | #6e7d87 | — |
| entity.name.type.numeric.rust, entity.name.type.primitive.rust, support.type.primitive.rust | #7c5c35 | — |
| entity.name.type.self.rust | #7c5c35 | — |
| storage.modifier.unsafe.rust, keyword.other.unsafe.rust | #5c3e1e | — |
| constant.other.symbol.elixir, constant.other.symbol.hashkey.elixir, constant.other.atom.elixir | #5c3e1e | — |
| variable.other.constant.elixir, punctuation.definition.variable.elixir | #6b5e52 | — |
| punctuation.definition.sigil.elixir, string.other.sigil.elixir, keyword.operator.sigil.elixir | #5c3e1e | — |
| variable.language.elixir | #7c5c35 | italic |
| variable.other.atom.erlang, constant.other.atom.erlang | #5c3e1e | — |
| support.function.builtin.zig, variable.language.builtin.zig, keyword.other.directive.zig | #7c5c35 | — |
| support.type.primitive.zig, entity.name.type.zig | #7c5c35 | — |
| keyword.control.directive, keyword.control.import.include, meta.preprocessor, meta.preprocessor.include, keyword.other.directive | #7c5c35 | — |
| entity.name.function.preprocessor, entity.name.other.preprocessor.macro | #6b5e52 | — |
| string.quoted.other.lt-gt.include, meta.preprocessor.include string | #6b4d2e | — |
| entity.other.annotation.java, storage.type.annotation.java, punctuation.definition.annotation.java | #7c5c35 | — |
| storage.modifier.import.java, storage.modifier.package.java, variable.language.wildcard.java | #7c5c35 | — |
| entity.name.section.toml, punctuation.definition.table.toml, support.type.property-name.table.toml | #7c5c35 | — |
| support.type.property-name.toml, variable.other.key.toml, keyword.key.toml | #6b5e52 | — |
| keyword.other.special-method.dockerfile, entity.name.tag.dockerfile, keyword.other.directive.dockerfile | #7c5c35 | — |
| variable.other.dockerfile | #171717 | — |
| entity.name.type.prisma | #7c5c35 | — |
| entity.name.function.attribute.prisma, support.function.attribute.prisma | #6b5e52 | — |
| support.type.primitive.prisma, support.type.relation.prisma, entity.name.type.primitive.prisma | #7c5c35 | — |
| support.type.graphql, entity.name.type.graphql | #7c5c35 | — |
| variable.graphql, entity.name.field.graphql | #171717 | — |
| entity.name.function.directive.graphql | #6b5e52 | — |
| entity.name.fragment.graphql | #6b5e52 | — |
| invalid, invalid.illegal | #5c3e1e | underline |
| invalid.deprecated | #737373 | strikethrough |
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}!`;
}