Skip to content

Commit

Permalink
0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
phdduarte committed Jul 5, 2022
1 parent dea40fe commit 5655728
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nextime-nextjs-chakra-ui-start",
"version": "0.5.0",
"version": "0.5.1",
"private": true,
"license": "MIT",
"scripts": {
Expand Down
20 changes: 17 additions & 3 deletions theme/colors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
const colors = {
primary: '#4882F8',
'primary-light': '#85d7ff',
'primary-dark': '#2D426D'
'next-primary': '#4882F8',
'next-light': '#6688CD',
'next-green': '#85F2C9',
'next-dark': '#2D426D',
'next-gray': '#BDBDBD',
'next-dark-gray': '#2A2A2D',
dark: '#17171B',
'next-blue': {
100: '#00DAE9',
200: '#4882F8',
900: '#2D426D'
},
'next-red': {
200: '#EB4A68',
300: '#FF747C',
400: '#EE468E'
}
}

export default colors
6 changes: 6 additions & 0 deletions theme/fonts.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fonts = {
heading: 'Roboto',
body: 'Open Sans'
}

export default fonts
4 changes: 3 additions & 1 deletion theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import { extendTheme } from '@chakra-ui/react'
import colors from './colors'
import config from './config'
import styles from './styles'
import fonts from './fonts'

const theme = extendTheme({
colors,
config,
styles
styles,
fonts
})

export default theme
9 changes: 3 additions & 6 deletions theme/styles.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { mode } from '@chakra-ui/theme-tools'
import { Dict } from '@chakra-ui/utils'

const styles = {
global: (props: Dict<any>) => ({
global: () => ({
body: {
fontFamily: 'body',
color: mode('#17171B', 'whiteAlpha.900')(props),
bg: mode('white', '#17171B')(props),
color: 'whiteAlpha.900',
bg: 'dark',
lineHeight: 'base'
}
})
Expand Down

0 comments on commit 5655728

Please sign in to comment.