Become a Pro / website · becomeapro.ai / src / app / globals.css
| 1 | @tailwind base; |
| 2 | @tailwind components; |
| 3 | @tailwind utilities; |
| 4 | |
| 5 | /* Plain black and white. Light by default, dark when the device asks for it. One system font. No animation. */ |
| 6 | @layer base { |
| 7 | :root { |
| 8 | --background: 0 0% 100%; |
| 9 | --foreground: 0 0% 7%; |
| 10 | --card: 0 0% 100%; |
| 11 | --card-foreground: 0 0% 7%; |
| 12 | --popover: 0 0% 100%; |
| 13 | --popover-foreground: 0 0% 7%; |
| 14 | --primary-foreground: 0 0% 100%; |
| 15 | --secondary: 0 0% 95%; |
| 16 | --secondary-foreground: 0 0% 7%; |
| 17 | --muted: 0 0% 95%; |
| 18 | --muted-foreground: 0 0% 35%; |
| 19 | --accent: 0 0% 94%; |
| 20 | --accent-foreground: 0 0% 7%; |
| 21 | --destructive: 0 70% 40%; |
| 22 | --destructive-foreground: 0 0% 100%; |
| 23 | --border: 0 0% 85%; |
| 24 | --input: 0 0% 75%; |
| 25 | --ring: 0 0% 7%; |
| 26 | --radius: 0.375rem; |
| 27 | --ash: #555555; |
| 28 | --mist: #222222; |
| 29 | --link: #111111; |
| 30 | --soft: rgb(0 0 0 / 0.07); |
| 31 | --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; |
| 32 | --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; |
| 33 | --font-display: var(--font-sans); |
| 34 | --font-mark: var(--font-sans); |
| 35 | --pm-share-accent: currentColor; |
| 36 | --pm-share-line: currentColor; |
| 37 | --pm-share-glow: transparent; |
| 38 | --pm-share-glow-hover: transparent; |
| 39 | color-scheme: light; |
| 40 | } |
| 41 | |
| 42 | @media (prefers-color-scheme: dark) { |
| 43 | :root { |
| 44 | --background: 0 0% 7%; |
| 45 | --foreground: 0 0% 95%; |
| 46 | --card: 0 0% 9%; |
| 47 | --card-foreground: 0 0% 95%; |
| 48 | --popover: 0 0% 10%; |
| 49 | --popover-foreground: 0 0% 95%; |
| 50 | --primary-foreground: 0 0% 7%; |
| 51 | --secondary: 0 0% 14%; |
| 52 | --secondary-foreground: 0 0% 95%; |
| 53 | --muted: 0 0% 14%; |
| 54 | --muted-foreground: 0 0% 68%; |
| 55 | --accent: 0 0% 15%; |
| 56 | --accent-foreground: 0 0% 95%; |
| 57 | --border: 0 0% 24%; |
| 58 | --input: 0 0% 32%; |
| 59 | --ring: 0 0% 95%; |
| 60 | --ash: #aaaaaa; |
| 61 | --mist: #dddddd; |
| 62 | --link: #f2f2f2; |
| 63 | --soft: rgb(255 255 255 / 0.1); |
| 64 | color-scheme: dark; |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | * { |
| 69 | @apply border-border; |
| 70 | } |
| 71 | |
| 72 | html { |
| 73 | background: hsl(var(--background)); |
| 74 | } |
| 75 | |
| 76 | body { |
| 77 | font-family: var(--font-sans); |
| 78 | font-size: 18px; |
| 79 | line-height: 1.6; |
| 80 | } |
| 81 | |
| 82 | a { |
| 83 | text-decoration-thickness: 1px; |
| 84 | text-underline-offset: 3px; |
| 85 | } |
| 86 | |
| 87 | :focus-visible { |
| 88 | outline: 2px solid hsl(var(--foreground)); |
| 89 | outline-offset: 2px; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | @layer components { |
| 94 | /* Page column */ |
| 95 | .page { |
| 96 | @apply mx-auto w-full max-w-[720px] px-4 pb-20 pt-10 md:pt-14; |
| 97 | } |
| 98 | |
| 99 | /* Kept for the sign-in and account pages */ |
| 100 | .label { |
| 101 | @apply text-sm font-semibold uppercase tracking-wide text-[var(--ash)]; |
| 102 | } |
| 103 | .label > i { |
| 104 | display: none; |
| 105 | } |
| 106 | .display-title { |
| 107 | @apply text-4xl font-bold leading-tight; |
| 108 | } |
| 109 | .ghost-link, |
| 110 | .text-link { |
| 111 | @apply underline; |
| 112 | } |
| 113 | |
| 114 | .crumbs { |
| 115 | @apply mb-6 text-[15px] text-[var(--ash)]; |
| 116 | } |
| 117 | .crumbs a { |
| 118 | @apply underline; |
| 119 | } |
| 120 | |
| 121 | /* Plain link lists on the home, area and field pages */ |
| 122 | .plain-list { |
| 123 | @apply my-4 list-none space-y-3 p-0; |
| 124 | } |
| 125 | .plain-list a { |
| 126 | @apply font-semibold underline; |
| 127 | } |
| 128 | .plain-list p { |
| 129 | @apply m-0 text-[16px] text-[var(--ash)]; |
| 130 | } |
| 131 | |
| 132 | /* Lesson text, layered on @tailwindcss/typography */ |
| 133 | .lesson { |
| 134 | @apply prose max-w-none text-foreground; |
| 135 | font-size: 18px; |
| 136 | line-height: 1.7; |
| 137 | --tw-prose-body: hsl(var(--foreground)); |
| 138 | --tw-prose-headings: hsl(var(--foreground)); |
| 139 | --tw-prose-links: hsl(var(--foreground)); |
| 140 | --tw-prose-bold: hsl(var(--foreground)); |
| 141 | --tw-prose-bullets: hsl(var(--foreground)); |
| 142 | --tw-prose-counters: hsl(var(--foreground)); |
| 143 | --tw-prose-quotes: hsl(var(--foreground)); |
| 144 | --tw-prose-code: hsl(var(--foreground)); |
| 145 | --tw-prose-th-borders: hsl(var(--border)); |
| 146 | --tw-prose-td-borders: hsl(var(--border)); |
| 147 | --tw-prose-hr: hsl(var(--border)); |
| 148 | } |
| 149 | .lesson h2 { |
| 150 | @apply mt-12 text-2xl font-bold; |
| 151 | } |
| 152 | .lesson h3 { |
| 153 | @apply text-xl font-bold; |
| 154 | } |
| 155 | .lesson :not(pre) > code { |
| 156 | @apply rounded bg-[var(--soft)] px-1 py-0.5 font-normal before:content-none after:content-none; |
| 157 | } |
| 158 | .lesson pre { |
| 159 | @apply rounded-md border border-border bg-[var(--soft)] text-foreground; |
| 160 | } |
| 161 | |
| 162 | /* Inline SVG diagrams draw in currentColor so they follow light and dark */ |
| 163 | .diagram svg { |
| 164 | @apply block h-auto w-full; |
| 165 | color: hsl(var(--foreground)); |
| 166 | } |
| 167 | .diagram .soft { |
| 168 | fill: var(--soft); |
| 169 | } |
| 170 | } |