-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.tex
91 lines (79 loc) · 2.32 KB
/
demo.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{pgffor}
\usepackage[table]{xcolor}
\usepackage{longtable}
\usepackage{applecolors}
\title{Demo of \texttt{applecolors}}
\author{Léo Valais}
\date\today
\newcommand{\col}[1]{\textcolor{#1}{\texttt{#1}}}
\newcommand{\colb}[1]{\colorbox{black}{\col{#1}}}
\newcommand{\cbox}[2][\qquad]{\colorbox{#2}{#1}}
\begin{document}
\maketitle
\newcommand{\showc}[1]{%
\begin{itemize}%
\foreach \c in {#1}{%
\item \col{\c}\qquad\colb{\c}\qquad\cbox{\c}
}%
\end{itemize}}
\section{iOS colors}
\showc{iOS-pink,iOS-red,iOS-orange,iOS-yellow,iOS-green,iOS-tealblue,iOS-blue,iOS-purple}
\section{watchOS colors}
\showc{watchOS-pink,watchOS-red,watchOS-orange,watchOS-yellow,watchOS-green,watchOS-turquoise,watchOS-cyan,watchOS-blue,watchOS-purple,watchOS-white}
\section{macOS colors}
Colors \texttt{macOS-acc-\textcolor{red}{*}} are designed for accessibility.
\bigskip
\newcommand{\putrow}[3][white]{%
\cellcolor{#1}\col{macOS#3-#2} &%
\cellcolor{#1}\col{macOS#3-aqua#2} &%
\cellcolor{macOS#3-#2} &%
\cellcolor{macOS#3-aqua#2} &%
\cellcolor{black}\col{macOS#3-#2} &%
\cellcolor{black}\col{macOS#3-aqua#2}}
\hspace*{-4cm}
\footnotesize
\begin{tabular}{cccccc}
\hline
Normal & Aqua & Normal BG & Aqua BG & Black BG & Black BG \\
\hline
\putrow{blue}{}\\
\putrow{brown}{}\\
\putrow{gray}{}\\
\putrow{green}{}\\
\putrow{orange}{}\\
\putrow{pink}{}\\
\putrow{red}{}\\
\putrow{yellow}{}\\
\hline
\putrow{blue}{-vibrant}\\
\putrow{brown}{-vibrant}\\
\putrow{gray}{-vibrant}\\
\putrow{green}{-vibrant}\\
\putrow{orange}{-vibrant}\\
\putrow{pink}{-vibrant}\\
\putrow{red}{-vibrant}\\
\putrow{yellow}{-vibrant}\\
\hline
\putrow{blue}{-acc}\\
\putrow{brown}{-acc}\\
\putrow{gray}{-acc}\\
\putrow{green}{-acc}\\
\putrow{orange}{-acc}\\
\putrow{pink}{-acc}\\
\putrow{red}{-acc}\\
\putrow{yellow}{-acc}\\
\hline
\putrow{blue}{-acc-vibrant}\\
\putrow{brown}{-acc-vibrant}\\
\putrow{gray}{-acc-vibrant}\\
\putrow{green}{-acc-vibrant}\\
\putrow{orange}{-acc-vibrant}\\
\putrow{pink}{-acc-vibrant}\\
\putrow{red}{-acc-vibrant}\\
\putrow{yellow}{-acc-vibrant}\\
\hline
\end{tabular}
\end{document}