engineering blog at https://blog.tangled.sh
1@tailwind base; 2@tailwind components; 3@tailwind utilities; 4@layer base { 5 @font-face { 6 font-family: "InterVariable"; 7 src: url("/static/fonts/InterVariable.woff2") format("woff2"); 8 font-weight: normal; 9 font-style: normal; 10 font-display: swap; 11 } 12 13 @font-face { 14 font-family: "InterVariable"; 15 src: url("/static/fonts/InterVariable-Italic.woff2") format("woff2"); 16 font-weight: normal; 17 font-style: italic; 18 font-display: swap; 19 } 20 21 @font-face { 22 font-family: "InterDisplay"; 23 src: url("/static/fonts/InterDisplay-Regular.woff2") format("woff2"); 24 font-weight: normal; 25 font-style: normal; 26 font-display: swap; 27 } 28 29 @font-face { 30 font-family: "IBMPlexMono"; 31 src: url("/static/fonts/IBMPlexMono-Regular.woff2") format("woff2"); 32 font-weight: normal; 33 font-style: italic; 34 font-display: swap; 35 } 36 37 h1, h2, h3 { 38 @apply text-2xl; 39 @apply font-display; 40 @apply text-black; 41 @apply font-bold; 42 } 43 44 ::selection { 45 @apply bg-yellow-400; 46 @apply text-black; 47 @apply bg-opacity-30; 48 } 49 50 @layer base { 51 a { 52 @apply no-underline text-black hover:underline hover:text-gray-800; 53 } 54 55 label { 56 @apply block text-sm text-black; 57 } 58 input { 59 @apply bg-white border border-black rounded-sm focus:ring-black p-2; 60 } 61 textarea { 62 @apply bg-white border border-black rounded-sm focus:ring-black p-2; 63 } 64 } 65 66 @layer components { 67 .btn { 68 @apply relative z-10 inline-flex min-h-[30px] cursor-pointer items-center 69 justify-center bg-transparent px-2 pb-[0.2rem] text-base 70 text-gray-900 before:absolute before:inset-0 before:-z-10 71 before:block before:rounded-sm before:border before:border-gray-200 72 before:bg-white before:drop-shadow-sm 73 before:content-[''] hover:before:border-gray-300 74 hover:before:bg-gray-50 75 hover:before:shadow-[0_2px_2px_0_rgba(20,20,96,0.1),inset_0_-2px_0_0_#f5f5f5] 76 focus:outline-none focus-visible:before:outline 77 focus-visible:before:outline-4 focus-visible:before:outline-gray-500 78 active:before:shadow-[inset_0_2px_2px_0_rgba(20,20,96,0.1)]; 79 } 80 } 81 @layer utilities { 82 .error { 83 @apply py-1 text-red-400; 84 } 85 .success { 86 @apply py-1 text-black; 87 } 88 } 89}