Warm Sunset Theme
Publisher: entro314.labsThemes in package: 2
A beautiful theme with warm and cozy colors for both light and dark environments
A beautiful theme with warm and cozy colors for both light and dark environments
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 | #B5A9AF | italic |
| variable, string constant.other.placeholder | #C6D0F5 | — |
| constant.other.color | #F5BC5E | — |
| invalid, invalid.illegal | #E78284 | — |
| keyword, storage.type, storage.modifier | #F594C1 | — |
| keyword.control, constant.other.color, punctuation, meta.tag, punctuation.definition.tag, punctuation.separator.inheritance.php, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, punctuation.section.embedded, keyword.other.template, keyword.other.substitution | #8CAAEE | — |
| entity.name.tag, meta.tag.sgml, markup.deleted.git_gutter | #E78284 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #8CAAEE | — |
| meta.block variable.other | #C6D0F5 | — |
| support.other.variable, string.other.link | #E78284 | — |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape, variable.parameter, keyword.other.unit, keyword.other | #F5BC5E | — |
| string, constant.other.symbol, constant.other.key, entity.other.inherited-class, markup.heading, markup.inserted.git_gutter, meta.group.braces.curly constant.other.object.key.js string.unquoted.label.js | #A6D18C | — |
| entity.name, support.type, support.class, support.other.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #E5C890 | — |
| support.type | #89DCEB | — |
| source.css support.type.property-name, source.sass support.type.property-name, source.scss support.type.property-name, source.less support.type.property-name, source.stylus support.type.property-name, source.postcss support.type.property-name | #89DCEB | — |
| entity.name.module.js, variable.import.parameter.js, variable.other.class.js | #E78284 | — |
| variable.language | #E78284 | italic |
| entity.name.method.js | #8CAAEE | — |
| meta.class-method.js entity.name.function.js, variable.function.constructor | #8CAAEE | — |
| entity.other.attribute-name | #FA906E | — |
| text.html.basic entity.other.attribute-name.html, text.html.basic entity.other.attribute-name | #E5C890 | italic |
| entity.other.attribute-name.class | #E5C890 | — |
| source.sass keyword.control | #8CAAEE | — |
| markup.inserted | #A6D18C | — |
| markup.deleted | #E78284 | — |
| markup.changed | #F594C1 | — |
| string.regexp | #89DCEB | — |
| constant.character.escape | #89DCEB | — |
| *url*, *link*, *uri* | — | underline |
| tag.decorator.js entity.name.tag.js, tag.decorator.js punctuation.definition.tag.js | #8CAAEE | italic |
| source.js constant.other.object.key.js string.unquoted.label.js | #E78284 | italic |
| source.json meta.structure.dictionary.json support.type.property-name.json | #FA906E | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #E5C890 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F594C1 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #8CAAEE | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #89DCEB | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #C6D0F5 | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #FA906E | bold |
| markup.quote | #B5A9AF | italic |
| string.other.link.title.markdown | #8CAAEE | — |
| string.other.link.description.title.markdown | #F594C1 | — |
| constant.other.reference.link.markdown | #E5C890 | — |
| markup.raw.block | #F594C1 | — |
| markup.raw.block.fenced.markdown | #FFFFFF50 | — |
| punctuation.definition.fenced.markdown | #FFFFFF50 | — |
| markup.raw.block.fenced.markdown, variable.language.fenced.markdown, punctuation.section.class.end | #C6D0F5 | — |
| variable.language.fenced.markdown | #B5A9AF | — |
| meta.separator | #B5A9AF | — |
| markup.table | #C6D0F5 | — |
| text.html.markdown punctuation.definition.list_item.markdown | #FA906E | — |
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}!`;
}