You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/components/custom-styles.mdx
+47-38Lines changed: 47 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,21 +9,21 @@ icon: "palette"
9
9
All Mint TSDocs components come with default styling that integrates seamlessly with Mintlify's design system. You can easily customize these styles to match your documentation's look and feel.
10
10
11
11
<Tip>
12
-
Mint TSDocs uses CSS `@layer` for default styles, making them easy to override without `!important`.
12
+
Mint TSDocs provides default styles that can be customized in your `style.css` file.
13
13
</Tip>
14
14
15
15
## Available Components
16
16
17
17
Mint TSDocs provides the following components with customizable styles:
@@ -97,31 +97,37 @@ TypeTree uses Mintlify's native `ResponseField` and `Expandable` components inte
97
97
}
98
98
```
99
99
100
-
## Using CSS Layers for Easy Overrides
100
+
## Customizing Component Styles
101
101
102
-
Mint TSDocs default styles are defined in the `tsdocs-defaults` CSS layer. This means your custom styles will automatically take precedence without needing`!important`.
102
+
Mint TSDocs includes a `tsdocs-styles.css` file that is automatically imported via `docs/style.css`. You can override these defaults by adding more specific selectors or using`!important`.
103
103
104
104
<Steps>
105
-
<Steptitle="Create your style.css file">
106
-
Create a `style.css` file in your docs root directory (e.g., `/docs/style.css`).
105
+
<Steptitle="Locate your style.css file">
106
+
Your `docs/style.css` file already imports the tsdocs styles:
0 commit comments