Cassidy Dark Theme
Publisher: Jacob CassidyThemes in package: 1
A clean, modern, dark theme originally inspired by Monokai
A clean, modern, dark theme originally inspired by Monokai
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 |
|---|---|---|
| markup.bold.markdown | — | bold |
| comment, invalid, variable.language.this, entity.name.section.markdown, markup.italic.markdown, keyword.operator.return-value.php, keyword.other.type.php, meta.function.php support.class.php, keyword.operator.type.annotation.ts, support.type.primitive.ts | — | italic |
| markup.bold.markdown markup.italic.markdown | — | bold italic |
| markup.strikethrough.markdown | — | strikethrough |
| meta.method-call entity.name.function, support.function, entity.helper.apacheconf, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, text.html, meta.element.structure.svg.text.html, meta.jsx.children, text.xml | #f8f8f8 | — |
| variable.other.object, meta.scope | #d1d1d1 | — |
| meta.embedded.block, support.constant.property, support.variable, entity.other.attribute-name | #c4c4c4 | — |
| entity.name, meta.at-rule.keyframes.body, meta.block, meta.brace, meta.embedded.line, punctuation, meta.function.calc.css, meta.property-list, meta.separator.markdown, markup.strikethrough.markdown, comment keyword, comment keyword.operator.nullable-type.php, comment support.class, keyword.other.phpdoc.php, keyword.operator.return-value.php, meta.embedded.block.php, meta.embedded.line.php, string.quoted.double.php punctuation.definition.variable.php, meta.function.method.with-arguments.ruby storage.type, meta.expression.assignment.modified.shell, meta.tag, meta.parameter-expansion | #929292 | — |
| comment, comment constant, comment entity.name.type, comment keyword, comment meta.tag.inline, comment punctuation, comment storage, comment storage.modifier, comment storage.type, comment support, comment variable, punctuation.definition.comment, source.embedded | #7a7a7a | — |
| invalid, markup.underline.link | #636363 | — |
| storage.type, string.path.apacheconf, meta.attribute.unrecognized.xmlns.html string, meta.attribute.unrecognized.xmlns:xlink.html string, meta.function.url string.quoted.double, meta.function.url string.quoted.single, meta.attribute.href string, meta.attribute.src.html string, meta.attribute.srcset.html string, log.date, meta.link.reference, meta.link.reference constant, meta.link.reference string, string.other.link.title.markdown, variable.parameter.url | #92c1fd | — |
| keyword.other.type.php, meta.other.type.phpdoc.php, keyword.operator.nullable-type.php, meta.function.php storage.type.php, meta.function.php support.class.php, meta.function.parameter.typehinted.php support, meta.other.type.phpdoc.php support.class, keyword.operator.type.annotation.ts, support.type.primitive.ts | #a9c0de | — |
| markup.strikethrough.markdown string.other.link.title.markdown | #92c1fd80 | — |
| entity.name.type, entity.name.function, keyword.other.special-method, meta.attribute.style string, meta.property-name, meta.property-value support.function, support, entity.tag.apacheconf, meta.at-rule support.function, meta.property-value, keyword.other.definition, support.function.basic_functions, entity.other.inherited-class.php, entity.other.alias.php, meta.function-call.generic.python, support.function.builtin.shell, entity.name.tag.yaml | #89dfdf | — |
| entity.name.label, entity.other.attribute-name.class, meta.attribute.class string, meta.object-literal, support.variable.property, variable.other.constant.property, variable.other.property, variable.other.object.property, entity.mime-type.apacheconf, entity.name.section.markdown, markup.heading.markdown string.other.link.title.markdown, markup.heading.markdown meta.other.valid-ampersand.markdown, punctuation.definition.heading.markdown, variable.other.property.php punctuation.definition.variable.php, constant.other.symbol.hashkey.ruby, constant.other.symbol.ruby, entity.name.command, entity.name.section.group-title, entity.other.attribute-name.parent-selector-suffix.css punctuation | #a2cd8b | — |
| entity.other.attribute-name.id, entity.other.attribute-name.id punctuation, meta.attribute.id string, variable.parameter, string.replacement.apacheconf, entity.other.keyframe-offset, meta.at-rule.keyframes, support.constant.container-name.container.css, variable.parameter.misc.css, log.warning, meta.function.parameters.php variable, meta.function.parameters.php punctuation.definition.variable, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, meta.at-rule.keyframes entity.name.function, entity.other.attribute-name.scss | #eeae7b | — |
| punctuation.definition.variable, variable, string.quoted.double.php variable.other.php punctuation.definition.variable.php, meta.function-call.arguments.python, variable.other.assignment.shell | #fcb7cb | — |
| constant, keyword.other.unit, entity.status.apacheconf, support.constant.boolean.container.css, constant punctuation.definition.entity, meta.attribute.async.html entity.other.attribute-name, meta.attribute.crossorigin entity.other.attribute-name, meta.attribute.defer.html entity.other.attribute-name, source.ini, variable.other.constant.object.js, entity.name.type.namespace.php, meta.assertion.look-ahead.regexp, meta.assertion.negative-look-ahead.regexp, meta.group.regexp, meta.group.assertion.regexp, string.regexp, string.regexp constant, string.regexp keyword, string.regexp punctuation, constant.other.option, meta.arithmetic.shell, keyword.operator.logical.shell, keyword.operator.expansion.shell, punctuation.definition.constant.xml | #d6aaea | — |
| entity.other.attribute-name.namespace | #bd84d7 | — |
| entity.name.tag, keyword, storage.modifier, log.error, entity.name.goto-label.php, punctuation.separator.statement.and.shell | #ef9182 | — |
| — | — | |
| string, meta.attribute-selector entity.other.attribute-name, string.other.link.description.markdown, string.quoted.single.php, string.quoted.double.php, meta.attribute-selector.scss, meta.tag.sgml.doctype.xml | #efddac | — |
| markup.inline.raw.string.markdown | #d7bb70 | — |
| source.dockerfile string | #f8f8f8 | — |
| source.dockerfile keyword.other.special-method | #89dfdf | — |
| source.dockerfile entity.name | #a2cd8b | — |
| source.dockerfile constant.other.option | #eeae7b | — |
| punctuation.separator.statement.and.shell.dockerfile | #ef9182 | — |
| source.nginx | #c4c4c4 | — |
| source.nginx constant.character | #929292 | — |
| source.nginx constant.language.module | #92c1fd | — |
| source.nginx constant.language | #89dfdf | — |
| source.nginx constant.language.directive.module.main | #ef9182 | — |
| code.log support | #f8f8f8 | — |
| code.log invalid | #ef9182 | — |
| comment.rainbow4, invalid.rainbow10 | — | |
| markup.bold.rainbow9 | #f8f8f8 | — |
| comment.rainbow4 | #c4c4c4 | — |
| constant.numeric.rainbow7 | #92c1fd | — |
| rainbow1 | #89dfdf | — |
| string.rainbow5 | #a2cd8b | — |
| variable.parameter.rainbow6 | #eeae7b | — |
| entity.name.type.rainbow8 | #fcb7cb | — |
| entity.name.function.rainbow3 | #d6aaea | — |
| invalid.rainbow10 | #ef9182 | — |
| keyword.rainbow2 | #efddac | — |
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}!`;
}