11---
2+ title : Styling and Layout
23description : " A Docusaurus site is a pre-rendered single-page React application. You can style it the way you style React apps"
34---
45
56import ColorGenerator from ' @site/src/components/ColorGenerator' ;
67import IframeWindow from ' @site/src/components/BrowserWindow/IframeWindow' ;
78
8- # Styling and Layout
9-
109:::tip
1110This section focuses on styling through stylesheets.
1211For advanced customizations (DOM structure, React code…), refer to the [ Swizzling Guide] ( https://docusaurus.io/docs/swizzling ) .
@@ -87,8 +86,6 @@ import CodeBlock from '@theme/CodeBlock';
8786
8887</details >
8988
90- <AdsComponent />
91-
9289## Styling with Infima { #styling - your - site - with - infima }
9390
9491Docusaurus classic theme uses [ Infima] ( https://infima.dev/ ) for base layout and components.
@@ -107,8 +104,6 @@ Use [ColorBox](https://www.colorbox.io/) or the generator below to create your s
107104
108105<ColorGenerator />
109106
110- <AdsComponent />
111-
112107## Dark Mode { #dark - mode }
113108
114109The ` <html> ` element switches its ` data-theme ` attribute:
@@ -127,8 +122,6 @@ Example:
127122}
128123```
129124
130- <AdsComponent />
131-
132125## Data Attributes { #data - attributes }
133126
134127You can inject ` <html> ` data attributes via query strings (` docusaurus-data-<key> ` ):
@@ -147,8 +140,6 @@ html[data-red-border] div#__docusaurus {
147140
148141Useful for embedding docs in iframes with custom layouts.
149142
150- <AdsComponent />
151-
152143## Mobile View { #mobile - view }
153144
154145The default breakpoint between desktop and mobile is ` 996px ` .
@@ -267,4 +258,4 @@ Update `tsconfig.json`:
267258+ "types": ["docusaurus-plugin-sass"]
268259 }
269260}
270- ```
261+ ```
0 commit comments