You are on page 1of 1

10 Library skins

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

\tcbuselibrary{skins}

This also loads the package tikz [22]. 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. 209 supports all of them and
standardÕ P. 207 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. 137 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, My title


frame style={left color=red!75!black,
right color=blue!75!black}] This is a tcolorbox.
This is a \textbf{tcolorbox}.
\tcblower This is the lower part.
This is the lower part.
\end{tcolorbox}

/tcb/frame style image=hfile namei (no default, initially unset)


Fills the frame with an external image referenced by hfile namei. For advanced fea-
tures like blending of a picture with the background, use /tcb/frame style together with
/tikz/fill stretch imageÕ P. 260 .

\tcbset{colback=red!5!white,fonttitle=\bfseries}
My title
\begin{tcolorbox}[enhanced,title=My title,
frame style image=blueshade.png] This is a tcolorbox.
This is a \textbf{tcolorbox}.
\tcblower This is the lower part.
This is the lower part.
\end{tcolorbox}

151

You might also like