Sto Theme
Publisher: NSMNIAThemes in package: 4
π₯ Official theme by NSMNIA.
π₯ Official theme by NSMNIA.
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 | #888 | italic |
| constant | #92cace | β |
| entity | #bfe0e2 | β |
| invalid | #ec1e2b | β |
| storage.type.function | #bfe0e2 | β |
| keyword, storage.type.class, keyword.control.default.ts | #bfe0e2 | β |
| meta | #ddeff0 | β |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #ffffff | β |
| meta.brace | #e1efff | β |
| punctuation | #ddeff0 | β |
| storage | #5faab1 | β |
| storage.type.function.arrow | #bfe0e2 | β |
| string, punctuation.definition.string | #f2f9f9 | β |
| string.template, punctuation.definition.string.template | #f2f9f9 | β |
| support | #f2f9f9 | β |
| support.function | #5faab1 | β |
| support.variable.property.dom | #e1efff | β |
| variable | #e1efff | β |
| source.css entity, source.stylus entity | #5faab1 | β |
| entity.other.attribute-name.id.css | #5faab1 | β |
| entity.name.tag | #92cace | β |
| source.css support, source.stylus support | #f2f9f9 | β |
| source.css constant, source.css support.constant, source.stylus constant, source.stylus support.constant | #92cace | italic |
| source.css string, source.css punctuation.definition.string, source.stylus string, source.stylus punctuation.definition.string | #92cace | β |
| source.css variable, source.stylus variable | #92cace | β |
| text.html.basic entity.name | #92cace | β |
| text.html.basic entity.other | #5faab1 | italic |
| meta.tag.metadata.script.html entity.name.tag.html | #5faab1 | β |
| punctuation.definition.string.begin, punctuation.definition.string.end | #ddeff0 | β |
| source.ini entity | #e1efff | β |
| source.ini keyword | #5faab1 | β |
| entity.other.inherited-class.js | #ddeff0 | β |
| source.json support | #5faab1 | β |
| source.json string, source.json punctuation.definition.string | #e1efff | β |
| punctuation.definition.heading.markdown | #e1efff | β |
| entity.name.section.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #5faab1 | bold |
| meta.paragraph.markdown | #e1efff | β |
| beginning.punctuation.definition.quote.markdown | #5faab1 | β |
| markup.quote.markdown meta.paragraph.markdown | #ddeff0 | italic |
| meta.separator.markdown | #5faab1 | β |
| markup.bold.markdown | #ddeff0 | bold |
| markup.italic.markdown | #ddeff0 | italic |
| beginning.punctuation.definition.list.markdown | #5faab1 | β |
| string.other.link.title.markdown | #92cace | β |
| string.other.link.title.markdown, string.other.link.description.markdown, string.other.link.description.title.markdown | #92cace | β |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #ddeff0 | β |
| fenced_code.block.language, markup.inline.raw.markdown | #ddeff0 | β |
| fenced_code.block.language, markup.inline.raw.markdown | #ddeff0 | β |
| source.php entity | #ddeff0 | β |
| variable.other.php | #5faab1 | β |
| modifier, this, comment, storage.modifier, entity.other.attribute-name.js, entity.other.attribute-name.js, entity.other.attribute-name.ts, entity.other.attribute-name.tsx, entity.other.attribute-name.html | β | italic |
| keyword.control.export | #92cace | italic |
| meta.return.type.ts | #92cace | italic |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}