mirror of
https://github.com/vercel/commerce.git
synced 2025-07-04 20:21:21 +00:00
styles: font common
This commit is contained in:
parent
f3fb3a52b4
commit
cb7de8a311
@ -1,22 +1,22 @@
|
|||||||
@import '../../../styles/utilities';
|
@import "../../../styles/utilities";
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
.btn {
|
.btn {
|
||||||
// @apply font-bold py-2 px-4 rounded;
|
// @apply font-bold py-2 px-4 rounded;
|
||||||
|
|
||||||
}
|
}
|
||||||
.btnBlue {
|
.btnBlue {
|
||||||
@apply bg-primary hover:bg-warning text-label font-bold py-2 px-4 custom-border-radius;
|
@apply bg-primary hover:bg-warning text-label font-bold py-2 px-4 custom-border-radius;
|
||||||
|
|
||||||
}
|
}
|
||||||
.link {
|
.link {
|
||||||
color: theme("colors.warning");
|
color: theme("colors.warning");
|
||||||
}
|
}
|
||||||
.heading {
|
.heading {
|
||||||
@apply text-base;
|
@apply text-base font-heading;
|
||||||
}
|
}
|
||||||
|
|
||||||
.paragraph {
|
.paragraph {
|
||||||
@apply topline;
|
@apply topline;
|
||||||
}
|
}
|
||||||
|
.logo {
|
||||||
|
@apply font-logo;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,6 +10,8 @@ const Header: FC<Props> = ({ }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<div className={s.header}>
|
<div className={s.header}>
|
||||||
This is Header
|
This is Header
|
||||||
|
<h1 className={s.heading}>This is heading</h1>
|
||||||
|
<div className={s.logo}>This is logo text</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
@import url("https://fonts.googleapis.com/css2?family=Nunito&family=Poppins:wght@500&family=Righteous&display=swap");
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--primary: #5B9A74;
|
--primary: #5b9a74;
|
||||||
--primary-light: #e0f6e8;
|
--primary-light: #e0f6e8;
|
||||||
--primary-lightest: #effaf4;
|
--primary-lightest: #effaf4;
|
||||||
|
|
||||||
@ -36,7 +38,10 @@
|
|||||||
--font-size: 16px;
|
--font-size: 16px;
|
||||||
--line-height: 24px;
|
--line-height: 24px;
|
||||||
|
|
||||||
--font-sans: -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", sans-serif;
|
--font-sans: "Nunito", cursive, -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", "Helvetica",
|
||||||
|
sans-serif;
|
||||||
|
--font-heading: "Righteous", -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", sans-serif;
|
||||||
|
--font-logo: "Poppins", -apple-system, system-ui, BlinkMacSystemFont, "Helvetica Neue", "Helvetica", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
*,
|
*,
|
||||||
|
@ -91,4 +91,12 @@
|
|||||||
.custom-border-radius {
|
.custom-border-radius {
|
||||||
border-radius: 60% 10% 60% 2%/ 10% 40% 10% 50%;
|
border-radius: 60% 10% 60% 2%/ 10% 40% 10% 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.font-heading {
|
||||||
|
font-family: var(--font-heading);
|
||||||
|
}
|
||||||
|
|
||||||
|
.font-logo {
|
||||||
|
font-family: var(--font-logo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user