File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1+ # App metadata
12APP_TITLE = STAC Manager
23APP_DESCRIPTION = Plugin based STAC editor
4+
5+ # Api variables
36REACT_APP_STAC_BROWSER =
4- REACT_APP_STAC_API =
7+ REACT_APP_STAC_API =
8+
9+ # # Theming
10+ # REACT_APP_THEME_PRIMARY_COLOR='#6A5ACD'
11+ # REACT_APP_THEME_SECONDARY_COLOR='#048A81'
Original file line number Diff line number Diff line change 11import { extendTheme } from '@chakra-ui/react' ;
22import { createColorPalette } from './color-palette' ;
3+ import { adjustHue , setLightness , setSaturation } from 'polished' ;
4+
5+ const primary = process . env . REACT_APP_THEME_PRIMARY_COLOR || '#6A5ACD' ;
6+ const secondary = process . env . REACT_APP_THEME_SECONDARY_COLOR || '#048A81' ;
7+ const base = setSaturation ( 0.32 , setLightness ( 0.16 , adjustHue ( 48 , primary ) ) ) ;
38
49const theme = {
510 colors : {
6- primary : createColorPalette ( '#6A5ACD' ) ,
7- secondary : createColorPalette ( '#048A81' ) ,
8- base : createColorPalette ( '#331A33' ) ,
11+ primary : createColorPalette ( primary ) ,
12+ secondary : createColorPalette ( secondary ) ,
13+ base : createColorPalette ( base ) ,
914 danger : createColorPalette ( '#FF5353' ) ,
1015 warning : createColorPalette ( '#FFC849' ) ,
1116 success : createColorPalette ( '#46D6CD' ) ,
You can’t perform that action at this time.
0 commit comments