How to use the linaria/react.styled.h1 function in linaria

To help you get started, we’ve selected a few linaria examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github callstack / linaria / website / src / components / Hero.js View on Github external
const LeftColumn = styled.div`
  text-align: center;
  flex: 3;

  ${media.large} {
    text-align: left;
  }
`;

const RightColumn = styled.div`
  text-align: center;
  flex: 2;
  z-index: 1;
`;

const Heading = styled.h1`
  font-weight: 700;
  font-size: 56px;
`;

const Description = styled.p`
  margin-bottom: 60px;
`;

const Button = styled.button`
  display: inline-block;
  appearance: none;
  background: none;
  border: 0;
  padding: 16px 24px;
  color: inherit;
  font-size: inherit;
github callstack / component-docs / src / templates / Documentation.js View on Github external
import * as React from 'react';
import { styled } from 'linaria/react';
import Content from './Content';
import Markdown from './Markdown';
import EditButton from './EditButton';
import type { TypeAnnotation, Docs } from '../types';

type Props = {
  name: string,
  info: Docs,
  filepath: string,
  github?: string,
};

const Title = styled.h1`
  margin-top: 0;
`;

const MarkdownContent = styled(Markdown)`
  p:first-of-type {
    margin-top: 0;
  }

  p:last-of-type {
    margin-bottom: 0;
  }
`;

const PropInfo = styled.div`
  margin: 14px 0;
`;
github kitten / didsmoosh / src / components / HeroLayout / FixedBackground.js View on Github external
z-index: 1;

  @media (max-width: 768px) {
    left: 1rem;
    top: 1rem;
    right: 1rem;
  }
`;

const SideContent = styled.div`
  z-index: 2;
  transform: rotateX(-8deg) rotateY(0deg) translateZ(2.5rem);
  transform-origin: 50% 50% 0px;
`;

const Title = styled.h1`
  font-size: 1.5em;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.26em;
  letter-spacing: 0.1em;
`;

const Subtitle = styled.h2`
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.333em;
  line-height: 1.5em;
  margin-top: 1em;
  letter-spacing: 0.044em;
`;