CSS · 2596 bytes Raw Blame History
1 /* SPDX-License-Identifier: AGPL-3.0-or-later */
2 /*
3 * shithub — base styles.
4 *
5 * S00 ships a tiny stylesheet sufficient for the hello page across light /
6 * dark / auto / high-contrast themes. S02 introduces the full theme system
7 * via Primer primitives; this file becomes one layer in a stack.
8 *
9 * Color tokens follow Primer's naming so the migration in S02 is mechanical.
10 */
11
12 :root {
13 --canvas-default: #ffffff;
14 --canvas-subtle: #f6f8fa;
15 --fg-default: #1f2328;
16 --fg-muted: #59636e;
17 --border-default: #d0d7de;
18 --accent-fg: #0969da;
19 --danger-fg: #cf222e;
20 --shithub-mark: var(--danger-fg);
21 }
22
23 [data-theme="dark"] {
24 --canvas-default: #0d1117;
25 --canvas-subtle: #161b22;
26 --fg-default: #f0f6fc;
27 --fg-muted: #9198a1;
28 --border-default: #3d444d;
29 --accent-fg: #4493f8;
30 --danger-fg: #f85149;
31 }
32
33 [data-theme="high-contrast"] {
34 --canvas-default: #000000;
35 --canvas-subtle: #0a0c10;
36 --fg-default: #ffffff;
37 --fg-muted: #d9dee3;
38 --border-default: #7a828e;
39 --accent-fg: #71b7ff;
40 --danger-fg: #ff6a69;
41 }
42
43 * {
44 box-sizing: border-box;
45 }
46
47 html, body {
48 margin: 0;
49 padding: 0;
50 background: var(--canvas-default);
51 color: var(--fg-default);
52 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
53 font-size: 16px;
54 line-height: 1.5;
55 }
56
57 a {
58 color: var(--accent-fg);
59 text-decoration: none;
60 }
61 a:hover { text-decoration: underline; }
62
63 .hello {
64 max-width: 640px;
65 margin: 4rem auto;
66 padding: 2rem 1.5rem;
67 text-align: center;
68 }
69
70 .hello-logo {
71 margin: 0 auto 1.5rem;
72 width: 160px;
73 height: 160px;
74 color: var(--shithub-mark);
75 }
76
77 .hello-logo svg {
78 width: 100%;
79 height: 100%;
80 }
81
82 .hello-title {
83 font-size: 2.75rem;
84 margin: 0 0 0.5rem;
85 letter-spacing: -0.02em;
86 }
87
88 .hello-tagline {
89 color: var(--fg-muted);
90 font-size: 1.15rem;
91 margin: 0 0 2rem;
92 }
93
94 .hello-meta {
95 display: grid;
96 grid-template-columns: max-content 1fr;
97 gap: 0.25rem 1rem;
98 max-width: 24rem;
99 margin: 0 auto 2rem;
100 padding: 1rem 1.5rem;
101 background: var(--canvas-subtle);
102 border: 1px solid var(--border-default);
103 border-radius: 6px;
104 text-align: left;
105 font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
106 font-size: 0.875rem;
107 }
108
109 .hello-meta dt {
110 color: var(--fg-muted);
111 }
112
113 .hello-meta dd {
114 margin: 0;
115 }
116
117 .hello-status {
118 color: var(--fg-muted);
119 margin: 0 auto 2rem;
120 max-width: 36rem;
121 }
122
123 .hello-links {
124 display: flex;
125 justify-content: center;
126 gap: 1rem;
127 font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
128 font-size: 0.875rem;
129 }