Nix
Publisher: Alvaro SantanaThemes in package: 2
Like the goddess of Greek Mythology, this theme brings the lull of the night to your code. Choose one of the themes and good code.
Like the goddess of Greek Mythology, this theme brings the lull of the night to your code. Choose one of the themes and good code.
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, unused.comment, wildcard.comment | #6272A4 | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #00BDFF | — |
| meta.diff, meta.diff.header | #6272A4 | — |
| markup.inserted | #50FA7B | — |
| markup.deleted | #E83C6A | — |
| markup.changed | #FFB86C | — |
| invalid | #E83C6A | underline italic |
| invalid.deprecated | #E83C6A | underline italic |
| entity.name.filename | #F8F8F2 | — |
| markup.error | #E83C6A | — |
| markup.underline | — | underline |
| markup.bold | #FF79C6 | bold |
| markup.heading | #00BDFF | bold |
| markup.italic | #0BD99E | italic |
| beginning.punctuation.definition.list.markdown, beginning.punctuation.definition.quote.markdown, punctuation.definition.link.restructuredtext | #8BE9FD | — |
| markup.inline.raw, markup.raw.restructuredtext | #F1FA8C | — |
| markup.underline.link, markup.underline.link.image | #FFB86C | — |
| meta.link.reference.def.restructuredtext, punctuation.definition.directive.restructuredtext, string.other.link.description, string.other.link.title | #00BDFF | — |
| entity.name.directive.restructuredtext, markup.quote | #F1FA8C | italic |
| meta.separator.markdown | #6272A4 | — |
| fenced_code.block.language, markup.raw.inner.restructuredtext, markup.fenced_code.block.markdown punctuation.definition.markdown | #F1FA8C | — |
| punctuation.definition.constant.restructuredtext | #A978FF | — |
| markup.heading.markdown punctuation.definition.string.begin, markup.heading.markdown punctuation.definition.string.end | #00BDFF | — |
| meta.paragraph.markdown, meta.paragraph.markdown | #A6A6A6 | — |
| markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.begin, markup.quote.markdown meta.paragraph.markdown punctuation.definition.string.end | #F8F8F2 | — |
| punctuation.definition.metadata.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.list.begin.markdown | #F8F8F2 | — |
| source | #F8F8F2 | — |
| comment keyword.codetag.notation, comment.block.documentation keyword, comment.block.documentation | #6272A4 | — |
| comment.block.documentation entity.name.type | #FFB86C | — |
| comment.block.documentation entity.name.type punctuation.definition.bracket | #F8F8F2 | — |
| comment.block.documentation variable | #F8F8F2 | — |
| entity.name.type.class, entity.name.class | #FFB86C | — |
| entity.other.inherited-class | #FFB86C | — |
| keyword.expressions-and-types.swift, keyword.other.this, variable.language, variable.language punctuation.definition.variable.php, variable.other.readwrite.instance.ruby, variable.parameter.function.language.special | #F1FA8C | — |
| constant, variable.other.constant | #FF79C6 | — |
| entity.name.function, meta.function-call.generic, meta.function-call.object, meta.function-call.php, meta.function-call.static, meta.method-call.java meta.method, meta.method.groovy, support.function.any-method.lua, keyword.operator.function.infix, support.function.go, support.function.builtin.go, support.function.lua, entity.name.function-call.elixir | #50FA7B | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments variable.other.php, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql, variable.parameter, parameter.variable.function.elixir | #A978FF | — |
| variable.other.object, variable.other.property | #F8F8F2 | — |
| keyword, punctuation.definition.keyword | #00BDFF | — |
| keyword.control.new, keyword.operator.new | — | bold |
| support | #F1FA8C | — |
| support.function.magic, support.variable, variable.other.predefined | #FFB86C | — |
| support.function, support.type.property-name | — | regular |
| constant.other.symbol.hashkey punctuation.definition.constant.ruby, entity.other.attribute-name.placeholder punctuation, entity.other.attribute-name.pseudo-class punctuation, entity.other.attribute-name.pseudo-element punctuation, meta.group.double.toml, meta.group.toml, meta.object-binding-pattern-variable punctuation.destructuring, punctuation.colon.graphql, punctuation.definition.block.scalar.folded.yaml, punctuation.definition.block.scalar.literal.yaml, punctuation.definition.block.sequence.item.yaml, punctuation.definition.entity.other.inherited-class, punctuation.function.swift, punctuation.separator.dictionary.key-value, punctuation.separator.hash, punctuation.separator.inheritance, punctuation.separator.key-value, punctuation.separator.key-value.mapping.yaml, punctuation.separator.namespace, punctuation.separator.pointer-access, punctuation.separator.slice, string.unquoted.heredoc punctuation.definition.string, support.other.chomping-indicator.yaml, punctuation.separator.annotation, punctuation.other.colon.go, punctuation.other.period.go, punctuation.accessor | #00BDFF | — |
| keyword.operator.other.powershell, keyword.other.statement-separator.powershell, meta.brace.round, meta.function-call punctuation, punctuation.definition.arguments.begin, punctuation.definition.arguments.end, punctuation.definition.entity.begin, punctuation.definition.entity.end, punctuation.definition.tag.cs, punctuation.definition.type.begin, punctuation.definition.type.end, punctuation.section.scope.begin, punctuation.section.scope.end, storage.type.generic.java, string.template meta.brace, string.template punctuation.accessor | #F8F8F2 | — |
| meta.string-contents.quoted.double punctuation.definition.variable, punctuation.definition.interpolation.begin, punctuation.definition.interpolation.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.begin, punctuation.section.embedded.coffee, punctuation.section.embedded.end, punctuation.section.embedded.end source.php, punctuation.section.embedded.end source.ruby, punctuation.definition.variable.makefile, punctuation.section.embedded.elixir, punctuation.separator.colon.python, punctuation.separator.period.python, punctuation.separator.dict.python, punctuation.section.function.begin.python, punctuation.section.function.end.python, punctuation.separator.method.ruby, punctuation.separator.variable.ruby, variable.other.readwrite.module.elixir | #00BDFF | — |
| entity.name.function.target.makefile, entity.name.section.toml, entity.name.tag.yaml, variable.other.key.toml | #F1FA8C | — |
| constant.other.date, constant.other.timestamp | #FFB86C | — |
| variable.other.alias.yaml | #50FA7B | italic underline |
| storage, meta.implementation storage.type.objc, meta.interface-or-protocol storage.type.objc, source.groovy storage.type.def, storage.type.class | #00BDFF | — |
| entity.name.type | #FFB86C | — |
| keyword.primitive-datatypes.swift, keyword.type.cs, meta.protocol-list.objc, meta.return-type.objc, source.go storage.type, source.groovy storage.type, source.java storage.type, source.powershell entity.other.attribute-name, storage.class.std.rust, storage.type.attribute.swift, storage.type.c, storage.type.core.rust, storage.type.cs, storage.type.groovy, storage.type.objc, storage.type.php, storage.type.haskell, storage.type.ocaml, entity.name.type.primitive.rust | #F1FA8C | — |
| entity.name.type.type-parameter, meta.indexer.mappedtype.declaration entity.name.type, meta.type.parameters entity.name.type | #F24B78 | — |
| storage.modifier | #00BDFF | — |
| string.unquoted.heredoc.ruby, string | #FFB86C | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #FFB86C | — |
| punctuation.support.type.property-name.begin, punctuation.support.type.property-name.end | #FF79C6 | — |
| string.quoted.docstring.multi, string.quoted.docstring.multi.python punctuation.definition.string.begin, string.quoted.docstring.multi.python punctuation.definition.string.end, string.quoted.docstring.multi.python constant.character.escape | #FFB86C | — |
| variable, constant.other.key.perl, support.variable.property, variable.other.constant.js, variable.other.constant.ts, variable.other.constant.tsx | #F8F8F2 | — |
| meta.import variable.other.readwrite, meta.object-binding-pattern-variable variable.object.property, meta.variable.assignment.destructured.object.coffee variable | #FFB86C | — |
| meta.import variable.other.readwrite.alias, meta.export variable.other.readwrite.alias, meta.variable.assignment.destructured.object.coffee variable variable | #F8F8F2 | normal |
| meta.selectionset.graphql variable | #FFB86C | — |
| meta.selectionset.graphql meta.arguments variable | #F8F8F2 | — |
| entity.name.fragment.graphql, variable.fragment.graphql | #F1FA8C | — |
| constant.other.symbol.hashkey.ruby, keyword.operator.dereference.java, keyword.operator.navigation.groovy, meta.scope.for-loop.shell punctuation.definition.string.begin, meta.scope.for-loop.shell punctuation.definition.string.end, meta.scope.for-loop.shell string, storage.modifier.import, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.tsx, punctuation.section.embedded.begin.jsx, punctuation.section.embedded.end.jsx, punctuation.separator.list.comma.css, constant.language.empty-list.haskell | #F8F8F2 | — |
| source.shell variable.other | #00BDFF | — |
| support.constant | #00BDFF | — |
| meta.scope.prerequisites.makefile, meta.property-value.css | #F1FA8C | — |
| constant.character.escape, constant.character.string.escape, constant.regexp | #FF79C6 | — |
| string.regexp, constant.other.character-class.set.regexp, constant.character.escape.backslash.regexp | #FFB86C | — |
| punctuation.definition.group.capture.regexp | #00BDFF | — |
| string.regexp punctuation.definition.string.begin, string.regexp punctuation.definition.string.end | #FF79C6 | — |
| punctuation.definition.character-class.regexp | #00BDFF | — |
| punctuation.definition.group.regexp | #00BDFF | — |
| punctuation.definition.group.assertion.regexp, keyword.operator.negation.regexp | #F24B78 | — |
| meta.assertion.look-ahead.regexp | #0BD99E | — |
| punctuation.definition.tag.xml, entity.other.attribute-name.localname.xml | #F8F8F2 | — |
| meta.tag.xml, entity.name.tag.localname.xml | #00BDFF | — |
| punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html, entity.other.attribute-name.html, text.html.derivative | #F8F8F2 | — |
| punctuation.separator.key-value.html, entity.name.tag.html, entity.name.tag.js, entity.name.tag.tsx, entity.name.tag.template.html, entity.name.tag.script.html, entity.name.tag.style.html, entity.name.tag.block.any.html, meta.tag.block.any.html | #00BDFF | — |
| punctuation.definition.generic.begin.html, punctuation.definition.generic.end.html | #FF79C6 | — |
| punctuation.terminator.rule.css, support.type.vendored.property-name.css, meta.at-rule.keyframes.body.css, support.type.property-name.css, punctuation.definition.parameters.begin.bracket.round.css, punctuation.definition.parameters.end.bracket.round.css, entity.other.attribute-name.html | #F8F8F2 | — |
| entity.other.keyframe-offset.css, keyword.operator.gradient.css, punctuation.definition.entity.css, entity.name.tag.css, punctuation.separator.key-value.html | #00BDFF | — |
| constant.numeric.css, keyword.other.unit.px.css, keyword.other.unit.deg.css, keyword.other.unit.percentage.css, keyword.other.unit.s.css, keyword.other.unit.rem.css, keyword.other.unit.em.css, keyword.other.unit.vw.css, keyword.other.unit.vh.css, keyword.other.unit.pt.css, keyword.other.unit.in.css, keyword.other.unit.cm.css, keyword.other.unit.percentage.css, keyword.other.unit., constant.other.color.rgb-value.hex.css, entity.other.keyframe-offset.percentage.css | #FF79C6 | — |
| support.function.css, support.function.calc.css, support.function.misc.css, support.function.timing-function.css, support.function.transform.css, support.function.url.css, support.function.gradient.css, support.function.misc.scss | #50FA7B | — |
| variable.parameter.keyframe-list.css, meta.at-rule.media.header.css, support.constant.vendored.property-value.css | #F1FA8C | — |
| string.quoted.single.css, meta.property-value.css, variable.argument.css, support.constant.color.w3c-standard-color-name.css | #FFB86C | — |
| support.constant.property-value.css, entity.name.tag.reference.scss, support.constant.font-name.css | #F24B78 | — |
| keyword.other.important.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #A978FF | — |
| support.type.property-name.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #F8F8F2 | — |
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}!`;
}