one plain
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, punctuation.accessor.optional, 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, text.html.derivative meta.attribute.unrecognized entity.other.attribute-name.html, text.html.vue-html meta.directive.vue entity.other.attribute-name.html | #ffb62c | — |
| meta.tag.metadata.script.start.html meta.attribute.src string.quoted.double, meta.tag.inline.a.start.html meta.attribute.href string.quoted.double, meta.tag.metadata.link.void.html meta.attribute.href string.quoted.double, meta.tag.object.img.void.html meta.attribute.src string.quoted.double | #90a4ae | — |
| 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 string.quoted.double.html, meta.tag.metadata.script.start.html meta.attribute.type.html string.quoted.double | #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 variable.other.readwrite.alias | #0096ff | — |
| meta.import string.quoted.single, meta.import string.quoted.double | #90a4ae | underline |
| meta.import string.quoted.single punctuation.definition.string.begin, meta.import string.quoted.single punctuation.definition.string.end, meta.import string.quoted.double punctuation.definition.string.begin, meta.import string.quoted.double punctuation.definition.string.end | — | 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, support.type.object.module, support.type.object.dom, support.constant.math, support.constant.json, meta.class.extends variable.other.readwrite, meta.function-call.static.without-arguments variable.other.class, meta.function-call.static.with-arguments variable.other.class, meta.property.class variable.other.class | #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, punctuation.definition.template-expression.end | #ff5370 | |
| meta.object.member meta.array.literal meta.brace.square, meta.object.member meta.arrow meta.brace.round, text.html.vue-html meta.brace.round, text.html.vue-html meta.directive.vue, string.template meta.template.expression meta.array.literal meta.brace.square, string.template meta.template.expression meta.brace.round, meta.tag.attributes punctuation.section.embedded.begin, meta.tag.attributes punctuation.section.embedded.end, meta.tag.without-attributes punctuation.section.embedded.begin, meta.tag.without-attributes punctuation.section.embedded.end, meta.type.annotation meta.brace.square | #90a4ae | — |
| string.template meta.template.expression support.variable.property | #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 string.unquoted.label, constant.other.object.key string.quoted.label, meta.object.member meta.object-literal.key, meta.object.member meta.object-literal.key string.quoted.double, meta.object.member meta.object-literal.key string.quoted.single, meta.object.member meta.object-literal.key constant.numeric.decimal, meta.field.declaration variable.object.property | #90a4ae | italic bold |
| entity.name.tag support.class.component, text.html.vue-html support.class.component.html | #ff5370 | normal |
| meta.tag meta.tag.without-attributes meta.jsx.children, meta.tag meta.jsx.children | #546e7a | — |
| constant.other.php, support.constant.ext.php, support.constant.std.php,support.constant.core.php, support.constant.parser-token.php, constant | #ffb62c | — |
| variable.other.class.php | #e06c75 | — |
| punctuation.definition.variable.php | #546e7a | — |
| variable.language.this.php, variable.language.this.php punctuation.definition.variable.php | #ff4628 | — |
| meta.function-call.php support.function | #be7ee7 | italic |
| keyword.operator.heredoc.php,keyword.operator.nowdoc.php | #c678dd | — |
| entity.name.goto-label.php,support.other.php | #61AFEF | — |
| keyword.operator.logical.php,keyword.operator.bitwise.php,keyword.operator.arithmetic.php | #56b6c2 | — |
| keyword.operator.regexp.php | #c678dd | — |
| keyword.operator.comparison.php | #56b6c2 | — |
| keyword.operator.type.php | #c678dd | — |
| invalid.illegal.non-null-typehinted.php | #f44747 | — |
| storage.type.php,meta.other.type.phpdoc.php,keyword.other.type.php,keyword.other.array.phpdoc.php | #ffb62c | bold italic |
| meta.function-call.php, meta.function-call.object.php, meta.function-call.static.php | #61AFEF | — |
| text.html.laravel-blade, source.php.embedded.line.html, entity.name.tag.laravel-blade | #c678dd | — |
| text.html.laravel-blade, source.php.embedded.line.html, support.constant.laravel-blade | #c678dd | — |
| support.other.namespace.use.php, support.other.namespace.use-as.php, support.other.namespace.php, entity.other.alias.php, meta.interface.php | #E5C07B | — |
| 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 | |
| meta.declaration.dart string.interpolated.single.dart | #90a4ae | underline |
| string.interpolated.double.dart string.interpolated.expression.dart, string.interpolated.single.dart string.interpolated.expression.dart | #ff5370 | |
| string.interpolated.double.dart variable.parameter.dart, string.interpolated.single.dart variable.parameter.dart | #546e7a | — |
| 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}!`;
}