To be published at appainter.net
-
Start development
gatsby develop
-
Open the source code and start editing!
Site runs development server at
http://localhost:8000
!
-
Tailwind CSS: The full power of Tailwind is at your fingertips. Style your components using twin.macro to add Tailwind classes to your project.
-
Emotion: Best-in-class CSS-in-JS support with Emotion. Write your own custom styled components with Emotion or use
twin.macro
inside your styled components to add Tailwind CSS classes alongside your styling. -
PostCSS: Use the flexibility of PostCSS to extend Tailwind's CSS or write your own CSS. Postcss-Preset-Env is enabled out-of-the box.
import tw from "twin.macro"
import React from "react"
const Heading = tw.h1`
text-2xl text-gray-500 uppercase
`
import tw, { styled } from "twin.macro"
import React from "react"
const Container = styled.div`
${tw`bg-gray-100 w-full`}
background-image: url(${background});
padding: 15px;
`
import tw, { styled } from "twin.macro"
import React from "react"
const Container = styled.div`
${tw`bg-gray-100 w-full`}
background-image: url(${background});
padding: 15px;
`
const Heading = tw.h1`
text-2xl text-gray-500 uppercase
`
import tw, { css } from "twin.macro"
import React from "react"
export default () => (
<div
css={css`
${tw`flex items-center justify-between px-4 py-3`}
`}
>
<h1>Hello, world!</h1>
<h2>I'm a flex item too!</h2>
</div>
)
- Gatsby Documentation - learn about Gatsby's features and API.