one plain@own
Publisher: yutentThemes in package: 1
🔥 米白色主题@自用
🔥 米白色主题@自用
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 | #b6d5e0 | italic |
| variable, string constant.other.placeholder | #546e7a | — |
| invalid, invalid.illegal | #546e7a | — |
| invalid.deprecated | #FFB62C | italic |
| invalid.unimplemented | #546e7a | — |
| keyword, storage.type, storage.modifier | #FF5370 | — |
| storage.type, keyword.control | — | italic |
| keyword.control, meta.tag, punctuation.accessor.js, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #ff5370 | — |
| keyword.control | — | italic |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #FF5370 | — |
| entity.name.function, meta.function-call, variable.function, support.function.js, keyword.other.special-method, meta.block-level | #0096ff | — |
| string.regexp | #90a4ae | |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #9437ff | |
| constant.other.character-class.regexp, constant.other.character-class.escape.backslash.regexp, constant.character.escape.backslash.regexp | #0096ff | italic |
| source.cpp meta.block variable.other | #ff5370 | — |
| variable.other.constant | #0096ff | — |
| support.other.variable, string.other.link | #ff5370 | — |
| constant.numeric, constant.language, support.constant, constant.character, variable.parameter, keyword.other.unit | #7c4dff | italic |
| variable.parameter | #f5be09 | italic |
| variable.parameter.function.language.special | #E53935 | — |
| constant.character.entity.wxml | #546e7a | italic |
| string | #53c659 | — |
| punctuation | #90a4ae | — |
| constant.other.symbol, constant.other.key, meta.group.braces.curly, constant.other.object.key.js, string.unquoted.label.js | #546e7a | — |
| entity.name.class, entity.name.type.class, entity.other.inherited-class, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, support.type.sys-types | #FFB62C | bold italic |
| support.type | #8796B0 | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #8796B0 | — |
| entity.name.module.js, variable.import.parameter.js | #e53935 | — |
| variable.language | #e53935 | italic |
| entity.other.attribute-name | #7C4DFF | — |
| markup.inserted | #91B859 | — |
| markup.deleted | #E53935 | — |
| markup.changed | #7C4DFF | — |
| constant.character.escape | #39ADB5 | — |
| *url*, *link*, *uri* | — | underline |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name, text.xhtml.basic entity.other.attribute-name.xhtml, text.xhtml.basic entity.other.attribute-name | #ffb62c | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.id.css | #ffb62c | — |
| meta.property-value.scss variable.scss, meta.at-rule.mixin.scss variable.scss, meta.definition.variable.scss variable.scss | #ff4628cb | — |
| constant.other.color.rgb-value.hex.css | #be7ee7 | underline |
| meta.property-value.css variable.parameter.url.css, meta.property-value.scss variable.parameter.url.scss, meta.property-value.scss keyword.operator.css, meta.property-value.scss string.quoted.single.scss | #53c659 | — |
| text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html | #ffb62c | — |
| text.html.derivative meta.attribute.unrecognized string.quoted.double.html | #be7ee7 | — |
| constant.character.entity.named, constant.character.entity.named punctuation.definition.entity.html, constant.character.entity.numeric.hexadecimal.html, constant.character.entity.numeric.hexadecimal.html punctuation.definition.entity.html | #70acf7 | — |
| meta.import.js variable.other.readwrite.alias.js, meta.import.ts variable.other.readwrite.alias.ts | #0096ff | — |
| meta.import.js string.quoted.single.js, meta.import.js string.quoted.double.js, meta.import.ts string.quoted.single.ts, meta.import.ts string.quoted.double.ts | #90a4ae | underline |
| meta.import.js string.quoted.single.js punctuation.definition.string.begin.js, meta.import.js string.quoted.double.js punctuation.definition.string.begin.js, meta.import.js string.quoted.single.js punctuation.definition.string.end.js, meta.import.js string.quoted.double.js punctuation.definition.string.end.js, meta.import.ts string.quoted.single.ts punctuation.definition.string.begin.ts, meta.import.ts string.quoted.double.ts punctuation.definition.string.begin.ts, meta.import.ts string.quoted.single.ts punctuation.definition.string.end.ts, meta.import.ts string.quoted.double.ts punctuation.definition.string.end.ts | — | none |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #6182B8 | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #6182B8 | — |
| entity.name.method.js | #6182B8 | italic |
| support.type.object.console.js, support.type.object.module.js, support.type.object.dom.js, support.constant.math, support.constant.json, meta.class.extends.js variable.other.readwrite.js, meta.function-call.static.without-arguments.js variable.other.class.js, meta.function-call.static.with-arguments.js variable.other.class.js, meta.property.class.js variable.other.class.js | #ffb62c | bold italic |
| new.expr entity.name.type | #ffb62c | bold |
| comment.block.documentation entity.name.type.instance.jsdoc, comment.block.documentation constant.other.email.link.underline.jsdoc | #b6d5e0 | italic |
| comment.block.documentation constant.other.email.link.underline.jsdoc | — | italic underline |
| punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.template-expression.begin.js, punctuation.definition.template-expression.end.js | #ff5370 | |
| meta.object.member.js meta.array.literal.js meta.brace.square.js, meta.object.member.js meta.arrow.js meta.brace.round.js, string.template.js meta.template.expression.js meta.array.literal.js meta.brace.square.js, string.template.js meta.template.expression.js meta.brace.round.js, string.template.ts meta.template.expression.ts meta.array.literal.ts meta.brace.square.ts, string.template.ts meta.template.expression.ts meta.brace.round.ts | #90a4ae | — |
| string.template.js meta.template.expression.js support.variable.property.js, string.template.ts meta.template.expression.ts support.variable.property.ts | #546e7a | — |
| source.js support.function.node.js, meta.group.braces.curly.js support.function, meta.function-call.ts support.function.ts, meta.function-call.js support.function.js, support.function.builtin.js | #be7ee7 | italic |
| entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | — | italic |
| meta.group.braces.round variable.other.constant, support.type.object.module keyword.operator.accessor, support.constant.property.math.ts | #90a4ae | italic bold |
| support.type.primitive.ts, support.type.builtin.ts, support.type.primitive.tsx, support.type.builtin.tsx, entity.name.type.module, entity.name.type | #e5c07b | bold italic |
| constant.other.object.key.js string.unquoted.label.js, constant.other.object.key.js string.quoted.label.js, meta.object.member.js meta.object-literal.key.js string.quoted.double.js, meta.object.member.js meta.object-literal.key.js string.quoted.single.js, meta.object.member.js meta.object-literal.key.js constant.numeric.decimal.js, meta.objectliteral.js meta.object.member.js meta.object-literal.key.js | #90a4ae | italic bold |
| support.function.construct.php, variable.other.php, keyword.operator.logical.php, punctuation.definition.variable.php, string.quoted.single.php, constant.numeric.decimal.php, support.function.array.php, support.function.mbstring.php, variable.other.global.safer.php, support.function.datetime.php | #a7beca | italic |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.terminator.statement.php, punctuation.definition.begin.bracket.round.php, punctuation.definition.end.bracket.round.php, punctuation.definition.arguments.begin.bracket.round.php, punctuation.definition.arguments.end.bracket.round.php, punctuation.terminator.expression.php, punctuation.section.array.begin.php, punctuation.section.array.end.php, punctuation.definition.string.begin.php, punctuation.definition.string.end.php, keyword.control.if.php, keyword.control.elseif.php, keyword.control.endif.php, keyword.control.foreach.php, keyword.control.endforeach.php, keyword.control.import.include.php | #c7c8cb | italic |
| keyword.operator.comparison.php, keyword.operator.ternary.php, keyword.operator.assignment.php, keyword.operator.string.php, keyword.operator.key.php | #e8e9ed | italic |
| text.html.markdown, punctuation.definition.list_item.markdown | #546e7a | — |
| markup.inline | #ff5370 | |
| markup.fenced_code.block.markdown, markup.raw.block | #90a4ae | — |
| markdown.heading, markup.heading, markup.heading entity.name, markup.heading.markdown, punctuation.definition.heading.markdown | #ff4628 | bold |
| markup.quote | #90a4ae | italic |
| markup.underline.link.image.markdown, markup.underline.link.markdown | #b3b5ab | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #0096ff | |
| variable.language.fenced.markdown | #E7EAEC | — |
| meta.separator | #E7EAEC | bold |
| markup.italic | #b3b5ab | italic |
| markup.bold, markup.bold string | #75797b | bold |
| markup.bold markup.italic, markup.italic markup.bold | #75797b | bold italic |
| markup.inserted, markup.deleted, markup.underline | #90a4ae | underline |
| markup.underline | #ff4628 | — |
| markup.list | #75797b | bold |
| punctuation.definition.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.heading.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.italic.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #c7c8cb | |
| source.json meta.structure.dictionary.json support.type.property-name.json | #90a4ae | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FFB62C | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F76D47 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #E53935 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #C17E70 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #6182B8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #FF5370 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #7C4DFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #91B859 | — |
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}!`;
}