Skip to content

thaismr/Appainter-Gatsby-Home

Repository files navigation

Gatsby Gatsby Gatsby

Appainter Home Page

💄 App URL

To be published at appainter.net

🚀 Quick start

  1. Start development

    gatsby develop
  2. Open the source code and start editing!

    Site runs development server at http://localhost:8000!

✨ Features?

  • 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.

📦 Example components

Standalone Tailwind Classes

import tw from "twin.macro"
import React from "react"

const Heading = tw.h1`
  text-2xl text-gray-500 uppercase
`

Styled Components with Emotion

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;
`

Combined Standalone + Styled Components

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
`

CSS Prop to inline Tailwind Classes

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>
)

💫 Deploy

Deploy to Netlify

📚 Learn More

About

Home page for Appainter.net

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
GATSBY-LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published