Twilight
Publisher: Sri Manikanta PalakolluThemes in package: 1
A Standard Lovable theme for programmers
A Standard Lovable theme for programmers
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 |
|---|---|---|
| markup.changed, meta.diff.header.git, meta.diff.header.from-file, meta.diff.header.to-file | #a2bffc | italic |
| markup.deleted.diff | #EF535090 | italic |
| markup.inserted.diff | #addb67ff | italic |
| comment | #637777 | italic |
| string | #addb67 | — |
| string.quoted, variable.other.readwrite.js | #ecc48d | — |
| support.constant.math | #addb67 | — |
| constant.numeric, constant.character.numeric | #F78C6C | |
| constant.language, punctuation.definition.constant, variable.other.constant | #82AAFF | — |
| constant.character, constant.other | #82AAFF | — |
| constant.character.escape | #F78C6C | — |
| string.regexp, string.regexp keyword.other | #5ca7e4 | — |
| meta.function punctuation.separator.comma | #5f7e97 | — |
| variable | #addb67 | — |
| punctuation.accessor, keyword | #c792ea | italic |
| storage, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type.js, storage.type.property.js, storage.type.property.ts, storage.type.property.tsx | #c792ea | italic |
| storage.type | #c792ea | — |
| storage.type.function.arrow.js | — | |
| entity.name.class, meta.class entity.name.type.class | #ffcb8b | — |
| entity.other.inherited-class | #addb67 | — |
| entity.name.function | #c792ea | italic |
| punctuation.definition.tag, meta.tag | #7fdbca | — |
| entity.name.tag, meta.tag.other.html, meta.tag.other.js, meta.tag.other.tsx, entity.name.tag.tsx, entity.name.tag.js, entity.name.tag, meta.tag.js, meta.tag.tsx, meta.tag.html | #7fdbca | |
| entity.other.attribute-name | #addb67 | italic |
| entity.name.tag.custom | #addb67 | — |
| support.function, support.constant | #82AAFF | — |
| support.constant.meta.property-value | #7fdbca | — |
| support.type, support.class | #addb67 | — |
| support.variable.dom | #addb67 | — |
| invalid | #ffffff | — |
| invalid.deprecated | #ffffff | — |
| keyword.operator | #7fdbca | |
| keyword.operator.relational | #c792ea | italic |
| keyword.operator.assignment | #c792ea | — |
| keyword.operator.arithmetic | #c792ea | — |
| keyword.operator.bitwise | #c792ea | — |
| keyword.operator.increment | #c792ea | — |
| keyword.operator.ternary | #c792ea | — |
| comment.line.double-slash | #637777 | — |
| object | #cdebf7 | — |
| constant.language.null | #ff5874 | — |
| meta.brace | #d6deeb | — |
| meta.delimiter.period | #c792ea | italic |
| punctuation.definition.string | #d9f5dd | — |
| punctuation.definition.string.begin.markdown | #ff5874 | — |
| constant.language.boolean | #ff5874 | — |
| object.comma | #ffffff | — |
| variable.parameter.function | #7fdbca | |
| support.type.vendor.property-name, support.constant.vendor.property-value, support.type.property-name, meta.property-list entity.name.tag | #80CBC4 | |
| meta.property-list entity.name.tag.reference | #57eaf1 | — |
| constant.other.color.rgb-value punctuation.definition.constant | #F78C6C | — |
| constant.other.color | #FFEB95 | — |
| keyword.other.unit | #FFEB95 | — |
| meta.selector | #c792ea | italic |
| entity.other.attribute-name.id | #FAD430 | — |
| meta.property-name | #80CBC4 | — |
| entity.name.tag.doctype, meta.tag.sgml.doctype | #c792ea | italic |
| punctuation.definition.parameters | #d9f5dd | — |
| keyword.control.operator | #7fdbca | — |
| keyword.operator.logical | #c792ea | |
| variable.instance, variable.other.instance, variable.readwrite.instance, variable.other.readwrite.instance, variable.other.property | #7fdbca | — |
| variable.other.object.property | #faf39f | italic |
| variable.other.object.js | — | |
| entity.name.function | #82AAFF | italic |
| keyword.operator.comparison, keyword.control.flow.js, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.control.def.ruby, keyword.control.loop.js, keyword.control.loop.ts, keyword.control.import.js, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.from.js, keyword.control.from.ts, keyword.control.from.tsx, keyword.operator.instanceof.js, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx | #c792ea | italic |
| keyword.control.conditional.js, keyword.control.conditional.ts, keyword.control.switch.js, keyword.control.switch.ts | #c792ea | |
| support.constant, keyword.other.special-method, keyword.other.new, keyword.other.debugger, keyword.control | #7fdbca | — |
| support.function | #addb67 | — |
| invalid.broken | #020e14 | — |
| invalid.unimplemented | #ffffff | — |
| invalid.illegal | #ffffff | — |
| variable.language | #7fdbca | — |
| support.variable.property | #7fdbca | — |
| variable.function | #82AAFF | — |
| variable.interpolation | #ec5f67 | — |
| meta.function-call | #82AAFF | — |
| punctuation.section.embedded | #d3423e | — |
| punctuation.terminator.expression, punctuation.definition.arguments, punctuation.definition.array, punctuation.section.array, meta.array | #d6deeb | — |
| punctuation.definition.list.begin, punctuation.definition.list.end, punctuation.separator.arguments, punctuation.definition.list | #d9f5dd | — |
| string.template meta.template.expression | #d3423e | — |
| string.template punctuation.definition.string | #d6deeb | — |
| italic, keyword.control, quote, storage, modifier, this, comment, support.type.property-name, entity.other.attribute-name, punctuation.definition.comment, text.html.basic entity.other, markup.quote, markup.italic, meta.tag.sgml.doctype, punctuation.binary, markup.changed, meta.diff.header, meta.diff.header.from-file, meta.diff.header.to-file, markup.deleted.diff, markup.inserted.diff, meta.delimiter.period, punctuation.accessor, meta.var.expr, meta.class meta.method.declaration meta.var.expr storage.type, variable.other.object.property, entity.name.tag.doctype, meta.tag.sgml.doctype, entity.name.section, meta.selector | #c792ea | italic |
| bold | #addb67 | bold |
| quote | #697098 | italic |
| raw | #80CBC4 | — |
| variable.assignment.coffee | #31e1eb | — |
| variable.parameter.function.coffee | #d6deeb | — |
| variable.assignment.coffee | #7fdbca | — |
| variable.other.readwrite.cs | #d6deeb | — |
| entity.name.type.class.cs, storage.type.cs | #82AAFF | — |
| entity.name.type.namespace.cs | #B2CCD6 | — |
| entity.name.tag.css, entity.name.tag.less, entity.name.tag.custom.css, support.constant.property-value.css | #ff6363 | |
| entity.name.tag.wildcard.css, entity.name.tag.wildcard.less, entity.name.tag.wildcard.scss, entity.name.tag.wildcard.sass | #7fdbca | — |
| keyword.other.unit.css | #FFEB95 | — |
| meta.attribute-selector.css entity.other.attribute-name.attribute, variable.other.readwrite.js | #F78C6C | — |
| source.elixir support.type.elixir, source.elixir meta.module.elixir entity.name.class.elixir | #82AAFF | — |
| source.elixir entity.name.function | #addb67 | — |
| source.elixir constant.other.symbol.elixir, source.elixir constant.other.keywords.elixir | #82AAFF | — |
| source.elixir punctuation.definition.string | #addb67 | — |
| source.elixir variable.other.readwrite.module.elixir, source.elixir variable.other.readwrite.module.elixir punctuation.definition.variable.elixir | #addb67 | — |
| source.elixir .punctuation.binary.elixir | #c792ea | italic |
| constant.keyword.clojure | #7fdbca | — |
| source.go meta.function-call.go | #DDDDDD | — |
| source.go keyword.package.go, source.go keyword.import.go, source.go keyword.function.go, source.go keyword.type.go, source.go keyword.struct.go, source.go keyword.interface.go, source.go keyword.const.go, source.go keyword.var.go, source.go keyword.map.go, source.go keyword.channel.go, source.go keyword.control.go | #c792ea | italic |
| source.go constant.language.go, source.go constant.other.placeholder.go | #ff5874 | — |
| entity.name.function.preprocessor.cpp, entity.scope.name.cpp | #7fdbcaff | — |
| meta.namespace-block.cpp | #e0dec6 | — |
| storage.type.language.primitive.cpp | #ff5874 | — |
| meta.preprocessor.macro.cpp | #d6deeb | — |
| variable.parameter | #ffcb8b | — |
| variable.other.readwrite.powershell | #82AAFF | — |
| support.function.powershell | #7fdbcaff | — |
| entity.other.attribute-name.id.html | #addb67 | — |
| punctuation.definition.tag.html | #6ae9f0 | — |
| meta.tag.sgml.doctype.html | #c792ea | italic |
| meta.class entity.name.type.class.js | #ffcb8b | — |
| meta.method.declaration storage.type.js | #82AAFF | — |
| terminator.js | #d6deeb | — |
| meta.js punctuation.definition.js | #d6deeb | — |
| entity.name.type.instance.jsdoc, entity.name.type.instance.phpdoc | #5f7e97 | — |
| variable.other.jsdoc, variable.other.phpdoc | #78ccf0 | — |
| variable.other.meta.import.js, meta.import.js variable.other, variable.other.meta.export.js, meta.export.js variable.other | #d6deeb | — |
| variable.parameter.function.js | #7986E7 | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #d6deeb | — |
| variable.js, variable.other.js | #d6deeb | — |
| entity.name.type.js, entity.name.type.module.js | #ffcb8b | |
| support.class.js | #d6deeb | — |
| support.type.property-name.json | #7fdbca | — |
| support.constant.json | #addb67 | — |
| meta.structure.dictionary.value.json string.quoted.double | #c789d6 | — |
| string.quoted.double.json punctuation.definition.string.json | #80CBC4 | — |
| meta.structure.dictionary.json meta.structure.dictionary.value constant.language | #ff5874 | — |
| variable.other.object.js | #7fdbca | italic |
| variable.other.ruby | #d6deeb | — |
| entity.name.type.class.ruby | #ecc48d | — |
| constant.language.symbol.hashkey.ruby | #7fdbca | — |
| constant.language.symbol.ruby | #7fdbca | — |
| entity.name.tag.less | #7fdbca | — |
| keyword.other.unit.css | #FFEB95 | — |
| meta.attribute-selector.less entity.other.attribute-name.attribute | #F78C6C | — |
| markup.heading.markdown, markup.heading.setext.1.markdown, markup.heading.setext.2.markdown | #82b1ff | — |
| markup.italic.markdown | #c792ea | italic |
| markup.bold.markdown | #addb67 | bold |
| markup.quote.markdown | #697098 | italic |
| markup.inline.raw.markdown | #80CBC4 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #ff869a | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #d6deeb | — |
| punctuation.definition.string.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, meta.link.inline.markdown punctuation.definition.string | #82b1ff | — |
| punctuation.definition.metadata.markdown | #7fdbca | — |
| beginning.punctuation.definition.list.markdown | #82b1ff | — |
| markup.inline.raw.string.markdown | #addb67 | — |
| variable.other.php, variable.other.property.php | #bec5d4 | — |
| support.class.php | #ffcb8b | — |
| meta.function-call.php punctuation | #d6deeb | — |
| variable.other.global.php | #b4df73 | — |
| variable.other.global.php punctuation.definition.variable | #addb67 | — |
| constant.language.python | #ff5874 | — |
| variable.parameter.function.python, meta.function-call.arguments.python | #82AAFF | — |
| meta.function-call.python, meta.function-call.generic.python | #B2CCD6 | — |
| punctuation.python | #d6deeb | — |
| entity.name.function.decorator.python | #addb67 | — |
| source.python variable.language.special | #8EACE3 | — |
| keyword.control | #c792ea | italic |
| variable.scss, variable.sass, variable.parameter.url.scss, variable.parameter.url.sass | #addb67 | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #82AAFF | — |
| source.css.scss meta.at-rule variable, source.css.sass meta.at-rule variable | #bec5d4 | — |
| meta.attribute-selector.scss entity.other.attribute-name.attribute, meta.attribute-selector.sass entity.other.attribute-name.attribute | #F78C6C | — |
| entity.name.tag.scss, entity.name.tag.sass | #7fdbca | — |
| keyword.other.unit.scss, keyword.other.unit.sass | #FFEB95 | — |
| variable.other.readwrite.alias.ts, variable.other.readwrite.alias.tsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.object.ts, variable.other.object.tsx, variable.object.property.ts, variable.object.property.tsx, variable.other.ts, variable.other.tsx, variable.tsx, variable.ts | #d6deeb | — |
| entity.name.type.ts, entity.name.type.tsx | #ffcb8b | — |
| support.class.node.ts, support.class.node.tsx | #82AAFF | — |
| meta.type.parameters.ts entity.name.type, meta.type.parameters.tsx entity.name.type | #5f7e97 | — |
| meta.import.ts punctuation.definition.block, meta.import.tsx punctuation.definition.block, meta.export.ts punctuation.definition.block, meta.export.tsx punctuation.definition.block | #d6deeb | — |
| meta.decorator punctuation.decorator.ts, meta.decorator punctuation.decorator.tsx | #82AAFF | — |
| meta.tag.js meta.jsx.children.tsx | #82AAFF | — |
| entity.name.tag.yaml | #7fdbca | — |
| variable.other.readwrite.js, variable.parameter | #d7dbe0 | — |
| support.class.component.js, support.class.component.tsx | #f78c6c | |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #d6deeb | — |
| meta.class entity.name.type.class.tsx | #ffcb8b | — |
| entity.name.type.tsx, entity.name.type.module.tsx | #ffcb8b | — |
| meta.method.declaration storage.type.ts, meta.method.declaration storage.type.tsx | #82AAFF | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, variable.other.readwrite.js, storage.type, source.css, string.quoted | — |
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}!`;
}