Cyber Deep Sea
Publisher: egamasaThemes in package: 1
A dark color theme inspired by the deep sea and cyber aesthetics. Eye-friendly with muted cyan-gray tones.
A dark color theme inspired by the deep sea and cyber aesthetics. Eye-friendly with muted cyan-gray tones.
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, punctuation.section.embedded, meta.function-call, punctuation.definition.constant.hashkey, keyword.operator.assignment.ruby, entity.name.function.call.cpp, entity.name.function.member.cpp, variable.other.object.property, variable.other.property, meta.brace.round.ts, meta.brace.square.ts, keyword.operator.type.ts, keyword.operator.type.annotation.ts, meta.function-call.ts, keyword.operator.assignment.ts, keyword.operator.relational.ts, keyword.operator.increment.ts, keyword.operator.bitwise.shift.ts, keyword.operator.bitwise.ts, punctuation.separator.key-value.ts, keyword.operator.assignment.js, keyword.operator.relational.js, keyword.operator.increment.js, keyword.operator.bitwise.shift.js, keyword.operator.bitwise.js, variable.other.object.property.js, support.variable.property.js, meta.brace.round.js, meta.brace.square.js, keyword.generator.asterisk.js, keyword.operator.combinator.css, meta.property-name.css, punctuation.definition.constant.css, punctuation.separator.key-value.mapping.yaml, string.unquoted.plain.out.yaml, source.sql, constant.other.table-name.sql, meta.function.call.rust, keyword.operator.key-value.rust, keyword.operator.assignment.c, keyword.operator.comparison.c, keyword.operator.increment.c | #b0ccd0 | — |
| punctuation.definition.comment, comment | #6a8a80 | italic |
| comment.line.keyword.yard, comment.line.keyword.punctuation.yard, comment.line.punctuation.yard | #c8a880 | italic bold |
| support.function.kernel.ruby, keyword.other, keyword.operator, keyword.control, keyword.other.special-method, punctuation.separator.key-value, variable.language, storage.type.variable, storage.modifier, storage.type.built-in.primitive.c, storage.type.built-in.primitive.cpp, storage.type.primitive.cpp, punctuation.separator.pointer-access.cpp, punctuation.definition.heading.markdown, punctuation.definition.constant.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.list.begin.markdown, storage.type.function.arrow.ts, storage.type.function.ts, storage.type.interface.ts, storage.type.enum.ts, support.constant.media.css, support.constant.property-value.css, support.constant.font-name.css, entity.name.type.primitive.rust, entity.name.type.numeric.rust | #d87878 | — |
| variable.parameter, constant.other.symbol.hashkey.parameter.function, variable.other, comment.line.parameter.yard, entity.other.attribute-name.html, constant.other.color.rgb-value.hex.css, support.constant.color.w3c-standard-color-name.css, constant.other.database-name.sql | #d8a878 | italic |
| markup.inline.raw.string.markdown, markup.fenced_code.block.markdown | #78d4c8 | |
| punctuation.definition.string.begin, punctuation.definition.string.end, string | #7cc098 | — |
| meta.embedded.line | — | |
| string.regexp, punctuation.section.regexp | #acc088 | |
| constant.numeric, keyword.other.unit.em.css, keyword.other.unit.percentage.css, keyword.other.unit.rem.css, keyword.other.unit.px.css | #c8c088 | — |
| support.class, meta.class, entity.name.type.class.ruby, entity.other.inherited-class.ruby, entity.name.type.module, meta.module.ruby, variable.other.constant, comment.line.type.yard, entity.name.scope-resolution.cpp, entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.function.call.cpp, markup.heading, constant.other.reference.link.markdown, string.other.link.title.markdown, meta.selector.css, entity.name.namespace.rust, entity.name.type.enum.ts, variable.other.readwrite.alias.ts | #7c9cd8 | |
| constant.other.symbol.ruby, constant.language.symbol, constant.other.symbol.hashkey.ruby, markup.underline.link.markdown, meta.link.inline.markdown, support.type.property-name.json, meta.object-literal.key.ts, meta.object-literal.key.js, entity.name.tag.html, punctuation.separator.key-value.css, punctuation.terminator.rule.css, entity.name.tag.yaml, constant.other.symbol.hashkey.parameter.function.rbs | #8cc8c4 | |
| variable.other.readwrite.class, variable.other.readwrite.instance, punctuation.definition.variable, variable.other.readwrite.global, variable.other.property | #b8c8c8 | |
| constant.language, variable.language.this | #d47898 | bold |
| variable, markup.bold, punctuation.definition.bold.markdown, variable.object.property.ts, variable.other.constant.object.ts, variable.other.constant.js, variable.other.constant.object.js | #74b0c8 | |
| storage.type.ts, support.type.primitive.ts, storage.type.class.ts, storage.type.class.js, storage.type.function.js, storage.type.js, storage.type.function.arrow.js, constant.language.null.js, support.type.builtin.rbs | #d87878 | bold |
| meta.definition.method, meta.function.method.with-arguments.ruby, meta.function.method.without-arguments.ruby | #c488d8 | — |
| meta.function-call | #b0ccd0 | — |
| meta.attribute.rust | #c488d8 | italic |
| meta.diff, meta.diff.header, punctuation.definition.to-file.diff, punctuation.definition.from-file.diff, punctuation.definition.range.diff | #8cc8c4 | italic |
| markup.deleted, punctuation.definition.deleted.diff | #d87878 | |
| markup.changed | #d8a878 | |
| markup.inserted, punctuation.definition.inserted.diff | #7cc098 | — |
| entity.name.function.python, meta.function.python | #c488d8 | — |
| entity.name.function.decorator.python, meta.function.decorator.python, punctuation.definition.decorator.python | #c488d8 | italic |
| entity.name.type.class.python, entity.other.inherited-class.python | #7c9cd8 | — |
| variable.parameter.function.language.special.self.python, variable.parameter.function.language.special.cls.python, variable.language.special.self.python | #d47898 | bold |
| support.function.builtin.python, support.function.magic.python, support.variable.magic.python | #d87878 | — |
| support.type.python, meta.function.parameters.python meta.function-call.arguments.python | #7c9cd8 | |
| meta.fstring.python, constant.character.format.placeholder.other.python | #78c8e8 | — |
| string.quoted.docstring.multi.python, string.quoted.docstring.single.python | #6a8a80 | italic |
| entity.name.tag.html, entity.name.tag.structure.any.html, entity.name.tag.block.any.html, entity.name.tag.inline.any.html, entity.name.tag.other.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #d87878 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.id.html, entity.other.attribute-name.class.html | #d8a878 | italic |
| string.quoted.double.html, string.quoted.single.html, meta.attribute.href.html string, meta.attribute.src.html string | #7cc098 | — |
| meta.tag.metadata.doctype.html, entity.name.tag.doctype.html, entity.other.attribute-name.html punctuation.definition | #d87878 | — |
| constant.character.entity.html, punctuation.definition.entity.html | #c8c088 | — |
| entity.name.tag.script.html, entity.name.tag.style.html | #d87878 | — |
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}!`;
}