Lagoon Color Theme
Publisher: Lagoon ThemeThemes in package: 3
A calm teal-on-indigo dark theme with dimmed and light variants. Pastel syntax, one-hue indigo UI, and every colour contrast-checked for long editing sessions.
A calm teal-on-indigo dark theme with dimmed and light variants. Pastel syntax, one-hue indigo UI, and every colour contrast-checked for long editing 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, punctuation.definition.comment, string.comment | #6d6996 | italic |
| comment.block.documentation storage.type.class, keyword.other.phpdoc, storage.type.annotation.java | #575676 | italic |
| source, variable, variable.other, variable.other.readwrite, meta.definition.variable.name, support.variable, entity.name.variable | #2a2a47 | — |
| variable.parameter, meta.function.parameters variable, entity.name.variable.parameter, variable.other.jsdoc | #575676 | italic |
| variable.language, variable.language.this, variable.language.super, variable.language.special.self, keyword.other.this | #a74955 | — |
| variable.other.constant, variable.other.enummember, constant.other.caps, constant.other.placeholder, entity.name.constant | #a8572d | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, keyword.other.unit, meta.preprocessor.numeric | #a8572d | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.infinity, constant.language.nan, support.constant | #933f74 | — |
| string, string.quoted, string.template, string.other.link, meta.attribute-selector string | #33753d | — |
| punctuation.definition.string | #4a7061 | — |
| constant.character.escape, constant.other.character-class.escape, punctuation.definition.template-expression, punctuation.section.embedded, meta.embedded | #a8572d | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, punctuation.definition.group.regexp | #933f74 | — |
| keyword, keyword.control, keyword.other, keyword.operator.new, keyword.operator.expression, keyword.operator.delete, keyword.operator.logical, keyword.operator.instanceof, keyword.operator.in, keyword.operator.of, storage, storage.type, storage.modifier, keyword.declaration | #6b58ad | — |
| keyword.control.flow, keyword.control.return, keyword.control.trycatch, keyword.control.conditional, keyword.control.loop | #6b58ad | — |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.control.as | #933f74 | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.relational, keyword.operator.bitwise, keyword.operator.ternary, keyword.operator.spread, keyword.operator.type.annotation | #575676 | — |
| storage.type.function.arrow, meta.arrow storage.type.function | #6b58ad | — |
| punctuation, punctuation.separator, punctuation.terminator, punctuation.accessor, punctuation.definition.parameters, meta.brace | #575676 | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call.generic, variable.function, entity.name.method, meta.method-call entity.name.function | #087970 | — |
| support.function.builtin, support.function.magic, support.macro, entity.name.function.macro | #087970 | — |
| meta.decorator, meta.decorator entity.name.function, meta.decorator punctuation.decorator, entity.name.function.decorator, punctuation.definition.annotation | #087970 | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution, entity.other.inherited-class, support.type, support.class, storage.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.name.type.trait, entity.name.type.module, meta.type.annotation entity.name.type | #856103 | — |
| support.type.primitive, storage.type.primitive, keyword.type, entity.name.type.primitive | #856103 | — |
| meta.type.parameters entity.name.type, entity.name.type.parameter | #6e5314 | — |
| variable.other.property, variable.other.object.property, support.type.property-name, meta.object-literal.key, variable.object.property, entity.name.tag.yaml | #126aa4 | — |
| variable.other.object, support.class.dom, support.variable.object | #2a2a47 | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.other, meta.tag entity.name.tag, support.class.component | #a74955 | — |
| support.class.component.jsx, support.class.component.tsx, entity.name.tag.namespace | #856103 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, meta.tag entity.other.attribute-name | #126aa4 | — |
| punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end | #8d5772 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector | #856103 | — |
| entity.other.attribute-name.id, entity.other.attribute-name.id.css | #a8572d | — |
| entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element, meta.selector | #933f74 | — |
| support.type.property-name.css, meta.property-name | #126aa4 | — |
| support.constant.property-value, support.constant.font-name, support.constant.color, meta.property-value | #087970 | — |
| keyword.control.at-rule, punctuation.definition.keyword.css | #6b58ad | — |
| variable.css, variable.argument.css, support.type.custom-property | #933f74 | — |
| markup.heading, entity.name.section.markdown | #087970 | bold |
| punctuation.definition.heading.markdown, markup.heading.setext | #30737f | — |
| markup.bold | #a8572d | bold |
| markup.italic | #933f74 | italic |
| markup.strikethrough | #6d6996 | strikethrough |
| markup.underline.link, string.other.link.title | #126aa4 | — |
| string.other.link.description | #6b58ad | — |
| markup.inline.raw, markup.fenced_code, markup.raw | #33753d | — |
| markup.quote | #575676 | italic |
| markup.list, punctuation.definition.list.begin | #a74955 | — |
| meta.separator.markdown | #b1b1c9 | — |
| markup.inserted, meta.diff.header.to-file | #33753d | — |
| markup.deleted, meta.diff.header.from-file | #a01819 | — |
| markup.changed | #856103 | — |
| meta.diff.range, punctuation.definition.range.diff | #933f74 | — |
| support.type.property-name.json | #126aa4 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #126aa4 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml | #933f74 | — |
| entity.name.section.toml, entity.name.tag.ini | #856103 | — |
| keyword.other.definition.ini, variable.other.env | #126aa4 | — |
| support.function.builtin.shell, entity.name.function.shell | #087970 | — |
| variable.other.normal.shell, punctuation.definition.variable.shell | #933f74 | — |
| constant.other.option, variable.parameter.option | #a8572d | — |
| support.function.magic.python, meta.function.decorator.python | #087970 | italic |
| variable.parameter.function.language.special.self.python | #a74955 | — |
| storage.modifier.lifetime.rust, entity.name.lifetime.rust, meta.attribute.rust | #933f74 | — |
| entity.name.package.go, variable.other.receiver.go | #856103 | — |
| keyword.control.directive, meta.preprocessor, punctuation.definition.directive | #933f74 | — |
| keyword.other.DML, keyword.other.DDL | #6b58ad | — |
| variable.graphql, meta.selection-set.graphql variable | #126aa4 | — |
| invalid, invalid.illegal | #a01819 | — |
| invalid.deprecated | #856103 | strikethrough |
| invalid.broken, invalid.unimplemented | #a01819 | — |
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}!`;
}