{"version":3,"sources":["webpack:///./src/pages/installing-spark/installing-fonts.mdx","webpack:///./src/components/layouts/InstallingSparkLayout.js"],"names":["_frontmatter","layoutProps","MDXLayout","DefaultLayout","MDXContent","components","props","mdxType","parentName","isMDXComponent","InstallingSparkLayout","children","location","initialContext"],"mappings":"0RAOO,IAAMA,EAAe,GAOtBC,EAAc,CAClBD,gBAEIE,EAAYC,IACH,SAASC,EAAT,GAGZ,IAFDC,EAEC,EAFDA,WACGC,E,oIACF,mBACD,OAAO,YAACJ,EAAD,iBAAeD,EAAiBK,EAAhC,CAAuCD,WAAYA,EAAYE,QAAQ,cAI5E,0DACA,uPAIA,oDACA,oKAGA,qBAAG,sBAAQC,WAAW,KAAnB,SAAH,0DACA,yBACE,qBAAOA,WAAW,SAChB,kBAAIA,WAAW,SACb,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,iBAGA,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,QAGA,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,iBAKJ,qBAAOA,WAAW,SAChB,kBAAIA,WAAW,SACb,gCAAIA,WAAW,MAAS,CACtB,MAAS,OACR,0BAAYA,WAAW,MAAvB,yBACH,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,WAGA,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,gDAEoD,sBAAQA,WAAW,MAAnB,SAFpD,gCAE+H,0BAAYA,WAAW,MAAvB,SAF/H,OAEyL,0BAAYA,WAAW,MAAvB,QAFzL,4BAIF,kBAAIA,WAAW,SACb,gCAAIA,WAAW,MAAS,CACtB,MAAS,OACR,0BAAYA,WAAW,MAAvB,uBACH,gCAAIA,WAAW,MAAS,CACtB,MAAS,OACR,sBAAQA,WAAW,MAAnB,cAFH,WAGA,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,+DAEmE,sBAAQA,WAAW,MAAnB,SAFnE,qBAEmI,0BAAYA,WAAW,MAAvB,QAFnI,8GAEmS,0BAAYA,WAAW,MAAvB,QAFnS,8BAEmX,0BAAYA,WAAW,MAAvB,gBAFnX,kCAE+c,+BAAGA,WAAW,MAAS,CACle,KAAQ,6EADmc,QAF/c,MAMF,kBAAIA,WAAW,SACb,gCAAIA,WAAW,MAAS,CACtB,MAAS,OACR,0BAAYA,WAAW,MAAvB,mBACH,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,aAGA,gCAAIA,WAAW,MAAS,CACtB,MAAS,OADX,iEAEqE,sBAAQA,WAAW,MAAnB,SAFrE,uHAMN,qCAAoB,0BAAYA,WAAW,KAAvB,kBAApB,8CACA,uBAAK,kCAAMA,WAAW,OAAU,CAC5B,UAAa,wBADZ,+uBAiCL,6CACA,wGACA,sBACE,kBAAIA,WAAW,MAAK,+BAAGA,WAAW,MAAS,CACvC,KAAQ,2FADQ,SAGpB,kBAAIA,WAAW,MAAK,+BAAGA,WAAW,MAAS,CACvC,KAAQ,yFADQ,YAGpB,kBAAIA,WAAW,MAAK,+BAAGA,WAAW,MAAS,CACvC,KAAQ,uFADQ,WAItB,gGACF,+BAAGA,WAAW,KAAQ,CAChB,KAAQ,gCADd,aADE,KAIA,yCACA,sBACE,kBAAIA,WAAW,MAAf,+CAAoE,sBAAQA,WAAW,MAAnB,cAApE,8BAAkJ,sBAAQA,WAAW,MAAnB,UAAlJ,KACA,kBAAIA,WAAW,MAAf,gHAMNJ,EAAWK,gBAAiB,E,uGCpJ5B,qCAIA,SAASC,EAAT,GAAwD,IAAvBC,EAAsB,EAAtBA,SAAUC,EAAY,EAAZA,SACzC,OACE,kBAAC,IAAD,CAAQC,eAAe,mBAAmBD,SAAUA,GACjDD,G,uPAYQD","file":"component---src-pages-installing-spark-installing-fonts-mdx-322e0d2fe6ddabc35a63.js","sourcesContent":["import * as React from 'react'\n /* @jsx mdx */\nimport { mdx } from '@mdx-js/react';\n/* @jsx mdx */\n\nimport DefaultLayout from \"/opt/build/repo/src/components/layouts/InstallingSparkLayout.js\";\nimport { SprkTable } from \"@sparkdesignsystem/spark-react\";\nexport const _frontmatter = {};\n\nconst makeShortcode = name => function MDXDefaultShortcode(props) {\n console.warn(\"Component \" + name + \" was not imported, exported, or provided by MDXProvider as global scope\");\n return
;\n};\n\nconst layoutProps = {\n _frontmatter\n};\nconst MDXLayout = DefaultLayout;\nexport default function MDXContent({\n components,\n ...props\n}) {\n return \n\n\n\n

{`Getting Started with Spark Fonts`}

\n

{`As part of Spark, our design system includes functionality\nfor applying web fonts. It allows you to configure your font\nsetup using Sass variables which will be included in the\nSpark CSS bundle when you build your site.`}

\n

{`Configuring Sass Variables`}

\n

{`There are unique Sass variables that allow you to\nconfigure Spark fonts for your build. Refer to the\ndescriptions to learn what they are.`}

\n

{`Note:`}{` They must be set in your Sass before importing Spark.`}

\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
{`Sass Variable`}{`Type`}{`Description`}
{`$sprk-using-webfonts`}{`boolean`}{`Informs Spark that webfonts will be applied. `}{`Note:`}{` Change default setting from `}{`false`}{` to `}{`true`}{` to use Spark webfonts.`}
{`$sprk-font-display`}{`(Optional)`}{` string`}{`Controls behavior of the text while fonts are being loaded. `}{`Note:`}{` Default value is `}{`swap`}{` which will cause text to render using a fallback font until the custom font is available. Correct font is `}{`swap`}{`ped in. Information on the `}{`font-display`}{` property and values are found `}{`here`}{`.`}
{`$sprk-webfonts`}{`Sass List`}{`Expects a Sass List containing one or more nested Sass Lists. `}{`Note:`}{` The nested lists should contain the font’s URL, name and weight. It does require a series of font declarations.`}
\n

{`A full valid `}{`$sprk-webfonts`}{` object example looks something like this:`}

\n
{`$sprk-using-webfonts: true;\n$sprk-webfonts:\n(\n  (\n    url('https://www.example.com/MyFont-Bold.woff2') format('woff2'),\n    url('https://www.example.com/MyFont-Bold.woff') format('woff')\n  ),\n  MyFont, 700\n),\n(\n  (\n    url('https://www.example.com/MyFont-Medium.woff2') format('woff2'),\n    url('https://www.example.com/MyFont-Medium.woff') format('woff')\n  ),\n  MyFont, 500\n),\n(\n  (\n    url('https://www.example.com/MyFont-Regular.woff2') format('woff2'),\n    url('https://www.example.com/MyFont-Regular.woff') format('woff')\n  ),\n  MyFont, 400\n),\n(\n  (\n    url('https://www.example.com/MyFont-Light.woff2') format('woff2'),\n    url('https://www.example.com/MyFont-Light.woff') format('woff')\n  ),\n  MyFont, 300\n);\n`}
\n

{`Additional Examples`}

\n

{`Check out these completed font setup examples supported by Spark to learn more:`}

\n \n

{`Internal users can access a directory of our CDN resources by clicking\n`}{`this link`}{`.`}

\n

{`Troubleshooting`}

\n \n\n
;\n}\n;\nMDXContent.isMDXComponent = true;\n ","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Layout from './Layout';\n\nfunction InstallingSparkLayout({ children, location }) {\n return (\n \n {children}\n \n );\n}\n\nInstallingSparkLayout.propTypes = {\n children: PropTypes.node,\n location: PropTypes.shape({\n pathname: PropTypes.string,\n }),\n};\n\nexport default InstallingSparkLayout;\n"],"sourceRoot":""}