You are on page 1of 2

Library

LIB

10

skins

The library is loaded by a package option or inside the preamble by:


\tcbuselibrary{skins}

This also loads the package tikz [20]. Typically but not necessarily, the following skins use
tikz instead of pgf.

10.1

Style Option Keys

The following style options are applicable for all skins which use engines of type path, pathfirst,
pathmiddle, or pathlast. Especially, the skin enhanced P. 195 supports all of them and
standard P. 193 none.
/tcb/frame style=htikz keysi
(style, no default)
The htikz keysi are used inside the tikz path command for drawing the frame of the box.
This option is available if the /tcb/frame engine P. 126 is set to path, pathfirst,
pathmiddle, or pathlast. It is not available for standard.
\tcbset{colback=red!5!white,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style={left color=red!75!black,
right color=blue!75!black}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

My title
This is a tcolorbox.
This is the lower part.

/tcb/frame style image=hfile namei


(no default, initially unset)
Fills the frame with an external image referenced by hfile namei. For advanced features like blending of a picture with the background, use /tcb/frame style together with
/tikz/fill stretch image P. 245 .
\tcbset{colback=red!5!white,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style image=blueshade.png]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

139

My title
This is a tcolorbox.
This is the lower part.

/tcb/frame style tile={hgraphics optionsi}{hfile namei}


(no default, initially unset)
Fills the frame with a tile pattern based on an external image referenced by hfile namei. The
hgraphics optionsi are given to the underlying \includegraphics command. For advanced
features like blending of a picture with the background, use /tcb/frame style P. 139 together with /tikz/fill tile image P. 249 .
\tcbset{colback=red!5!white,coltitle=red!30!black,
opacityback=0.75,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
frame style tile={width=1cm}{pink_marble.png}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

My title
This is a tcolorbox.
This is the lower part.

/tcb/frame hidden
(style, no value)
This is a shortcut for frame style={draw=none,fill=none}. Depending on the skin, this
option switches off the drawing of the frame. Alternatively, use /tcb/frame empty P. 129 .
\tcbset{colback=red!5!white,colframe=red!75!black,
fonttitle=\bfseries,coltitle=black}
\begin{tcolorbox}[enhanced,title=My title,
frame hidden]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

My title
This is a tcolorbox.
This is the lower part.

/tcb/interior style=htikz keysi


The htikz keysi are used inside the tikz path command for drawing
box. They are used for the titled and for the untitled version as well.
This option is available if the /tcb/interior titled engine P. 126
engine P. 127 is set to path, pathfirst, pathmiddle, or pathlast. It
standard.

(style, no default)
the interior of the
or /tcb/interior
is not available for

\tcbset{colframe=red!75!black,fonttitle=\bfseries}
\begin{tcolorbox}[enhanced,title=My title,
interior style={left color=red!20!white,
right color=yellow!50!white}]
This is a \textbf{tcolorbox}.
\tcblower
This is the lower part.
\end{tcolorbox}

140

My title
This is a tcolorbox.
This is the lower part.

You might also like