|
1 | 1 | @import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
|
2 | 2 | @import "tailwindcss";
|
| 3 | +@plugin "@tailwindcss/typography"; |
3 | 4 |
|
4 | 5 | @theme {
|
5 | 6 | --font-body: "Barlow", sans-serif;
|
|
19 | 20 | --text-4xl: 3rem; /* 48px */
|
20 | 21 | --text-5xl: 3.75rem; /* 60px */
|
21 | 22 | --text-6xl: 4.5rem; /* 72px */
|
| 23 | + |
| 24 | + --spacing-1u: var(--unit); |
| 25 | + --spacing-2u: calc(var(--unit) * 2); |
| 26 | + --spacing-3u: calc(var(--unit) * 3); |
| 27 | + --spacing-4u: calc(var(--unit) * 4); |
| 28 | + --spacing-5u: calc(var(--unit) * 5); |
| 29 | + --spacing-6u: calc(var(--unit) * 6); |
| 30 | + --spacing-7u: calc(var(--unit) * 7); |
| 31 | + --spacing-8u: calc(var(--unit) * 8); |
| 32 | + |
| 33 | + --spacing-1col: calc(var(--unit) * (1 * 2 - 1)); |
| 34 | + --spacing-2col: calc(var(--unit) * (2 * 2 - 1)); |
| 35 | + --spacing-3col: calc(var(--unit) * (3 * 2 - 1)); |
| 36 | + --spacing-4col: calc(var(--unit) * (4 * 2 - 1)); |
| 37 | + --spacing-5col: calc(var(--unit) * (5 * 2 - 1)); |
| 38 | + --spacing-6col: calc(var(--unit) * (6 * 2 - 1)); |
| 39 | + --spacing-7col: calc(var(--unit) * (7 * 2 - 1)); |
| 40 | + --spacing-8col: calc(var(--unit) * (8 * 2 - 1)); |
| 41 | + --spacing-9col: calc(var(--unit) * (9 * 2 - 1)); |
| 42 | + --spacing-10col: calc(var(--unit) * (10 * 2 - 1)); |
22 | 43 | }
|
23 | 44 |
|
24 | 45 | @layer base {
|
25 | 46 | :root {
|
26 |
| - /* Colors */ |
27 | 47 | --color-sf-red: #f22613;
|
28 |
| - /* |
29 |
| - --color-sf-blue: #67b4f5; |
30 |
| - --color-sf-purple: #c05f9a; |
31 |
| - --color-sf-navy: #323266; |
32 |
| - --color-sf-cream: #f7efde; |
33 |
| - */ |
| 48 | + |
| 49 | + --unit: 40px; |
34 | 50 | }
|
35 | 51 |
|
36 | 52 | html {
|
|
56 | 72 | background-color: var(--color-background-base);
|
57 | 73 | }
|
58 | 74 |
|
| 75 | + main::before { |
| 76 | + --col-color: rgba(255, 0, 0, 0.03); |
| 77 | + --col-size: 40px; |
| 78 | + content: ""; |
| 79 | + position: absolute; |
| 80 | + top: 0; |
| 81 | + left: 0; |
| 82 | + width: 100%; |
| 83 | + height: 100%; |
| 84 | + pointer-events: none; |
| 85 | + background-image: |
| 86 | + repeating-linear-gradient( |
| 87 | + to right, |
| 88 | + var(--col-color) 0, |
| 89 | + var(--col-color) var(--col-size), |
| 90 | + transparent var(--col-size), |
| 91 | + transparent calc(var(--col-size) * 2) |
| 92 | + ); |
| 93 | + background-size: 80px 100%; |
| 94 | + z-index: 1; |
| 95 | + display: none; |
| 96 | + } |
| 97 | + |
| 98 | + main { |
| 99 | + position: relative; |
| 100 | + z-index: 2; |
| 101 | + } |
| 102 | + |
59 | 103 | p {
|
60 | 104 | @apply mb-4;
|
61 | 105 | }
|
|
68 | 112 | duration-300
|
69 | 113 | ease-out
|
70 | 114 | underline-offset-[.2rem]
|
71 |
| - decoration-primary/25 |
| 115 | + decoration-primary/20 |
72 | 116 | hover:decoration-primary;
|
73 | 117 | }
|
74 | 118 | }
|
|
82 | 126 | display: none;
|
83 | 127 | }
|
84 | 128 | }
|
| 129 | + |
| 130 | + .prose { |
| 131 | + line-height: revert; |
| 132 | + |
| 133 | + /* |
| 134 | + a { |
| 135 | + */ |
| 136 | + a:where(a:not([role=button])), [role=link] { |
| 137 | + color: var(--color-sf-red); |
| 138 | + @apply underline |
| 139 | + font-semibold |
| 140 | + transition |
| 141 | + duration-300 |
| 142 | + ease-out |
| 143 | + underline-offset-[.2rem] |
| 144 | + decoration-primary/20 |
| 145 | + hover:decoration-primary; |
| 146 | + } |
| 147 | + } |
85 | 148 | }
|
0 commit comments