|
1 | 1 | @import 'tailwindcss'; |
| 2 | +@import './tailwind/colors.css'; |
| 3 | +@import './tailwind/spacing.css'; |
| 4 | +@import './tailwind/text.css'; |
| 5 | + |
2 | 6 | /* Dark theme to be driven by a CSS selector instead of the prefers-color-scheme media query */ |
3 | 7 | @custom-variant dark (&:where(.dark, .dark *)); |
4 | 8 |
|
| 9 | +/* |
| 10 | + Check the css files in the tailwind folder for more variables |
| 11 | + Add more variables here, but if they start to get long, move them to their own file. |
| 12 | +*/ |
5 | 13 | @theme { |
6 | 14 | /* Aspect Ratios */ |
7 | 15 | --aspect-ratio-5/3: 5/3; |
|
14 | 22 | --breakpoint-mobile-menu: 600px; |
15 | 23 | --breakpoint-xs: 480px; |
16 | 24 |
|
17 | | - /* Colors */ |
18 | | - --color-transparent: transparent; |
19 | | - --color-current: currentColor; |
20 | | - --color-white: #ffffff; |
21 | | - --color-black: #000000; |
22 | | - |
23 | 25 | /* Flex Basis */ |
24 | 26 | --flex-basis-1/2-gap: calc((100% / 2) - var(--wp--style--block-gap)); |
25 | 27 | --flex-basis-1/3-gap: calc((100% / 3) - var(--wp--style--block-gap)); |
26 | 28 | --flex-basis-1/4-gap: calc((100% / 4) - var(--wp--style--block-gap)); |
27 | 29 |
|
28 | | - /* Font Family */ |
29 | | - --font-sans: var(--wp--preset--font-family--body); |
30 | | - --font-body: var(--wp--preset--font-family--body); |
31 | | - --font-heading: var(--wp--preset--font-family--heading); |
32 | | - |
33 | | - /* Fluid Font Sizes */ |
34 | | - --text-zero: 0; |
35 | | - --text-xs: clamp(0.625rem, 0.625rem + 0vw, 0.625rem); |
36 | | - --text-sm: clamp(0.75rem, 0.75rem + 0.3125vw, 0.875rem); |
37 | | - --text-md: clamp(1rem, 1rem + 0vw, 1rem); |
38 | | - --text-lg: clamp(1.625rem, 1.625rem + 2.5vw, 2.25rem); |
39 | | - --text-xl: clamp(2.25rem, 2.25rem + 3.75vw, 3rem); |
40 | | - --text-2xl: clamp(2.625rem, 2.625rem + 4.5vw, 3.75rem); |
41 | | - |
42 | | - /* Spacing */ |
43 | | - --spacing-1: 1px; |
44 | | - --spacing-2: 2px; |
45 | | - --spacing-4: 4px; |
46 | | - --spacing-6: 6px; |
47 | | - --spacing-8: 8px; |
48 | | - --spacing-10: 10px; |
49 | | - --spacing-12: 12px; |
50 | | - --spacing-16: 16px; |
51 | | - --spacing-20: 20px; |
52 | | - --spacing-24: 24px; |
53 | | - --spacing-28: 28px; |
54 | | - --spacing-32: 32px; |
55 | | - --spacing-36: 36px; |
56 | | - --spacing-40: 40px; |
57 | | - --spacing-44: 44px; |
58 | | - --spacing-48: 48px; |
59 | | - --spacing-52: 52px; |
60 | | - --spacing-56: 56px; |
61 | | - --spacing-60: 60px; |
62 | | - --spacing-64: 64px; |
63 | | - --spacing-80: 80px; |
64 | | - --spacing-96: 96px; |
65 | | - --spacing-112: 112px; |
66 | | - --spacing-128: 128px; |
67 | | - |
68 | | - /* Fluid Spacing */ |
69 | | - --spacing-fluid-xs: clamp(0.125rem, 0.125rem + 0.3125vw, 1rem); |
70 | | - --spacing-fluid-sm: clamp(1.25rem, 1.25rem + 0.5vw, 2.5rem); |
71 | | - --spacing-fluid-md: clamp(2rem, 2rem + 1vw, 4rem); |
72 | | - --spacing-fluid-lg: clamp(3.5rem, 3.5rem + 1.75vw, 7rem); |
73 | | - --spacing-fluid-xl: clamp(6rem, 6rem + 2.5vw, 10rem); |
74 | | - --spacing-fluid-2xl: clamp(9rem, 9rem + 3.75vw, 15rem); |
75 | | - |
76 | 30 | /* Radius */ |
77 | 31 | --radius-default: 0.5rem; |
78 | 32 | } |
0 commit comments