Terracotta Theme
Publisher: Terracotta ThemeThemes in package: 5
Warm, WCAG-compliant theme with 5 variants including a color-blind mode
Warm, WCAG-compliant theme with 5 variants including a color-blind mode
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, punctuation.definition.comment | #685848 | — |
| comment.block.documentation, comment.block.javadoc | #4D6150 | italic |
| string, string.quoted, string.template | #5C5200 | — |
| constant.character.escape | #5E3910 | — |
| string.regexp | #97356F | — |
| string.template punctuation.definition.template-expression, punctuation.section.embedded | #5C5200 | — |
| constant.numeric | #84184A | — |
| constant.language | #983C5A | italic |
| variable.other.constant, variable.other.enummember | #8A4A00 | — |
| keyword, keyword.control | #8C2A0E | — |
| keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop | #8C2A0E | — |
| keyword.operator | #124878 | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary | #124878 | — |
| keyword.operator.assignment, keyword.operator.arithmetic | #124878 | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.expression | #8C2A0E | — |
| storage, storage.type | #8C2A0E | — |
| storage.modifier | #8C2A0E | — |
| entity.name.function, meta.function-call entity.name.function | #064A26 | — |
| meta.function-call, support.function | #064A26 | — |
| meta.method-call entity.name.function | #064A26 | — |
| support.function.builtin, support.function.console | #107046 | — |
| entity.name.type.class, entity.name.type, support.class | #5A2FAE | — |
| entity.other.inherited-class | #3E3F94 | italic |
| entity.name.type.interface | #275BAA | italic |
| entity.name.type.enum | #883868 | — |
| entity.name.type.parameter, variable.parameter.type | #3B4B7A | italic |
| entity.name.type.module, entity.name.namespace, entity.name.type.namespace | #5A2FAE | — |
| support.type, support.type.primitive | #5A2FAE | — |
| variable, variable.other | #5A3E68 | — |
| variable.parameter | #7A3F14 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #196878 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special | #7A3F14 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, meta.annotation, storage.type.annotation | #6A2E90 | — |
| punctuation | #625848 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.section, meta.brace | #625848 | — |
| punctuation.definition.string | #5C5200 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #8C2A0E | — |
| entity.name.tag | #9C3E2C | — |
| entity.other.attribute-name | #366014 | italic |
| punctuation.definition.tag | #124878 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #196878 | — |
| support.constant.property-value.css, meta.property-value.css | #5A3E68 | — |
| entity.other.attribute-name.id.css | #9A4567 | — |
| entity.other.attribute-name.class.css | #064A26 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #107046 | italic |
| keyword.other.unit.css | #9A4567 | — |
| constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css | #9A4567 | — |
| support.function.css, support.function.misc.css | #107046 | — |
| variable.scss, variable.less, variable.css | #5A2FAE | — |
| support.type.property-name.json | #366014 | — |
| meta.structure.dictionary.value.json string.quoted | #5C5200 | — |
| entity.name.tag.yaml | #366014 | — |
| string.unquoted.yaml | #5A3E68 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #5C5200 | — |
| markup.heading, markup.heading entity.name.section, heading.1.markdown entity.name, heading.2.markdown entity.name, punctuation.definition.heading.markdown | #8C2A0E | — |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #8B4E28 | — |
| heading.5.markdown entity.name, heading.6.markdown entity.name | #5C5200 | — |
| markup.bold | #5A3E68 | bold |
| markup.italic | #5A3E68 | italic |
| markup.strikethrough | #685848 | strikethrough |
| markup.underline.link, string.other.link | #5A2FAE | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #0E6B3A | — |
| markup.underline.link.image.markdown | #5A2FAE | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #5C5200 | — |
| fenced_code.block.language.markdown | #8C2A0E | — |
| punctuation.definition.list.begin.markdown, markup.list | #9A4567 | — |
| markup.quote | #6B523A | italic |
| meta.separator.markdown | #124878 | — |
| constant.other.character-class.regexp | #97356F | — |
| keyword.operator.quantifier.regexp | #9A4567 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #8C2A0E | — |
| support.function.sql, entity.name.function.sql | #107046 | — |
| keyword.other.alias.sql | #8C2A0E | — |
| keyword.other.order.sql, keyword.other.DML.II.sql | #8C2A0E | — |
| constant.other.database-name.sql, constant.other.table-name.sql | #5A2FAE | — |
| keyword.operator.star.sql, keyword.operator.comparison.sql | #124878 | — |
| markup.inserted | #107046 | — |
| markup.deleted | #A23C3C | — |
| markup.changed | #124878 | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell | #5A3E68 | — |
| support.function.builtin.shell | #107046 | — |
| entity.name.package.go | #5A2FAE | — |
| storage.type.error.go, storage.type.numeric.go, storage.type.string.go, storage.type.boolean.go, storage.type.byte.go, storage.type.rune.go | #5A2FAE | — |
| keyword.channel.go | #124878 | italic |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #124878 | italic |
| entity.name.function.macro.rust, support.macro.rust | #107046 | — |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #124878 | — |
| keyword.other.unsafe.rust | #8C2A0E | — |
| entity.name.type.alias.rust | #5A2FAE | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #6A2E90 | italic |
| support.function.magic.python | #107046 | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #6A2E90 | italic |
| storage.type.primitive.java | #5A2FAE | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #6A2E90 | italic |
| variable.language.java | #7A3F14 | italic |
| meta.preprocessor, keyword.control.directive, keyword.control.import.include, punctuation.definition.directive | #8C2A0E | italic |
| entity.name.function.preprocessor | #107046 | — |
| keyword.operator.address.c, keyword.operator.address.cpp, keyword.operator.arrow.cpp | #124878 | — |
| storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp | #5A2FAE | — |
| invalid | #A23C3C | — |
| invalid.deprecated | #A23C3C | strikethrough |
| support.class.component.tsx, support.class.component.jsx, entity.name.tag.tsx, entity.name.tag.jsx | #5A2FAE | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #8C2A0E | — |
| keyword.operator.spread.tsx, keyword.operator.spread.jsx | #124878 | — |
| keyword.graphql, keyword.operation.graphql | #8C2A0E | — |
| support.type.graphql, entity.name.type.graphql | #5A2FAE | — |
| variable.graphql, variable.other.graphql | #5A3E68 | — |
| entity.name.function.directive.graphql | #107046 | — |
| entity.name.fragment.graphql | #107046 | — |
| support.type.enum.graphql, entity.name.type.input.graphql | #5A2FAE | italic |
| keyword.operator.graphql | #124878 | — |
| string.quoted.double.graphql, string.quoted.triple.graphql | #5C5200 | — |
| comment.line.graphql, comment.block.graphql | #685848 | italic |
| entity.name.section.toml, support.type.property-name.table.toml | #5A2FAE | italic |
| variable.key.toml, support.type.property-name.toml | #366014 | — |
| constant.other.datetime.toml, constant.other.date.toml, constant.other.time.toml | #9A4567 | — |
| constant.language.boolean.toml | #983C5A | — |
| string.quoted.single.basic.toml, string.quoted.double.basic.toml, string.quoted.triple.basic.toml, string.quoted.single.literal.toml, string.quoted.triple.literal.toml | #5C5200 | — |
| constant.numeric.toml, constant.numeric.integer.toml, constant.numeric.float.toml, constant.numeric.hex.toml, constant.numeric.oct.toml, constant.numeric.bin.toml, constant.numeric.inf.toml, constant.numeric.nan.toml | #9A4567 | — |
| punctuation.definition.table.toml, punctuation.definition.array.toml, punctuation.separator.toml | #5A6672 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, entity.name.function.dockerfile | #8C2A0E | — |
| constant.other.image.dockerfile, entity.name.image.dockerfile | #5A2FAE | — |
| keyword.operator.flag.dockerfile, entity.name.variable.parameter.dockerfile | #124878 | — |
| variable.other.dockerfile | #5A3E68 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #5C5200 | — |
| comment.line.number-sign.dockerfile | #685848 | italic |
| comment.line.shebang, comment.line.shebang.shell | #8C2A0E | italic |
| string.unquoted.heredoc.shell, string.unquoted.heredoc, meta.heredoc.shell | #5C5200 | — |
| keyword.operator.heredoc.shell, entity.name.tag.heredoc.shell, punctuation.definition.string.heredoc.shell | #8C2A0E | — |
| keyword.operator.redirect.shell, keyword.operator.pipe.shell, keyword.operator.herestring.shell | #124878 | — |
| keyword.operator.logical.shell | #124878 | — |
| entity.name.function.shell | #107046 | — |
| punctuation.definition.evaluation.backticks.shell, string.interpolated.backtick.shell | #8C2A0E | — |
| variable.language.special.shell | #7A3F14 | italic |
| storage.type.tag-handle.yaml, punctuation.definition.tag.yaml | #5A2FAE | — |
| keyword.control.flow.block-scalar.literal.yaml, keyword.control.flow.block-scalar.folded.yaml, punctuation.definition.block.scalar.yaml | #8C2A0E | — |
| constant.language.merge.yaml | #983C5A | — |
| constant.language.null.yaml, constant.language.boolean.yaml | #983C5A | — |
| constant.numeric.yaml, constant.numeric.integer.yaml, constant.numeric.float.yaml | #9A4567 | — |
| keyword.other.directive.yaml | #8C2A0E | — |
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}!`;
}