Serenity Theme
Publisher: Roman ChesnokovThemes in package: 3
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 |
|---|---|---|
| constant.character.escape, entity.name.class, entity.name.type.class, new.expr, meta.block, meta.class, meta.function-call, meta.var.expr, support.class, markup.changed.git_gutter | #006f59 | — |
| comment, comment.block, punctuation.definition.comment, punctuation.definition.comment.html | #7d8baa | italic |
| constant.character, constant.language, constant.numeric, constant.language.boolean, constant.numeric.scss, support.constant, entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #b1005e | — |
| constant.language.boolean | #a7460e | — |
| constant.language.undefined, constant.language.null | #555565 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call, meta.block-level, keyword.operator.typeof, keyword.operator.module | #00497d | — |
| keyword, entity.name.tag.other, entity.name.tag.reference.scss | #bf7599 | bold |
| entity.other.attribute-name.generic, meta.object-literal.key, meta.object.member, meta.objectliteral, meta.object.member, meta.objectliteral, meta.export.default, support.type.property-name.json, variable.other.constant.property, variable.other.property, variable.other.object.property | #395566 | |
| punctuation.accessor.optional, keyword.operator, keyword.operator.assignment, keyword.operator.relational, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.compartion, constant.other.color | #004cb6 | |
| meta.parameters, variable.parameter, variable.scss | #5a1200 | — |
| punctuation.section.embedded, punctuation.other, punctuation.definition, punctuation.definition.block, punctuation.section.property-list, punctuation.separator, punctuation.section.tag, meta.delimiter, meta.group.braces, meta.brace.round, meta.brace.square, keyword.operator.accessor | #8998e4 | — |
| storage, storage.modifier, 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 | #7279a9 | bold |
| string, string.quoted, string.quoted.single, string.quoted.double, string.interpolated, punctuation.definition.string, punctuation.definition.entity, meta.attribute-selector.scss | #069499 | — |
| entity.name.type, support.type.primitive, meta.type.parameters, variable.object.property, support.type.builtin | #6649ab | — |
| meta.object-binding-pattern-variable.tsx, variable.other.constant, variable.other.object, variable.other.readwrite, object.key, string.unquoted, meta.arguments, meta.property.object, meta.jsx.children, meta.jsx.js | #2f3444 | — |
| support.class.component | #5f00b2 | — |
| entity.name.tag, meta.tag | #1859aa | — |
| entity.name.tag.css, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #8d6bb5 | — |
| entity.other.attribute-name, 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 | #bb1573 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix, entity.other.attribute-name.parent-selector-suffix.css, punctuation.definition.entity | #0059a6 | — |
| entity.other.attribute-name.generic, support.type.property-name | #58608f | — |
| support.constant.property-value, constant.property-value | #3360a2 | — |
| string.regexp, string.regexp keyword.operator, constant.character.escape.backslash.regexp, keyword.control.anchor.regexp, keyword.other.unit, constant.other.unit | #6093b1 | — |
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 |
|---|---|---|
| constant.character.escape, entity.name.class, entity.name.type.class, new.expr, meta.block, meta.class, meta.function-call, meta.var.expr, support.class, markup.changed.git_gutter | #799cf6 | — |
| comment, comment.block, punctuation.definition.comment, punctuation.definition.comment.html | #566076 | italic |
| constant.character, constant.language, constant.numeric, constant.language.boolean, constant.numeric.scss, support.constant, entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #ef5caa | — |
| constant.language.boolean | #f39a77 | — |
| constant.language.undefined, constant.language.null | #7977a2 | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call, meta.block-level, keyword.operator.typeof, keyword.operator.module | #8889f8 | — |
| keyword, entity.name.tag.other, entity.name.tag.reference.scss | #d58cb0 | bold |
| entity.other.attribute-name.generic, meta.object-literal.key, meta.object.member, meta.objectliteral, meta.object.member, meta.objectliteral, meta.export.default, support.type.property-name.json, variable.other.constant.property, variable.other.property, variable.other.object.property | #afc3ff | |
| punctuation.accessor.optional, keyword.operator, keyword.operator.assignment, keyword.operator.relational, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.compartion, constant.other.color | #cda3ff | |
| meta.parameters, variable.parameter, variable.scss | #eed2ff | — |
| punctuation.section.embedded, punctuation.other, punctuation.definition, punctuation.definition.block, punctuation.section.property-list, punctuation.separator, punctuation.section.tag, meta.delimiter, meta.group.braces, meta.brace.round, meta.brace.square, keyword.operator.accessor | #566090 | — |
| storage, storage.modifier, 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 | #7a82c0 | bold |
| string, string.quoted, string.quoted.single, string.quoted.double, string.interpolated, punctuation.definition.string, punctuation.definition.entity, meta.attribute-selector.scss | #a2d2d2 | — |
| entity.name.type, support.type.primitive, meta.type.parameters, variable.object.property, support.type.builtin | #b299ec | — |
| meta.object-binding-pattern-variable.tsx, variable.other.constant, variable.other.object, variable.other.readwrite, object.key, string.unquoted, meta.arguments, meta.property.object, meta.jsx.children, meta.jsx.js | #d0c8ff | — |
| support.class.component | #ffb584 | — |
| entity.name.tag, meta.tag | #ec9363 | — |
| entity.name.tag.css, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #c99f59 | — |
| entity.other.attribute-name, 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 | #f59f95 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix, entity.other.attribute-name.parent-selector-suffix.css, punctuation.definition.entity | #d5f3ed | — |
| entity.other.attribute-name.generic, support.type.property-name | #858db5 | — |
| support.constant.property-value, constant.property-value | #e3eeff | — |
| string.regexp, string.regexp keyword.operator, constant.character.escape.backslash.regexp, keyword.control.anchor.regexp, keyword.other.unit, constant.other.unit | #bacfdb | — |
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 |
|---|---|---|
| constant.character.escape, entity.name.class, entity.name.type.class, new.expr, meta.block, meta.class, meta.function-call, meta.var.expr, support.class, markup.changed.git_gutter | #7190df | — |
| comment, comment.block, punctuation.definition.comment, punctuation.definition.comment.html | #45526b | italic |
| constant.character, constant.language, constant.numeric, constant.language.boolean, constant.numeric.scss, support.constant, entity.name.tag.css, entity.name.tag.scss, entity.name.tag.less | #d35599 | — |
| constant.language.boolean | #b58270 | — |
| constant.language.undefined, constant.language.null | #5f5f7b | — |
| entity.name.function, variable.function, support.function, keyword.other.special-method, meta.function-call, meta.block-level, keyword.operator.typeof, keyword.operator.module | #7c7ee7 | — |
| keyword, entity.name.tag.other, entity.name.tag.reference.scss | #b772a0 | bold |
| entity.other.attribute-name.generic, meta.object-literal.key, meta.object.member, meta.objectliteral, meta.object.member, meta.objectliteral, meta.export.default, support.type.property-name.json, variable.other.constant.property, variable.other.property, variable.other.object.property | #97b0eb | |
| punctuation.accessor.optional, keyword.operator, keyword.operator.assignment, keyword.operator.relational, keyword.operator.logical, keyword.operator.arithmetic, keyword.operator.compartion, constant.other.color | #b88ded | |
| meta.parameters, variable.parameter, variable.scss | #c5a0dd | — |
| punctuation.section.embedded, punctuation.other, punctuation.definition, punctuation.definition.block, punctuation.section.property-list, punctuation.separator, punctuation.section.tag, meta.delimiter, meta.group.braces, meta.brace.round, meta.brace.square, keyword.operator.accessor | #505780 | — |
| storage, storage.modifier, 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 | #727bba | bold |
| string, string.quoted, string.quoted.single, string.quoted.double, string.interpolated, punctuation.definition.string, punctuation.definition.entity, meta.attribute-selector.scss | #8fb9b9 | — |
| entity.name.type, support.type.primitive, meta.type.parameters, variable.object.property, support.type.builtin | #9f82e3 | — |
| meta.object-binding-pattern-variable.tsx, variable.other.constant, variable.other.object, variable.other.readwrite, object.key, string.unquoted, meta.arguments, meta.property.object, meta.jsx.children, meta.jsx.js | #adb2df | — |
| support.class.component | #c88a60 | — |
| entity.name.tag, meta.tag | #bb7048 | — |
| entity.name.tag.css, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.definition.tag.tsx, punctuation.definition.tag.begin.tsx, punctuation.definition.tag.end.tsx | #927239 | — |
| entity.other.attribute-name, 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 | #d58077d6 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.parent-selector-suffix, entity.other.attribute-name.parent-selector-suffix.css, punctuation.definition.entity | #acc8c2 | — |
| entity.other.attribute-name.generic, support.type.property-name | #687093 | — |
| support.constant.property-value, constant.property-value | #b2b9c3 | — |
| string.regexp, string.regexp keyword.operator, constant.character.escape.backslash.regexp, keyword.control.anchor.regexp, keyword.other.unit, constant.other.unit | #bacfdb | — |
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}!`;
}
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}!`;
}