This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import Figure from './Figure' | |
import Gist from 'super-react-gist'; | |
const serializers = { | |
types: { | |
authorReference: ({node}) => <span>{node.author.name}</span>, | |
mainImage: Figure, | |
gist: ({node}) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Sample component from airbnb.com | |
<Box> | |
<Image rounded="md" src="https://bit.ly/2k1H1t6"/> | |
<Flex align="baseline" mt={2}> | |
<Badge variantColor="pink">Plus</Badge> | |
<Text | |
ml={2} | |
textTransform="uppercase" | |
fontSize="sm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChakraProvider, theme } from "@chakra-ui/core"; | |
import { merge } from "@chakra-ui/utils"; | |
import Head from "next/head"; | |
// 2. Extend the theme to include custom colors, fonts, etc. | |
const stackpalTheme = merge(theme, { | |
colors: { | |
brand: { | |
50: "#d8ffff", | |
100: "#acffff", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const signinButtonColor = useColorModeValue("brand.700", "brand.50"); | |
<Button | |
size="sm" | |
fontSize="xs" | |
bg="none" | |
color={signinButtonColor} | |
mt="2" | |
onClick={() => setIsForgottenPasswordMode(true)} | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ColorModeScript } from "@chakra-ui/core" | |
import Document, { Head, Html, Main, NextScript } from 'next/document' | |
class MyDocument extends Document { | |
render() { | |
return ( | |
<Html> | |
<Head /> | |
<body> | |
<ColorModeScript initialColorMode="light"></ColorModeScript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { colorMode, toggleColorMode } = useColorMode(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
purge: { | |
content: ["./Pages/**/*.razor", "./Shared/**/*.razor"], | |
}, | |
darkMode: false, // or 'media' or 'class' | |
theme: { | |
extend: {}, | |
}, | |
variants: { | |
extend: {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
plugins: [require("tailwindcss"), require("autoprefixer")], | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "blazortailwind", | |
"version": "1.0.0", | |
"description": "", | |
"main": "index", | |
"dependencies": { | |
"autoprefixer": "^10.0.2", | |
"postcss": "^8.1.8", | |
"postcss-cli": "^8.3.0", | |
"tailwindcss": "^2.0.1" |