Eslint and Prettier Setup
Eslint and Prettier Setup
Update .eslintrc.json
"extends": [
`
"next/core-web-vitals",
"next/typescript",
"standard",]
Update .eslintrc.json
"extends": [
"next/core-web-vitals",
"next/typescript",
"standard",
"plugin:tailwindcss/recommended",]
"extends": [
"next/core-web-vitals",
"next/typescript",
"standard",
"plugin:tailwindcss/recommended",
"prettier"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "explicit"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
// Styles/theme.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
.background-light850_dark100 {
.text-light900_dark100 {
.background-light900_dark200 {
.background-light900_dark300 {
.background-light800_darkgradient {
.background-light800_dark400 {
.background-light700_dark400 {
}
.background-light700_dark300 {
.background-light800_dark400 {
.background-light800_dark300 {
.text-dark100_light900 {
.text-dark200_light900 {
}
.text-dark200_light800 {
.text-dark300_light700 {
.text-dark400_light700 {
.text-dark500_light700 {
.text-dark500_light500 {
}
.text-dark300_light900 {
.text-dark400_light800 {
.text-light400_light500 {
.text-dark400_light500 {
.text-dark400_light900 {
}
.text-light400_light500 {
.light-border {
.light-border-2 {
.h1-bold {
.h2-bold {
.h2-semibold {
@apply text-[24px] font-semibold leading-[31.2px];
.h3-bold {
.h3-semibold {
.base-medium {
.base-semibold {
.base-bold {
@apply text-[18px] font-bold leading-[140%];
.paragraph-regular {
.paragraph-medium {
.paragraph-semibold {
.body-regular {
.body-medium {
.body-semibold {
.small-regular {
.small-medium {
.small-semibold {
.subtle-medium {
.subtle-regular {
.placeholder {
.invert-colors {
.shadow-light100_dark100 {
.shadow-light100_darknone {
}
.primary-gradient {
.dark-gradient {
background: linear-gradient(
232deg,
);
// global.css
@import url("../styles/theme.css");
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
font-family: "Inter", sans-serif;
@layer utilities {
.flex-center {
.flex-between {
.flex-start {
.card-wrapper {
.btn {
@apply bg-light-800 dark:bg-dark-300 !important;
.btn-secondary {
.btn-tertiary {
.markdown {
.primary-gradient {
.dark-gradient {
background: linear-gradient(
232deg,
);
.tab {
.no-focus {
.active-theme {
}
.light-gradient {
background: linear-gradient(
132deg,
);
.primary-text-gradient {
background-clip: text;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
.custom-scrollbar::-webkit-scrollbar {
width: 3px;
height: 3px;
border-radius: 2px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: #ffffff;
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #888;
border-radius: 50px;
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
background: #555;
/* Markdown Start */
.markdown a {
color: #1da1f2;
.markdown a,
code {
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
word-break: break-all;
word-break: break-word;
-ms-hyphens: auto;
-moz-hyphens: auto;
-webkit-hyphens: auto;
hyphens: auto;
padding: 2px;
}
.markdown pre {
display: grid;
width: 100%;
width: 100%;
display: block;
overflow-x: auto;
/* Markdown End */
/* Clerk */
.cl-internal-b3fm6y {
.hash-span {
margin-top: -140px;
padding-bottom: 140px;
display: block;
.no-scrollbar::-webkit-scrollbar {
display: none;
.no-scrollbar {
module.exports = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
theme: {
container: {
center: true,
padding: "2rem",
screens: {
"2xl": "1400px",
},
},
extend: {
colors: {
primary: {
500: "#FF7000",
100: "#FFF1E6",
},
dark: {
100: "#000000",
200: "#0F1117",
300: "#151821",
400: "#212734",
500: "#101012",
},
light: {
900: "#FFFFFF",
800: "#F4F6F8",
850: "#FDFDFD",
700: "#DCE3F1",
500: "#7B8EC8",
400: "#858EAD",
},
"accent-blue": "#1DA1F2",
},
fontFamily: {
inter: ["var(--font-inter)"],
spaceGrotesk: ["var(--font-spaceGrotesk)"],
},
boxShadow: {
"light-100":
"0px 12px 20px 0px rgba(184, 184, 184, 0.03), 0px 6px 12px 0px rgba(
},
backgroundImage: {
"auth-dark": "url('/assets/images/auth-dark.png')",
"auth-light": "url('/assets/images/auth-light.png')",
},
screens: {
xs: "420px",
},
keyframes: {
"accordion-down": {
from: { height: 0 },
},
"accordion-up": {
},
},
animation: {
},
},
},
};