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 | #91867B | — |
| comment.block.documentation, comment.block.javadoc | #98928C | italic |
| string, string.quoted, string.template | #CCA050 | — |
| constant.character.escape | #D89A56 | — |
| string.regexp | #C8A4B4 | — |
| string.template punctuation.definition.template-expression, punctuation.section.embedded | #CCA050 | — |
| constant.numeric | #D8929C | — |
| constant.language | #E8A090 | italic |
| variable.other.constant, variable.other.enummember | #AEB052 | — |
| keyword, keyword.control | #E0976E | — |
| keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop | #E0976E | — |
| keyword.operator | #A9BCDC | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary | #A9BCDC | — |
| keyword.operator.assignment, keyword.operator.arithmetic | #A9BCDC | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.expression | #E0976E | — |
| storage, storage.type | #E0976E | — |
| storage.modifier | #E0976E | — |
| entity.name.function, meta.function-call entity.name.function | #7CBEB0 | — |
| meta.function-call, support.function | #7CBEB0 | — |
| meta.method-call entity.name.function | #7CBEB0 | — |
| support.function.builtin, support.function.console | #76B3A5 | — |
| entity.name.type.class, entity.name.type, support.class | #B8A6DE | — |
| entity.other.inherited-class | #C89080 | italic |
| entity.name.type.interface | #BC94C4 | italic |
| entity.name.type.enum | #DC9CA4 | — |
| entity.name.type.parameter, variable.parameter.type | #C49CC4 | italic |
| entity.name.type.module, entity.name.namespace, entity.name.type.namespace | #B8A6DE | — |
| support.type, support.type.primitive | #B8A6DE | — |
| variable, variable.other | #CFAA86 | — |
| variable.parameter | #CFAA86 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #97AC74 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special | #CCB86C | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, meta.annotation, storage.type.annotation | #B47CA6 | — |
| punctuation | #8AABB8 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.section, meta.brace | #8AABB8 | — |
| punctuation.definition.string | #CCA050 | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #E0976E | — |
| entity.name.tag | #E0705C | — |
| entity.other.attribute-name | #97AC74 | italic |
| punctuation.definition.tag | #8AABB8 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #97AC74 | — |
| support.constant.property-value.css, meta.property-value.css | #BAB8AC | — |
| entity.other.attribute-name.id.css | #E18F89 | — |
| entity.other.attribute-name.class.css | #76B3A5 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #7CBEB0 | italic |
| keyword.other.unit.css | #D8929C | — |
| constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css | #D8929C | — |
| support.function.css, support.function.misc.css | #7CBEB0 | — |
| variable.scss, variable.less, variable.css | #B8A6DE | — |
| support.type.property-name.json | #97AC74 | — |
| meta.structure.dictionary.value.json string.quoted | #CCA050 | — |
| entity.name.tag.yaml | #97AC74 | — |
| string.unquoted.yaml | #BAB8AC | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #CCA050 | — |
| markup.heading, markup.heading entity.name.section, heading.1.markdown entity.name, heading.2.markdown entity.name, punctuation.definition.heading.markdown | #E0976E | — |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #E0A050 | — |
| heading.5.markdown entity.name, heading.6.markdown entity.name | #CC9D4D | — |
| markup.bold | #BAB8AC | bold |
| markup.italic | #BAB8AC | italic |
| markup.strikethrough | #98928C | strikethrough |
| markup.underline.link, string.other.link | #B8A6DE | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #7CBEB0 | — |
| markup.underline.link.image.markdown | #B8A6DE | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #CCA050 | — |
| fenced_code.block.language.markdown | #D89A56 | — |
| punctuation.definition.list.begin.markdown, markup.list | #D19B59 | — |
| markup.quote | #969088 | italic |
| meta.separator.markdown | #8AABB8 | — |
| constant.other.character-class.regexp | #B8A6DE | — |
| keyword.operator.quantifier.regexp | #A9BCDC | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #E0705C | — |
| support.function.sql, entity.name.function.sql | #76B3A5 | — |
| keyword.other.alias.sql | #E0976E | — |
| keyword.other.order.sql, keyword.other.DML.II.sql | #E0705C | — |
| constant.other.database-name.sql, constant.other.table-name.sql | #B8A6DE | — |
| keyword.operator.star.sql, keyword.operator.comparison.sql | #A9BCDC | — |
| markup.inserted | #7CBEB0 | — |
| markup.deleted | #BF6B66 | — |
| markup.changed | #A9BCDC | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell | #CFAA86 | — |
| support.function.builtin.shell | #7CBEB0 | — |
| entity.name.package.go | #B8A6DE | — |
| storage.type.error.go, storage.type.numeric.go, storage.type.string.go, storage.type.boolean.go, storage.type.byte.go, storage.type.rune.go | #B8A6DE | — |
| keyword.channel.go | #A9BCDC | italic |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #A9BCDC | italic |
| entity.name.function.macro.rust, support.macro.rust | #7CBEB0 | — |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #A9BCDC | — |
| keyword.other.unsafe.rust | #E0976E | — |
| entity.name.type.alias.rust | #B8A6DE | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #DC9C7C | italic |
| support.function.magic.python | #76B3A5 | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #DC9C7C | italic |
| storage.type.primitive.java | #B8A6DE | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #DC9C7C | italic |
| variable.language.java | #E0976E | italic |
| meta.preprocessor, keyword.control.directive, keyword.control.import.include, punctuation.definition.directive | #E0976E | italic |
| entity.name.function.preprocessor | #7CBEB0 | — |
| keyword.operator.address.c, keyword.operator.address.cpp, keyword.operator.arrow.cpp | #A9BCDC | — |
| storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp | #B8A6DE | — |
| invalid | #BF6B66 | — |
| invalid.deprecated | #BF6B66 | strikethrough |
| support.class.component.tsx, support.class.component.jsx, entity.name.tag.tsx, entity.name.tag.jsx | #B8A6DE | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #D89A56 | — |
| keyword.operator.spread.tsx, keyword.operator.spread.jsx | #A9BCDC | — |
| keyword.graphql, keyword.operation.graphql | #E0976E | — |
| support.type.graphql, entity.name.type.graphql | #B8A6DE | — |
| variable.graphql, variable.other.graphql | #CFAA86 | — |
| entity.name.function.directive.graphql | #7CBEB0 | — |
| entity.name.fragment.graphql | #7CBEB0 | — |
| support.type.enum.graphql, entity.name.type.input.graphql | #B8A6DE | italic |
| keyword.operator.graphql | #A9BCDC | — |
| string.quoted.double.graphql, string.quoted.triple.graphql | #CCA050 | — |
| comment.line.graphql, comment.block.graphql | #98928C | italic |
| entity.name.section.toml, support.type.property-name.table.toml | #B8A6DE | italic |
| variable.key.toml, support.type.property-name.toml | #97AC74 | — |
| constant.other.datetime.toml, constant.other.date.toml, constant.other.time.toml | #D8929C | — |
| constant.language.boolean.toml | #E8A090 | — |
| 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 | #CCA050 | — |
| 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 | #D8929C | — |
| punctuation.definition.table.toml, punctuation.definition.array.toml, punctuation.separator.toml | #8AABB8 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, entity.name.function.dockerfile | #E0976E | — |
| constant.other.image.dockerfile, entity.name.image.dockerfile | #B8A6DE | — |
| keyword.operator.flag.dockerfile, entity.name.variable.parameter.dockerfile | #A9BCDC | — |
| variable.other.dockerfile | #CFAA86 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #CCA050 | — |
| comment.line.number-sign.dockerfile | #98928C | italic |
| comment.line.shebang, comment.line.shebang.shell | #E0976E | italic |
| string.unquoted.heredoc.shell, string.unquoted.heredoc, meta.heredoc.shell | #CCA050 | — |
| keyword.operator.heredoc.shell, entity.name.tag.heredoc.shell, punctuation.definition.string.heredoc.shell | #E0976E | — |
| keyword.operator.redirect.shell, keyword.operator.pipe.shell, keyword.operator.herestring.shell | #A9BCDC | — |
| keyword.operator.logical.shell | #A9BCDC | — |
| entity.name.function.shell | #7CBEB0 | — |
| punctuation.definition.evaluation.backticks.shell, string.interpolated.backtick.shell | #D89A56 | — |
| variable.language.special.shell | #E0705C | italic |
| storage.type.tag-handle.yaml, punctuation.definition.tag.yaml | #B8A6DE | — |
| keyword.control.flow.block-scalar.literal.yaml, keyword.control.flow.block-scalar.folded.yaml, punctuation.definition.block.scalar.yaml | #E0976E | — |
| constant.language.merge.yaml | #E8A090 | — |
| constant.language.null.yaml, constant.language.boolean.yaml | #E8A090 | — |
| constant.numeric.yaml, constant.numeric.integer.yaml, constant.numeric.float.yaml | #D8929C | — |
| keyword.other.directive.yaml | #E0976E | — |
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}!`;
}