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 | #A09488 | — |
| comment.block.documentation, comment.block.javadoc | #A8A090 | italic |
| string, string.quoted, string.template | #F0A8DC | — |
| constant.character.escape | #F0A8DC | — |
| string.regexp | #E1D4F2 | — |
| string.template punctuation.definition.template-expression, punctuation.section.embedded | #F0A8DC | — |
| constant.numeric | #FFB000 | — |
| constant.language | #FF9070 | italic |
| variable.other.constant, variable.other.enummember | #E0A040 | — |
| keyword, keyword.control | #FF8A5C | bold |
| keyword.control.flow, keyword.control.return, keyword.control.conditional, keyword.control.loop | #FF8A5C | bold |
| keyword.operator | #80BFFF | — |
| keyword.operator.logical, keyword.operator.comparison, keyword.operator.relational, keyword.operator.ternary | #80BFFF | bold |
| keyword.operator.assignment, keyword.operator.arithmetic | #80BFFF | — |
| keyword.operator.new, keyword.operator.delete, keyword.operator.expression | #FF8A5C | bold |
| storage, storage.type | #FF8A5C | bold |
| storage.modifier | #FF8A5C | bold |
| entity.name.function, meta.function-call entity.name.function | #00B4BD | — |
| meta.function-call, support.function | #00B4BD | — |
| meta.method-call entity.name.function | #00B4BD | — |
| support.function.builtin, support.function.console | #00B4BD | — |
| entity.name.type.class, entity.name.type, support.class | #D580FF | — |
| entity.other.inherited-class | #50D0F0 | italic |
| entity.name.type.interface | #D580FF | italic |
| entity.name.type.enum | #D580FF | — |
| entity.name.type.parameter, variable.parameter.type | #D580FF | italic |
| entity.name.type.module, entity.name.namespace, entity.name.type.namespace | #D580FF | — |
| support.type, support.type.primitive | #D580FF | — |
| variable, variable.other | #C0C0F0 | — |
| variable.parameter | #DDB880 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #8AA8E0 | — |
| variable.language.this, variable.language.self, variable.language.super, variable.language.special | #FFD060 | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, meta.annotation, storage.type.annotation | #FF9070 | — |
| punctuation | #A0A0B0 | — |
| punctuation.definition.block, punctuation.definition.parameters, punctuation.section, meta.brace | #A0A0B0 | — |
| punctuation.definition.string | #F0A8DC | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as | #FF8A5C | bold |
| entity.name.tag | #E2785A | — |
| entity.other.attribute-name | #8AA8E0 | italic |
| punctuation.definition.tag | #999999 | — |
| support.type.property-name.css, support.type.vendored.property-name.css | #50D0F0 | — |
| support.constant.property-value.css, meta.property-value.css | #C0C0F0 | — |
| entity.other.attribute-name.id.css | #F070A8 | — |
| entity.other.attribute-name.class.css | #8AA8E0 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #00B4BD | italic |
| keyword.other.unit.css | #FFB000 | — |
| constant.other.color.rgb-value.hex.css, punctuation.definition.constant.css | #FFB000 | — |
| support.function.css, support.function.misc.css | #00B4BD | — |
| variable.scss, variable.less, variable.css | #D580FF | — |
| support.type.property-name.json | #8AA8E0 | — |
| meta.structure.dictionary.value.json string.quoted | #F0A8DC | — |
| entity.name.tag.yaml | #8AA8E0 | — |
| string.unquoted.yaml | #D8D4C8 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #F0A8DC | — |
| markup.heading, markup.heading entity.name.section, heading.1.markdown entity.name, heading.2.markdown entity.name, punctuation.definition.heading.markdown | #FF8A5C | bold |
| heading.3.markdown entity.name, heading.4.markdown entity.name | #FFA544 | bold |
| heading.5.markdown entity.name, heading.6.markdown entity.name | #FFB000 | — |
| markup.bold | #D8D4C8 | bold |
| markup.italic | #D8D4C8 | italic |
| markup.strikethrough | #A09488 | strikethrough |
| markup.underline.link, string.other.link | #D580FF | underline |
| string.other.link.title.markdown, string.other.link.description.markdown | #00B4BD | — |
| markup.underline.link.image.markdown | #D580FF | italic |
| markup.inline.raw, markup.fenced_code, markup.raw | #F0A8DC | — |
| fenced_code.block.language.markdown | #FF8A5C | — |
| punctuation.definition.list.begin.markdown, markup.list | #FFA544 | — |
| markup.quote | #A8A090 | italic |
| meta.separator.markdown | #A0A0B0 | — |
| constant.other.character-class.regexp | #D580FF | — |
| keyword.operator.quantifier.regexp | #80BFFF | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql | #FFA544 | bold |
| support.function.sql, entity.name.function.sql | #8AA8E0 | — |
| keyword.other.alias.sql | #FF8A5C | — |
| keyword.other.order.sql, keyword.other.DML.II.sql | #FFA544 | bold |
| constant.other.database-name.sql, constant.other.table-name.sql | #D580FF | — |
| keyword.operator.star.sql, keyword.operator.comparison.sql | #80BFFF | — |
| markup.inserted | #00B4BD | — |
| markup.deleted | #FF8A5C | — |
| markup.changed | #80BFFF | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell | #C0C0F0 | — |
| support.function.builtin.shell | #00B4BD | — |
| entity.name.package.go | #D580FF | — |
| storage.type.error.go, storage.type.numeric.go, storage.type.string.go, storage.type.boolean.go, storage.type.byte.go, storage.type.rune.go | #D580FF | — |
| keyword.channel.go | #80BFFF | italic |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #80BFFF | italic |
| entity.name.function.macro.rust, support.macro.rust | #00B4BD | — |
| keyword.operator.borrow.rust, keyword.operator.dereference.rust | #80BFFF | — |
| keyword.other.unsafe.rust | #FF8A5C | — |
| entity.name.type.alias.rust | #D580FF | — |
| meta.attribute.rust, punctuation.definition.attribute.rust | #BEAAEC | italic |
| support.function.magic.python | #8AA8E0 | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #BEAAEC | italic |
| storage.type.primitive.java | #D580FF | — |
| storage.type.annotation.java, punctuation.definition.annotation.java | #BEAAEC | italic |
| variable.language.java | #FF8A5C | italic bold |
| meta.preprocessor, keyword.control.directive, keyword.control.import.include, punctuation.definition.directive | #FF8A5C | bold italic |
| entity.name.function.preprocessor | #00B4BD | — |
| keyword.operator.address.c, keyword.operator.address.cpp, keyword.operator.arrow.cpp | #80BFFF | — |
| storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp | #D580FF | — |
| invalid | #FF8A5C | underline |
| invalid.deprecated | #FF8A5C | strikethrough |
| support.class.component.tsx, support.class.component.jsx, entity.name.tag.tsx, entity.name.tag.jsx | #D580FF | — |
| punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx | #FF8A5C | — |
| keyword.operator.spread.tsx, keyword.operator.spread.jsx | #80BFFF | — |
| keyword.graphql, keyword.operation.graphql | #FF8A5C | — |
| support.type.graphql, entity.name.type.graphql | #D580FF | — |
| variable.graphql, variable.other.graphql | #C0C0F0 | — |
| entity.name.function.directive.graphql | #00B4BD | bold |
| entity.name.fragment.graphql | #00B4BD | — |
| support.type.enum.graphql, entity.name.type.input.graphql | #D580FF | italic |
| keyword.operator.graphql | #80BFFF | — |
| string.quoted.double.graphql, string.quoted.triple.graphql | #F0A8DC | — |
| comment.line.graphql, comment.block.graphql | #A09488 | italic |
| entity.name.section.toml, support.type.property-name.table.toml | #D580FF | bold |
| variable.key.toml, support.type.property-name.toml | #8AA8E0 | — |
| constant.other.datetime.toml, constant.other.date.toml, constant.other.time.toml | #FFB000 | — |
| constant.language.boolean.toml | #FFA544 | — |
| 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 | #F0A8DC | — |
| 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 | #FFB000 | — |
| punctuation.definition.table.toml, punctuation.definition.array.toml, punctuation.separator.toml | #A0A0B0 | — |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, entity.name.function.dockerfile | #FF8A5C | bold |
| constant.other.image.dockerfile, entity.name.image.dockerfile | #D580FF | — |
| keyword.operator.flag.dockerfile, entity.name.variable.parameter.dockerfile | #80BFFF | — |
| variable.other.dockerfile | #C0C0F0 | — |
| string.quoted.double.dockerfile, string.quoted.single.dockerfile | #F0A8DC | — |
| comment.line.number-sign.dockerfile | #A09488 | italic |
| comment.line.shebang, comment.line.shebang.shell | #FF8A5C | bold |
| string.unquoted.heredoc.shell, string.unquoted.heredoc, meta.heredoc.shell | #F0A8DC | — |
| keyword.operator.heredoc.shell, entity.name.tag.heredoc.shell, punctuation.definition.string.heredoc.shell | #FF8A5C | — |
| keyword.operator.redirect.shell, keyword.operator.pipe.shell, keyword.operator.herestring.shell | #80BFFF | — |
| keyword.operator.logical.shell | #80BFFF | — |
| entity.name.function.shell | #00B4BD | — |
| punctuation.definition.evaluation.backticks.shell, string.interpolated.backtick.shell | #FF8A5C | — |
| variable.language.special.shell | #FFA544 | italic |
| storage.type.tag-handle.yaml, punctuation.definition.tag.yaml | #D580FF | — |
| keyword.control.flow.block-scalar.literal.yaml, keyword.control.flow.block-scalar.folded.yaml, punctuation.definition.block.scalar.yaml | #FF8A5C | — |
| constant.language.merge.yaml | #FFA544 | — |
| constant.language.null.yaml, constant.language.boolean.yaml | #FFA544 | — |
| constant.numeric.yaml, constant.numeric.integer.yaml, constant.numeric.float.yaml | #FFB000 | — |
| keyword.other.directive.yaml | #FF8A5C | — |
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}!`;
}