AI Coding
Import the AI Coding design and it brings blocks and content types of its own, on top of the main Canvas library. Read this page when you are working on a site built from AI Coding and meet a block you cannot find in the main reference.
These items stay registered on every site so that content you have already imported keeps rendering, and they appear in the block inserter only where the design is in use.
Content types this design adds
Capabilities
canvas_aicode_feat
One item is called a Capability. You will find them in their own admin menu once the design is installed.
- Editor features: custom-fields, editor, excerpt, page-attributes, title
Each item carries these extra settings on its edit screen:
Feat Icon
Feat Label
Feat Summary
Blocks this design adds
Capability Grid
canvas-core/aicode-capabilities
A grid of capability records, each shown as an icon, a name and a one-line summary. In the block inserter it is named Capability Grid.
Select the block on a page and its own settings open in the sidebar, in the panels below:
Content
LayoutDefaultCard Grid
The grid and the list show every capability; the other two render the open record and only appear on a capability page.
ChoicesCard GridLinked ListRecord HeaderRecord Related Row
Capabilities to ShowDefault
0Zero shows every published capability.
Order ByDefaultManual Order
What to sort the capabilities by.
ChoicesManual OrderDateTitle
OrderDefaultAscending
Read the sort order forwards or backwards.
ChoicesAscendingDescending
Link Cards to the Capability PageDefaultOff
Wraps each card in a link. Leave off where the grid is presentational.
Capability Index SlugDefault
capabilitiesThe page the record header and the back link point at.
Back Link TextDefault
All capabilitiesWording on the link back to the capability index. Empty renders no link.
Related Row HeadingDefault
More capabilitiesHeading above the row of other capabilities.
Layout
Grid Row ClassesDefault
row g-4 mt-2Classes on the row wrapping the capability cards.
Column ClassesDefault
col-lg-4 col-md-6 col-12Classes on each column, which is where the number of cards per row is set.
Card ClassesDefault
cp-feat-cardClasses on the box around one capability.
Icon Tile ClassesDefault
cp-feat-iconClasses on the square tile behind the icon.
Icon Tile Inline StyleDefault
width: 48px; height: 48px; border-radius: 10px; background: rgba(99,102,241,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background 0.3s ease;Inline style on the icon tile: its size, corner rounding and fill.
Icon Inline StyleDefault
font-size: 1.25rem; color: #6366f1;Inline style on the icon itself: its size and colour.
Card Title ElementDefaultHeading 3
Which element carries the capability name on a card.
ChoicesHeading 2Heading 3Heading 4Plain BoxInline Text
Card Title ClassesDefaultEmpty
Classes on the capability name.
Card Title Inline StyleDefault
font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.125rem; color: #f1f5f9; margin-bottom: 10px;Inline style on the capability name.
Card Summary ClassesDefaultEmpty
Classes on the one-line summary under the name.
Card Summary Inline StyleDefault
font-family: 'Inter', sans-serif; font-size: 0.9375rem; color: #94a3b8; line-height: 1.7; margin: 0;Inline style on the one-line summary.
List Row ClassesDefault
row g-4Classes on the row wrapping the linked list.
Shown when Layout is "Linked List" or "Record Related Row"
List Column ClassesDefault
col-lg-6Classes on each column of the linked list.
Shown when Layout is "Linked List" or "Record Related Row"
List Card ClassesDefault
cp-cap-rowClasses on each linked row.
Shown when Layout is "Linked List" or "Record Related Row"
Add Record ClassesDefaultOff
Adds the standard per-record classes to each card, so other styling and scripts can target one capability.
Dot Grid Backdrop
canvas-core/aicode-dot-grid
A field of evenly spaced dots that fills the box behind it, for a section that needs a technical backdrop. In the block inserter it is named Dot Grid Backdrop.
Select the block on a page and its own settings open in the sidebar, in the panels below:
Settings
Pattern NameDefault
cp-dotsInternal name for this dot field. Change it only when two dot grids sit on the same page and need different settings.
Dot Spacing (px)Default
24How far apart the dots sit, measured from one dot to the next.
Dot RadiusDefault
1.5Radius of a single dot, in pixels.
Dot ColourDefault
#6366f1Colour of the dots.
Layout
Field WidthDefault
100%How wide the dot field is. Leave at 100% to fill its box.
Field HeightDefault
100%How tall the dot field is. Leave at 100% to fill its box.


