Skip to content
SheetForge

Sheet groups and colors

The @style marker lets a sheet say what group it belongs to and what color it is. Grouping and coloring then live in the sheet rather than only in the editor.

The @style row

@style is the one marker that describes the sheet rather than its columns. Its cells are therefore not aligned to columns. They are a free list of key=value pairs starting at column B.

@style   | title=Combat  | color=#4D8FF0
@name    | codeName      | displayName | power
@type    | RecordId      | string      | int
@desc    | unique key    | shown in UI | attack power
         | skill.fire    | Fireball    | 12

Both keys are optional, and order does not matter. Write one, both, or neither. An empty cell is ignored, so padding cells are fine.

Keys

KeyValueEffect
titleAny textGroups the sheet under that heading in the Data Studio sidebar
color#RRGGBB (six hex digits)Tints the sheet wherever it appears

Title

Sheets sharing a title are bundled under that heading in the Data Studio sidebar.

  • Sections appear in first-appearance order.
  • Sheets keep their own order inside a section.
  • Sheets with no title stay in the default section.

Color

The color tints this sheet wherever it appears:

  • The sidebar dot
  • The node border on the canvas
  • Every port and wire that points at this sheet

Three-digit shorthand (#4AF) and named colors are rejected on purpose, so the value round-trips as one notation.

Validation errors

Validation errors all arrive as MarkerCellInvalid, with the cell coordinate and a concrete fix. These mistakes produce it:

  • An unknown key, reported with a nearest-match suggestion
  • A repeated key
  • A missing value
  • A color that is not #RRGGBB

Display only

Codegen, baking and the schema fingerprint never read @style. Changing a sheet's color does not regenerate code or re-bake ScriptableObjects.

Round trip and editing

The @style row is preserved like a comment row. Adding, deleting, moving and renaming columns leave it untouched, because its cells do not belong to columns.

To edit the row, open the Data Studio, right-click the sheet in the sidebar and choose Group & color ✎. The form that opens rewrites the row in canonical form. See Sheet groups.

A sheet with only @style

A sheet that has only @style, plus comments, counts as "no table yet". The import skips it with a warning instead of failing on the three missing required markers.

As soon as you add @name/@type/@desc, the sheet is parsed normally. See Structure and staging limits.

Reserved marker name

style is a reserved marker name. A plugin that tries to register it is rejected. A typo like @styl gets @style as a suggestion.

Next steps