1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-17 19:05:32 -04:00

stitches config

This commit is contained in:
2022-07-06 03:02:09 -04:00
parent c69a593d61
commit 0f38ab4f0a
8 changed files with 24 additions and 28 deletions

View File

@@ -48,9 +48,21 @@ export const { styled, css, getCssText, globalCss, keyframes, createTheme, theme
codeDeletion: "#ff1b1b",
},
borderWidths: {
// underline height is based on link's font size
underline: "calc(0.1em + 0.05rem)",
},
radii: {
rounded: "0.65em",
},
transitions: {
// light <-> dark theme fade duration
fade: "0.25s ease",
// fancy underline animation
linkHover: "0.2s ease-in-out",
},
},
media: {
@@ -113,11 +125,9 @@ export const globalStyles = globalCss(
"@font-face": [...Inter.family, ...RobotoMono.family],
body: {
backgroundColor: "$backgroundInner",
fontFamily: "$sans",
// light-dark theme switch fading
transition: "background 0.25s ease",
backgroundColor: "$backgroundInner",
transition: "background $fade",
},
"code, kbd, samp, pre": {