STML
Publisher: Noble RobotThemes in package: 1
Support for Sleeptime Markup Language (STML), Sleeptime Style Sheet (SSS), and Sleeptime Include (STINC) documents.
Support for Sleeptime Markup Language (STML), Sleeptime Style Sheet (SSS), and Sleeptime Include (STINC) documents.
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 |
|---|---|---|
| entity.name.tag | #67a3f0 | bold |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.definition.tag.begin, punctuation.definition.tag.end, keyword.other.template, keyword.other.substitution | #687485 | — |
| block entity.name.tag, entity.name.tag.block, nest meta.tag.structure.block entity.name.tag.slash | #85AA06 | bold |
| text entity.name.tag, entity.name.tag.text, nest.block meta.tag.structure.text entity.name.tag.slash | #E9C000 | bold |
| image entity.name.tag, entity.name.tag.image | #00B8E5 | bold |
| rule entity.name.tag, entity.name.tag.rule | #C4208C | bold |
| list entity.name.tag, entity.name.tag.list | #20AC9A | bold |
| item entity.name.tag, entity.name.tag.item | #ABA920 | bold |
| span entity.name.tag, entity.name.tag.span | #E77C38 | bold |
| link entity.name.tag, entity.name.tag.link | #2893FF | bold |
| embed entity.name.tag, entity.name.tag.embed | #C5264B | bold |
| style entity.name.tag, entity.name.tag.style | #FF86CE | bold |
| date entity.name.tag, entity.name.tag.date, meta.tag.structure.date entity.name.tag.slash | #D0506A | bold |
| check entity.name.tag, entity.name.tag.check | #49B450 | bold |
| value entity.name.tag, entity.name.tag.value | #FF6D67 | bold |
| include entity.name.tag, entity.name.tag.include | #A0B773 | bold |
| meta.attribute.id constant.character.entity.string | #f4ffd3 | italic |
| meta.attribute.style constant.character.entity.string, meta.attribute.hoverStyle constant.character.entity.string, meta.attribute.visitedStyle constant.character.entity.string, meta.attribute.clickStyle constant.character.entity.string, style meta.attribute.id constant.character.entity.string | #edafd4 | italic |
| comment, punctuation.definition.comment | #88AA9B | italic |
| entity.other.attribute-name | #5b82b1 | — |
| string, string.unquoted | #ade1f5 | — |
| string, string.unquoted, constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter | #ade1f5 | — |
| invalid, invalid.illegal | #FF5370 | — |
| keyword, storage.type, storage.modifier | #9896ae | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #82AAFF | — |
| meta.block variable.other | #f07178 | — |
| support.other.variable, string.other.link | #f07178 | — |
| markup.inserted | #C3E88D | — |
| markup.deleted | #FF5370 | — |
| markup.changed | #C792EA | — |
| constant.character.escape | #89DDFF | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #82AAFF | 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}!`;
}