├── .gitignore
├── README.md
├── package.json
├── public
├── favicon.ico
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── AddComponentModal.tsx
├── App.css
├── App.test.tsx
├── App.tsx
├── ComponentItem.tsx
├── Editor.tsx
├── FontLoaderModal.tsx
├── MotionBox.tsx
├── PaletteModal.tsx
├── ThemeManager.ts
├── evaluate.ts
├── fonts.ts
├── index.css
├── index.tsx
├── logo.svg
├── react-app-env.d.ts
├── reportWebVitals.ts
├── setupTests.ts
├── types.ts
└── useTheme.tsx
├── tsconfig.json
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Chakra Theme Tool
2 |
3 | This is a tool to help build chakra-ui themes. It's designed to let you see all of your themed components in one place and to let you iterate on your theme in a holistic way. Chakra theme tool lets you easily experiment with global and component-level styles side-by-side.
4 |
5 | Check it out at [https://malerba118.github.io/chakra-theme-tool/](https://malerba118.github.io/chakra-theme-tool/)
6 |
7 | 
8 |
9 | # Getting Started with Create React App
10 |
11 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
12 |
13 | ## Available Scripts
14 |
15 | In the project directory, you can run:
16 |
17 | ### `yarn start`
18 |
19 | Runs the app in the development mode.\
20 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
21 |
22 | The page will reload if you make edits.\
23 | You will also see any lint errors in the console.
24 |
25 | ### `yarn test`
26 |
27 | Launches the test runner in the interactive watch mode.\
28 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
29 |
30 | ### `yarn build`
31 |
32 | Builds the app for production to the `build` folder.\
33 | It correctly bundles React in production mode and optimizes the build for the best performance.
34 |
35 | The build is minified and the filenames include the hashes.\
36 | Your app is ready to be deployed!
37 |
38 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
39 |
40 | ### `yarn eject`
41 |
42 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
43 |
44 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
45 |
46 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
47 |
48 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
49 |
50 | ## Learn More
51 |
52 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
53 |
54 | To learn React, check out the [React documentation](https://reactjs.org/).
55 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chakra-theme-tool",
3 | "version": "0.1.0",
4 | "private": true,
5 | "homepage": "https://malerba118.github.io/chakra-theme-tool",
6 | "dependencies": {
7 | "@babel/standalone": "^7.13.14",
8 | "@chakra-ui/react": "^1.4.2",
9 | "@emotion/react": "^11",
10 | "@emotion/styled": "^11",
11 | "@testing-library/jest-dom": "^5.11.4",
12 | "@testing-library/react": "^11.1.0",
13 | "@testing-library/user-event": "^12.1.10",
14 | "@types/jest": "^26.0.15",
15 | "@types/node": "^12.0.0",
16 | "@types/react": "^17.0.0",
17 | "@types/react-dom": "^17.0.0",
18 | "axios": "^0.21.1",
19 | "chroma-js": "^2.1.1",
20 | "codemirror": "^5.60.0",
21 | "focus-visible": "^5.2.0",
22 | "framer-motion": "^4",
23 | "javascript-stringify": "^2.1.0",
24 | "js-file-download": "^0.4.12",
25 | "js-to-string": "^0.4.8",
26 | "jsx-to-string": "^1.4.0",
27 | "lodash": "^4.17.21",
28 | "mobx": "^6.1.8",
29 | "mobx-react-lite": "^3.2.0",
30 | "react": "^17.0.2",
31 | "react-codemirror2": "^7.2.1",
32 | "react-color": "^2.19.3",
33 | "react-dom": "^17.0.2",
34 | "react-error-boundary": "^3.1.1",
35 | "react-icons": "^4.2.0",
36 | "react-scripts": "4.0.3",
37 | "safer-eval": "^1.3.6",
38 | "typescript": "^4.1.2",
39 | "web-vitals": "^1.0.1",
40 | "webfontloader": "^1.6.28"
41 | },
42 | "scripts": {
43 | "start": "react-scripts start",
44 | "build": "react-scripts build",
45 | "test": "react-scripts test",
46 | "eject": "react-scripts eject",
47 | "predeploy": "npm run build",
48 | "deploy": "gh-pages -d build"
49 | },
50 | "eslintConfig": {
51 | "extends": [
52 | "react-app",
53 | "react-app/jest"
54 | ]
55 | },
56 | "browserslist": {
57 | "production": [
58 | ">0.2%",
59 | "not dead",
60 | "not op_mini all"
61 | ],
62 | "development": [
63 | "last 1 chrome version",
64 | "last 1 firefox version",
65 | "last 1 safari version"
66 | ]
67 | },
68 | "devDependencies": {
69 | "@types/babel__standalone": "^7.1.3",
70 | "@types/chroma-js": "^2.1.3",
71 | "@types/codemirror": "^0.0.108",
72 | "@types/lodash": "^4.14.168",
73 | "@types/react-color": "^3.0.4",
74 | "@types/webfontloader": "^1.6.32",
75 | "gh-pages": "^3.1.0"
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/malerba118/chakra-theme-tool/0cc846ac9a502d4521259c8cc4c6ecac2defd115/public/favicon.ico
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |