Goldilocks Theme
Publisher: Jon EllwoodThemes in package: 1
Not too light, not too dark. Just right. A medium-contrast theme for developers who live in the middle.
Not too light, not too dark. Just right. A medium-contrast theme for developers who live in the middle.
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 | #5a7070 | italic |
| comment.block.documentation, comment.line.double-slash.documentation | #527a78 | italic |
| string, string.quoted, string.template | #8ab870 | — |
| constant.character.escape, string.regexp | #78c8a0 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #c8a060 | — |
| constant.numeric, constant.numeric.decimal, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal | #c09868 | — |
| constant.language, constant.other | #d08858 | — |
| constant.language.boolean | #d08858 | bold |
| constant.language.null, constant.language.undefined, constant.language.nan | #a07860 | italic |
| keyword, keyword.control, keyword.other, storage.modifier | #9080c0 | bold |
| keyword.control.flow, keyword.control.if, keyword.control.else, keyword.control.for, keyword.control.while, keyword.control.return, keyword.control.loop, keyword.control.switch, keyword.control.case, keyword.control.break, keyword.control.continue, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.of, keyword.control.in | #a078d0 | bold |
| keyword.operator.new, keyword.operator.delete, keyword.operator.instanceof, keyword.operator.typeof, keyword.operator.void | #b888e0 | — |
| storage.type | #7898d8 | bold |
| storage.type.function, storage.type.class, storage.type.arrow | #7090cc | bold |
| entity.name.function, meta.function-call entity.name.function | #70b8d0 | — |
| meta.function-call.generic, support.function | #68b0c8 | — |
| meta.definition.method entity.name.function, entity.name.function.constructor | #80c8e0 | bold |
| variable, variable.other, variable.other.readwrite, variable.other.object | #c8d4e0 | — |
| variable.language.this, variable.language.self, variable.language.super | #b898cc | italic |
| variable.parameter | #b8c8d8 | italic |
| variable.other.php, variable.other.global.php, variable.other.global.safer.php, variable.other.normal.php, punctuation.definition.variable.php | #c8d4e0 | — |
| entity.name.class, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.other.inherited-class | #d8c068 | — |
| entity.name.type, support.type, meta.type.annotation, meta.return.type | #c8b858 | — |
| support.type.primitive, keyword.type, storage.type.numeric, storage.type.string, storage.type.boolean, storage.type.void | #b8a848 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.bitwise, keyword.operator.ternary | #a0b0c8 | — |
| keyword.operator.arrow, storage.type.function.arrow | #a8b8d0 | — |
| punctuation, meta.brace, punctuation.separator, punctuation.terminator, punctuation.definition.block, punctuation.section.block | #7a8898 | — |
| punctuation.definition.parameters, punctuation.definition.arguments, meta.brace.round, meta.brace.square | #8a98a8 | — |
| variable.other.property, variable.other.object.property, support.type.property-name, meta.object-literal.key | #b0c0d8 | — |
| variable.other.member, variable.other.readwrite.member | #b0c0d8 | — |
| entity.name.tag, meta.tag | #7090c0 | — |
| entity.other.attribute-name, meta.tag.attributes | #90b8d8 | — |
| string.quoted.double.html, string.quoted.single.html, meta.attribute-with-value.html | #8ab870 | — |
| meta.tag.sgml, entity.name.tag.doctype | #506080 | italic |
| constant.character.entity.html, punctuation.definition.entity.html | #78c8a0 | — |
| punctuation.definition.tag | #506880 | — |
| entity.name.tag.css, 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 | #8ab8d0 | — |
| support.type.property-name.css, meta.property-name.css | #90b0c8 | — |
| meta.property-value.css, support.constant.property-value.css, constant.other.color.rgb-value.css | #a8c898 | — |
| keyword.other.unit.css, constant.numeric.css | #c09868 | — |
| keyword.control.at-rule, keyword.control.at-rule.media, keyword.control.at-rule.keyframes | #a078d0 | bold |
| constant.other.color.rgb-value, support.constant.color | #b8a848 | — |
| keyword.other.important.css | #e06c75 | bold |
| keyword.control.import.js, keyword.control.export.js, keyword.control.from.js, keyword.control.import.ts, keyword.control.export.ts, keyword.control.from.ts | #a078d0 | bold |
| meta.decorator, punctuation.decorator | #c8a060 | italic |
| keyword.other.type.ts, keyword.other.interface.ts | #9080c0 | bold |
| support.type.object.console.js, support.type.object.module.js, variable.language.arguments.js | #68b0c8 | — |
| entity.name.tag.html.vue | #78c0a0 | bold |
| entity.other.attribute-name.html.vue, keyword.control.conditional.vue, entity.other.attribute-name.pseudo-class.vue | #c8a060 | — |
| punctuation.section.embedded.begin.mustache, punctuation.section.embedded.end.mustache | #d08858 | bold |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #b888e0 | bold |
| support.function.php, support.function.string.php | #70b8d0 | — |
| storage.type.namespace.php, keyword.other.namespace.php, keyword.other.use.php | #9080c0 | bold |
| keyword.operator.class.php, punctuation.accessor.php | #7a8898 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.database-query.sql, storage.modifier.sql, keyword.other.sql | #9080c0 | bold |
| support.function.aggregate.sql, entity.name.function.sql, support.function.sql | #70b8d0 | — |
| entity.name.table.sql, variable.other.table.sql, variable.other.column.sql, meta.toc-list.full-identifier.sql | #c8d4e0 | — |
| variable.language.star.sql | #d08858 | — |
| support.type.property-name.json, meta.structure.dictionary.json meta.structure.dictionary.key.json string.quoted.double.json | #90b8d8 | — |
| meta.structure.dictionary.value.json string.quoted.double.json | #8ab870 | — |
| markup.heading, entity.name.section.markdown, punctuation.definition.heading.markdown | #d8c068 | bold |
| markup.bold | #e0d080 | bold |
| markup.italic | #d0c8e0 | italic |
| markup.inline.raw | #8ab870 | — |
| markup.underline.link | #68b0c8 | underline |
| punctuation.definition.list.begin.markdown | #f0a84a | — |
| invalid, invalid.illegal, invalid.deprecated | #e06c75 | underline |
| entity.name.namespace, entity.name.module, entity.name.package | #d8c068 | — |
| support.variable, support.other.variable | #90b8d8 | — |
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}!`;
}