1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-16 03:30:50 -05:00

separate out inline code and code block components

This commit is contained in:
2022-04-11 19:05:01 -04:00
parent f684babb95
commit 8641b6a90e
14 changed files with 290 additions and 264 deletions

13
components/Code/Code.tsx Normal file
View File

@@ -0,0 +1,13 @@
import { styled } from "../../lib/styles/stitches.config";
const Code = styled("code", {
fontSize: "0.925em",
backgroundColor: "$codeBackground",
border: "1px solid $kindaLight",
borderRadius: "$rounded",
// light-dark theme switch fading
transition: "background 0.25s ease, border 0.25s ease",
});
export default Code;