小黄油 Little Butter
Publisher: LGgbondThemes in package: 2
小黄油 Little Butter —— 一款可可爱爱的浅色主题:奶油黄底 + 糖果色语法(草莓粉、葡萄紫、薄荷绿、天空蓝、蜜桃橙、蜂蜜金)+ 腮红粉点缀。软萌不刺眼,长时间编码舒适护眼、代码层次清晰。
小黄油 Little Butter —— 一款可可爱爱的浅色主题:奶油黄底 + 糖果色语法(草莓粉、葡萄紫、薄荷绿、天空蓝、蜜桃橙、蜂蜜金)+ 腮红粉点缀。软萌不刺眼,长时间编码舒适护眼、代码层次清晰。
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, comment.block, comment.line | #94807B | italic |
| comment.block.documentation, comment.documentation | #968178 | italic |
| comment.block.documentation keyword, comment.block.documentation storage.type, keyword.other.documentation, storage.type.class.jsdoc | #947014 | italic |
| string, string.quoted, string.quoted.single, string.quoted.double, string.unquoted, punctuation.definition.string | #23824F | — |
| string.template, string.quoted.template, string.interpolated | #23824F | — |
| punctuation.definition.template-expression, punctuation.section.embedded, meta.template.expression, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #C93A72 | — |
| constant.character.escape, constant.other.placeholder, string.regexp constant.character.escape | #A33E8A | — |
| string.regexp, string.regexp constant.character, punctuation.definition.string.regexp | #1F7E5F | — |
| keyword.control.anchor.regexp, keyword.operator.quantifier.regexp | #C93A72 | — |
| punctuation.definition.group.regexp | #8C7D6D | — |
| constant.other.character-class.regexp, constant.other.character-class.set.regexp | #A33E8A | — |
| keyword.control, keyword.control.flow, keyword.control.import, keyword.control.from, keyword.control.conditional, keyword.control.loop, keyword.control.return | #C93A72 | — |
| keyword, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.delete, keyword.operator.in, keyword.operator.of, keyword.operator.instanceof, keyword.operator.typeof | #C93A72 | — |
| keyword.operator, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.ternary | #7C6D5F | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.delete, keyword.operator.in, keyword.operator.of, keyword.operator.instanceof, keyword.operator.typeof | #C93A72 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.var, storage.type.let, storage.type.const | #B05530 | — |
| storage.modifier, storage.modifier.async, storage.modifier.static, keyword.other.important | #B05530 | — |
| entity.name.function, meta.function entity.name.function, support.function.constructor, entity.name.function.member, variable.function.member | #947014 | — |
| meta.function-call, meta.function-call entity.name.function, variable.function, entity.name.function-call | #947014 | — |
| support.function, support.function.builtin, support.function.misc | #8C6A1C | — |
| entity.name.type, entity.name.type.class, entity.name.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.module | #8344C2 | — |
| entity.other.inherited-class | #8D55C6 | — |
| support.type, support.class, support.type.primitive, support.class.builtin, entity.name.type.primitive | #8344C2 | — |
| entity.name.type.parameter, meta.type.parameters entity.name.type, support.type.parameter | #8D55C6 | — |
| entity.name.type.instance, support.class.instance | #8344C2 | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.decimal | #B5551E | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan, constant.language.infinity | #A33E8A | — |
| constant.other, constant.other.symbol, variable.other.constant, constant.other.caps, support.constant | #A33E8A | — |
| variable.other.enummember, constant.other.enum | #A33E8A | — |
| constant.character, constant.other.character-class | #A33E8A | — |
| variable, variable.other, variable.other.readwrite, meta.definition.variable variable.other | #5A4636 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #B25468 | italic |
| variable.parameter, meta.parameter variable, variable.parameter.function, variable.parameter.function-call | #B25468 | — |
| variable.other.property, variable.other.object.property, meta.object-literal.key, support.variable.property, variable.other.member | #2A78B5 | — |
| meta.object-literal.key string, string.quoted meta.object-literal.key | #2A78B5 | — |
| variable.object.property, meta.object.member | #2A78B5 | — |
| support.variable, support.variable.dom, support.variable.property.dom | #2A78B5 | — |
| variable.other.normal.shell, variable.other.special.shell, punctuation.definition.variable | #2A78B5 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.definition.parameters, punctuation.definition.array, meta.brace.round, meta.brace.square, meta.brace.curly, punctuation.section.brackets, punctuation.section.parens, punctuation.section.block, punctuation.accessor, punctuation.accessor.optional, punctuation.definition.anchor.yaml | #8C7D6D | — |
| meta.decorator, entity.name.decorator, punctuation.decorator, meta.decorator entity.name.function, entity.name.function.decorator, meta.decorator entity.name.function.decorator, tag.decorator, storage.type.annotation, punctuation.definition.annotation | #8743A6 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml | #C84B34 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, meta.tag punctuation.definition.tag | #97703F | — |
| support.class.component, entity.name.tag.jsx, entity.name.tag.tsx, support.class.component.jsx | #8344C2 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.jsx | #B25468 | — |
| entity.name.tag.css, entity.name.tag.scss | #C84B34 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class | #8C6A1C | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id | #2A78B5 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #8743A6 | — |
| support.type.property-name.css, support.type.property-name.scss, meta.property-name.css | #2A78B5 | — |
| support.constant.property-value.css, meta.property-value.css, support.constant.property-value | #23824F | — |
| keyword.other.unit, keyword.other.unit.css, constant.numeric.css keyword.other.unit | #A33E8A | — |
| constant.other.color, constant.other.color.rgb-value.hex.css | #B5551E | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #C93A72 | — |
| support.type.property-name.json, meta.structure.dictionary.json support.type.property-name.json, string.json support.type.property-name, support.type.property-name | #2A78B5 | — |
| entity.name.tag.yaml, type.yaml, punctuation.definition.entry.yaml, string.unquoted.plain.out.yaml entity.name.tag | #2A78B5 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #A33E8A | — |
| meta.preprocessor, entity.name.function.preprocessor | #C93A72 | — |
| support.function.macro | #8743A6 | — |
| variable.other.readwrite.alias, meta.import variable.other | #5A4636 | — |
| markup.heading, markup.heading.markdown, entity.name.section.markdown, markup.heading entity.name | #947014 | bold |
| punctuation.definition.heading.markdown | #8C6A1C | bold |
| markup.bold, markup.bold.markdown, punctuation.definition.bold | #C93A72 | bold |
| markup.italic, markup.italic.markdown, punctuation.definition.italic | #B05530 | italic |
| markup.strikethrough, markup.strikethrough.markdown | #8C7B69 | strikethrough |
| markup.underline.link, markup.underline.link.markdown, string.other.link.title.markdown, constant.other.reference.link.markdown | #8C6A1C | — |
| markup.underline | #8C6A1C | — |
| markup.underline.link.image.markdown, meta.link.inline.markdown markup.underline | #23824F | — |
| markup.inline.raw, markup.inline.raw.string.markdown, markup.raw.block.markdown | #B5551E | — |
| markup.quote, markup.quote.markdown, punctuation.definition.quote.begin.markdown | #8C7B69 | italic |
| punctuation.definition.list.begin.markdown, markup.list.unnumbered.markdown, markup.list.numbered.markdown beginning.punctuation | #C93A72 | — |
| meta.separator.markdown | #8C7B69 | — |
| markup.inserted, markup.inserted.diff | #23824F | — |
| markup.deleted, markup.deleted.diff | #C93A36 | — |
| markup.changed, markup.changed.diff | #947014 | — |
| entity.name.namespace, entity.name.scope-resolution, storage.modifier.namespace | #8344C2 | — |
| entity.name.label, punctuation.definition.label, entity.name.label.call | #B25468 | — |
| invalid, invalid.illegal | #C93A36 | — |
| invalid.deprecated | #A33E8A | strikethrough |
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}!`;
}