<div class="wrapper" role="main">
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">.supersize</p>
        </div>
        <div class="grid-18 grid-md-14">
            <h1 class="supersize">Typografiska regler för Internetstiftelsens webbplatser.</h1>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">H1</p>
        </div>
        <div class="grid-18 grid-md-14">
            <h1>Typografi Ut ante enim, mollis sit amet arcu sed, auctor accumsan arcu</h1>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">H2</p>
        </div>
        <div class="grid-18 grid-md-14">
            <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h2>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">H3</p>
        </div>
        <div class="grid-18 grid-md-14">
            <h3>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h3>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">H4</p>
        </div>
        <div class="grid-18 grid-md-14">
            <h4>Lorem ipsum dolor sit amet, consectetur adipisicing elit</h4>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">.preamble</p>
        </div>
        <div class="grid-18 grid-md-14">
            <p class="preamble u-indent-1">Typografiska regler för Internetstiftelsens webbplatser.</p>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">P</p>
        </div>
        <div class="grid-18 grid-md-14">
            <p>Typografiska regler för Internetstiftelsens webbplatser. <strong>Den här texten är bold</strong></p>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">A</p>
        </div>
        <div class="grid-18 grid-md-14">
            <p>Typografiska regler för Internetstiftelsens webbplatser <a href="">lorem non turpis condimentum iaculis</a> Typografiska regler för Internetstiftelsens webbplatser</p>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">LISTS</p>
        </div>
        <div class="grid-18 grid-md-14">
            <ul class="checklist">
                <li>Lorem ipsum dolor sit amet</li>
                <li>Sed nisl justo, pharetra non scelerisque</li>
                <li> Vestibulum ullamcorper</li>
                <li>
                    Nam vitae mauris blandit
                    <ul>
                        <li>Lorem ipsum dolor sit amet</li>
                        <li>Sed nisl justo, pharetra non scelerisque</li>
                        <li> Vestibulum ullamcorper</li>
                        <li>
                            Nam vitae mauris blandit
                            <ul>
                                <li>Lorem ipsum dolor sit amet</li>
                                <li>Sed nisl justo, pharetra non scelerisque</li>
                                <li> Vestibulum ullamcorper</li>
                            </ul>
                        </li>
                    </ul>
                </li>
            </ul>

            <ol>
                <li>Lorem ipsum dolor sit amet</li>
                <li>Sed nisl justo, pharetra non scelerisque</li>
                <li> Vestibulum ullamcorper</li>
                <li>
                    Nam vitae mauris blandit
                    <ol>
                        <li>Lorem ipsum dolor sit amet</li>
                        <li>Sed nisl justo, pharetra non scelerisque</li>
                        <li> Vestibulum ullamcorper</li>
                        <li>
                            Nam vitae mauris blandit
                            <ol>
                                <li>Lorem ipsum dolor sit amet</li>
                                <li>Sed nisl justo, pharetra non scelerisque</li>
                                <li> Vestibulum ullamcorper</li>
                            </ol>
                        </li>
                    </ol>
                </li>
            </ol>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">.meta</p>
        </div>
        <div class="grid-18 grid-md-14">
            <p class="meta">Typografiska regler för Internetstiftelsens webbplatser.</p>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">.small</p>
        </div>
        <div class="grid-18 grid-md-14">
            <p class="small">Typografiska regler för Internetstiftelsens webbplatser.</p>
        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">BLOCKQUOTE</p>
        </div>
        <div class="grid-18 grid-md-14">
            <blockquote class="jade">
                <svg class="icon">
                    <use xlink:href="#icon-quote"></use>
                </svg>
                <p>Välkommen till Internetmuseum!
 Här tar vi dig med på en resa genom den svenska internethistorien.</p>
                <cite class="meta">Frank Zappa</cite>
            </blockquote>

        </div>
    </div>
    <div class="row u-m-b-6">
        <div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
            <p class="meta">pre > code</p>
        </div>
        <div class="grid-18 grid-md-14">
            <pre><code>const debounce = (func, delay) => {
	let inDebounce;

	return (...args) => {
		const context = this;
		clearTimeout(inDebounce);
		inDebounce = setTimeout(() => func.apply(context, args), delay);
	};
};

const checkElements = debounce(() => {
	const accordionElementFresh = document.querySelector(`.js-${className}`);

	if (accordionElementFresh) {
		attachAccordion();
	}
}, 50);

const observeHandler = (mutationsList) => {
	mutationsList.forEach((mutation) => {
		if (mutation.type !== 'childList') {
			return;
		}

		checkElements();
	});
};

const observer = new MutationObserver(observeHandler);

observer.observe(document.body, { childList: true, subtree: true });</code>
			</pre>
        </div>
    </div>
</div>

<h1></h1>
<p></p>
<button type="button" class="grid-toggle">Grid</button>
<div class="wrapper" role="main">
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">.supersize</p>
		</div>
		<div class="grid-18 grid-md-14">
			<h1 class="supersize">{{supersize}}</h1>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">H1</p>
		</div>
		<div class="grid-18 grid-md-14">
			<h1>{{h1}}</h1>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">H2</p>
		</div>
		<div class="grid-18 grid-md-14">
			<h2>{{h2}}</h2>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">H3</p>
		</div>
		<div class="grid-18 grid-md-14">
			<h3>{{h2}}</h3>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">H4</p>
		</div>
		<div class="grid-18 grid-md-14">
			<h4>{{h2}}</h4>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">.preamble</p>
		</div>
		<div class="grid-18 grid-md-14">
			<p class="preamble u-indent-1">{{preamble}}</p>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">P</p>
		</div>
		<div class="grid-18 grid-md-14">
			<p>{{preamble}} <strong>{{strong}}</strong></p>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">A</p>
		</div>
		<div class="grid-18 grid-md-14">
			<p>{{paragraph}} <a href="">{{link}}</a> {{paragraph}}</p>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">LISTS</p>
		</div>
		<div class="grid-18 grid-md-14">
			<ul class="checklist">
				<li>Lorem ipsum dolor sit amet</li>
				<li>Sed nisl justo, pharetra non scelerisque</li>
				<li> Vestibulum ullamcorper</li>
				<li>
					Nam vitae mauris blandit
					<ul>
						<li>Lorem ipsum dolor sit amet</li>
						<li>Sed nisl justo, pharetra non scelerisque</li>
						<li> Vestibulum ullamcorper</li>
						<li>
							Nam vitae mauris blandit
							<ul>
								<li>Lorem ipsum dolor sit amet</li>
								<li>Sed nisl justo, pharetra non scelerisque</li>
								<li> Vestibulum ullamcorper</li>
							</ul>
						</li>
					</ul>
				</li>
			</ul>

			<ol>
				<li>Lorem ipsum dolor sit amet</li>
				<li>Sed nisl justo, pharetra non scelerisque</li>
				<li> Vestibulum ullamcorper</li>
				<li>
					Nam vitae mauris blandit
					<ol>
						<li>Lorem ipsum dolor sit amet</li>
						<li>Sed nisl justo, pharetra non scelerisque</li>
						<li> Vestibulum ullamcorper</li>
						<li>
							Nam vitae mauris blandit
							<ol>
								<li>Lorem ipsum dolor sit amet</li>
								<li>Sed nisl justo, pharetra non scelerisque</li>
								<li> Vestibulum ullamcorper</li>
							</ol>
						</li>
					</ol>
				</li>
			</ol>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">.meta</p>
		</div>
		<div class="grid-18 grid-md-14">
			<p class="meta">{{meta}}</p>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">.small</p>
		</div>
		<div class="grid-18 grid-md-14">
			<p class="small">{{small}}</p>
		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">BLOCKQUOTE</p>
		</div>
		<div class="grid-18 grid-md-14">
			<blockquote class="jade">
				{{>@ icon id="quote"}}
				<p>{{blockquote}}</p>
				<cite class="meta">{{quotee}}</cite>
			</blockquote>

		</div>
	</div>
	<div class="row u-m-b-6">
		<div class="grid-md-3 display-flex align-items-md-center align-self-stretch justify-content-md-center">
			<p class="meta">pre > code</p>
		</div>
		<div class="grid-18 grid-md-14">
			<pre><code>const debounce = (func, delay) => {
	let inDebounce;

	return (...args) => {
		const context = this;
		clearTimeout(inDebounce);
		inDebounce = setTimeout(() => func.apply(context, args), delay);
	};
};

const checkElements = debounce(() => {
	const accordionElementFresh = document.querySelector(`.js-${className}`);

	if (accordionElementFresh) {
		attachAccordion();
	}
}, 50);

const observeHandler = (mutationsList) => {
	mutationsList.forEach((mutation) => {
		if (mutation.type !== 'childList') {
			return;
		}

		checkElements();
	});
};

const observer = new MutationObserver(observeHandler);

observer.observe(document.body, { childList: true, subtree: true });</code>
			</pre>
		</div>
	</div>
</div>

{{> @grid-toggle }}
{
  "supersize": "Typografiska regler för Internetstiftelsens webbplatser.",
  "h1": "Typografi Ut ante enim, mollis sit amet arcu sed, auctor accumsan arcu",
  "h2": "Lorem ipsum dolor sit amet, consectetur adipisicing elit",
  "preamble": "Typografiska regler för Internetstiftelsens webbplatser.",
  "paragraph": "Typografiska regler för Internetstiftelsens webbplatser",
  "meta": "Typografiska regler för Internetstiftelsens webbplatser.",
  "small": "Typografiska regler för Internetstiftelsens webbplatser.",
  "blockquote": "Välkommen till Internetmuseum!
 Här tar vi dig med på en resa genom den svenska internethistorien.",
  "quotee": "Frank Zappa",
  "link": "lorem non turpis condimentum iaculis",
  "strong": "Den här texten är bold"
}
  • Content:
    @charset 'UTF-8';
    
    h1,
    .alpha,
    %alpha {
    	@include plumber(
    		$font-size: 3,
    		$line-height: 4,
    		$leading-bottom: 2,
    		$baseline: $headings-baseline
    	);
    
    	font-family: $font-family-headings;
    
    	@include bp-up(sm) {
    		@include plumber(
    			$font-size: 4,
    			$line-height: 5,
    			$leading-bottom: 1,
    			$baseline: $headings-baseline
    		);
    	}
    }
    
    h2,
    .beta,
    %beta {
    	@include plumber(
    		$font-size: 2.2,
    		$line-height: 3,
    		$leading-bottom: 1,
    		$baseline: $headings-baseline
    	);
    
    	font-family: $font-family-headings;
    
    	@include bp-up(sm) {
    		@include plumber(
    			$font-size: 2.6,
    			$leading-bottom: 1
    		);
    
    		line-height: 1.75rem;
    	}
    }
    
    h3,
    .gamma,
    %gamma {
    	@include plumber(
    		$font-size: 2.2,
    		$line-height: 3,
    		$leading-top: 0,
    		$leading-bottom: 1
    	);
    }
    
    h4,
    .delta,
    %delta {
    	@include plumber(
    		$font-size: 2,
    		$line-height: 3,
    		$leading-top: 0,
    		$leading-bottom: 1
    	);
    
    	font-family: $font-family-headings;
    }
    
    %reset-link-style {
    	padding: unset;
    	border-bottom: unset;
    	color: unset;
    	text-decoration: unset;
    
    	&:hover,
    	&:focus {
    		border-bottom: unset;
    		border-radius: unset;
    		background-color: unset;
    	}
    }
    
    p a,
    td a:not([class*='tag']),
    th a:not([class*='tag']) {
    	@extend %break-long-links;
    	@extend %link-styles;
    }
    
    ul:not([class]),
    ol:not([class]) {
    	li > a {
    		@extend %break-long-links;
    		@extend %link-styles;
    	}
    }
    
    li {
    	padding-top: rhythm(0.25);
    	padding-bottom: rhythm(0.25);
    }
    
    li ul,
    li ol {
    	margin-top: rhythm(1);
    	margin-left: rhythm(4);
    	padding-top: 0;
    	padding-left: 0;
    }
    
    li ol {
    	list-style-type: lower-latin;
    }
    
    li ol li ol {
    	list-style-type: lower-roman;
    }
    
    p,
    ul,
    ol,
    dl {
    	@include plumber(
    		$leading-bottom: 3
    	);
    }
    
    ul,
    ol,
    dl {
    	+ h2,
    	+ .beta {
    		margin-top: rhythm(5);
    	}
    }
    
    .small,
    small {
    	@include plumber(
    		$font-size: 1.5,
    		$line-height: 2,
    		$leading-bottom: 0
    	);
    }
    
    .supersize,
    %supersize {
    	@include plumber(
    		$font-size: 3,
    		$line-height: 4,
    		$leading-bottom: 1,
    		$baseline: $headings-baseline
    	);
    
    	font-family: $font-family-bold;
    
    	@include bp-up(sm) {
    		@include plumber(
    			$font-size: 4.5,
    			$line-height: 5,
    			$leading-bottom: 1
    		);
    	}
    
    	@include bp-up(md) {
    		@include plumber(
    			$font-size: 7,
    			$line-height: 8,
    			$leading-bottom: 2
    		);
    	}
    }
    
    .godzilla {
    	@include plumber(
    		$leading-top: 0,
    		$leading-bottom: 0
    	);
    
    	line-height: 79px;
    	font-size: 120px;
    	font-family: $font-family-bold;
    	letter-spacing: -#{rem(5px)};
    
    	@include bp-up(sm) {
    		line-height: 100px;
    		font-size: 150px;
    	}
    
    	@include bp-up(md) {
    		line-height: 135px;
    		font-size: 200px;
    		letter-spacing: -#{rem(10px)};
    	}
    
    	@include bp-up(lg) {
    		line-height: 201px;
    		font-size: 295px;
    		letter-spacing: -#{rem(20px)};
    	}
    
    	@include bp-up(xl) {
    		line-height: 247px;
    		font-size: 360px;
    	}
    
    	// Special rule for decade starting with 1
    	@include m(19) {
    		&::first-letter {
    			letter-spacing: -#{rem(20px)};
    
    			@include bp-up(lg) {
    				letter-spacing: -#{rem(40px)};
    			}
    
    			@include bp-up(xl) {
    				letter-spacing: -#{rem(45px)};
    			}
    		}
    	}
    }
    
    .preamble,
    %preamble {
    
    	@include plumber(
    		$font-size: 2.55555,
    		$line-height: 4,
    		$leading-bottom: 4
    	);
    
    	@include bp-up(sm) {
    		@include plumber(
    			$font-size: 3,
    			$line-height: 4,
    			$leading-bottom: 4
    		);
    	}
    }
    
    .meta {
    	@include plumber(
    		$font-size: 1.75,
    		$baseline: $mono-baseline
    	);
    
    	font-family: $font-family-mono;
    	font-weight: normal;
    	letter-spacing: rem(0.5px);
    	text-transform: uppercase;
    }
    
    .mono {
    	font-family: $font-family-mono;
    	font-weight: normal;
    	letter-spacing: rem(0.5px);
    	text-decoration: none;
    	text-transform: uppercase;
    }
    
    ::selection {
    	background-color: $color-ruby-light;
    }
    
    ::-moz-selection {
    	background-color: $color-ruby-light;
    }
    
    blockquote {
    
    	@include color_classes (
    		$map: $colors,
    		$prefix: '-',
    		$attribute: 'fill',
    		$element: 'svg'
    	);
    
    	display: flex;
    	position: relative;
    	flex-direction: column;
    	margin-top: rhythm(6);
    	margin-right: 0;
    	margin-bottom: rhythm(5);
    	margin-left: 0;
    	padding-left: rem(40px);
    
    	p {
    		@include plumber(
    			$font-size: 2.5,
    			$line-height: 3,
    			$leading-top: 1,
    			$leading-bottom: 0,
    			$baseline: $headings-baseline
    		);
    	}
    
    	svg {
    		display: block;
    		position: absolute;
    		top: 0;
    		left: 0;
    		width: rhythm(2);
    		height: rhythm(4);
    		fill: $color-black;
    
    		@include bp-up(md) {
    			width: rhythm(3);
    			height: rhythm(6);
    		}
    	}
    
    	.meta {
    		@include plumber(
    			$font-size: 1.75,
    			$leading-bottom: 0
    		);
    
    		margin-top: rhythm(1);
    		line-height: rhythm(2.5);
    	}
    
    	@include bp-up(sm) {
    		padding-right: rhythm(3);
    	}
    
    	@include bp-up(md) {
    		margin-top: rhythm(6.5);
    		padding-left: rem(52px);
    
    		p {
    			@include plumber(
    				$font-size: 3,
    				$line-height: 4,
    				$leading-bottom: 0,
    				$leading-top: 1
    			);
    		}
    
    		.meta {
    			margin-top: rhythm(0.5);
    			line-height: rhythm(3.5);
    		}
    	}
    }
    
    b,
    strong,
    legend {
    	font-family: $font-family-headings;
    	font-weight: normal;
    }
    
  • URL: /components/raw/typography/_typography.scss
  • Filesystem Path: src/configurations/typography/_typography.scss
  • Size: 4.9 KB

Typography

Blockquote

Blockquote icon can use any of the base colors. This is set by using class .colorname on the blockquote tag itself. If color is not set manually it will default to $color-black. For a list of color names, see Color component