Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import pragma from './pragma'
import Header from './header'
import Canvas from './canvas'
import Layout from './layout'
import SidePanel from './side-panel'
// blocks app theme
const appTheme = {
...systemTheme,
colors: {
...systemTheme.colors,
border: '#e1e6eb'
},
styles: {
...systemTheme.styles,
navlink: {
color: 'inherit',
textDecoration: 'none',
fontWeight: 600
}
},
buttons: {
primary: {
color: 'background',
bg: 'primary',
'&:hover': {
bg: 'text'
}
},
secondary: {
color: 'text',
import pragma from './pragma'
import Header from './header'
import Canvas from './canvas'
import Layout from './layout'
import SidePanel from './side-panel'
// blocks app theme
const appTheme = {
...systemTheme,
colors: {
...systemTheme.colors,
border: '#e1e6eb'
},
styles: {
...systemTheme.styles,
navlink: {
color: 'inherit',
textDecoration: 'none',
fontWeight: 600
}
},
buttons: {
primary: {
color: 'background',
bg: 'primary',
'&:hover': {
bg: 'text'
}
},
secondary: {
color: 'text',
const animationTransitions = ({isMobile, items}) =>
useTransition(items, null, {
from: {
opacity: 0,
height: 0,
innerHeight: 0,
transform: 'perspective(600px) rotateX(0deg)',
color: deep.colors.background
},
enter: [
{
opacity: 1,
height: isMobile ? 40 : 80,
innerHeight: isMobile ? 40 : 80,
lineHeight: isMobile ? 40 : 80,
color: deep.colors.primary
}
],
// leave: [{color: '#282828a8'}, {innerHeight: 0}, {opacity: 0, height: 0}],
update: [{color: deep.colors.secondary}]
});
const animationTransitions = ({isMobile, items}) =>
useTransition(items, null, {
from: {
opacity: 0,
height: 0,
innerHeight: 0,
transform: 'perspective(600px) rotateX(0deg)',
color: deep.colors.background
},
enter: [
{
opacity: 1,
height: isMobile ? 40 : 80,
innerHeight: isMobile ? 40 : 80,
lineHeight: isMobile ? 40 : 80,
color: deep.colors.primary
}
],
// leave: [{color: '#282828a8'}, {innerHeight: 0}, {opacity: 0, height: 0}],
update: [{color: deep.colors.secondary}]
});
import * as transforms from './transforms'
import * as queries from './queries'
import { useEditor } from './editor-context'
import pragma from './pragma'
import Header from './header'
import Canvas from './canvas'
import Layout from './layout'
import SidePanel from './side-panel'
// blocks app theme
const appTheme = {
...systemTheme,
colors: {
...systemTheme.colors,
border: '#e1e6eb'
},
styles: {
...systemTheme.styles,
navlink: {
color: 'inherit',
textDecoration: 'none',
fontWeight: 600
}
},
buttons: {
primary: {
color: 'background',
bg: 'primary',
'&:hover': {
bg: 'text'
import * as transforms from './transforms'
import * as queries from './queries'
import { useEditor } from './editor-context'
import pragma from './pragma'
import Header from './header'
import Canvas from './canvas'
import Layout from './layout'
import SidePanel from './side-panel'
// blocks app theme
const appTheme = {
...systemTheme,
colors: {
...systemTheme.colors,
border: '#e1e6eb'
},
styles: {
...systemTheme.styles,
navlink: {
color: 'inherit',
textDecoration: 'none',
fontWeight: 600
}
},
buttons: {
primary: {
color: 'background',
bg: 'primary',
'&:hover': {
bg: 'text'
import React, {memo} from 'react';
import {jsx, useThemeUI, ThemeProvider, Styled} from 'theme-ui';
import {deep} from '@theme-ui/presets';
// Some styles are easier to just declare in an actual styles file
import './styles.css';
const theme = {
...deep,
breakpoints: ['40em', '52em', '64em'],
fonts: {
text: 'Helvetica Neue',
heading: 'Passion One'
},
styles: {
...deep.styles,
root: {
height: '100%',
display: 'flex',
flex: '1 1 auto',
justifyContent: 'center',
},
Layout: {
flex: '1 1 auto',
display: 'flex',
},
Header: {
width: '100%',
},
Main: {
position: 'relative'
},
import 'typeface-righteous';
import 'typeface-oswald';
import { bulma } from '@theme-ui/presets';
export default {
...bulma,
colors: {
...bulma.colors,
white: '#fff',
background: '#2F2A2A', // '#f9fcff',
primary: 'black'
},
fonts: {
body: 'Oswald, system-ui, sans-serif',
heading: 'Righteous, cursive',
monospace: '"Roboto Mono", monospace',
},
};
cursor: `pointer`,
fontFamily: `body`,
fontWeight: `medium`,
transition: `all 0.3s ease-in-out`,
}
const sharedHeadingStyles = {
color: `heading`,
}
export default {
...tailwind,
initialColorMode: `light`,
useCustomProperties: true,
colors: {
...tailwind.colors,
primary: tailwind.colors.indigo[6],
shadow: tailwind.colors.indigo[2],
secondary: tailwind.colors.orange[5],
background: tailwind.colors.gray[1],
backgroundThemes: tailwind.colors.white,
textMuted: `#667488`,
text: tailwind.colors.gray[8],
grayDark: tailwind.colors.gray[9],
heading: tailwind.colors.gray[9],
dark: tailwind.colors.gray[7],
muted: tailwind.colors.gray[5],
light: tailwind.colors.gray[3],
model: {
one: tailwind.colors.gray[2],
two: tailwind.colors.gray[3],
three: tailwind.colors.gray[4],
fontSize: 1,
mb: 2,
},
}
export default {
...tailwind,
initialColorMode: `light`,
useCustomProperties: true,
colors: {
...tailwind.colors,
primary: tailwind.colors.purple[7],
secondary: `#5f6c80`,
toggleIcon: tailwind.colors.gray[8],
heading: tailwind.colors.black,
divide: tailwind.colors.gray[4],
modes: {
dark: {
text: tailwind.colors.gray[4],
primary: tailwind.colors.purple[5],
secondary: `#7f8ea3`,
toggleIcon: tailwind.colors.gray[4],
background: `#1A202C`,
heading: tailwind.colors.white,
divide: tailwind.colors.gray[8],
},
},
},
fonts: {
...tailwind.fonts,
body: `"IBM Plex Sans", -apple-system, BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"`,
},