Terracotta Light Themes
Publisher: hokyounThemes in package: 2
Two warm, paper-like light themes with complete static syntax and semantic highlighting.
Two warm, paper-like light themes with complete static syntax and semantic highlighting.
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, text.html.vue meta.lang.ts comment, string.quoted.docstring.multi.python, meta.tag.sgml.doctype.html, markup.quote.markdown, markup.strikethrough.markdown, meta.separator.markdown, comment.line.percentage.latex | #73726C | italic |
| keyword, storage, storage.modifier, keyword.control.import.js, storage.type.interface.ts, keyword.other.rust, storage.type.rust, keyword.type.go, entity.other.attribute-name.html.vue, meta.attribute.directive.html, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, keyword.control.at-rule.css, keyword.control.at-rule.scss, keyword.other.important.css, constant.language.merge.yaml, support.function.latex | #6259C5 | — |
| keyword.control, keyword.control.flow, keyword.other.unit, storage.type, keyword.operator.logical.python, keyword.control.shell | #6259C5 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.overload.cpp, keyword.operator.combinator.css, keyword.operator.redirect.shell, keyword.other.unit.css, constant.other.option.shell, punctuation.separator.key-value, punctuation.definition.block.sequence.item.yaml, punctuation.definition.document.yaml, markup.list.bullet.markdown | #73726C | — |
| variable, variable.other, variable.other.readwrite, variable.css, variable.scss, variable.other.less, variable.other.normal.shell, variable.other.bracket.shell, variable.other.special.shell | #B44320 | — |
| variable.other.property, variable.other.member, meta.property-name, support.variable.property, support.type.property-name, support.type.property-name.json, string.quoted.double.json meta.object-literal.key, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css, meta.mapping.key.yaml string, entity.name.tag.yaml, support.type.property-name.toml | #185FA5 | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, variable.other.constant, variable.other.enummember, variable.other.enummember.ts, constant.language.python, string.quoted.single.rust, constant.other.rune.go, constant.other.variable.mac-classic.c, entity.other.attribute-name.id.css, support.constant.property-value.css, constant.language.json, constant.language.boolean.yaml, constant.language.null.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml, entity.name.type.anchor.yaml, constant.language.boolean.toml, constant.other.reference.latex | #8A570D | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, punctuation.definition.string.begin, punctuation.definition.string.end, entity.name.import.go, string.quoted.double.html, string.quoted.single.html, string.quoted.double.json, string.quoted.double.shell, string.quoted.single.shell, string.unquoted.heredoc.shell, string.unquoted.plain.out.yaml, string.quoted.double.yaml, string.quoted.single.yaml, string.quoted.double.toml, string.quoted.single.toml, string.quoted.triple.toml | #14775A | — |
| string.template, string.interpolated, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, meta.template.expression, meta.fstring.python, string.interpolated.python, punctuation.definition.template-expression.begin.python, punctuation.definition.template-expression.end.python, punctuation.definition.interpolation, meta.string.interpolation.shell, punctuation.definition.string.interpolated.shell | #14775A | — |
| constant.character.escape, constant.other.placeholder, constant.character.entity.html | #993556 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.other.color.rgb-value.css, constant.numeric.json, constant.numeric.integer.yaml, constant.numeric.float.yaml, constant.numeric.integer.toml, constant.numeric.float.toml, string.other.math.latex, meta.math.block.latex | #B44320 | — |
| string.regexp, punctuation.definition.group.regexp, constant.character.character-class.regexp, keyword.operator.quantifier.regexp | #993556 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum, support.type, support.class, support.type.primitive, support.type.builtin, variable.other.jsdoc, meta.type.annotation entity.name.type, support.class.component.tsx, support.class.component.ts, entity.name.tag.html.vue, support.type.exception.python, meta.function.parameters.annotation.python, entity.name.type.primitive.rust, entity.name.type.rust, storage.type.numeric.rust, support.type.builtin.go, entity.name.package.go, storage.type.c, entity.name.type.c, storage.type.cpp, entity.name.scope-resolution.cpp, meta.template.call.cpp entity.name.type, entity.other.attribute-name.class.css, entity.name.section.toml, support.class.latex | #993C1D | — |
| entity.name.function, entity.name.method, entity.name.method.js, support.function, variable.function, entity.name.function.macro.rust, support.function.builtin.go, entity.name.function.scss, entity.name.command.shell | #185FA5 | — |
| variable.parameter, variable.parameter.function.language.special, meta.type.parameters entity.name.type, keyword.other.lifetime.rust, storage.modifier.lifetime.rust, entity.name.lifetime.rust, variable.language.self.rust, entity.name.type.template.cpp, variable.parameter.latex | #B44320 | — |
| variable.parameter.function.language.special.python | #B44320 | italic |
| entity.name.tag, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, entity.name.tag.tsx, entity.name.tag.ts, entity.name.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, entity.name.tag.css, punctuation.definition.table.toml, punctuation.definition.array.toml | #6259C5 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #3B6D11 | — |
| entity.name.function.decorator, meta.decorator, meta.decorator punctuation.decorator, punctuation.decorator, meta.decorator.ts, meta.decorator.ts entity.name.function.ts, entity.name.function.decorator.python, meta.function.decorator.python entity.name.function, meta.attribute.rust, meta.attribute.rust entity.name.function.rust, keyword.other.preprocessor.c, meta.preprocessor.c, entity.name.function.preprocessor.c, comment.line.shebang.shell, keyword.control.preamble.latex | #8A570D | — |
| punctuation.definition, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.definition.begin.latex, punctuation.definition.end.latex | #73726C | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, markup.heading.1.markdown | #6259C5 | bold |
| markup.heading.2.markdown, markup.heading.3.markdown, markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown | #185FA5 | bold |
| markup.bold, markup.bold.markdown | #993C1D | bold |
| markup.italic | #B44320 | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #8A570D | — |
| markup.underline.link.markdown | #14775A | underline |
| string.other.link.title.markdown | #993C1D | — |
| fenced_code.block.language.markdown | #6259C5 | — |
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, text.html.vue meta.lang.ts comment, string.quoted.docstring.multi.python, meta.tag.sgml.doctype.html, markup.quote.markdown, markup.strikethrough.markdown, meta.separator.markdown, comment.line.percentage.latex | #73726C | italic |
| keyword, storage, storage.modifier, keyword.control.import.js, storage.type.interface.ts, keyword.other.rust, storage.type.rust, keyword.type.go, entity.other.attribute-name.html.vue, meta.attribute.directive.html, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, keyword.control.at-rule.css, keyword.control.at-rule.scss, keyword.other.important.css, constant.language.merge.yaml, support.function.latex | #A94F32 | — |
| keyword.control, keyword.control.flow, keyword.other.unit, storage.type, keyword.operator.logical.python, keyword.control.shell | #9F4A31 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.overload.cpp, keyword.operator.combinator.css, keyword.operator.redirect.shell, keyword.other.unit.css, constant.other.option.shell, punctuation.separator.key-value, punctuation.definition.block.sequence.item.yaml, punctuation.definition.document.yaml, markup.list.bullet.markdown | #5E5D59 | — |
| variable, variable.other, variable.other.readwrite, variable.css, variable.scss, variable.other.less, variable.other.normal.shell, variable.other.bracket.shell, variable.other.special.shell | #24231F | — |
| variable.other.property, variable.other.member, meta.property-name, support.variable.property, support.type.property-name, support.type.property-name.json, string.quoted.double.json meta.object-literal.key, support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, meta.property-name.css, meta.mapping.key.yaml string, entity.name.tag.yaml, support.type.property-name.toml | #55544F | — |
| constant, constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, variable.other.constant, variable.other.enummember, variable.other.enummember.ts, constant.language.python, string.quoted.single.rust, constant.other.rune.go, constant.other.variable.mac-classic.c, entity.other.attribute-name.id.css, support.constant.property-value.css, constant.language.json, constant.language.boolean.yaml, constant.language.null.yaml, punctuation.definition.anchor.yaml, punctuation.definition.alias.yaml, entity.name.type.anchor.yaml, constant.language.boolean.toml, constant.other.reference.latex | #A94F32 | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.quoted.triple, punctuation.definition.string.begin, punctuation.definition.string.end, entity.name.import.go, string.quoted.double.html, string.quoted.single.html, string.quoted.double.json, string.quoted.double.shell, string.quoted.single.shell, string.unquoted.heredoc.shell, string.unquoted.plain.out.yaml, string.quoted.double.yaml, string.quoted.single.yaml, string.quoted.double.toml, string.quoted.single.toml, string.quoted.triple.toml | #46683B | — |
| string.template, string.interpolated, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, meta.template.expression, meta.fstring.python, string.interpolated.python, punctuation.definition.template-expression.begin.python, punctuation.definition.template-expression.end.python, punctuation.definition.interpolation, meta.string.interpolation.shell, punctuation.definition.string.interpolated.shell | #326F83 | — |
| constant.character.escape, constant.other.placeholder, constant.character.entity.html | #9F4A31 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary, constant.other.color.rgb-value.css, constant.numeric.json, constant.numeric.integer.yaml, constant.numeric.float.yaml, constant.numeric.integer.toml, constant.numeric.float.toml, string.other.math.latex, meta.math.block.latex | #765719 | — |
| string.regexp, punctuation.definition.group.regexp, constant.character.character-class.regexp, keyword.operator.quantifier.regexp | #765719 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum, support.type, support.class, support.type.primitive, support.type.builtin, variable.other.jsdoc, meta.type.annotation entity.name.type, support.class.component.tsx, support.class.component.ts, entity.name.tag.html.vue, support.type.exception.python, meta.function.parameters.annotation.python, entity.name.type.primitive.rust, entity.name.type.rust, storage.type.numeric.rust, support.type.builtin.go, entity.name.package.go, storage.type.c, entity.name.type.c, storage.type.cpp, entity.name.scope-resolution.cpp, meta.template.call.cpp entity.name.type, entity.other.attribute-name.class.css, entity.name.section.toml, support.class.latex | #2E6796 | — |
| entity.name.function, entity.name.method, entity.name.method.js, support.function, variable.function, entity.name.function.macro.rust, support.function.builtin.go, entity.name.function.scss, entity.name.command.shell | #A14F35 | — |
| variable.parameter, variable.parameter.function.language.special, meta.type.parameters entity.name.type, keyword.other.lifetime.rust, storage.modifier.lifetime.rust, entity.name.lifetime.rust, variable.language.self.rust, entity.name.type.template.cpp, variable.parameter.latex | #765719 | — |
| variable.parameter.function.language.special.python | #765719 | italic |
| entity.name.tag, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, entity.name.tag.tsx, entity.name.tag.ts, entity.name.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.html, entity.name.tag.css, punctuation.definition.table.toml, punctuation.definition.array.toml | #A94F32 | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #765719 | — |
| entity.name.function.decorator, meta.decorator, meta.decorator punctuation.decorator, punctuation.decorator, meta.decorator.ts, meta.decorator.ts entity.name.function.ts, entity.name.function.decorator.python, meta.function.decorator.python entity.name.function, meta.attribute.rust, meta.attribute.rust entity.name.function.rust, keyword.other.preprocessor.c, meta.preprocessor.c, entity.name.function.preprocessor.c, comment.line.shebang.shell, keyword.control.preamble.latex | #934562 | — |
| punctuation.definition, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.definition.begin.latex, punctuation.definition.end.latex | #73726C | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, markup.heading.1.markdown | #A94F32 | bold |
| markup.heading.2.markdown, markup.heading.3.markdown, markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown | #55544F | bold |
| markup.bold, markup.bold.markdown | #2E6796 | bold |
| markup.italic | #24231F | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #A94F32 | — |
| markup.underline.link.markdown | #46683B | underline |
| string.other.link.title.markdown | #2E6796 | — |
| fenced_code.block.language.markdown | #A94F32 | — |
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}!`;
}
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}!`;
}