-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtailwind.css
170 lines (136 loc) · 4.35 KB
/
tailwind.css
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Display&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text&display=swap");
@tailwind base;
@tailwind components;
@tailwind utilities;
.light {
--layer-0: 255, 255, 255;
--layer-1: 76, 173, 230;
--layer-2: 94, 181, 232;
--primary-text: 0, 0, 0;
--distinct-text: 90, 90, 90;
--link-text: 0, 92, 184;
--link-text-hover: 0, 59, 119;
--highlight: 140, 140, 140;
--highlight-darker: 120, 120, 120;
--highlight-lighter: 140, 140, 140;
--scribe-blue: 76, 173, 230;
--scribe-blue-lighter: 94, 181, 232;
--scribe-blue-darker: 59, 142, 194;
}
.dark {
--layer-0: 6, 8, 15;
--layer-1: 62, 149, 204;
--layer-2: 59, 142, 194;
--section-div: 43, 50, 59;
--primary-text: 255, 255, 255;
--distinct-text: 150, 150, 150;
--link-text: 86, 167, 252;
--link-text-hover: 134, 192, 253;
--highlight: 70, 70, 70;
--highlight-darker: 70, 70, 70;
--highlight-lighter: 120, 120, 120;
--scribe-blue: 62, 149, 204;
--scribe-blue-lighter: 76, 173, 230;
--scribe-blue-darker: 59, 142, 194;
}
@layer base {
body {
@apply bg-layer-2;
}
* {
@apply scrollbar scrollbar-track-transparent scrollbar-thumb-distinct-text scrollbar-thumb-rounded-md scrollbar-w-2;
}
}
@layer components {
.bg-breakpoint-test {
@apply bg-red-500 sm:bg-orange-500 md:bg-yellow-500 lg:bg-green-500 xl:bg-blue-500 2xl:bg-violet-500 3xl:bg-pink-500;
}
.btn-base-class {
@apply focus-brand elem-shadow-sm w-fit select-none px-4 py-2 text-center font-semibold;
}
.btn-disabled {
@apply focus-off elem-shadow-sm w-fit select-none px-4 py-2 text-center font-semibold;
}
.elem-shadow-sm {
@apply shadow-sm shadow-zinc-700;
}
.elem-shadow-md {
@apply shadow-md shadow-zinc-700;
}
.elem-shadow-lg {
@apply shadow-lg shadow-zinc-700;
}
.focus-brand {
@apply rounded-sm focus:outline-none focus-visible:border-link-text focus-visible:ring-2 focus-visible:ring-link-text;
}
.focus-inside {
@apply rounded-sm focus-within:border-link-text focus-within:outline-none focus-within:ring-2 focus-within:ring-link-text;
}
.link-text {
@apply text-link-text hover:text-link-text-hover;
}
.responsive-h1 {
@apply font-display text-2xl sm:text-3xl md:text-4xl xl:text-5xl;
}
.responsive-h2 {
@apply font-display text-xl sm:text-2xl md:text-3xl xl:text-4xl;
}
.responsive-h3 {
@apply font-display text-lg sm:text-xl md:text-2xl xl:text-3xl;
}
.responsive-h4 {
@apply font-display text-base sm:text-lg md:text-xl xl:text-2xl;
}
.responsive-h5 {
@apply font-display text-base md:text-lg xl:text-xl;
}
.responsive-px-1 {
@apply px-1 sm:px-2;
}
.responsive-px-2 {
@apply px-2 lg:px-4 xl:px-6;
}
.responsive-px-3 {
@apply px-4 lg:px-6 xl:px-8;
}
.responsive-px-4 {
@apply px-6 lg:px-8 xl:px-10;
}
.responsive-px-5 {
@apply px-6 lg:px-10 xl:px-14;
}
.responsive-py-1 {
@apply py-1 sm:py-2;
}
.responsive-py-2 {
@apply py-2 lg:py-4 xl:py-6;
}
.responsive-py-3 {
@apply py-4 lg:py-6 xl:py-8;
}
.responsive-py-4 {
@apply py-6 lg:py-8 xl:py-10;
}
.responsive-py-5 {
@apply py-8 lg:py-10 xl:py-14;
}
.style-btn {
@apply focus-brand elem-shadow-sm bg-layer-0 text-primary-text hover:bg-highlight active:bg-layer-0 dark:border dark:border-primary-text;
}
.style-btns-next-to-one-another {
@apply mx-auto grid max-w-[70%] grid-cols-1 gap-y-4 sm:mx-0 sm:max-w-[90%] sm:grid-cols-2 sm:grid-rows-1 sm:gap-x-4 sm:gap-y-0 md:max-w-[70%] md:gap-x-6 lg:max-w-[60%] xl:max-w-[70%] xl:gap-x-8 2xl:max-w-[80%];
}
.style-cta {
@apply focus-brand border-scribe-blue fill-scribe-blue text-scribe-blue border bg-layer-0 hover:bg-highlight active:bg-layer-0;
}
.style-cta-disabled {
@apply focus-brand border-scribe-blue/50 fill-scribe-blue/50 text-scribe-blue/50 cursor-not-allowed border bg-layer-0 hover:bg-highlight active:bg-layer-0;
}
.style-cta-secondary {
@apply focus-brand bg-scribe-blue hover:bg-scribe-blue-lighter active:bg-scribe-blue border border-primary-text fill-primary-text text-primary-text dark:hover:bg-highlight-darker;
}
.style-cta-secondary-disabled {
@apply focus-brand bg-scribe-blue active:bg-scribe-blue cursor-not-allowed border border-primary-text/50 fill-primary-text/50 text-primary-text/50;
}
}