@chakra-ui/core#theme JavaScript Examples
The following examples show how to use
@chakra-ui/core#theme.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Map.js From covid-alert with Apache License 2.0 | 7 votes |
Location = ({ lng, lat }) => (
<Marker longitude={lng} latitude={lat}>
<svg
height={MARKER_SIZE}
viewBox={`0 0 ${MARKER_SIZE} ${MARKER_SIZE}`}
style={{
fill: theme.colors.red["500"],
stroke: "none",
marginLeft: -MARKER_SIZE / 2,
marginTop: -MARKER_SIZE / 2
}}
>
<circle cx={MARKER_SIZE / 2} cy={MARKER_SIZE / 2} r={MARKER_SIZE / 2} />
</svg>
</Marker>
)
Example #2
Source File: customTheme.js From allay-fe with MIT License | 6 votes |
customTheme = {
...theme,
colors: {
...theme.colors,
brand: {
900: '#1a365d',
800: '#153e75',
700: '#2a69ac'
},
selected: {
500: '#259BF8'
},
unselected: {
500: '#FDFDFF'
}
},
fonts: {
body: 'Muli, sans-serif',
heading: 'Poppins, serif'
}
}
Example #3
Source File: index.js From covid-alert with Apache License 2.0 | 5 votes |
ReactDOM.render(
<ThemeProvider theme={theme}>
<CSSReset />
<App />
</ThemeProvider>,
document.getElementById('root')
);