Semantica Theme
Publisher: Bohdan StefaniukThemes in package: 1
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 | #AA3731 | — |
| string, string.regexp, constant.other.symbol | #448C27 | — |
| constant.character.escape | #777777 | — |
| constant.numeric, constant.character, constant.keyword, constant | #7A3E9D | — |
| entity.name | #325CC0 | — |
| punctuation | #777777 | — |
| invalid | #660000 | — |
| meta.diff.range, meta.diff.index, meta.separator | #434343 | — |
| meta.diff.header.from-file | #434343 | — |
| meta.diff.header.to-file | #434343 | — |
| emphasis | — | italic |
| strong | — | bold |
| meta.diff.header | #000080 | — |
| comment, punctuation.definition.comment | #008000 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss, entity.name.tag, entity.name.selector, markup.heading, markup.inline.raw, punctuation.definition.tag, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #800000 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.italic | — | italic |
| constant.other.color.rgb-value, constant.other.rgb-value, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, markup.changed, meta.structure.dictionary.key.python, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, support.constant.color, support.type.property-name.json, support.function.git-rebase, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #0451a5 | — |
| storage, string.comment.buffered.block.pug, string.quoted.pug, string.interpolated.pug, string.unquoted.plain.in.yaml, string.unquoted.plain.out.yaml, string.unquoted.block.yaml, string.quoted.single.yaml, string.quoted.double.xml, string.quoted.single.xml, string.unquoted.cdata.xml, string.quoted.double.html, string.quoted.single.html, string.unquoted.html, string.quoted.single.handlebars, string.quoted.double.handlebars, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python, keyword, keyword.control, constant.language, constant.character, meta.preprocessor | #5257e7 | — |
| string.regexp, constant.regexp, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #811f3f | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded, constant.character.escape, keyword.operator.or.regexp, entity.other.attribute-name, keyword.control.anchor.regexp | #ff0000 | — |
| meta.embedded, meta.preprocessor.numeric, meta.definition.variable.name, meta.template.expression, source.groovy.embedded, support.variable, keyword.operator, keyword.operator.quantifier.regexp, entity.name.variable, variable, constant.numeric, entity.name.variable.local.cs, entity.name.type.namespace.cs, entity.name.variable.field.cs, entity.name.variable.parameter.cs, variable.other.object.cs, storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #000000 | — |
| constant.sha.git-rebase, keyword.other.unit, markup.inserted | #09885a | — |
| variable.language, variable.other.object.property | #1f377f | — |
| entity.name.function, support.function, support.constant.handlebars | #795E26 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #367c96 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #066555 | — |
| meta.object-literal.key | #001080 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #d16969 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token, invalid | #cd3131 | — |
| token.debug-token | #800080 | — |
| string, string.quoted.double.cs, meta.preprocessor.string, markup.deleted | #c13e1e | — |
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}!`;
}