Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A minimal, opinionated styling theme for Docusaurus 2 that strips the classic theme down to semantic HTML and a grid layout.
Docusaurus Theme No Style is a minimal, opinionated styling theme for Docusaurus 2 documentation sites that strips the default classic theme down to a layout based on semantic HTML tags and no class names.
Docusaurus Theme No Style is a community theme for Docusaurus 2, derived by trimming down the official @docusaurus/theme-classic package. It applies only a minimal set of opinionated styles: CSS selectors target semantic HTML tags and ARIA roles instead of class names, and the docs and blog layouts use a CSS grid with two side sections and a main content area in the middle. The theme is published as @wgao19/docusaurus-theme-no-style and is intended as a starting point for developers who want to build their own custom styles on top of Docusaurus without fighting the default theme's opinions.
@docusaurus/theme-classic package, so it inherits Docusaurus 2's component structure and conventions.Layout component, so you can copy it to your site's src directory with yarn swizzle @wgao19/docusaurus-theme-no-style Layout and override CSS directly.src/theme/ can also be swizzled when you need to change the DOM structure or styling of a specific part.Developers building Docusaurus 2 sites who want a bare-bones theme they can fully control. Specifically:
Layout component with the provided command, then edit the copied CSS to adjust the grid, padding, or any other style without changing the DOM structure of individual components.src/theme/ when you need to change its DOM structure or styling, giving you fine-grained control over part of the site.The theme works by overriding the components that Docusaurus 2 loads from the default classic theme. After installing and activating the theme's package, Docusaurus uses the trimmed components defined in src/theme/. To customize styles, you run yarn swizzle @wgao19/docusaurus-theme-no-style Layout (or any component name), which copies the selected component into your site's src directory. Restart the dev server, and your local copy takes precedence over the theme's version, allowing you to edit the source directly.
The name means the theme ships only the minimal opinionated styling needed for a functional layout — semantic selectors, a three-column grid, and fixed 1rem padding — rather than a full visual design. It's designed to be overwritten.
The recommended method is swizzling: run yarn swizzle @wgao19/docusaurus-theme-no-style Layout to copy the Layout component into your site's src directory, then edit that copy's CSS. Most of the theme's styles live in that component.
Yes. Each component in the theme's src/theme/ directory can be swizzled individually with the same yarn swizzle command, letting you modify both the DOM structure and the styling of one component without affecting the rest.
The repository description targets Docusaurus 2, and the trim-down is based on the Docusaurus 2 classic theme. No statement about Docusaurus 3 support appears in the provided content.
