Synesthetic
Publisher: DrQubitThemes in package: 1
Syntax + semantic related colors theme. Includes Unity3D syntax
Syntax + semantic related colors theme. Includes Unity3D syntax
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| punctuation, keyword.operator | #C0C0C0 | — |
| comment, comment punctuation | #404040 | italic |
| keyword.control | #C0C000 | — |
| keyword.other | #808000 | — |
| constant.numeric.colors |
TypeScript sample highlighted with this variant's colors and tokenColors.
| — |
| variable.other.readwrite.cs | #00D0D0 | — |
| string.template | #FFA0A0 | — |
| string.quoted.single | #fbd98b | — |
| punctuation.definition.char.begin, punctuation.definition.char.end | #ffe8b2 | — |
| string.quoted.double | #fb8b8b | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #ffb2b2 | — |
| constant.character.escape.cs | #804040 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #9C1717 | — |
| constant.language.json | #D0D000 | — |
| support.type.property-name | #00C0FF | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #60E0FF | — |
| string.quoted.double.json, string.quoted.double.xml | #00FF80 | — |
| punctuation.definition.string.begin.json, punctuation.definition.string.end.json, punctuation.definition.string.begin.xml, punctuation.definition.string.end.xml | #70FFD0 | — |
| punctuation.separator.dictionary.key-value.json | #FFE070 | — |
| entity.name.tag.localname.xml | #808000 | — |
| punctuation.definition.tag.xml | #D0D000 | — |
| entity.other.attribute-name.localname.xml | #2e88fe | — |
| text.xml | #3bc2e4 | — |
| entity.name.function.title.source.wsd | #FFFFFF | — |
| support.variable.source.wsd | #6da4be | — |
| string.quoted.double.activity.while.source.wsd | #dec275 | — |
| string.quoted.double.activity.if.source.wsd | #c2de75 | — |
| support.variable.definitions.source.wsd | #37c5e1 | — |
| string.quoted.double.skinparam.value.source.wsd | #ea9917 | — |
| source.t4 | #ead99a | — |
| constant.t4 | #00D000 | — |
| entity.other.document.begin.yaml | #E0E0E0 | — |
| entity.name.tag.yaml | #00A080 | — |
| storage.type.tag-handle.yaml, string.unquoted.plain.in.yaml, variable.other.alias.yaml | #C040A0 | — |
| string.unquoted.plain.out.yaml | #0080A0 | — |
| constant.numeric.integer.yaml, constant.numeric.float.yaml | #40D040 | — |
| constant.language.boolean.yaml | #D080D0 | — |
| entity.name.type.anchor.yaml | #B0B000 | — |
| meta.preprocessor.cs | #006000 | — |
| punctuation.separator.hash.cs | #008000 | — |
| entity.name.variable.preprocessor.symbol.cs | #008040 | — |
| keyword.other.namespace.cs, keyword.other.class.cs, keyword.other.interface.cs, keyword.other.struct.cs, keyword.other.enum.cs, keyword.other.where.cs, keyword.other.event.cs, keyword.other.delegate.cs | #808000 | — |
| keyword.other.new.cs, keyword.other.nameof.cs, keyword.other.typeof.cs | #B0B000 | — |
| keyword.other.lock.cs | #c23917 | — |
| constant.language.null.cs | #800080 | bold |
| keyword.other.this.cs, keyword.other.base.cs | #40E0FF | italic |
| keyword.other.true.cs, constant.language.boolean.true.cs, keyword.other.false.cs, constant.language.boolean.false.cs | #D080D0 | — |
| keyword.other.get.cs, keyword.other.set.cs, keyword.other.init.cs | #0080C0 | — |
| punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs | #9edfd2 | — |
| constant.numeric.decimal.cs | #00D000 | — |
| keyword.type.cs, keyword.other.var.cs | #608000 | — |
| keyword.other.using.cs | #404070 | — |
| entity.name.type.namespace.cs | #004080 | — |
| regions.namespace.declaration.cs.extensions | #606000 | — |
| entity.name.type.cs, storage.type.cs, variable.other.object.cs | #008080 | — |
| entity.name.type.delegate.cs | #008080 | italic |
| keyword.control.conditional.if.cs, keyword.control.conditional.else.cs, keyword.control.flow.return.cs, keyword.control.flow.throw.cs, keyword.control.switch.cs, keyword.control.case.cs, keyword.control.while.cs, keyword.control.flow.break.cs, keyword.control.default.cs, keyword.control.loop.foreach.cs, keyword.control.loop.in.cs | #D0D000 | — |
| entity.name.type.struct.cs, entity.name.type.class.cs, entity.name.type.interface.cs, entity.name.type.enum.cs, entity.name.type.alias.cs | #008080 | underline |
| entity.name.variable.enum-member.cs | #800080 | — |
| entity.name.variable.field.cs | #00C0FF | — |
| entity.name.variable.event.cs | #e59928 | — |
| entity.name.variable.parameter.cs | #80E0E0 | italic |
| entity.name.variable.local.cs, entity.name.variable.range-variable.cs | #80E0E0 | — |
| entity.name.variable.property.cs, variable.other.object.property.cs | #00C0FF | — |
| entity.name.function.cs | #8070D0 | — |
| storage.modifier.cs | #606000 | — |
| keyword.query, entity.name.type.type-parameter.cs | #408080 | — |
| entity.name.function.cs.unity | #FF4000 | — |
| meta.type.cs.unity | #FF8000 | — |
| meta.type.cs.unity.editor | #FFC040 | — |
| punctuation.definition.list.begin.markdown | #FFC040 | — |
| punctuation.definition.bold.markdown | #FF6060 | — |
| punctuation.definition.heading.markdown | #30A060 | — |
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}!`;
}