Style Reference

April 1, 2026 · View on GitHub

Inky includes a built-in SCSS framework for responsive email styles. You can override any variable to customize your emails.

How to Override

Add a <style type="text/scss"> block in your layout's <head>, or link to an external .scss file:

<style type="text/scss">
$primary-color: #ff6600;
$global-width: 640px;
$body-font-family: Georgia, serif;
</style>
<link rel="stylesheet" href="theme.scss">

Only variables you override are changed — everything else keeps its default value.

Global

VariableDefaultDescription
$primary-color#2199e8Primary brand color (buttons, links, accents)
$secondary-color#777777Secondary color
$success-color#3adb76Success state color
$warning-color#ffae00Warning state color
$alert-color#ec5840Alert/error state color
$light-gray#f3f3f3Light gray
$medium-gray#cacacaMedium gray
$dark-gray#8a8a8aDark gray
$black#0a0a0aBlack
$white#fefefeWhite

Layout

VariableDefaultDescription
$global-width580pxMaximum email width
$global-width-small95%Width on small screens
$global-gutter16pxGutter between columns
$global-gutter-small$global-gutterGutter on small screens
$global-padding16pxDefault padding
$global-margin16pxDefault margin
$global-radius3pxDefault border radius
$global-rounded500pxFully rounded radius (pill shape)
$global-breakpoint$global-width + $global-gutterResponsive breakpoint
$body-background$light-grayPage background color
$container-background$whiteContainer background color
$container-radius0Container border radius

Grid

VariableDefaultDescription
$grid-column-count12Number of columns in the grid
$column-padding-bottom$global-paddingBottom padding on columns
$block-grid-max8Maximum items in a block grid
$block-grid-gutter$global-gutterGutter between block grid items

Typography

VariableDefaultDescription
$body-font-familyHelvetica, Arial, sans-serifBody font stack
$global-font-color$blackDefault text color
$global-font-size16pxBase font size
$global-font-weightnormalBase font weight
$global-line-height130%Base line height
$body-line-height$global-line-heightBody line height
$header-font-family$body-font-familyHeading font stack
$header-font-weight$global-font-weightHeading font weight
$header-colorinheritHeading color
$header-margin-bottom10pxSpace below headings
$h1-font-size34pxH1 size
$h2-font-size30pxH2 size
$h3-font-size28pxH3 size
$h4-font-size24pxH4 size
$h5-font-size20pxH5 size
$h6-font-size18pxH6 size
$paragraph-margin-bottom10pxSpace below paragraphs
$lead-font-size20pxLead paragraph size
$lead-line-height160%Lead paragraph line height
$small-font-size80%Small text size
$small-font-color$medium-graySmall text color
$text-padding10pxText utility padding
$pre-color#ff6908Preformatted text color
$font-scale1.2Font scale factor
$stat-font-size40pxStat/number display size

Subheaders

Subheaders are secondary text inside headings, styled with the <small> tag:

<h2>Order Confirmed <small>Thank you for your purchase</small></h2>

The <small> text renders smaller and muted, controlled by these variables:

VariableDefaultDescription
$subheader-lineheight1.4Subheader line height
$subheader-color$dark-graySubheader color
$subheader-font-weight$global-font-weightSubheader font weight
$subheader-margin-top4pxSpace above subheaders
$subheader-margin-bottom8pxSpace below subheaders
VariableDefaultDescription
$anchor-text-decorationnoneLink text decoration
$anchor-color$primary-colorLink color
$anchor-color-visited$anchor-colorVisited link color
$anchor-color-hover10% darker than primaryHover link color
$anchor-color-active$anchor-color-hoverActive link color
$remove-ios-bluetrueStrip iOS auto-detected link styling (dates, phone numbers, addresses — see Email Guide)

Buttons

VariableDefaultDescription
$button-background$primary-colorButton background
$button-color$whiteButton text color
$button-color-alt$medium-grayButton alt text color
$button-font-weightboldButton font weight
$button-margin0 0 $global-margin 0Button margin
$button-border2px solid $button-backgroundButton border
$button-radius$global-radiusButton border radius
$button-rounded$global-roundedPill button radius

Button Sizes

The $button-padding and $button-font-size variables are maps with size keys:

$button-padding: (
  tiny: 4px 8px,
  small: 5px 10px,
  default: 8px 16px,
  large: 10px 20px
);

$button-font-size: (
  tiny: 10px,
  small: 12px,
  default: 16px,
  large: 20px
);

Button Hover Colors

VariableDefaultDescription
$button-background-hover10% darker than primaryPrimary button hover
$button-secondary-background-hover10% lighter than secondarySecondary button hover
$button-success-background-hover10% darker than successSuccess button hover
$button-alert-background-hover10% darker than alertAlert button hover
$button-warning-background-hover10% darker than warningWarning button hover

Callouts

VariableDefaultDescription
$callout-background$whiteDefault callout background
$callout-background-fade85%How much to lighten colored callouts
$callout-padding10pxCallout padding
$callout-padding-small$callout-paddingCallout padding on small screens
$callout-margin-bottom$global-marginSpace below callouts
$callout-border1px solid (darkened background)Default callout border
$callout-border-primary1px solid (darkened primary)Primary callout border
$callout-border-secondary1px solid (darkened secondary)Secondary callout border
$callout-border-success1px solid (darkened success)Success callout border
$callout-border-warning1px solid (darkened warning)Warning callout border
$callout-border-alert1px solid (darkened alert)Alert callout border

Horizontal Rules / Dividers

VariableDefaultDescription
$hr-width$global-widthHR width
$hr-border1px solid $blackHR border style
$hr-margin20pxHR margin
$hr-aligncenterHR alignment
$divider-border1px solid $medium-grayDivider border (component)
$divider-margin20px autoDivider margin (component)
VariableDefaultDescription
$menu-item-padding10pxMenu item padding
$menu-item-gutter10pxSpace between menu items
$menu-item-color$primary-colorMenu item link color

Thumbnails

VariableDefaultDescription
$thumbnail-bordersolid 4px $whiteThumbnail border
$thumbnail-margin-bottom$global-marginSpace below thumbnails
$thumbnail-shadow0 0 0 1px rgba($black, 0.2)Thumbnail shadow
$thumbnail-shadow-hover0 0 6px 1px rgba($primary-color, 0.5)Thumbnail hover shadow
$thumbnail-transitionbox-shadow 200ms ease-outThumbnail hover transition
$thumbnail-radius$global-radiusThumbnail border radius

Dark Mode

Dark mode styles are included automatically when you override any of these variables. The build pipeline injects <meta name="color-scheme"> tags when dark mode styles are detected.

VariableDefaultDescription
$dark-body-background#1a1a1aDark mode page background
$dark-container-background#2d2d2dDark mode container background
$dark-font-color#f0f0f0Dark mode text color
$dark-muted-color#a0a0a0Dark mode muted text color
$dark-border-color#444444Dark mode border color
$dark-link-color#5ab5f7Dark mode link color