Basic components for the project and stitches theme

This commit is contained in:
Valtteri Karesto
2021-11-19 15:24:59 +02:00
parent 8f97a824f5
commit 00cf9abae7
18 changed files with 1260 additions and 284 deletions

27
components/LogText.tsx Normal file
View File

@@ -0,0 +1,27 @@
import { styled } from "../stitches.config";
const Text = styled("span", {
fontFamily: "$monospace",
lineHeight: "$body",
color: "$text",
variants: {
variant: {
log: {
color: "$text",
},
warning: {
color: "$yellow11",
},
error: {
color: "$red11",
},
},
capitalize: {
true: {
textTransform: "capitalize",
},
},
},
});
export default Text;