This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from hasan-deriv/pr-1319-css-setup
Hasan/Pr 1319 smarttrader css setup
- Loading branch information
Showing
18 changed files
with
1,418 additions
and
938 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.js", | ||
"css": "src/styles/main.css", | ||
"baseColor": "slate", | ||
"cssVariables": false | ||
}, | ||
"aliases": { | ||
"components": "Components/*", | ||
"utils": "Utils/*" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* roboto-300 - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: url('./fonts/roboto/roboto-v30-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} | ||
|
||
/* roboto-regular - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('./fonts/roboto/roboto-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} | ||
|
||
/* roboto-700 - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'Roboto'; | ||
font-style: normal; | ||
font-weight: 700; | ||
src: url('./fonts/roboto/roboto-v30-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} | ||
|
||
/* ibm-plex-sans-300 - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'IBM Plex Sans'; | ||
font-style: normal; | ||
font-weight: 300; | ||
src: url('./fonts/ibm-plex-sans/ibm-plex-sans-v19-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} | ||
|
||
/* ibm-plex-sans-regular - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'IBM Plex Sans'; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url('./fonts/ibm-plex-sans/ibm-plex-sans-v19-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} | ||
|
||
/* ibm-plex-sans-500 - latin */ | ||
@font-face { | ||
font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */ | ||
font-family: 'IBM Plex Sans'; | ||
font-style: normal; | ||
font-weight: 500; | ||
src: url('./fonts/ibm-plex-sans/ibm-plex-sans-v19-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
body { | ||
@apply font-ibm text-prominent leading-body text-base font-normal overflow-x-hidden; | ||
} | ||
p { | ||
@apply mb-4; | ||
} | ||
h1, | ||
h2, | ||
h3, | ||
h4, | ||
h5, | ||
h6{ | ||
@apply font-ibm text-prominent leading-base font-bold; | ||
} | ||
h3, | ||
.h3 { | ||
@apply text-[1.375rem]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { type ClassValue, clsx } from 'clsx'; | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
export function cn(...inputs: ClassValue[]) { | ||
return twMerge(clsx(inputs)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/** @type {import('tailwindcss').Config} */ | ||
module.exports = { | ||
content: ["./src/**/*.tsx"], | ||
theme: { | ||
extend: { | ||
colors: { | ||
brand: { | ||
"dark-grey": "#0e0e0e", | ||
"orange": "#ff6444", | ||
"orange-1": "#e98024", | ||
"secondary": "#85acb0" | ||
}, | ||
general: { | ||
"section-1": "#f2f3f4", | ||
}, | ||
purchase: { | ||
"section-1": "#3d9494", | ||
"section-2": "#d33636", | ||
}, | ||
primary: { | ||
DEFAULT: "#ff444f", | ||
hover: "#eb3e48" | ||
}, | ||
secondary: "#999999", | ||
disabled: { | ||
DEFAULT: "#eaeced", | ||
100: "#e6e9e9", | ||
200: "#d6d6d6" | ||
}, | ||
prominent:" #333333", | ||
"colored-barrier": "#008000", | ||
active: "#d6dadb", | ||
danger: "#ec3f3f", | ||
success: "#4bb4b3", | ||
warning: "#ffad3a", | ||
info: "#377cfc", | ||
transparent: "transparent", | ||
}, | ||
backgroundImage: { | ||
"gradient-success": "linear-gradient(to top, #ffffff, rgba(75, 180, 179, 0.16))", | ||
"gradient-danger": "linear-gradient(to top, #ffffff, rgba(255, 68, 79, 0.16))", | ||
}, | ||
fontSize: { | ||
base: "1rem", | ||
xxs: "1.2rem", | ||
xs: "1.4rem", | ||
s: "1.6rem", | ||
sm: "2rem", | ||
m: "2.4rem", | ||
l: "3.2rem", | ||
xl: "4.8rem", | ||
xxl: "6.4rem", | ||
}, | ||
fontFamily: { | ||
roboto: ["Roboto", "sans-serif"], | ||
ibm: ["IBM Plex Sans", "sans-serif"], | ||
}, | ||
lineHeight: { | ||
body: 1.375, | ||
base: 1 | ||
}, | ||
screens: { | ||
sm: "576px", | ||
// => @media (min-width: 576px) { ... } | ||
|
||
md: "768px", | ||
// => @media (min-width: 768px) { ... } | ||
} | ||
}, | ||
}, | ||
corePlugins: { | ||
container: false, | ||
}, | ||
plugins: [ | ||
require("tailwindcss-animate"), | ||
function addComponentsFunc({ addComponents }) { | ||
addComponents({ | ||
".container": { | ||
maxWidth: "960px", | ||
marginInline: "auto", | ||
paddingInline: "10px", | ||
position: "relative", | ||
zIndex: 10, | ||
}, | ||
}); | ||
}, | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters