Skip to content

alexdln/theming

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Theming

Demo for the second part of articles on theming - habr

About

There are 3 types of rendering in this repository

Each variant can be runned with the default dark or light mode.

Preparation for local testings

Clone repository

git clone https://github.com/vordgi/theming.git
cd theming

Install workspaces dependencies:

yarn install

SPA

Light mode

https://theming-spa.vorfolio.ru/

Test locally

Development mode

cross-env REACT_APP_THEME=light yarn dev:spa

Production mode

cross-env REACT_APP_THEME=light yarn build:spa
serve -s spa/build

Dark mode

https://theming-spa-dark.vorfolio.ru/

Test locally

Development mode

cross-env REACT_APP_THEME=dark yarn dev:spa

Production mode

cross-env REACT_APP_THEME=dark yarn build:spa
serve -s spa/build

SSG

Light mode

https://theming-ssg.vorfolio.ru/

Test locally

Development mode

cross-env NEXT_PUBLIC_THEME=light yarn dev:ssg

Production mode

cross-env NEXT_PUBLIC_THEME=light yarn build:ssg
yarn start:ssg

Dark mode

https://theming-ssg-dark.vorfolio.ru/

Test locally

Development mode

cross-env NEXT_PUBLIC_THEME=dark yarn dev:ssg

Production mode

cross-env NEXT_PUBLIC_THEME=dark yarn build:ssg
yarn start:ssg

SSR

Light mode

https://theming-ssr.vorfolio.ru/

Test locally

Development mode

cross-env NEXT_PUBLIC_THEME=light yarn dev:ssr

Production mode

cross-env NEXT_PUBLIC_THEME=light yarn build:ssr
cross-env NEXT_PUBLIC_THEME=light yarn start:ssr

Dark mode

https://theming-ssr-dark.vorfolio.ru/

Test locally

Development mode

cross-env NEXT_PUBLIC_THEME=dark yarn dev:ssr

Production mode

cross-env NEXT_PUBLIC_THEME=dark yarn build:ssr
cross-env NEXT_PUBLIC_THEME=dark yarn start:ssr

About

Demo for the second part of articles on theming - habr

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors