Serenity Theme
Publisher: Roman ChesnokovThemes in package: 1
Keep calm ☁️ code on
Keep calm ☁️ code on
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, comment.block, punctuation.definition.comment, punctuation.definition.comment.html | #A0A3AA | italic |
| text | — | — |
| string, string.quoted, string.quoted.single, string.quoted.double, string.interpolated, punctuation.definition.string, punctuation.definition.entity | #ebfff4 | — |
| string.html, string.quoted.html, string.quoted.single.html, string.quoted.double.html, string.interpolated.html, punctuation.definition.string.html | #edfddb | — |
| entity.name.tag, meta.tag.sgml | #FEA044 | — |
| entity.other.attribute-name.js, meta.attribute-with-value.id.html, entity.other.attribute-name.id.html, meta.attribute-with-value.class.html, entity.other.attribute-name.class.html, meta.attribute-with-value.html, entity.other.attribute-name.html, entity.name.tag.reference | #ffc830 | italic |
| constant.numeric, constant.numeric.scss | #ff68ae | — |
| constant.language.boolean | #ff68ae | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.relational, keyword.operator.arithmetic, keyword.operator.compartion, constant.other.color | #ffa386 | — |
| punctuation.other, punctuation.definition, punctuation.definition.block, punctuation.separator, punctuation.section.tag, meta.delimiter, meta.group.braces, keyword.operator.accessor | #888 | — |
| constant.language, support.constant, constant.character, meta.parameters, punctuation.section.embedded, entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #FEA044 | — |
| support.constant.property-value, constant.property-value | #F9F9F9 | — |
| keyword, entity.name.tag.other | #ff86b9 | italic bold |
| storage, variable.language, keyword.operator.new, keyword.other.substitution, keyword.control.import, keyword.control.export, keyword.control.from, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, punctuation.definition.generic | #7a70b3 | italic bold |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call, meta.block-level, keyword.operator.typeof, keyword.operator.module | #B8A3E5 | — |
| entity.name.class, entity.name.type.class, entity.name.type.instance, entity.other.attribute-name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, entity.other.attribute-name.generic | #b1f6e8 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix | #CDFFE4 | — |
| variable.other.object | #cff2fd | italic bold |
| variable, variable.parameter, variable.other.object.property, variable.other.readwrite, variable.other.constant.property, object.key, string.unquoted, meta.arguments, meta.property.object, meta.jsx.js | #eeeeee | normal |
| constant.other.object.key.js, support.type.property-name, meta.objectliteral.js, meta.tag, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #888 | normal |
| meta.object.member.js, meta.object-literal.key.js | #e0ecff | — |
| string.regexp, string.regexp keyword.operator, constant.character.escape.backslash.regexp, keyword.control.anchor.regexp, keyword.other.unit, constant.other.unit | #bacfdb | — |
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}!`;
}