Skip to content

Commit de8b0b9

Browse files
committed
Add future configuration options and enhance typography styles
1 parent 8e06dfa commit de8b0b9

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

docusaurus.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const config: Config = {
2222
organizationName: "anyproto",
2323
projectName: "anytype-api",
2424

25+
future: {
26+
v4: true,
27+
experimental_faster: true,
28+
},
29+
2530
headTags: [
2631
{
2732
tagName: "script",

src/css/custom.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--shadow-dark: rgba(0, 0, 0, 0.3);
2323

2424
/* Typography Scale */
25+
--font-size-hero: 3rem; /* 48px - Hero titles */
2526
--font-size-h1: 2rem; /* 32px - Page titles */
2627
--font-size-h2: 1.5rem; /* 24px - Section titles */
2728
--font-size-h3: 1.125rem; /* 18px - Subsection titles */
@@ -77,6 +78,11 @@ h4 {
7778
font-size: var(--font-size-h4);
7879
}
7980

81+
/* Hero title - larger than h1 */
82+
.hero__title {
83+
font-size: var(--font-size-hero);
84+
}
85+
8086
/* Footer */
8187
.footer {
8288
background-color: var(--ifm-background-color);
@@ -184,11 +190,7 @@ h4 {
184190

185191
/* Navbar gradient - fades from top color to transparent */
186192
.navbar {
187-
background: linear-gradient(
188-
180deg,
189-
var(--ifm-color-primary-lightest) 0%,
190-
transparent 100%
191-
);
193+
background: linear-gradient(180deg, var(--ifm-color-primary-lightest) 0%, transparent 100%);
192194
}
193195

194196
[data-theme="dark"] .navbar {

0 commit comments

Comments
 (0)