Understand the structure of the Styles folder
mainThe src/styles directory contains the global styling architecture for the documentation site. It is organized into two main parts:
- Global Styles: A global style file that is integrated into the theme via the
docusaurus.config.jsconfiguration. - Components Folder: Contains styles specifically for theme components. This approach is used to style components directly instead of using the 'swizzling' process (which involves ejecting component code into your local project).
Note on CSS Specificity: Because theme styles cannot be easily overridden in the current setup, selectors use the base __docusaurus tag to increase CSS specificity, ensuring these styles take precedence.