Whitewasher
Publisher: BtoaThemes in package: 1
这是一个仿照Trae的深色主题(推荐设置 editor.lineHeight: 1.8 获得最佳效果)
这是一个仿照Trae的深色主题(推荐设置 editor.lineHeight: 1.8 获得最佳效果)
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 | #74777f | — |
| string, string.quoted, string.template | #97d6a4 | — |
| variable, variable.other, variable.language, support.function, variable.function, meta.function-call, support.function, keyword.other.special-method, variable.other.object.ts, variable.other.readwrite.ts, meta.array.literal.ts, constant.language, support.constant, constant.character, constant.escape, keyword.other.unit, keyword.other, constant.character.escape, source.js constant.other.object.key.js string.unquoted.label.js, variable.other.property.ts, variable.other.object.property.ts, meta.function-call.ts | #8dbbfa | — |
| keyword, meta.object-literal.key.ts, variable.other.object.property.ts, variable.other.property.ts, meta.object.member.ts, meta.brace.round.ts, meta.function.ts, support.type.property-name, variable.object.property, string.quoted.double.json, source.json support.type.property-name.json | #ffffff | — |
| variable.parameter, variable.other.readwrite.alias, meta.import variable, meta.export variable, meta.block.ts, support.other.variable, string.other.link, meta.function.ts, source.ts | #ddd489 | — |
| keyword.control.conditional.ts, keyword.control.flow.ts, keyword.control.loop.ts, keyword.operator.new.ts, keyword.operator.expression.ts, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as, storage.type, storage.modifier | #ad90f8 | — |
| meta.objectliteral.ts | #96bbf5 | — |
| constant.numeric.css, keyword.other.unit.px.css | #f283c1 | — |
| support.type.primitive.ts, meta.return.type.ts | #b7ccd5 | — |
| meta.type.annotation, meta.type.parameters, support.type, entity.name.type, meta.type.parameters entity.name.type, meta.type.parameters punctuation.definition, support.type.primitive.ts | #ecdafc | — |
| string.quoted.double.json, meta.structure.dictionary.value.json, meta.structure.dictionary.json | #78d297 | — |
| invalid, invalid.illegal | #f24144 | — |
| keyword.control, constant.other.color, meta.tag, 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, string.regexp | #89DDFF | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #f07178 | — |
| entity.name.function, punctuation | #e6a180 | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #C3E88D | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFCB6B | — |
| support.type | #B2CCD6 | — |
| 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, variable.prop.css, punctuation.definition.variable.property.css | #d6d8df | — |
| keyword.other.important.css | #a984fa | — |
| meta.property-value.css, support.constant.property-value.css, meta.property-value.scss, support.constant.property-value.scss, support.constant.color.w3c-standard-color-name.css, constant.other.color.rgb-value.hex.css, constant.numeric.color.rgb-value.hex.css, constant.other.rgb-value.css, support.constant.color, support.constant.property-value.misc.css | #C3E88D | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #FF5370 | — |
| entity.name.method.js | #82AAFF | italic |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #82AAFF | — |
| entity.other.attribute-name | #C792EA | — |
| entity.other.attribute-name.html, entity.other.attribute-name | #FFCB6B | — |
| constant.numeric, entity.name.tag.html | #e0787b | — |
| meta.tag.other.unrecognized.html.derivative | #edd3fd | — |
| entity.other.attribute-name.class | #FFCB6B | — |
| source.sass keyword.control | #C3E88D | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| string.regexp | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | italic |
| text.html.markdown, punctuation.definition.list_item.markdown | #EEFFFF | — |
| text.html.markdown markup.inline.raw.markdown | #C792EA | — |
| text.html.markdown markup.inline.raw.markdown punctuation.definition.raw.markdown | #65737E | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #C3E88D | — |
| markup.italic | #f07178 | italic |
| markup.bold, markup.bold string | #f07178 | bold |
| markup.bold markup.italic, markup.italic markup.bold, markup.quote markup.bold, markup.bold markup.italic string, markup.italic markup.bold string, markup.quote markup.bold string | #f07178 | bold |
| markup.underline | #F78C6C | underline |
| markup.quote punctuation.definition.blockquote.markdown | #65737E | — |
| markup.quote | — | italic |
| string.other.link.title.markdown | #82AAFF | — |
| string.other.link.description.title.markdown | #C792EA | — |
| constant.other.reference.link.markdown | #FFCB6B | — |
| markup.raw.block | #C792EA | — |
| markup.raw.block.fenced.markdown | #00000050 | — |
| punctuation.definition.fenced.markdown | #00000050 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #EEFFFF | — |
| variable.language.fenced.markdown | #65737E | — |
| meta.separator | #65737E | bold |
| markup.table | #EEFFFF | — |
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}!`;
}