Dark Unicorn Cream
Publisher: Zack AdamThemes in package: 1
Dark Unicorn Cream
Dark Unicorn Cream
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, markup.quote.markdown, meta.diff, meta.diff.header | #575d6e | — |
| meta.template.expression.js, constant.name.attribute.tag.jade, punctuation.definition.metadata.markdown, punctuation.definition.string.end.markdown, punctuation.definition.string.begin.markdown | #D5CED9 | — |
| constant.numeric | #ffcf77 | — |
| entity.name.tag.yaml, constant.character.entity.html, source.css entity.name.tag.reference, beginning.punctuation.definition.list.markdown, source.css entity.other.attribute-name.parent-selector, meta.structure.dictionary.json support.type.property-name | #00c58d | — |
| markup.bold, meta.group.regexp, constant.other.php, support.constant.ext.php, constant.other.class.php, support.constant.core.php, fenced_code.block.language, constant.other.caps.python, entity.other.attribute-name, support.type.exception.python, source.css keyword.other.unit, variable.other.object.property.js.jsx, variable.other.object.js | #ff4c15 | — |
| markup.list, text.xml string, entity.name.type, support.function, entity.other.attribute-name, meta.at-rule.extend, entity.name.function, entity.other.inherited-class, entity.other.keyframe-offset.css, text.html.markdown string.quoted, meta.at-rule.extend support.constant, entity.other.attribute-name.class.jade, source.css entity.other.attribute-name, text.xml punctuation.definition.string | #eae02c | — |
| markup.heading, variable.language.this.js, variable.language.special.self.python | #fd2f96 | — |
| punctuation.definition.interpolation, punctuation.section.embedded.end.php, punctuation.section.embedded.end.ruby, punctuation.section.embedded.begin.php, keyword.trigger.sql, keyword.create.sql, entity.name.type.class.python, punctuation.section.embedded.begin.ruby, punctuation.definition.template-expression, entity.name.tag, entity.name.column | #bf0053 | — |
| variable.other.readwrite | #fe7a4e | — |
| string.quoted | #00d087 | — |
| storage, keyword, meta.link, meta.image, markup.italic, source.js support.type | #6d1edb | — |
| string.regexp, markup.changed, entity.name.table.sql, meta.function-call.generic.python | #0042dc | — |
| meta.function-call.arguments, meta.function.parameters.python | #07bdf9 | — |
| keyword.operator.sql, constant, support.constant | #FF8C00 | — |
| support.class, keyword.operator, text.html.markdown string, source.css support.function, source.php support.function, source.rust support.class, support.function.magic.python, markup.deleted | #fe4929 | — |
| text.html.php string, markup.inline.raw, markup.inserted, punctuation.definition.string, punctuation.definition.markdown, text.html meta.embedded source.js string, text.html.php punctuation.definition.string, text.html meta.embedded source.js punctuation.definition.string, text.html punctuation.definition.string, text.html string | #00d66b | — |
| entity.other.inherited-class | — | underline |
| comment, invalid, keyword, entity.other.attribute-name | — | italic |
| token.info-token, support.class.python | #41c9ff | — |
| token.warn-token | #ff8b10 | — |
| token.error-token | #e71515 | — |
| token.debug-token, keyword.control.flow.python | #8876ef | — |
| string, constant.other.symbol.hashkey.ruby, support.type.property-name.json, variable.other.object.property.ts, meta.object-literal.key.js, string.unquoted.label.yaml, string.quoted.double.toml, variable.other.readwrite.instance.swift, string.quoted.double.objc, string.quoted.single.objc | #50a14f | — |
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}!`;
}