schoero-dark
Publisher: schoeroThemes in package: 1
A personal dark theme
A personal dark theme
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 |
|---|---|---|
| punctuation.definition.comment, comment | #636d83 | italic |
| variable, string constant.other.placeholder | #a1a7b5 | — |
| constant.other.color, punctuation, meta.brace.square, meta.brace.round, variable.other.jsdoc, support.constant.property-value.css, meta.jsx.children | #b1b6c1 | — |
| markup.fenced_code.block.markdown, punctuation.definition.quote.begin.markdown, markup.quote.markdown, meta.scope.subshell.shell | #828a9c | — |
| invalid, invalid.illegal | #d04843 | — |
| deprecated, invalid.deprecated | — | strikethrough |
| meta.method.declaration, meta.object.member, variable.other.object.property, variable.other.property, meta.object-literal.key string, meta.object-literal.key punctuation.definition.string, variable.language.super, variable.language.this, meta.import, variable.other.readwrite.alias, punctuation.definition.template-expression, support.variable.property, support.type.property-name.json, support.type.property-name.json punctuation, entity.name.type.module, keyword.operator.decrement, keyword.other.debugger.ts, entity.name.tag, markup.heading, markup.deleted.diff, punctuation.definition.deleted.diff, entity.name.tag.css, meta.property-name.css support.type, support.type.property-name.css, variable.argument.css, variable.css, variable.parameter.screen.tailwind, variable.other.php, punctuation.definition.variable.php, entity.name.tag.yaml, variable.other.normal.shell, variable.other.special.shell, punctuation.section.bracket.curly.variable.begin.shell, punctuation.section.bracket.curly.variable.end.shell, variable.parameter.positional.shell | #E06C75 | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, punctuation.definition.variable.shell, punctuation.definition.evaluation.parens.begin.shell, punctuation.definition.evaluation.parens.end.shell, fenced_code.block.language.markdown, fenced_code.block.language, punctuation.definition.markdown | #b3565e | — |
| markup.strikethrough.markdown | — | strikethrough |
| markup.italic.markdown, support.type.vendored.property-name.css, support.type.vendored.property-value.css, support.constant.vendored.property-value | — | italic |
| markup.bold.markdown | — | bold |
| punctuation.definition.strikethrough.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | — | |
| storage, storage.modifier, storage.type.class, storage.type.interface, storage.type.property, keyword.control, meta.var.expr, meta.method.declaration, storage.type.class.jsdoc, keyword.operator.new, keyword.operator.expression.of, keyword.operator.expression.in, keyword.operator.expression.instanceof, keyword.operator.expression.delete, keyword.operator.expression.void, markup.underline.link.markdown, punctuation.definition.metadata.markdown, punctuation.definition.heading.markdown, punctuation.definition.list.begin.markdown, punctuation.definition.list.end.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.quote.end.markdown, punctuation.definition.link.title.begin.markdown, punctuation.definition.link.title.end.markdown, punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.strikethrough.markdown, meta.separator.markdown, keyword.operator.redirect.shell, keyword.operator.logical.php, keyword.operator.comparison.php, keyword.operator.arithmetic.php, keyword.operator.assignment.php, keyword.operator.bitwise.php, keyword.other.important.css | #C678DD | — |
| meta.function-call, entity.name.function, markup.underline.link.markdown, entity.name.section.group-title.ini, meta.function.shell, meta.command.shell | #61AFEF | — |
| support.type, support.type.primitive, support.type.builtin, support.class, meta.class, meta.return.type, keyword.operator.type.annotation, keyword.operator.expression.typeof, support.constant, keyword.operator.logical, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.bitwise, keyword.operator.increment, keyword.operator.ternary, keyword.operator.optional, keyword.operator.type, keyword.operator.spread, keyword.operator.rest, keyword.operator.relational, entity.name.type.class, constant.language.json, support.function.basic_functions.php, support.function.file.php, support.function.dir.php, support.function.string.php, support.function.construct.output.php, support.function.construct.input.php, support.function.construct.php, support.function.builtin.shell, punctuation.section.array.shell, punctuation.separator.statement.and.shell, meta.function.variable.css, meta.function.misc.css, meta.function.timing-function.css, support.function.css, support.function.theme.tailwind, support.function.screen.tailwind | #56B6C2 | — |
| variable.other.constant, constant, constant.numeric, entity.other.attribute-name, constant.numeric.decimal, constant.language.undefined, keyword.operator.definiteassignment.ts, punctuation.accessor.optional, string.other.link.title.markdown, markup.italic.markdown, markup.bold.markdown, markup.strikethrough.markdown, keyword.other.unit.px.css, keyword.other.unit.em.css, keyword.other.unit.rem.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css, keyword.other.unit.vi.css, keyword.other.unit.vb.css, keyword.other.unit.vmin.css, keyword.other.unit.vmax.css, keyword.other.unit.lvw.css, keyword.other.unit.lvh.css, keyword.other.unit.lvi.css, keyword.other.unit.lvb.css, keyword.other.unit.lvmin.css, keyword.other.unit.lvmax.css, keyword.other.unit.svw.css, keyword.other.unit.svh.css, keyword.other.unit.svi.css, keyword.other.unit.svb.css, keyword.other.unit.svmin.css, keyword.other.unit.svmax.css, keyword.other.unit.dvw.css, keyword.other.unit.dvh.css, keyword.other.unit.dvi.css, keyword.other.unit.dvb.css, keyword.other.unit.dvmin.css, keyword.other.unit.dvmax.css, keyword.other.unit.fr.css, keyword.other.unit.ch.css, keyword.other.unit.ex.css, keyword.other.unit.in.css, keyword.other.unit.cm.css, keyword.other.unit.mm.css, keyword.other.unit.pc.css, keyword.other.unit.pt.css, keyword.other.unit.percentage.css, keyword.other.unit.s.css, keyword.other.unit.ms.css, keyword.other.unit.deg.css, keyword.other.unit.rad.css, keyword.other.unit.turn.css, keyword.other.unit.grad.css, keyword.other.unit.Hz.css, keyword.other.unit.kHz.css, constant.other.option.dash.shell | #D19A66 | — |
| meta.type.annotation, meta.interface, entity.name.type | #E5C07B | — |
| string, punctuation.definition.string, string.template, tsTaggedTemplates, keyword.operator.increment, markup.inline.raw.string.markdown, punctuation.definition.raw.markdown, punctuation.definition.inserted.diff, markup.inserted.diff, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, variable.other.bracket.shell , string.quoted.double.shell | #98C379 | — |
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}!`;
}