14 lines
1.8 KiB
JavaScript
14 lines
1.8 KiB
JavaScript
import{M as a}from"./chunk-S4VUQJ4A-e77a1bf8.js";import{p as n,j as e}from"./jsx-runtime-0eb16fb5.js";import{u as i}from"./index-5cce2c7b.js";import"./iframe-3532bc3f.js";import"../sb-preview/runtime.js";import"./index-33b6ba46.js";import"./_commonjsHelpers-de833af9.js";import"./index-d37d4223.js";import"./index-e04ae519.js";import"./index-356e4a49.js";function o(t){const s=Object.assign({p:"p",img:"img",h1:"h1",h3:"h3",pre:"pre",code:"code"},i(),t.components);return e.jsxs(e.Fragment,{children:[e.jsx(a,{title:"Styles/Intro",parameters:{...n}}),`
|
|
`,e.jsx(s.p,{children:e.jsx(s.img,{src:"https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg",alt:""})}),`
|
|
`,e.jsx(s.h1,{id:"styles",children:"Styles"}),`
|
|
`,e.jsx(s.p,{children:"This library also includes our main SCSS stylesheets with pre-defined classes you can use to style your page."}),`
|
|
`,e.jsx(s.h3,{id:"importing-our-main-stylesheet",children:"Importing our main stylesheet"}),`
|
|
`,e.jsx(s.p,{children:"Import the SCSS directly in your top-level component. (This is done for you in the Graphics Kit.)"}),`
|
|
`,e.jsx(s.pre,{children:e.jsx(s.code,{className:"language-svelte",children:`<!-- pages/index.svelte -->
|
|
<script>
|
|
// other imports and stuffs ...
|
|
|
|
import '@reuters-graphics/graphics-components/scss/main';
|
|
<\/script>
|
|
`})})]})}function p(t={}){const{wrapper:s}=Object.assign({},i(),t.components);return s?e.jsx(s,{...t,children:e.jsx(o,{...t})}):o(t)}const c=()=>{throw new Error("Docs-only story")};c.parameters={docsOnly:!0};const r={title:"Styles/Intro",parameters:{...n},tags:["stories-mdx"],includeStories:["__page"]};r.parameters=r.parameters||{};r.parameters.docs={...r.parameters.docs||{},page:p};const S=["__page"];export{S as __namedExportsOrder,c as __page,r as default};
|
|
//# sourceMappingURL=intro.stories-1f1a6ff7.js.map
|