A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
TypeScript agent-skillsaidsh-pluginhacktoberfestjavascriptmcp-serverreactresume-builderself-hostedtypescript
- creating a dynamic color palette - implementing actions section
Amruth Pillai89fa8236e8fa
diff --git a/src/components/builder/left/LeftNavbar.js b/src/components/builder/left/LeftNavbar.jsindex 1194e393a..8a1022e58 100644--- a/src/components/builder/left/LeftNavbar.js+++ b/src/components/builder/left/LeftNavbar.js@@ -14,7 +14,7 @@ const LeftNavbar = () => (<hr className="my-6" />- <div className="grid grid-cols-1 gap-4 text-secondary-dark">+ <div className="grid grid-cols-1 gap-4 text-primary-400">{sections.map((x) => (<SectionIconkey={x.id}diff --git a/src/components/builder/lists/List.module.css b/src/components/builder/lists/List.module.cssindex 99b9b9aa9..7c7875ac3 100644--- a/src/components/builder/lists/List.module.css+++ b/src/components/builder/lists/List.module.css@@ -1,3 +1,3 @@.list {- @apply flex flex-col border border-secondary rounded;+ @apply flex flex-col border border-primary-200 rounded;}diff --git a/src/components/builder/lists/ListItem.module.css b/src/components/builder/lists/ListItem.module.cssindex bd0ad0a85..ebf28fede 100644--- a/src/components/builder/lists/ListItem.module.css+++ b/src/components/builder/lists/ListItem.module.css@@ -1,8 +1,8 @@-.listItem {- @apply flex items-center justify-between border-t border-secondary px-6 py-5;+.list-item {+ @apply flex items-center justify-between border-t border-primary-200 px-6 py-5;}-.listItem:first-child {+.list-item:first-child {@apply border-t-0;}@@ -11,7 +11,7 @@@apply transition-opacity duration-200 ease-in-out;}-.listItem:hover .menu {+.list-item:hover .menu {@apply opacity-100;@apply transition-opacity duration-200 ease-in-out;}diff --git a/src/components/builder/right/RightNavbar.js b/src/components/builder/right/RightNavbar.jsindex 943431fbf..658fa2fac 100644--- a/src/components/builder/right/RightNavbar.js+++ b/src/components/builder/right/RightNavbar.js@@ -7,7 +7,7 @@ import SyncIndicator from './SyncIndicator';const RightNavbar = () => {return (<div className={styles.container}>- <div className="grid grid-cols-1 gap-4 text-secondary-dark">+ <div className="grid grid-cols-1 gap-4 text-primary-400">{sections.map((x) => (<SectionIconkey={x.id}diff --git a/src/components/builder/right/RightSidebar.js b/src/components/builder/right/RightSidebar.jsindex 4d0a9ac01..5dc9c3744 100644--- a/src/components/builder/right/RightSidebar.js+++ b/src/components/builder/right/RightSidebar.js@@ -7,6 +7,7 @@ import Colors from './sections/Colors';import Fonts from './sections/Fonts';import Layout from './sections/Layout';import Templates from './sections/Templates';+import Actions from './sections/Actions';const getComponent = (id) => {switch (id) {@@ -18,6 +19,8 @@ const getComponent = (id) => {return Colors;case 'fonts':return Fonts;+ case 'actions':+ return Actions;default:throw new Error();}diff --git a/src/components/builder/right/sections/Actions.js b/src/components/builder/right/sections/Actions.jsnew file mode 100644index 000000000..90750ea69--- /dev/null+++ b/src/components/builder/right/sections/Actions.js@@ -0,0 +1,83 @@+import React, { memo } from 'react';+import { MdImportExport } from 'react-icons/md';+import Heading from '../../../shared/Heading';+import Button from '../../../shared/Button';+import styles from './Actions.module.css';+import Input from '../../../shared/Input';++const Actions = () => {+ return (+ <section>+ <Heading>Actions</Heading>++ <div className={styles.container}>+ <h5>Import from Other Sources</h5>++ <p>+ You can import your information from various sources like JSON Resume+ or your LinkedIn profile to autofill most of the data for your resume.+ </p>++ <div className="mt-4 flex">+ <Button icon={MdImportExport} title="Import" />+ </div>+ </div>++ <div className={styles.container}>+ <h5>Export Your Resume</h5>++ <p>+ Export your resume as a PDF to share with recruiters or a JSON that+ you will be able to import back onto this app on another computer.+ </p>++ <div className="mt-4 flex">+ <Button title="Save as PDF" />+ <Button outline title="Export as JSON" className="ml-6" />+ </div>+ </div>++ <div className={styles.container}>+ <h5>Share Your Resume</h5>++ <p>+ The link below will be accessible publicly if you choose, and you can+ share the latest version of your resume to anyone in the world.+ </p>++ <div>+ <Input type="action" value="https://google.com" onClick={() => {}} />+ </div>+ </div>++ <div className={styles.container}>+ <h5>Load Demo Data</h5>++ <p>+ Unclear on what to do with a fresh blank page? Load some demo data to+ see how a resume should look and you can start editing from there.+ </p>++ <div className="mt-4 flex">+ <Button title="Load Demo Data" />+ </div>+ </div>++ <div className={styles.container}>+ <h5>Delete Account</h5>++ <p>+ If you would like to delete your account and erase all your resumes,+ it’s just one button away. Please be weary as this is an irreversible+ process.+ </p>++ <div className="mt-4 flex">+ <Button title="Delete Account" />+ </div>+ </div>+ </section>+ );+};++export default memo(Actions);diff --git a/src/components/builder/right/sections/Actions.module.css b/src/components/builder/right/sections/Actions.module.cssnew file mode 100644index 000000000..7943f4295--- /dev/null+++ b/src/components/builder/right/sections/Actions.module.css@@ -0,0 +1,11 @@+.container {+ @apply bg-primary-100 rounded grid gap-5 p-8;+}++.container h5 {+ @apply text-lg font-semibold;+}++.container p {+ @apply text-sm font-medium;+}\ No newline at end of filediff --git a/src/components/builder/right/sections/Fonts.js b/src/components/builder/right/sections/Fonts.jsindex b63315d60..a9ba71084 100644--- a/src/components/builder/right/sections/Fonts.js+++ b/src/components/builder/right/sections/Fonts.js@@ -1,9 +1,9 @@import cx from 'classnames';import React, { memo } from 'react';import { useDispatch, useSelector } from '../../../../contexts/ResumeContext';+import fonts from '../../../../data/fonts';import { handleKeyUp } from '../../../../utils';import Heading from '../../../shared/Heading';-import fonts from '../../../../data/fonts';import styles from './Fonts.module.css';const Fonts = () => {diff --git a/src/components/builder/right/sections/Fonts.module.css b/src/components/builder/right/sections/Fonts.module.cssindex 03f4f9ed9..4c7facddd 100644--- a/src/components/builder/right/sections/Fonts.module.css+++ b/src/components/builder/right/sections/Fonts.module.css@@ -1,19 +1,15 @@.font {- @apply px-6 py-6 text-xl font-medium truncate text-center bg-secondary rounded shadow;- @apply transition-colors duration-200 ease-in-out;+ @apply px-6 py-6 text-xl font-medium truncate text-center border border-transparent bg-primary-100 rounded;}.font:focus {- @apply outline-none bg-secondary-light;- @apply transition-colors duration-200 ease-in-out;+ @apply outline-none border border-primary-400;}.font:hover {- @apply bg-secondary-light;- @apply transition-colors duration-200 ease-in-out;+ @apply border border-primary-400;}.font.selected {- @apply outline-none bg-secondary-light;- @apply transition-colors duration-200 ease-in-out;+ @apply outline-none border border-primary-600;}\ No newline at end of filediff --git a/src/components/builder/right/sections/Layout.module.css b/src/components/builder/right/sections/Layout.module.cssindex a6a55734e..a8a575dd8 100644--- a/src/components/builder/right/sections/Layout.module.css+++ b/src/components/builder/right/sections/Layout.module.css@@ -1,7 +1,7 @@.droppable {- @apply p-6 bg-secondary-light col-span-1 rounded;+ @apply p-6 bg-primary-100 col-span-1 rounded;}.draggable {- @apply px-4 py-2 capitalize font-medium rounded bg-secondary;+ @apply px-4 py-2 capitalize font-medium rounded bg-primary-200;}diff --git a/src/components/builder/right/sections/Templates.js b/src/components/builder/right/sections/Templates.jsindex 7f86d0fd2..8d44b906a 100644--- a/src/components/builder/right/sections/Templates.js+++ b/src/components/builder/right/sections/Templates.js@@ -1,16 +1,19 @@import cx from 'classnames';-import React, { memo } from 'react';+import React, { memo, useContext } from 'react';import { useDispatch, useSelector } from '../../../../contexts/ResumeContext';import templates from '../../../../data/templates';import { handleKeyUp } from '../../../../utils';import Heading from '../../../shared/Heading';import styles from './Templates.module.css';+import ThemeContext from '../../../../contexts/ThemeContext';const Templates = () => {const dispatch = useDispatch();const template = useSelector('metadata.template');+ const { toggleDarkMode } = useContext(ThemeContext);const handleClick = (value) => {+ toggleDarkMode();dispatch({type: 'on_input',payload: {diff --git a/src/components/builder/right/sections/Templates.module.css b/src/components/builder/right/sections/Templates.module.cssindex e1cd3f7c2..2e0782853 100644--- a/src/components/builder/right/sections/Templates.module.css+++ b/src/components/builder/right/sections/Templates.module.css@@ -8,12 +8,12 @@.template img {height: 240px;- @apply w-full object-cover border-2 border-transparent rounded;+ @apply w-full object-cover border border-transparent rounded;@apply transition-opacity duration-200 ease-in-out;}.template.selected img {- @apply border-2 border-primary;+ @apply border-primary-600;}.template:hover img {diff --git a/src/components/dashboard/CreateResume.module.css b/src/components/dashboard/CreateResume.module.cssindex 83028b81a..29a2b9e07 100644--- a/src/components/dashboard/CreateResume.module.css+++ b/src/components/dashboard/CreateResume.module.css@@ -12,7 +12,7 @@.resume > .page {max-width: 184px;height: 260px;- @apply rounded absolute w-full bg-secondary-light;+ @apply rounded absolute w-full bg-primary-100 text-primary-400;@apply transition-opacity duration-200 ease-in-out;@apply cursor-pointer absolute flex justify-center items-center;}diff --git a/src/components/dashboard/ResumePreview.module.css b/src/components/dashboard/ResumePreview.module.cssindex 3c3faafad..cfed814a4 100644--- a/src/components/dashboard/ResumePreview.module.css+++ b/src/components/dashboard/ResumePreview.module.css@@ -19,7 +19,7 @@height: 260px;@apply rounded absolute w-full bg-black;@apply opacity-0 transition-opacity duration-200 ease-in-out;- @apply absolute text-gray-500 flex flex-col justify-evenly items-center;+ @apply absolute text-primary-500 flex flex-col justify-evenly items-center;}.resume > .page:hover {diff --git a/src/components/dashboard/TopNavbar.js b/src/components/dashboard/TopNavbar.jsindex 567040ffd..bb7f33028 100644--- a/src/components/dashboard/TopNavbar.js+++ b/src/components/dashboard/TopNavbar.js@@ -1,18 +1,10 @@-import { Link, navigate } from 'gatsby';-import React, { memo, useContext } from 'react';-import UserContext from '../../contexts/UserContext';+import { Link } from 'gatsby';+import React, { memo } from 'react';import Avatar from '../shared/Avatar';import Logo from '../shared/Logo';import styles from './TopNavbar.module.css';const TopNavbar = () => {- const { logout } = useContext(UserContext);-- const handleLogout = async () => {- await logout();- navigate('/');- };-return (<div className={styles.navbar}><div className="container">@@ -20,16 +12,7 @@ const TopNavbar = () => {<Logo size="40px" /></Link>- <div className="flex items-center">- <button- className="text-primary font-semibold focus:outline-none hover:underline"- onClick={handleLogout}- >- Logout- </button>-- <Avatar className="ml-8" />- </div>+ <Avatar className="ml-8" /></div></div>);diff --git a/src/components/landing/Hero.js b/src/components/landing/Hero.jsindex dc2d497c9..9b8554995 100644--- a/src/components/landing/Hero.js+++ b/src/components/landing/Hero.js@@ -22,7 +22,7 @@ const Hero = () => {<div className="ml-12"><h1 className="text-5xl font-bold">Reactive Resume</h1>- <h2 className="mt-1 text-3xl text-gray-500">+ <h2 className="mt-1 text-3xl text-primary-500">A free and open-source resume builder.</h2>diff --git a/src/components/shared/Avatar.js b/src/components/shared/Avatar.jsindex 863defbc0..3036e670b 100644--- a/src/components/shared/Avatar.js+++ b/src/components/shared/Avatar.js@@ -11,9 +11,9 @@ const Avatar = ({ className }) => {return (<img- className={cx(styles.container, className)}src={photoURL}alt={user.displayName}+ className={cx(styles.container, className)}/>);};diff --git a/src/components/shared/Button.js b/src/components/shared/Button.jsindex be4d98b53..1be02e032 100644--- a/src/components/shared/Button.js+++ b/src/components/shared/Button.js@@ -1,21 +1,20 @@-import classNames from 'classnames';+import cx from 'classnames';import React, { memo } from 'react';import { handleKeyUp } from '../../utils';import styles from './Button.module.css';const Button = ({ icon, title, onClick, outline, className, isLoading }) => {const Icon = icon;- const classes = classNames(styles.container, className, {- [styles.outline]: outline,- });return (<button- className={classes}onKeyUp={(e) => handleKeyUp(e, onClick)}onClick={isLoading ? undefined : onClick}+ className={cx(styles.container, className, {+ [styles.outline]: outline,+ })}>- {icon && <Icon size="14" className="mr-2" />}+ {icon && <Icon size="14" className="mr-3" />}{isLoading ? 'Loading...' : title}</button>);diff --git a/src/components/shared/Button.module.css b/src/components/shared/Button.module.cssindex 616e95884..0d6132048 100644--- a/src/components/shared/Button.module.css+++ b/src/components/shared/Button.module.css@@ -1,16 +1,31 @@.container {- padding: 6px 24px;- @apply flex items-center cursor-pointer inline-flex rounded font-semibold bg-primary border border-primary text-inverse;+ font-size: 11px;+ padding: 6px 18px;+ @apply relative flex items-center cursor-pointer rounded font-semibold bg-primary-900 border border-primary-900 text-primary-50;+ @apply transition-colors duration-200 ease-in-out;}.container:hover {- @apply bg-primary-dark;+ @apply bg-primary-700 border-primary-700;+ @apply transition-colors duration-200 ease-in-out;+}++.container:active {+ top: 1px;+}++.container:focus {+ @apply outline-none;}.container.outline {- @apply border border-primary bg-inverse text-primary;+ @apply border border-primary-900 bg-transparent text-primary-900;}.container.outline:hover {- @apply bg-inverse-dark;+ @apply bg-primary-200;+}++.container.outline:focus {+ @apply outline-none;}diff --git a/src/components/shared/Input.js b/src/components/shared/Input.jsindex 2e48e040e..512ded059 100644--- a/src/components/shared/Input.js+++ b/src/components/shared/Input.js@@ -2,8 +2,9 @@ import cx from 'classnames';import { isFunction } from 'lodash';import React, { memo, useEffect, useState } from 'react';import { FaAngleDown } from 'react-icons/fa';-import { MdClose } from 'react-icons/md';+import { MdClose, MdOpenInNew } from 'react-icons/md';import { v4 as uuidv4 } from 'uuid';+import { IoIosCopy } from 'react-icons/io';import { useDispatch, useSelector } from '../../contexts/ResumeContext';import { handleKeyUp } from '../../utils';import styles from './Input.module.css';@@ -17,12 +18,11 @@ const Input = ({onBlur,options,touched,+ onClick,onChange,className,isRequired,placeholder,- onDeleteItem,- showDeleteItemButton,type = 'text',}) => {const [uuid, setUuid] = useState(null);@@ -68,12 +68,12 @@ const Input = ({placeholder={placeholder}/>- {showDeleteItemButton && isFunction(onDeleteItem) && (+ {isFunction(onClick) && (<MdClosesize="16px"tabIndex="0"- onClick={onDeleteItem}- onKeyUp={(e) => handleKeyUp(e, onDeleteItem)}+ onClick={onClick}+ onKeyUp={(e) => handleKeyUp(e, onClick)}className="absolute right-0 cursor-pointer opacity-50 hover:opacity-75 mx-4"/>)}@@ -143,6 +143,21 @@ const Input = ({</div>)}+ {type === 'action' && (+ <div className={cx('relative grid items-center', styles.readOnly)}>+ <input readOnly id={uuid} name={name} type="text" value={value} />++ <div+ tabIndex="0"+ role="button"+ onClick={onClick}+ onKeyUp={(e) => handleKeyUp(e, onClick)}+ >+ <MdOpenInNew size="16px" />+ </div>+ </div>+ )}+{error && touched && <p>{error}</p>}</label></div>diff --git a/src/components/shared/Input.module.css b/src/components/shared/Input.module.cssindex dfd09688c..787877151 100644--- a/src/components/shared/Input.module.css+++ b/src/components/shared/Input.module.css@@ -5,25 +5,25 @@.container label input,.container label textarea,.container label select {- @apply py-3 px-4 rounded bg-secondary text-primary border border-secondary appearance-none;+ @apply py-3 px-4 rounded text-primary-900 bg-primary-200 border border-transparent appearance-none;}.container label input::placeholder,.container label textarea::placeholder,.container label select::placeholder {- @apply text-primary opacity-50;+ @apply opacity-50;}.container label input:hover,.container label textarea:hover,.container label select:hover {- @apply outline-none border-secondary-dark;+ @apply outline-none border-primary-400;}.container label input:focus,.container label textarea:focus,.container label select:focus {- @apply outline-none border-primary;+ @apply outline-none border-primary-600;}.container label > p {@@ -32,9 +32,30 @@.circle {left: 14px;- @apply absolute bg-white rounded-full w-6 h-6;+ @apply absolute bg-primary-900 rounded-full w-6 h-6;}div.circle + input {padding-left: 44px;-}\ No newline at end of file+}++.read-only input:hover {+ cursor: default;+ border-color: transparent !important;+}++.read-only input:focus {+ border-color: transparent !important;+}++.read-only div {+ @apply absolute rounded-r top-0 right-0 bottom-0 w-20 flex justify-center items-center bg-primary-50;+}++.read-only div:hover {+ @apply bg-primary-100;+}++.read-only div:focus {+ @apply outline-none;+}diff --git a/src/components/shared/InputArray.js b/src/components/shared/InputArray.jsindex 2e1a8753a..7e27ea85e 100644--- a/src/components/shared/InputArray.js+++ b/src/components/shared/InputArray.js@@ -21,8 +21,7 @@ const InputArray = ({ formik, schema, helpers, label, path, placeholder }) => {{({ field, meta }) => (<InputclassName="my-1"- showDeleteItemButton- onDeleteItem={() => helpers.remove(i)}+ onClick={() => helpers.remove(i)}{...field}{...meta}/>diff --git a/src/components/shared/PhotoUpload.module.css b/src/components/shared/PhotoUpload.module.cssindex 7845c5acb..66ca9129e 100644--- a/src/components/shared/PhotoUpload.module.css+++ b/src/components/shared/PhotoUpload.module.css@@ -2,7 +2,7 @@width: 60px;height: 60px;flex: 0 0 60px;- @apply flex items-center justify-center cursor-pointer bg-secondary text-secondary-dark rounded-full;+ @apply flex items-center justify-center cursor-pointer bg-primary-200 text-primary-500 rounded-full;@apply transition-opacity duration-200 ease-in-out;}diff --git a/src/components/shared/SectionIcon.js b/src/components/shared/SectionIcon.jsindex 6c717d3c8..a77967648 100644--- a/src/components/shared/SectionIcon.js+++ b/src/components/shared/SectionIcon.js@@ -18,8 +18,8 @@ const SectionIcon = ({ section, containerId, tooltipPlacement }) => {offset={-18}duration={500}containerId={containerId}- activeClass="text-primary"- className="py-2 cursor-pointer focus:outline-none focus:text-primary hover:text-primary animate__animated animate__fadeIn"+ activeClass="text-primary-900"+ className="py-2 cursor-pointer focus:outline-none focus:text-primary-900 hover:text-primary-900"><Icon size="18px" /></Link>diff --git a/src/contexts/ThemeContext.js b/src/contexts/ThemeContext.jsindex 7e2f611b1..7398b39de 100644--- a/src/contexts/ThemeContext.js+++ b/src/contexts/ThemeContext.js@@ -2,22 +2,28 @@ import React, { createContext, memo, useEffect, useState } from 'react';const COLOR_CONFIG = {light: {- '--color-primary': '#444',- '--color-primary-dark': '#333',- '--color-inverse': '#fff',- '--color-inverse-dark': '#f5f5f5',- '--color-secondary-light': '#f7fafc',- '--color-secondary': '#edf2f7',- '--color-secondary-dark': '#718096',+ '--color-primary-50': '#FFFFFF',+ '--color-primary-100': '#FAFAFA',+ '--color-primary-200': '#F1F0F0',+ '--color-primary-300': '#D8D2CD',+ '--color-primary-400': '#CDC4BA',+ '--color-primary-500': '#ABA59D',+ '--color-primary-600': '#8A8680',+ '--color-primary-700': '#686663',+ '--color-primary-800': '#484745',+ '--color-primary-900': '#282727',},dark: {- '--color-primary': '#f5f5f5',- '--color-primary-dark': '#eeeeee',- '--color-inverse': '#212121',- '--color-inverse-dark': '#181818',- '--color-secondary-light': '#2c2c2c',- '--color-secondary': '#444',- '--color-secondary-dark': '#888',+ '--color-primary-50': '#212121',+ '--color-primary-100': '#2c2c2c',+ '--color-primary-200': '#424242',+ '--color-primary-300': '#616161',+ '--color-primary-400': '#757575',+ '--color-primary-500': '#9e9e9e',+ '--color-primary-600': '#bdbdbd',+ '--color-primary-700': '#e0e0e0',+ '--color-primary-800': '#eeeeee',+ '--color-primary-900': '#f5f5f5',},};diff --git a/src/data/rightSections.js b/src/data/rightSections.jsindex 3a9b66f65..a699c3fe4 100644--- a/src/data/rightSections.js+++ b/src/data/rightSections.js@@ -1,8 +1,9 @@import {MdColorLens,MdDashboard,- MdStyle,MdFontDownload,+ MdImportExport,+ MdStyle,} from 'react-icons/md';export default [@@ -26,4 +27,9 @@ export default [name: 'Fonts',icon: MdFontDownload,},+ {+ id: 'actions',+ name: 'Actions',+ icon: MdImportExport,+ },];diff --git a/src/modals/BaseModal.module.css b/src/modals/BaseModal.module.cssindex 7a0d809f0..848826ddb 100644--- a/src/modals/BaseModal.module.css+++ b/src/modals/BaseModal.module.css@@ -4,7 +4,7 @@.modal {width: min(600px, calc(100vw - 100px));- @apply p-8 rounded bg-inverse text-primary outline-none;+ @apply p-8 rounded bg-primary-50 outline-none;}.modal .title {diff --git a/src/pages/app/builder.js b/src/pages/app/builder.jsindex 90656636d..be29ee8a1 100644--- a/src/pages/app/builder.js+++ b/src/pages/app/builder.js@@ -40,7 +40,7 @@ const Builder = ({ id }) => {<div className="col-span-3"><LeftSidebar /></div>- <div className="h-screen overflow-scroll col-span-5 bg-inverse-dark grid items-center justify-center">+ <div className="h-screen overflow-scroll col-span-5 bg-primary-100 grid items-center justify-center"><Artboard /></div><div className="col-span-3">diff --git a/src/pages/index.js b/src/pages/index.jsindex da8e7dbef..7d018d42f 100644--- a/src/pages/index.js+++ b/src/pages/index.js@@ -49,8 +49,10 @@ const Home = () => {</div><footer className="my-24">- <p className="font-medium text-gray-500">- Licensed under <a href="/">MIT</a> | Made with love by{' '}+ <p className="text-primary-500 opacity-75">+ Licensed under <a href="/">MIT</a>+ <br />+ Made with love by{' '}<a href="https://www.amruthpillai.com/">Amruth Pillai</a></p></footer>diff --git a/src/styles/colors.css b/src/styles/colors.cssindex 4a404383f..df0cd48db 100644--- a/src/styles/colors.css+++ b/src/styles/colors.css@@ -1,9 +1,12 @@:root {- --color-primary: #444;- --color-primary-dark: #333;- --color-inverse: #fff;- --color-inverse-dark: #f5f5f5;- --color-secondary-light: #f7fafc;- --color-secondary: #e2e8f0;- --color-secondary-dark: #a0aec0;-}+ --color-primary-50: #FFFFFF;+ --color-primary-100: #FAFAFA;+ --color-primary-200: #F1F0F0;+ --color-primary-300: #D8D2CD;+ --color-primary-400: #CDC4BA;+ --color-primary-500: #ABA59D;+ --color-primary-600: #8A8680;+ --color-primary-700: #686663;+ --color-primary-800: #484745;+ --color-primary-900: #282727;+}\ No newline at end of filediff --git a/src/styles/global.css b/src/styles/global.cssindex 537672cb1..d35d5d974 100644--- a/src/styles/global.css+++ b/src/styles/global.css@@ -1,12 +1,9 @@-:root {- @apply transition-colors duration-200 ease-in-out;-}-html,body {font-size: 12px;font-family: "Montserrat", sans-serif;- @apply text-primary bg-inverse;+ @apply text-primary-900 bg-primary-50;+ @apply transition-colors duration-200 ease-in-out;}p {@@ -22,7 +19,7 @@ a:hover {}hr {- @apply w-full border-secondary h-1;+ @apply w-full border-primary-200 h-1;}section {@@ -34,15 +31,7 @@ label {}label > span:first-child {- @apply mb-1 text-secondary-dark font-semibold tracking-wide text-xs uppercase;-}--#artboard {- color: #444;-}--#artboard hr {- border-color: #eee;+ @apply mb-1 text-primary-500 font-semibold tracking-wide text-xs uppercase;}.MuiTooltip-tooltip {diff --git a/src/styles/toastify.css b/src/styles/toastify.cssindex 1fcd4537a..174e01a95 100644--- a/src/styles/toastify.css+++ b/src/styles/toastify.css@@ -5,7 +5,7 @@}.Toastify__toast--default {- @apply bg-primary text-inverse;+ @apply bg-primary-900 text-primary-50;}.Toastify__toast-body {diff --git a/tailwind.config.js b/tailwind.config.jsindex 08c502146..253dd21a0 100644--- a/tailwind.config.js+++ b/tailwind.config.js@@ -1,5 +1,5 @@module.exports = {- purge: ['./src/**/*.js', './src/**/*.jsx', './src/**/*.ts', './src/**/*.tsx'],+ purge: ['./src/**/*.js'],theme: {container: {center: true,@@ -9,13 +9,16 @@ module.exports = {'context-menu': 'context-menu',},colors: {- primary: 'var(--color-primary)',- 'primary-dark': 'var(--color-primary-dark)',- inverse: 'var(--color-inverse)',- 'inverse-dark': 'var(--color-inverse-dark)',- 'secondary-light': 'var(--color-secondary-light)',- secondary: 'var(--color-secondary)',- 'secondary-dark': 'var(--color-secondary-dark)',+ 'primary-50': 'var(--color-primary-50)',+ 'primary-100': 'var(--color-primary-100)',+ 'primary-200': 'var(--color-primary-200)',+ 'primary-300': 'var(--color-primary-300)',+ 'primary-400': 'var(--color-primary-400)',+ 'primary-500': 'var(--color-primary-500)',+ 'primary-600': 'var(--color-primary-600)',+ 'primary-700': 'var(--color-primary-700)',+ 'primary-800': 'var(--color-primary-800)',+ 'primary-900': 'var(--color-primary-900)',},},},