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
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly"> | |
<PropertyGroup> | |
<TargetFramework>net5.0</TargetFramework> | |
</PropertyGroup> | |
<Target Name="BuildCssDev" Condition="'$(Configuration)' == 'Debug'" BeforeTargets="Build"> | |
<Exec Command="npm run build-css-dev" /> | |
</Target> | |
<Target Name="BuildCssDev" Condition="'$(Configuration)' == 'Release'" BeforeTargets="Build"> | |
<Exec Command="npm run build-css-prod" /> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<title>Blazor Tailwind</title> | |
<base href="/" /> | |
<link href="css/tailwind/tailwind.min.css" rel="stylesheet" /> | |
</head> |
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" |
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
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
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
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
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 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 { 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", |
NewerOlder