Meridian Dark Suite
Publisher: Mohammed HasanfattaThemes in package: 13
A developer-first, precisely calibrated dark theme for VS Code, generated by the Meridian design system.
A developer-first, precisely calibrated dark theme for VS Code, generated by the Meridian design system.
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 |
|---|---|---|
| source, meta.embedded, variable.other.readwrite, variable.other.object, variable.other.constant.object, meta.definition.variable.name, support.variable.dom, support.variable.property.dom | #BCBEC4 | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.as, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.operator.new, keyword.operator.expression, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.expression.in, keyword.operator.expression.of, keyword.operator.expression.delete, keyword.operator.expression.void, keyword.operator.expression.import, keyword.operator.logical, keyword.operator.ternary, keyword.other, storage, storage.type, storage.type.function, storage.type.class, storage.type.enum, storage.type.interface, storage.type.namespace, storage.type.type, storage.modifier, storage.modifier.async, storage.modifier.tsx, variable.language, variable.language.this, variable.language.super, constant.language, constant.language.null, constant.language.undefined, constant.language.nan, support.type.builtin | #CF8E6D | — |
| constant.language.boolean, constant.language.boolean.true, constant.language.boolean.false | #CF8E6D | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.alias, entity.name.type.module, entity.name.class, entity.other.inherited-class, support.type, support.class, support.class.builtin, support.type.object.module, meta.type.annotation entity.name.type, meta.return.type entity.name.type, keyword.other.class | #BCBEC4 | — |
| entity.name.type.parameter, entity.name.type.type-parameter, meta.type.parameters entity.name.type, meta.type.parameters entity.name.type.parameter | #16BAAC | — |
| entity.name.function, entity.name.function.member, entity.name.method, meta.function-call entity.name.function, meta.function-call.method, support.function, support.function.dom, variable.function, variable.other.property.function, meta.function-call, meta.method-call meta.method | #56A8F5 | — |
| variable.parameter, meta.parameter, variable.parameter.function-call | #BCBEC4 | — |
| variable.other.property, variable.other.object.property, variable.object.property, meta.object-literal.key, support.type.property-name, meta.property.object | #C77DBB | — |
| variable.other.global, support.variable.global, variable.language.prototype | #C77DBB | italic |
| variable.other.constant, variable.other.enummember, constant.other, constant.character, support.constant, support.constant.math, support.constant.json | #C77DBB | italic |
| constant.numeric, constant.numeric.decimal, constant.numeric.hex, keyword.other.unit | #2AACB8 | — |
| string, string.quoted.single, string.quoted.double, string.quoted.backtick, string.template, string.unquoted, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.template.begin, punctuation.definition.string.template.end | #6AAB73 | — |
| constant.character.escape, constant.other.placeholder, punctuation.quasi.element | #CF8E6D | — |
| string.regexp, punctuation.definition.string.begin.regexp, punctuation.definition.string.end.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp | #42C3D4 | — |
| comment, comment.line, comment.block, punctuation.definition.comment | #7A7E85 | italic |
| comment.block.documentation, punctuation.definition.comment.documentation | #4B8753 | italic |
| comment.block.documentation storage.type.class.jsdoc, comment.block.documentation keyword.other.phpdoc, comment.block.documentation entity.name.type.instance.jsdoc, keyword.other.documentation | #6AAB73 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, storage.type.function.arrow | #BCBEC4 | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.section, punctuation.accessor, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.dictionary, punctuation.definition.block, punctuation.definition.typeparameters, punctuation.definition.binding-pattern, meta.brace, meta.brace.round, meta.brace.square, meta.brace.curly, meta.delimiter, meta.bracket, meta.separator, punctuation.section.embedded | #BCBEC4 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, tag.decorator, storage.type.annotation, support.type.annotation | #B3AE60 | — |
| entity.name.namespace, entity.name.module, entity.name.type.namespace, variable.other.namespace | #BCBEC4 | — |
| entity.name.label, punctuation.definition.label | #16BAAC | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml, entity.name.tag.script.html, entity.name.tag.style.html, meta.tag.sgml, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, text.html punctuation.definition.tag | #D5B778 | — |
| entity.name.tag.tsx, entity.name.tag.jsx, source.tsx entity.name.tag, source.jsx entity.name.tag, JSXNested, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.jsx, punctuation.definition.tag.end.jsx | #D5B778 | — |
| support.class.component, support.class.component.tsx, support.class.component.jsx, support.class.component.open.tsx, support.class.component.close.tsx, entity.name.tag.namespace, meta.tag.custom entity.name.tag, entity.name.tag.custom | #2FBAA3 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.tsx, entity.other.attribute-name.jsx, entity.other.attribute-name.xml, meta.tag entity.other.attribute-name, meta.jsx.children | #BCBEC4 | — |
| constant.character.entity.html, text.html constant.character.entity, punctuation.definition.entity.html | #56A8F5 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.vendored.property-name.css | #BCBEC4 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css | #CF8E6D | — |
| support.constant.color.w3c-standard-color-name.css, constant.other.color | #56A8F5 | — |
| support.type.property-name.json, string.json support.type.property-name | #C77DBB | — |
| markup.heading, markup.heading entity.name, punctuation.definition.heading | #CF8E6D | bold |
| markup.bold, punctuation.definition.bold | — | bold |
| markup.italic, punctuation.definition.italic | — | italic |
| markup.inline.raw, markup.raw.block, markup.fenced_code.block | #6AAB73 | — |
| markup.underline.link, string.other.link, constant.other.reference.link.markdown | #56A8F5 | — |
| markup.list punctuation.definition.list.begin, markup.quote | #7A7E85 | — |
| markup.inserted, meta.diff.header.to-file | #6AAB73 | — |
| markup.deleted, meta.diff.header.from-file | #F56C6C | — |
| markup.changed | #B3AE60 | — |
| invalid, invalid.illegal | #F56C6C | — |
| invalid.deprecated | #F56C6C | strikethrough |
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}!`;
}