Rock Bottom
Publisher: Rene Limon ChaconThemes in package: 1
Theme inspired on Rock Bottom city from SpongeBob show
Theme inspired on Rock Bottom city from SpongeBob show
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 | #6f8292 | italic |
| constant, markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted, meta | #ff4179 | — |
| entity | #9f8afd | — |
| storage, source.json support, variable.other.property | #1098ff | — |
| storage.type.function.arrow | #ebf67a | — |
| meta.tag.metadata.script.html entity.name.tag.html, source.ini keyword, beginning.punctuation.definition.quote.markdown, meta.separator.markdown, beginning.punctuation.definition.list.markdown, variable.other.php | #b2ea3a | — |
| source.ts keyword, punctuation.definition.tag.end.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end, punctuation.definition.tag.begin | #c073ff | — |
| invalid | #e43434 | — |
| storage.type.function, keyword, storage.type.class, keyword.control.default.ts, support.function, source.ini punctuation.separator, entity.other.attribute-name.id.css | #ff6e00 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted, string, punctuation.definition.string, source.css support, source.stylus support, meta.toc-list.id.html, punctuation.definition.string.begin, punctuation.definition.string.end, string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #ff96ff | — |
| support, entity.name.tag, source.css variable, source.stylus variable, text.html.basic entity.name, variable.parameter.function.language.special.self.python, meta.function-call.generic.python, markup.underline.link.markdown, markup.underline.link.image.markdown, fenced_code.block.language, markup.inline.raw.markdown, text.jade entity.name, source.ts entity.name.type, source.php entity, storage.type.cs, entity.name.variable.property.cs, storage.modifier.cs, entity.other.inherited-class.js | #29e2ff | — |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #f0f0f0 | — |
| meta.brace, punctuation, support.variable.property.dom, variable, source.ini entity, source.json string, source.json punctuation.definition.string, punctuation.definition.heading.markdown, meta.paragraph.markdown, source.ts punctuation.definition.parameters, punctuation.separator.comma.tsx | #d2d9dc | — |
| punctuation.definition.parameters, punctuation.definition.template-expression, source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant, source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string, source.ini punctuation.definition, text.jade string.interpolated, meta.arrow.ts punctuation.definition.parameters | #ffed73 | — |
| string.template, punctuation.definition.string.template, source.css entity, source.stylus entity | #77ed7d | — |
| text.html.basic entity.other | #b2ea3a | italic |
| source.js storage.type.function, source.ts storage.type.function, variable.language, entity.name.type.class.js, meta.function-call.arguments.python | #fb94ff | — |
| entity.name.section.markdown, markup.bold.markdown | #29e2ff | bold |
| markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #b2ea3a | bold |
| markup.quote.markdown meta.paragraph.markdown, markup.italic.markdown | #29e2ff | italic |
| text.jade entity.other.attribute-name.tag, modifier, this, storage.modifier, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.tsx, entity.other.attribute-name.html | — | italic |
| keyword.control.export, meta.return.type.ts | #ff4179 | italic |
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}!`;
}