tldraw/styles/stitches.config.ts

51 lines
929 B
TypeScript
Raw Normal View History

2021-05-09 21:22:25 +00:00
import { createCss, defaultThemeMap } from "@stitches/react"
2021-05-09 12:03:39 +00:00
2021-05-09 21:22:25 +00:00
const { styled, global, css, theme, getCssString } = createCss({
themeMap: {
...defaultThemeMap,
},
2021-05-09 12:03:39 +00:00
theme: {
colors: {},
space: {},
2021-05-09 21:22:25 +00:00
fontSizes: {
0: "10px",
1: "12px",
2: "13px",
3: "16px",
4: "18px",
},
fonts: {
ui: `"Recursive", system-ui, sans-serif`,
},
2021-05-09 12:03:39 +00:00
fontWeights: {},
lineHeights: {},
letterSpacings: {},
sizes: {},
borderWidths: {},
borderStyles: {},
radii: {},
shadows: {},
zIndices: {},
transitions: {},
},
})
const light = theme({})
const dark = theme({})
const globalStyles = global({
"*": { boxSizing: "border-box" },
2021-05-09 13:04:42 +00:00
"html, body": {
2021-05-09 21:22:25 +00:00
padding: "0px",
margin: "0px",
2021-05-09 13:04:42 +00:00
overscrollBehavior: "none",
2021-05-09 21:22:25 +00:00
fontFamily: "$ui",
fontSize: "$2",
2021-05-09 13:04:42 +00:00
},
2021-05-09 12:03:39 +00:00
})
export default styled
2021-05-09 21:22:25 +00:00
export { css, getCssString, globalStyles, light, dark }