PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / tailwind.css

tailwind.css in Extendify 3.2.1, at src/tailwind.css

355 lines 9.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /* no-prefix */
2 *,
3 ::before,
4 ::after {
5 --tw-shadow: 0 0 #0000;
6 --tw-inset-shadow: 0 0 #0000;
7 --tw-ring-shadow: 0 0 #0000;
8 --tw-inset-ring-shadow: 0 0 #0000;
9 --tw-ring-offset-shadow: 0 0 #0000;
10 --tw-ring-offset-width: 0px;
11 --tw-ring-offset-color: #fff;
12 --tw-blur: ;
13 --tw-brightness: ;
14 --tw-contrast: ;
15 --tw-grayscale: ;
16 --tw-hue-rotate: ;
17 --tw-invert: ;
18 --tw-opacity: ;
19 --tw-saturate: ;
20 --tw-sepia: ;
21 --tw-drop-shadow: ;
22 }
23
24 @layer base {
25 *,
26 ::after,
27 ::before,
28 ::backdrop,
29 ::file-selector-button {
30 box-sizing: border-box;
31 border: 0px solid transparent;
32 }
33 button:not(:disabled) {
34 @apply cursor-pointer!;
35 }
36 }
37
38 @theme {
39 --breakpoint-xxs: 280px;
40 --breakpoint-xs: 480px;
41 --breakpoint-sm: 600px;
42 --breakpoint-md: 783px; /* Admin Bar goes big */
43 --breakpoint-lg: 961px; /* Sidebar auto folds */
44 --breakpoint-xl: 1152px;
45 --breakpoint-2xl: 1345px;
46 --breakpoint-3xl: 1600px;
47 --breakpoint-5xl: 2300px;
48
49 --color-gray-50: #fafafa;
50 --color-gray-100: #f0f0f0;
51 --color-gray-150: #eaeaea; /* This wasn't a variable but I saw it on buttons */
52 --color-gray-200: #e0e0e0; /* Used sparingly for light borders. */
53 --color-gray-300: #dddddd; /* Used for most borders. */
54 --color-gray-400: #cccccc;
55 --color-gray-500: #bbbbbb;
56 --color-gray-600: #949494; /* Meets 3:1 UI or large text contrast against white. */
57 --color-gray-700: #757575; /* Meets 4.6:1 text contrast against white. */
58 --color-gray-800: #2f2f2f;
59 --color-gray-900: #1e1e1e;
60
61 --color-override: var(--ext-override, #2271b1);
62
63 --color-wp-theme-bg: var(--wp-admin-theme-bg, #373b3f);
64 --color-wp-theme-main: var(--wp-admin-theme-main, #2271b1);
65 --color-wp-theme-accent: var(--wp-admin-theme-accent, #76ed85);
66
67 --color-editor-main: var(--wp-admin-theme-color, #3858e9);
68 --color-editor-main-darker: var(--wp-admin-theme-color-darker-10, #2145e6);
69 --color-editor-accent-darker: var(--wp-components-color-accent-darker-10);
70
71 --color-design-main: var(--ext-design-main, #2271b1);
72 --color-design-text: var(--ext-design-text, #ffffff);
73 --color-design-tertiary: var(--wp--preset--color--tertiary);
74
75 --color-banner-main: var(--ext-banner-main, #2271b1);
76 --color-banner-text: var(--ext-banner-text, #ffffff);
77
78 --color-extendify-main: #0b4a43;
79 --color-extendify-main-dark: #05312c;
80 --color-extendify-alert: #841010;
81 --color-extendify-gray: #5f5f5f;
82 --color-extendify-secondary: #cbc3f5;
83 --color-extendify-black: #1e1e1e;
84 --color-extendify-transparent-white: rgba(253, 253, 253, 0.88);
85 --color-extendify-transparent-black-100: rgba(0, 0, 0, 0.07);
86
87 --color-wp-alert-yellow: #f0b849;
88 --color-wp-alert-red: #cc1818;
89 --color-wp-alert-green: #4ab866;
90 --color-wp-notice-success: #eff9f1;
91 --color-wp-notice-error: #fcf0f0;
92 --color-wp-notice-neutral: #c3c4c7;
93
94 /* Fallbacks match what the flow hardcoded, so an untouched site is identical. */
95 --color-ui-page: var(--ext-ui-page, var(--ext-banner-main, #2271b1));
96 --color-ui-page-text: var(
97 --ext-ui-page-text,
98 var(--ext-banner-text, #ffffff)
99 );
100 --ui-base-action: var(--ext-ui-action, var(--ext-design-main, #2271b1));
101 --color-ui-action: var(--ui-base-action);
102 --ui-base-action-text: var(
103 --ext-ui-action-text,
104 var(--ext-design-text, #ffffff)
105 );
106 --color-ui-action-text: var(--ui-base-action-text);
107 --color-ui-focus: var(--ext-ui-focus, var(--color-ui-action));
108 --ui-base-ink: var(--ext-ui-ink, #1e1e1e);
109 --color-ui-ink: var(--ui-base-ink);
110 --color-ui-ink-muted: var(--ext-ui-ink-muted, #757575);
111 --color-ui-line: var(--ext-ui-line, #dddddd);
112 /* Transparent, so the button reads as an outline and never as a white pill. */
113 --ui-base-secondary-fill: var(--ext-ui-secondary-fill, transparent);
114 --color-ui-secondary-fill: var(--ui-base-secondary-fill);
115 --ui-base-secondary-line: var(--ext-ui-secondary-line, var(--ui-base-ink));
116 --color-ui-secondary-line: var(--ui-base-secondary-line);
117 --ui-base-secondary-text: var(--ext-ui-secondary-text, var(--ui-base-ink));
118 --color-ui-secondary-text: var(--ui-base-secondary-text);
119 /* Merged so one utility carries both the fill and its opacity. */
120 --color-ui-surface: color-mix(
121 in srgb,
122 var(--ext-ui-surface, #f0f0f0)
123 calc(var(--ext-ui-surface-opacity, 0.8) * 100%),
124 transparent
125 );
126
127 --radius-ui-card: var(--ext-ui-radius-card, var(--ext-ui-radius, 1.5rem));
128 --radius-ui-input: var(--ext-ui-radius-input, var(--ext-ui-radius, 1.5rem));
129 --radius-ui-button: var(--ext-ui-radius-button, var(--ext-ui-radius, 9999px));
130 /* No global fallback: rounding the cards must not round the logo. */
131 --radius-ui-logo: var(--ext-ui-radius-logo, 0px);
132
133 --blur-ui: var(--ext-ui-blur, 40px);
134 --shadow-ui: var(
135 --ext-ui-shadow,
136 0 4px 6px -1px rgb(0 0 0 / 0.1),
137 0 2px 4px -2px rgb(0 0 0 / 0.1)
138 );
139
140 --font-ui-heading: var(--ext-ui-font-heading, var(--ext-ui-font, inherit));
141 --font-ui-body: var(--ext-ui-font-body, var(--ext-ui-font, inherit));
142 --font-ui-input: var(--ext-ui-font-input, var(--ext-ui-font, inherit));
143 --font-weight-ui-strong: var(--ext-ui-heading-weight, 600);
144
145 --text-ui-heading: var(--ext-ui-heading-size, 1.25rem);
146 --text-ui-heading--line-height: 1.4;
147 /* 1.2x holds the `text-xl` / `md:text-2xl` pair at the default size. */
148 --text-ui-heading-lg: calc(var(--ext-ui-heading-size, 1.25rem) * 1.2);
149 --text-ui-heading-lg--line-height: 1.34;
150 --text-ui-status: var(--ext-ui-status-size, 0.875rem);
151 --text-ui-status--line-height: 1.5;
152 --font-weight-ui-status: var(--ext-ui-status-weight, 500);
153 --text-ui-body: var(--ext-ui-body-size, 1rem);
154 --text-ui-body--line-height: var(--ext-ui-leading, 1.5rem);
155
156 --tracking-ui-heading: var(--ext-ui-heading-tracking, 0em);
157 --leading-ui: var(--ext-ui-leading, 1.5rem);
158 }
159
160 /* Launch design tokens with no matching Tailwind namespace. */
161 @utility border-ui {
162 border-width: var(--ext-ui-border-width, 1px);
163 border-style: var(--ext-ui-border-style, solid);
164 }
165 @utility max-w-ui {
166 max-width: var(--ext-ui-max-width, 42rem);
167 }
168 @utility gap-ui {
169 gap: var(--ext-ui-gap, 1.25rem);
170 }
171 /* Scaled so one control holds the gap-5 / md:gap-8 pair exactly. */
172 @utility gap-ui-lg {
173 gap: calc(var(--ext-ui-gap, 1.25rem) * 1.6);
174 }
175 @utility mb-ui-label {
176 margin-bottom: var(--ext-ui-label-gap, 0.5rem);
177 }
178 @utility mb-ui-block {
179 margin-bottom: calc(var(--ext-ui-label-gap, 0.5rem) * 2);
180 }
181 @utility gap-ui-section {
182 gap: var(--ext-ui-section-gap, 1rem);
183 }
184 /* Each side reads its own property first, so unlocking padding needs no JS. */
185 @utility p-ui {
186 padding-top: var(--ext-ui-padding-top, var(--ext-ui-surface-padding, 1.5rem));
187 padding-right: var(
188 --ext-ui-padding-right,
189 var(--ext-ui-surface-padding, 1.5rem)
190 );
191 padding-bottom: var(
192 --ext-ui-padding-bottom,
193 var(--ext-ui-surface-padding, 1.5rem)
194 );
195 padding-left: var(
196 --ext-ui-padding-left,
197 var(--ext-ui-surface-padding, 1.5rem)
198 );
199 }
200 @utility px-ui {
201 padding-right: var(
202 --ext-ui-padding-right,
203 var(--ext-ui-surface-padding, 1.5rem)
204 );
205 padding-left: var(
206 --ext-ui-padding-left,
207 var(--ext-ui-surface-padding, 1.5rem)
208 );
209 }
210 /* Two fallbacks: the partner logo and the Extendify mark ship at different heights. */
211 @utility h-ui-logo {
212 height: var(--ext-ui-logo-height, 2.5rem);
213 }
214 @utility h-ui-mark {
215 height: var(--ext-ui-logo-height, 2rem);
216 }
217 @utility h-ui-loader {
218 height: var(--ext-ui-loader-height, 118px);
219 }
220 @utility rounded-ui-loader {
221 border-radius: var(--ext-ui-loader-radius, 0px);
222 }
223
224 /* sizing */
225 @utility max-w-52 {
226 max-width: 13rem;
227 }
228 @utility max-w-72 {
229 max-width: 18rem;
230 }
231
232 @utility min-w-20 {
233 min-width: 5rem;
234 }
235 @utility min-w-30 {
236 min-width: 7.5rem;
237 }
238 @utility min-w-40 {
239 min-width: 10rem;
240 }
241 @utility min-w-48 {
242 min-width: 12rem;
243 }
244 @utility min-w-60 {
245 min-width: 15rem;
246 }
247 @utility min-w-sm {
248 min-width: 7rem;
249 }
250 @utility min-w-md {
251 min-width: 30rem;
252 }
253
254 @utility w-40vw {
255 width: 40vw;
256 }
257
258 @utility min-h-16 {
259 min-height: 4rem;
260 }
261 @utility min-h-20 {
262 min-height: 5rem;
263 }
264 @utility min-h-40 {
265 min-height: 10rem;
266 }
267 @utility min-h-48 {
268 min-height: 12rem;
269 }
270 @utility min-h-60 {
271 min-height: 15rem;
272 }
273 @utility min-h-half {
274 min-height: 50vh;
275 }
276
277 @utility max-h-half {
278 max-height: 50vh;
279 }
280
281 /* typography */
282 @utility text-xss {
283 font-size: 11px;
284 }
285 @utility text-3xl {
286 font-size: 2rem;
287 line-height: 2.5rem;
288 }
289 @utility leading-extra-tight {
290 line-height: 0.5;
291 }
292
293 /* z-index */
294 @utility z-high-1 {
295 z-index: 99998;
296 }
297 @utility z-high {
298 z-index: 99999;
299 }
300 @utility z-higher {
301 z-index: 999999;
302 }
303 @utility z-max-1 {
304 z-index: 2147483646;
305 }
306 @utility z-max {
307 z-index: 2147483647;
308 }
309
310 @utility ring-wp {
311 --tw-ring-width: var(--wp-admin-border-width-focus, 2px);
312 }
313
314 /* shadows */
315 @utility shadow-inner-sm {
316 box-shadow:
317 inset 0 0 0 1px rgba(0, 0, 0, 0.1),
318 0 3px 15px -3px rgba(0, 0, 0, 0.035),
319 0 0 1px rgba(0, 0, 0, 0.025);
320 }
321 @utility shadow-inner-md {
322 box-shadow:
323 inset 0 0 0 1px rgba(0, 0, 0, 0.2),
324 0 3px 15px -3px rgba(0, 0, 0, 0.025),
325 0 0 1px rgba(0, 0, 0, 0.02);
326 }
327 @utility shadow-modal {
328 box-shadow:
329 0 0 0 1px rgba(0, 0, 0, 0.1),
330 0 3px 15px -3px rgba(0, 0, 0, 0.035),
331 0 0 1px rgba(0, 0, 0, 0.05);
332 }
333 @utility shadow-button {
334 box-shadow: 0 0 0 1px var(--ext-design-main, #3959e9);
335 }
336 @utility shadow-toggle {
337 box-shadow:
338 0 0 0 2px #fff,
339 0 0 0 4px var(--ext-design-main, #3959e9);
340 }
341 @utility shadow-surface {
342 box-shadow: 0 5px 20px 10px rgba(0, 0, 0, 0.03);
343 }
344 @utility shadow-lg-flipped {
345 box-shadow: 0px -10px 30px -15px #00000025;
346 }
347 @utility shadow-2xl-flipped {
348 box-shadow: 0px -25px 50px -12px #00000025;
349 }
350 @utility shadow-vibe {
351 box-shadow:
352 0 4px 6px -1px rgb(0 0 0 / 0.1),
353 0 2px 4px -2px rgb(0 0 0 / 0.1);
354 }
355