CleanCode Dark
Publisher: Pedro AmancioThemes in package: 1
A clean and satisfying dark theme for focused coding sessions.
A clean and satisfying dark theme for focused coding sessions.
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.line | #3e5178 | italic |
| comment.block | #3e5178 | italic |
| comment.block.jsx | #3e5178 | — |
| keyword.control.flow | #5586e9 | — |
| keyword.control.conditional | #5586e9 | — |
| keyword.control.loop | #5586e9 | — |
| keyword.control.import | #dc7fb8 | — |
| keyword.control.from | #dc7fb8 | — |
| keyword.other | #5586e9 | — |
| keyword.control.return | #dc7fb8 | — |
| keyword.control.export | #dc7fb8 | — |
| keyword.control.default | #dc7fb8 | — |
| storage.type.function | #dc7fb8 | — |
| storage.type.arrow | #5586e9 | — |
| storage.type.class | #5586e9 | — |
| storage.type | #5586e9 | — |
| storage.modifier | #5586e9 | — |
| punctuation.definition.string.begin.single | #48e6b4 | — |
| punctuation.definition.string.end.single | #48e6b4 | — |
| string.quoted.single | #48e6b4 | — |
| punctuation.definition.string.begin.double | #48e6b4 | — |
| punctuation.definition.string.end.double | #48e6b4 | — |
| string.quoted.double | #48e6b4 | — |
| punctuation.definition.string.template.begin | #48e6b4 | — |
| punctuation.definition.string.template.end | #48e6b4 | — |
| string.template | #48e6b4 | — |
| punctuation.definition.template-expression.begin | #93d5e9 | — |
| punctuation.definition.template-expression.end | #93d5e9 | — |
| constant.numeric.integer | #ec9476 | — |
| constant.numeric.decimal | #ec9476 | — |
| constant.numeric.hex | #ec9476 | — |
| constant.numeric.octal | #ec9476 | — |
| constant.language.boolean.true | #5586e9 | — |
| constant.language.boolean.false | #5586e9 | — |
| constant.language.null | #5586e9 | — |
| constant.language.undefined | #5586e9 | — |
| constant.other | #fbdc95 | — |
| constant.other.color.rgb-value | #ec9476 | — |
| variable.other.readwrite | #c7d4e6 | — |
| variable.other.constant | #c7d4e6 | — |
| variable.other.object | #c7d4e6 | — |
| variable.parameter | #c7d4e6 | — |
| variable.language | #5586e9 | — |
| variable.other.property | #c7d4e6 | — |
| entity.name.function | #93d5e9 | — |
| meta.function-call | #93d5e9 | — |
| support.function | #93d5e9 | — |
| entity.name.type.class | #fbdc95 | — |
| entity.name.type.interface | #fbdc95 | — |
| entity.name.type.enum | #fbdc95 | — |
| entity.name.type.alias | #fbdc95 | — |
| support.type | #62c8c4 | — |
| support.class | #fbdc95 | — |
| keyword.operator.assignment | #585858 | — |
| keyword.operator.comparison | #e6c7c7 | — |
| keyword.operator.arithmetic | #585858 | — |
| keyword.operator.logical | #5586e9 | — |
| keyword.operator.ternary | #5586e9 | — |
| keyword.operator.spread | #5586e9 | — |
| keyword.operator.type | #5586e9 | — |
| punctuation.accessor | #5586e9 | — |
| punctuation.separator.comma | #585858 | — |
| punctuation.terminator.statement | #585858 | — |
| punctuation.separator.key-value | #506899 | — |
| punctuation.definition.parameters.begin | #585858 | — |
| punctuation.definition.parameters.end | #585858 | — |
| punctuation.definition.array.begin | #585858 | — |
| punctuation.definition.array.end | #585858 | — |
| punctuation.definition.block | #585858 | — |
| punctuation.definition.arguments.begin | #585858 | — |
| punctuation.definition.arguments.end | #585858 | — |
| punctuation.section.embedded | #585858 | — |
| JSX embeddedpunctuation.section.embedded() | #585858 | — |
| CSSpunctuation.section.property-list.css | #585858 | — |
| punctuation.definition.tag.begin | #585858 | — |
| punctuation.definition.block | #585858 | — |
| punctuation.definition.array.begin | #585858 | — |
| punctuation.definition.array.end | #585858 | — |
| punctuation.definition.parameters.begin | #585858 | — |
| punctuation.definition.parameters.end | #585858 | — |
| punctuation.definition.arguments.begin | #585858 | — |
| punctuation.definition.arguments.end | #585858 | — |
| punctuation.definition.tag.begin | #585858 | — |
| punctuation.definition.tag.end | #585858 | — |
| punctuation.separator.comma | #585858 | — |
| keyword.operator.assignment | #585858 | — |
| keyword.operator.arithmetic | #585858 | — |
| CSSpunctuation.section.property-list.css | #585858 | — |
| punctuation.section.embedded | #585858 | — |
| punctuation.definition.tag.end | #585858 | — |
| entity.name.tag | #5586e9 | — |
| entity.other.attribute-name | #62c8c4 | — |
| string.other.attribute-value | #48e6b4 | — |
| entity.name.tag.css | #5586e9 | — |
| entity.other.attribute-name.class.css | #fbdc95 | — |
| entity.other.attribute-name.id.css | #ec9476 | — |
| entity.name.tag.scss | #5586e9 | — |
| entity.other.attribute-name.class.scss | #fbdc95 | — |
| entity.other.attribute-name.pseudo-class.css | #62c8c4 | — |
| support.type.property-name.css | #62c8c4 | — |
| support.type.property-name.scss | #62c8c4 | — |
| support.constant.property-value.css | #5586e9 | — |
| support.constant.font-name.css | #48e6b4 | — |
| keyword.other.unit.css | #ec9476 | — |
| keyword.other.unit.scss | #ec9476 | — |
| punctuation.separator.key-value.css | #506899 | — |
| punctuation.terminator.rule.css | #506899 | — |
| punctuation.section.property-list.css | #585858 | — |
| variable.css | #62c8c4 | — |
| variable.scss | #62c8c4 | — |
| markup.heading | #5586e9 | bold |
| meta.paragraph.markdown | #c7d4e6 | — |
| markup.underline.link.markdown | #93d5e9 | — |
| string.other.link.title.markdown | #5586e9 | — |
| markup.inline.raw.markdown | #48e6b4 | — |
| markup.quote.markdown | #3e5178 | italic |
| markup.italic.markdown | #c7d4e6 | italic |
| markup.bold.markdown | #eaeef6 | bold |
| meta.separator.markdown | #333333 | — |
| markup.list.unnumbered.markdown | #c7d4e6 | — |
| markup.list.numbered.markdown | #c7d4e6 | — |
| markup.fenced_code.block.markdown | #48e6b4 | — |
| markup.inserted.diff | #48e6b4 | — |
| markup.deleted.diff | #d0505d | — |
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}!`;
}