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:
13
components/Code/Code.tsx
Normal file
13
components/Code/Code.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user