【文件属性】:
文件名称:gatsby-tailwind-styled-components-storybook-starter:Tailwind CSS +样式化组件+ Gatsby的故事书入门
文件大小:241KB
文件格式:ZIP
更新时间:2021-05-17 05:07:24
JavaScript
:lipstick: 演示版
:sparkles: 动机
在使用 。
与开发。
使用扩展TailwindCSS。
。
开箱即用。
// More Tailwind examples https://tailwindcss.com/components/
import tw from 'tailwind.macro' ;
// Standalone Tailwind Classes
const Main = tw . div `
p-6 bg-gray-100 rounded-lg shadow-2xl
` ;
// Keep the power of styled-components
const Wrapper = styled . div `
${ tw `flex items-center justify-center flex-col h-screen` }
color: ${ ( { is