font updated

This commit is contained in:
Cypro Freelance 2024-06-24 23:05:35 +05:30
parent ba26969e5a
commit 3d0b8cef22
3 changed files with 222 additions and 203 deletions

View file

@ -1,262 +1,270 @@
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap");
@tailwind base; @tailwind base;
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
@layer base { html {
:root { height: 100%;
--svg-fill: white; width: 100%;
--svg-background: black; font-family: "Poppins" sans-serif;
--background: 0 0% 100%; }
--foreground: 240 10% 3.9%;
--card: 0 0% 100%;
--card-foreground: 240 10% 3.9%;
--popover: 0 0% 100%;
--popover-foreground: 240 10% 3.9%;
--primary: 142.1 76.2% 36.3%;
--primary-foreground: 355.7 100% 97.3%;
--secondary: 240 4.8% 95.9%;
--secondary-foreground: 240 5.9% 10%;
--muted: 240 4.8% 95.9%;
--muted-foreground: 240 3.8% 46.1%;
--accent: 240 4.8% 95.9%;
--accent-foreground: 240 5.9% 10%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 0 0% 98%;
--border: 240 5.9% 90%;
--input: 240 5.9% 90%;
--ring: 142.1 76.2% 36.3%;
--radius: 0.5rem;
}
.dark { @layer base {
--svg-fill: black; :root {
--svg-background: white; --svg-fill: white;
--background: 20 14.3% 4.1%; --svg-background: black;
--foreground: 0 0% 95%; --background: 0 0% 100%;
--card: 24 9.8% 10%; --foreground: 240 10% 3.9%;
--card-foreground: 0 0% 95%; --card: 0 0% 100%;
--popover: 0 0% 9%; --card-foreground: 240 10% 3.9%;
--popover-foreground: 0 0% 95%; --popover: 0 0% 100%;
--primary: 142.1 70.6% 45.3%; --popover-foreground: 240 10% 3.9%;
--primary-foreground: 144.9 80.4% 10%; --primary: 142.1 76.2% 36.3%;
--secondary: 240 3.7% 15.9%; --primary-foreground: 355.7 100% 97.3%;
--secondary-foreground: 0 0% 98%; --secondary: 240 4.8% 95.9%;
--muted: 0 0% 15%; --secondary-foreground: 240 5.9% 10%;
--muted-foreground: 240 5% 64.9%; --muted: 240 4.8% 95.9%;
--accent: 12 6.5% 15.1%; --muted-foreground: 240 3.8% 46.1%;
--accent-foreground: 0 0% 98%; --accent: 240 4.8% 95.9%;
--destructive: 0 62.8% 30.6%; --accent-foreground: 240 5.9% 10%;
--destructive-foreground: 0 85.7% 97.3%; --destructive: 0 84.2% 60.2%;
--border: 240 3.7% 15.9%; --destructive-foreground: 0 0% 98%;
--input: 240 3.7% 15.9%; --border: 240 5.9% 90%;
--ring: 142.4 71.8% 29.2%; --input: 240 5.9% 90%;
} --ring: 142.1 76.2% 36.3%;
--radius: 0.5rem;
}
.dark {
--svg-fill: black;
--svg-background: white;
--background: 20 14.3% 4.1%;
--foreground: 0 0% 95%;
--card: 24 9.8% 10%;
--card-foreground: 0 0% 95%;
--popover: 0 0% 9%;
--popover-foreground: 0 0% 95%;
--primary: 142.1 70.6% 45.3%;
--primary-foreground: 144.9 80.4% 10%;
--secondary: 240 3.7% 15.9%;
--secondary-foreground: 0 0% 98%;
--muted: 0 0% 15%;
--muted-foreground: 240 5% 64.9%;
--accent: 12 6.5% 15.1%;
--accent-foreground: 0 0% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
--border: 240 3.7% 15.9%;
--input: 240 3.7% 15.9%;
--ring: 142.4 71.8% 29.2%;
}
} }
* { * {
list-style: none; list-style: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
scroll-behavior: smooth; scroll-behavior: smooth;
} }
html { html {
overflow-x: hidden; overflow-x: hidden;
} }
body { body {
font-family: var(--font-poppins); font-family: var(--font-poppins);
user-select: text; user-select: text;
overflow-x: clip; overflow-x: clip;
} }
@layer base { @layer base {
* { * {
@apply border-border; @apply border-border;
} }
body { body {
@apply bg-background text-foreground w-full h-full; @apply bg-background text-foreground w-full h-full;
} }
} }
@layer utilities { @layer utilities {
.wrapper { .wrapper {
@apply max-w-screen-xl lg:mx-auto p-5 md:px-10 xl:px-0 w-full; @apply max-w-screen-xl lg:mx-auto p-5 md:px-10 xl:px-0 w-full;
} }
.flex-center { .flex-center {
@apply flex justify-center items-center; @apply flex justify-center items-center;
} }
.flex-between { .flex-between {
@apply flex justify-between items-center; @apply flex justify-between items-center;
} }
.flex-start { .flex-start {
@apply flex justify-between items-start; @apply flex justify-between items-start;
} }
.flex-end { .flex-end {
@apply flex justify-between items-end; @apply flex justify-between items-end;
} }
.root { .root {
@apply flex max-h-screen w-full flex-col lg:flex-row; @apply flex max-h-screen w-full flex-col lg:flex-row;
} }
.root-container { .root-container {
@apply mt-16 flex-1 overflow-auto py-8 lg:mt-0 lg:max-h-screen lg:py-10; @apply mt-16 flex-1 overflow-auto py-8 lg:mt-0 lg:max-h-screen lg:py-10;
} }
/* .gradient-text { /* .gradient-text {
@apply bg-purple-gradient bg-cover bg-clip-text text-transparent; @apply bg-purple-gradient bg-cover bg-clip-text text-transparent;
} */ } */
.sheet-content button { .sheet-content button {
@apply focus:ring-0 focus-visible:ring-transparent focus:ring-offset-0 focus-visible:ring-offset-0 focus-visible:outline-none focus-visible:border-none !important; @apply focus:ring-0 focus-visible:ring-transparent focus:ring-offset-0 focus-visible:ring-offset-0 focus-visible:outline-none focus-visible:border-none !important;
} }
.sidebar { .sidebar {
@apply hidden h-screen w-72 p-5 shadow-md shadow-purple-200/50 lg:flex; @apply hidden h-screen w-72 p-5 shadow-md shadow-purple-200/50 lg:flex;
} }
.header { .header {
@apply flex-between fixed h-16 w-full border-b p-5 lg:hidden; @apply flex-between fixed h-16 w-full border-b p-5 lg:hidden;
} }
.header-nav_elements { .header-nav_elements {
@apply mt-8 flex w-full flex-col items-start gap-5; @apply mt-8 flex w-full flex-col items-start gap-5;
} }
/* Search Component */ /* Search Component */
.search { .search {
@apply flex w-full rounded-[16px] border-2 border-purple-200/20 bg-white px-4 shadow-sm shadow-purple-200/15 md:max-w-96; @apply flex w-full rounded-[16px] border-2 border-purple-200/20 bg-white px-4 shadow-sm shadow-purple-200/15 md:max-w-96;
} }
.sidebar-logo { .sidebar-logo {
@apply flex items-center gap-2 md:py-2; @apply flex items-center gap-2 md:py-2;
} }
.sidebar-nav { .sidebar-nav {
@apply h-full flex-col justify-between md:flex md:gap-4; @apply h-full flex-col justify-between md:flex md:gap-4;
} }
.sidebar-nav_elements { .sidebar-nav_elements {
@apply hidden w-full flex-col items-start gap-2 md:flex; @apply hidden w-full flex-col items-start gap-2 md:flex;
} }
.sidebar-nav_element { .sidebar-nav_element {
@apply flex-center p-medium-16 w-full whitespace-nowrap rounded-full bg-cover transition-all hover:bg-white/10 hover:shadow-inner; @apply flex-center p-medium-16 w-full whitespace-nowrap rounded-full bg-cover transition-all hover:bg-white/10 hover:shadow-inner;
} }
.sidebar-link { .sidebar-link {
@apply flex p-medium-16 size-full gap-4 p-4; @apply flex p-medium-16 size-full gap-4 p-4;
} }
/* TYPOGRAPHY */ /* TYPOGRAPHY */
/* 64 */ /* 64 */
.h1-bold { .h1-bold {
@apply font-bold text-[40px] leading-[48px] lg:text-[48px] lg:leading-[60px] xl:text-[58px] xl:leading-[74px]; @apply font-bold text-[40px] leading-[48px] lg:text-[48px] lg:leading-[60px] xl:text-[58px] xl:leading-[74px];
} }
/* 40 */ /* 40 */
.h2-bold { .h2-bold {
@apply font-bold text-[32px] leading-[40px] lg:text-[36px] lg:leading-[44px] xl:text-[40px] xl:leading-[48px]; @apply font-bold text-[32px] leading-[40px] lg:text-[36px] lg:leading-[44px] xl:text-[40px] xl:leading-[48px];
} }
.h2-medium { .h2-medium {
@apply font-medium text-[32px] leading-[40px] lg:text-[36px] lg:leading-[44px] xl:text-[40px] xl:leading-[48px]; @apply font-medium text-[32px] leading-[40px] lg:text-[36px] lg:leading-[44px] xl:text-[40px] xl:leading-[48px];
} }
/* 36 */ /* 36 */
.h3-bold { .h3-bold {
@apply font-bold text-[28px] leading-[36px] md:text-[36px] md:leading-[44px]; @apply font-bold text-[28px] leading-[36px] md:text-[36px] md:leading-[44px];
} }
.h3-medium { .h3-medium {
@apply font-medium text-[28px] leading-[36px] md:text-[36px] md:leading-[44px]; @apply font-medium text-[28px] leading-[36px] md:text-[36px] md:leading-[44px];
} }
/* 32 */ /* 32 */
.h4-medium { .h4-medium {
@apply font-medium text-[32px] leading-[40px]; @apply font-medium text-[32px] leading-[40px];
} }
/* 28 */ /* 28 */
.h5-bold { .h5-bold {
@apply font-bold text-[28px] leading-[36px]; @apply font-bold text-[28px] leading-[36px];
} }
/* 24 */ /* 24 */
.p-bold-24 { .p-bold-24 {
@apply font-bold text-[24px] leading-[36px]; @apply font-bold text-[24px] leading-[36px];
} }
.p-medium-24 { .p-medium-24 {
@apply font-medium text-[24px] leading-[36px]; @apply font-medium text-[24px] leading-[36px];
} }
.p-regular-24 { .p-regular-24 {
@apply font-normal text-[24px] leading-[36px]; @apply font-normal text-[24px] leading-[36px];
} }
/* 20 */ /* 20 */
.p-bold-20 { .p-bold-20 {
@apply font-bold text-[20px] leading-[30px] tracking-[2%]; @apply font-bold text-[20px] leading-[30px] tracking-[2%];
} }
.p-semibold-20 { .p-semibold-20 {
@apply text-[20px] font-semibold leading-[30px] tracking-[2%]; @apply text-[20px] font-semibold leading-[30px] tracking-[2%];
} }
.p-medium-20 { .p-medium-20 {
@apply text-[20px] font-medium leading-[30px]; @apply text-[20px] font-medium leading-[30px];
} }
.p-regular-20 { .p-regular-20 {
@apply text-[20px] font-normal leading-[30px] tracking-[2%]; @apply text-[20px] font-normal leading-[30px] tracking-[2%];
} }
/* 18 */ /* 18 */
.p-semibold-18 { .p-semibold-18 {
@apply text-[18px] font-semibold leading-[28px] tracking-[2%]; @apply text-[18px] font-semibold leading-[28px] tracking-[2%];
} }
.p-medium-18 { .p-medium-18 {
@apply text-[18px] font-medium leading-[28px]; @apply text-[18px] font-medium leading-[28px];
} }
.p-regular-18 { .p-regular-18 {
@apply text-[18px] font-normal leading-[28px] tracking-[2%]; @apply text-[18px] font-normal leading-[28px] tracking-[2%];
} }
/* 16 */ /* 16 */
.p-bold-16 { .p-bold-16 {
@apply text-[16px] font-bold leading-[24px]; @apply text-[16px] font-bold leading-[24px];
} }
.p-medium-16 { .p-medium-16 {
@apply text-[16px] font-medium leading-[24px]; @apply text-[16px] font-medium leading-[24px];
} }
.p-regular-16 { .p-regular-16 {
@apply text-[16px] font-normal leading-[24px]; @apply text-[16px] font-normal leading-[24px];
} }
/* 14 */ /* 14 */
.p-semibold-14 { .p-semibold-14 {
@apply text-[14px] font-semibold leading-[20px]; @apply text-[14px] font-semibold leading-[20px];
} }
.p-medium-14 { .p-medium-14 {
@apply text-[14px] font-medium leading-[20px]; @apply text-[14px] font-medium leading-[20px];
} }
.p-regular-14 { .p-regular-14 {
@apply text-[14px] font-normal leading-[20px]; @apply text-[14px] font-normal leading-[20px];
} }
/* 12 */ /* 12 */
.p-medium-12 { .p-medium-12 {
@apply text-[12px] font-medium leading-[20px]; @apply text-[12px] font-medium leading-[20px];
} }
.toggle-switch { .toggle-switch {
@apply bg-gray-300 !important; @apply bg-gray-300 !important;
} }
} }

11
pages/_app.js Normal file
View file

@ -0,0 +1,11 @@
import "@/app/globals.css";
function MyApp({ Component, pageProps }) {
return (
<main style={{ fontFamily: "Poppins" }}>
<Component {...pageProps} />;
</main>
);
}
export default MyApp;

View file

@ -21,6 +21,6 @@
"@/*": ["./*"] "@/*": ["./*"]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "lib/Hoc/withAuth.jsx" , "**/*.mdx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "lib/Hoc/withAuth.jsx" , "**/*.mdx", "pages/_app.jsx"],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }