Cosmic Barf
Publisher: evturnThemes in package: 1
A dark, solarized based colors and icon theme
A dark, solarized based colors and icon theme
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 |
|---|---|---|
| — | #eee8d5 | — |
| meta.embedded, source.groovy.embedded, variable.argument.css, variable.argument.postcss, variable.argument.scss, meta.statement.pgsql | #fdf6e3 | — |
| comment | #005a6f | italic |
| string | #00ffaf | — |
| string.regexp | #ff5f00 | — |
| constant.numeric | #5fafff | — |
| keyword | #ff0087 | — |
| storage | #5fd7ff | — |
| meta.class variable.other.readwrite.js, meta.class variable.other.readwrite.tsx, meta.return.type.arrow meta.type.parameters.ts, meta.return.type meta.type.parameters.ts | #fdf6e3 | — |
| entity.name.class.js, entity.name.type.class.ts, entity.name.type.class.tsx, entity.other.inherited-class, entity.other.inherited-class.ts, entity.other.inherited-class.tsx | #d7ff00 | italic |
| meta.namespace.declaration entity.name.type.module | #8ffcff | italic |
| storage.modifier.js, storage.modifier.ts, storage.modifier.tsx | #ff0087 | — |
| meta.var.expr meta.arrow meta.var-single-variable.expr variable.other.constant | #fdf8d5 | — |
| meta.var.expr meta.arrow meta.function-call entity.name.function | #d7ff00 | — |
| entity.name.function, entity.name.function.ts, entity.name.type.enum.ts, entity.name.type.class.ts, entity.name.type.alias, entity.name.type.instance, entity.name.type.interface, meta.class new.expr entity.name.type, new.expr.ts entity.name.type.ts, new.expr.tsx entity.name.type.tsx, storage.type storage meta.method.declaration | #d7ff00 | — |
| punctuation.definition.variable | #5fd7ff | — |
| punctuation.definition.typeparameters.begin.ts, punctuation.definition.typeparameters.end.ts, punctuation.definition.typeparameters.begin.tsx, punctuation.definition.typeparameters.end.tsx, punctuation.section.embedded.begin, punctuation.section.embedded.end, punctuation.definition.template-expression.begin.ts, punctuation.definition.template-expression.end.ts, punctuation.definition.string.template.begin.ts, punctuation.definition.string.template.end.ts, punctuation.definition.template-expression.begin.tsx, punctuation.definition.template-expression.end.tsx, punctuation.definition.string.template.begin.tsx, punctuation.definition.string.template.end.tsx | #ff0087 | — |
| constant.language, variable.language, meta.preprocessor, meta.interface.ts storage.modifier.ts, variable.language.this.js, support.type.object.process, support.type.object.process.ts, support.type.object.process.tsx, support.type.object.console.js, support.type.object.console.ts, support.type.object.console.tsx, meta.var.expr.ts | #5fd7ff | — |
| support.function.construct, keyword.other.new | #ff0087 | — |
| constant.character, constant.other | #ff0087 | — |
| entity.other.inherited-class | #5fd7ff | — |
| meta.object-binding-pattern-variable.ts, meta.object-binding-pattern-variable.tsx, meta.object-binding-pattern-variable.ts variable.object.property.ts, meta.object-binding-pattern-variable.tsx variable.object.property.tsx | #2fb5ab | — |
| meta.function meta.function.parameters variable.other.readwrite.js, meta.function meta.function.arrow variable.other.readwrite.js, meta.property-list.css, variable.object.property.tsx, variable.parameter.ts, variable.parameter.tsx, variable.parameter, meta.parameters | #fdf6e3 | — |
| entity.name.tag, entity.name.tag.tsx, entity.other.attribute-name.class.css, entity.other.attribute-name.class.postcss, entity.other.attribute-name.class.scss, entity.quasi.element.js, meta.tag.jsx, meta.tag.tsx, support.class.component.tsx, support.class.component.open.jsx, support.class.component.close.jsx, support.class.component.open.tsx, support.class.component.close.tsx, support.function.misc.css, support.function.misc.scss, support.function.misc.postcss, support.function.name.css, support.function.name.postcss, support.function.name.scss, punctuation.definition.entity.css, punctuation.definition.entity.postcss, punctuation.definition.entity.scss, punctuation.quasi.element.begin.js, punctuation.quasi.element.end.js, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.function.begin.bracket.round.css, punctuation.section.function.begin.bracket.round.postcss, punctuation.section.function.begin.bracket.round.scss | #ff0087 | — |
| variable.other, variable.other.object.js, variable.other.property.js, variable.other.readwrite.js, constant.other.object.key.js, support.variable.property.ts | #fdf6e3 | — |
| constant.other string.unquoted.js, constant.other string.unquoted.tsx, meta.definition.property.ts, meta.object-literal.key.ts, meta.object-literal.key.tsx | #f5e2aa | — |
| support.constant.property-value.css, support.constant.property-value.postcss, support.constant.property-value.scss | #00ffff | — |
| support.constant.property-value.css, support.constant.property-value.postcss, support.constant.property-value.scss, meta.tag punctuation.definition.tag, punctuation.definition.tag.jsx, meta.tag.jsx .JSXNested | #00ffff | — |
| meta.brace.curly, meta.brace.curly.litobj.js, meta.brace.round.js, meta.brace.round.ts, meta.brace.round.tsx, meta.brace.square.js, meta.brace.square.ts, meta.brace.square.tsx, meta.objectliteral.ts, meta.objectliteral.tsx, meta.return.type.arrow.ts, meta.return.type.arrow.tsx, meta.return.type.ts, meta.return.type.tsx, meta.type.parameters.ts, meta.type.parameters.tsx, new.expr.ts punctuation.separator.comma.ts new.expr, new.expr.ts punctuation.separator.parameter.ts new.expr, punctuation.definition.binding-pattern.array.ts, punctuation.definition.binding-pattern.object.ts, punctuation.definition.block.ts, punctuation.definition.parameters.begin.ts, punctuation.definition.parameters.begin.tsx, punctuation.definition.parameters.end.ts, punctuation.definition.parameters.end.tsx, punctuation.separator.comma.ts new.expr, punctuation.terminator.statement.js, punctuation.terminator.statement.ts | #00ffff | — |
| constant.language.boolean | #00afff | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx, support.type.property-name.css, support.type.property-name.postcss, support.type.property-name.scss, storage.type.function.arrow.js, storage.type.function.arrow.ts, storage.type.function.arrow.tsx | #5fafff | — |
| support.type.primitive.ts | #00ffff | italic |
| support.type.builtin.ts | #5fafff | — |
| support.function | #d7ff00 | italic |
| punctuation.separator.continuation | #ff0087 | — |
| support.constant | — | — |
| support.type, support.class, meta.type.annotation.ts, meta.type.annotation.tsx, meta.type.declaration.ts, meta.type.declaration.tsx, entity.name.type | #5fd7ff | — |
| support.type.exception | #ff0087 | — |
| support.other.variable | — | — |
| invalid | — | — |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | |
| markup.changed | #cb4b16 | |
| markup.inserted | #219186 | — |
| markup.quote | #859900 | — |
| markup.list | #B58900 | — |
| markup.bold, markup.italic | #D33682 | — |
| markup.inline.raw | #2AA198 | |
| markup.heading | #268BD2 | — |
| markup.heading.setext | #268BD2 |
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}!`;
}