-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[v3] add auto-import-theme-style option in nextra configuration (#3220)
* [v3] add auto-import-theme-style option in nextra configuration * remove the style field in `package.json` * Update .changeset/red-rockets-perform.md Co-authored-by: Dimitri POSTOLOV <[email protected]> * dry in styles.css swr-site example --------- Co-authored-by: Dimitri POSTOLOV <[email protected]>
- Loading branch information
1 parent
c3ff165
commit ccaf3d4
Showing
10 changed files
with
50 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'nextra-theme-docs': patch | ||
'nextra': patch | ||
--- | ||
|
||
Add the `autoImportThemeStyle` option to the Nextra configuration. This allows users to import the official Nextra theme CSS into a specific cascade layer. |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ out/ | |
|
||
tsup.config.bundled* | ||
tsconfig.tsbuildinfo | ||
pagefind/ |
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
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 |
---|---|---|
@@ -1,27 +1,22 @@ | ||
@import 'nextra-theme-docs/dist/style.css' layer(nextra-base); | ||
|
||
@tailwind utilities; | ||
|
||
.dark .invert-on-dark { | ||
filter: invert(1) brightness(1.8); | ||
} | ||
|
||
body { | ||
background: | ||
linear-gradient( | ||
to bottom, | ||
rgba(255, 255, 255, 0) 0%, | ||
rgb(var(--nextra-bg)) 300px | ||
), | ||
fixed 0 0 / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0), | ||
fixed 10px 10px / 20px 20px radial-gradient(#d1d1d1 1px, transparent 0); | ||
} | ||
--bg-dot-color: #d1d1d1; | ||
|
||
.dark & { | ||
--bg-dot-color: #313131; | ||
} | ||
|
||
.dark body { | ||
background: | ||
linear-gradient( | ||
to bottom, | ||
rgba(0, 0, 0, 0) 0%, | ||
rgb(var(--nextra-bg)) 300px | ||
), | ||
fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0), | ||
fixed 10px 10px / 20px 20px radial-gradient(#313131 1px, transparent 0); | ||
linear-gradient(to bottom, transparent, rgb(var(--nextra-bg)) 300px), | ||
fixed 0 0 / 20px 20px | ||
radial-gradient(var(--bg-dot-color) 1px, transparent 0), | ||
fixed 10px 10px / 20px 20px | ||
radial-gradient(var(--bg-dot-color) 1px, transparent 0); | ||
} |
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.