File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -98,4 +98,20 @@ import { Tooltip } from 'react-tooltip'
9898
9999### Styling
100100
101- If you want a styled tooltip, don't forget to add the style file ` import 'react-tooltip/dist/react-tooltip.css `
101+ If you want a styled tooltip, don't forget to add the style file ` import 'react-tooltip/dist/react-tooltip.css ` .
102+
103+ Basic styling can be done by overriding the following css variables.
104+
105+ ``` css
106+ :root {
107+ --rt-color-white : #fff ;
108+ --rt-color-dark : #222 ;
109+ --rt-color-success : #8dc572 ;
110+ --rt-color-error : #be6464 ;
111+ --rt-color-warning : #f0ad4e ;
112+ --rt-color-info : #337ab7 ;
113+ --rt-opacity : 0.9 ;
114+ }
115+ ```
116+
117+ For advanced styling, check [ the examples] ( ./examples/styling.mdx ) .
Original file line number Diff line number Diff line change 3131
3232.show {
3333 visibility : visible;
34- opacity : 0.9 ;
34+ opacity : var ( --rt-opacity ) ;
3535}
3636
3737/** Types variant **/
Original file line number Diff line number Diff line change 55 --rt-color-error : # be6464 ;
66 --rt-color-warning : # f0ad4e ;
77 --rt-color-info : # 337ab7 ;
8+ --rt-opacity : 0.9 ;
89}
You can’t perform that action at this time.
0 commit comments