Skip to content

Import and export

The screen Content → Nova → Skins → Import and export exports a skin to a JSON file and imports such a file. The text at the top reads: “A skin file holds the values the skin sets itself: tokens and element styles. Imported values go into a draft; the shop changes when the skin is published.”

The screen follows the shared pattern of import and export described on Documents; this page describes what applies to skins.

The group Export has one row, Export format, with the hint “JSON: the skin’s own tokens and settings, without what it inherits.”

  1. Choose the skin in the field Choose what to export.
  2. Click Download JSON.

The file is named after the skin and ends in .nova.json. The same file is produced by Export in the List of skins.

The first row of the group Import is Conflicts: “What happens when the file and the draft of the chosen skin disagree.” The choice is remembered in the browser.

OptionEffect
Show differences before importingThe file is analysed against the draft of the chosen skin; the differences are shown before anything is written. This is the default.
Overwrite the draft without askingThe skin is chosen before the file. A file that needs no decision is imported into that skin’s draft as soon as it has been read.
Create a new skinThe file becomes a new skin.

The file is dropped onto the field “Drop a .json file here or click to choose one” or chosen with a click. The file is checked before anything is sent to the server:

FileMessage
not a skin export“This is not an export file of this kind.”
without a version number“The file names no version and cannot be read here.”
from a newer version of Nova“The file comes from a newer version of Nova and cannot be read here. Update Nova in this shop.”
from an older version of Nova“The file comes from an older version of Nova this shop no longer reads. Export it again from an updated shop.”

Import as names the target:

  • an existing skin, preselected as the skin open in the editor. The hint reads: “Replaces the draft of the chosen skin; the shop keeps the published version until you publish the draft.”,
  • with Create a new skin, a new skin. The hint reads: “A new skin under Base; no channel shows it until it is assigned.” The field Name takes the name stored in the file and can be changed.

An import into an existing skin replaces the values the skin sets itself with the values of the file; values the file does not contain are removed from the draft, so the skin inherits them again.

RowContent
Differences“What the file would change in the draft.” The button Show n differences opens a table with the columns Field, Current draft and In the file, searchable with Search the differences. A value the draft does not set is shown as “inherited”.
References in the fileFiles and other records the values point at, with the columns Points at, In the file and In this shop. Each reference can be given a replacement (Choose a replacement) or removed (Remove). For a Google family the shop does not host yet, Download from Google Fonts downloads it.
Left out“Unknown here, not imported: fields”: values for fields this installation does not know.
Own fonts not in this shopOwn fonts named in the file for which the shop has no files. The values keep the font’s name; the font has to be uploaded and chosen again, and publishing waits for it.

A reference without a decision blocks the import: “1 reference has no replacement yet: choose one or remove it.” When every reference is decided, the footer reads “Ready to import.”

Import to draft imports the file; Cancel discards the file. If the target skin has unsaved changes in the editor, the import stays blocked: “The chosen one has unsaved changes. Save or discard them first: the import would replace them.”

After the import the message reads “Imported into the draft of name.” or “name imported as a new skin.”; values left out are named in the same message. A newly created skin is opened in the editor, unless the skin open there has unsaved changes.

An import changes only the draft. The shop shows the imported values after the skin is published; see Skins and publishing.