|
| 1 | +:root { |
| 2 | + color-scheme: light dark; |
| 3 | + |
| 4 | + /* |
| 5 | + * Fallbacks for host style variables used by this app. |
| 6 | + * The host may provide these (and many more) via the host context. |
| 7 | + */ |
| 8 | + --color-text-primary: light-dark(#1f2937, #f3f4f6); |
| 9 | + --color-text-inverse: light-dark(#f3f4f6, #1f2937); |
| 10 | + --color-text-info: light-dark(#1d4ed8, #60a5fa); |
| 11 | + --color-background-primary: light-dark(#ffffff, #1a1a1a); |
| 12 | + --color-background-inverse: light-dark(#1a1a1a, #ffffff); |
| 13 | + --color-background-info: light-dark(#eff6ff, #1e3a5f); |
| 14 | + --color-ring-primary: light-dark(#3b82f6, #60a5fa); |
| 15 | + --border-radius-md: 6px; |
| 16 | + --border-width-regular: 1px; |
| 17 | + --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'; |
| 18 | + --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace; |
| 19 | + --font-weight-normal: 400; |
| 20 | + --font-weight-bold: 700; |
| 21 | + --font-text-md-size: 1rem; |
| 22 | + --font-text-md-line-height: 1.5; |
| 23 | + --font-heading-3xl-size: 2.25rem; |
| 24 | + --font-heading-3xl-line-height: 1.1; |
| 25 | + --font-heading-2xl-size: 1.875rem; |
| 26 | + --font-heading-2xl-line-height: 1.2; |
| 27 | + --font-heading-xl-size: 1.5rem; |
| 28 | + --font-heading-xl-line-height: 1.25; |
| 29 | + --font-heading-lg-size: 1.25rem; |
| 30 | + --font-heading-lg-line-height: 1.3; |
| 31 | + --font-heading-md-size: 1rem; |
| 32 | + --font-heading-md-line-height: 1.4; |
| 33 | + --font-heading-sm-size: 0.875rem; |
| 34 | + --font-heading-sm-line-height: 1.4; |
| 35 | + |
| 36 | + /* Spacing derived from host typography */ |
| 37 | + --spacing-unit: var(--font-text-md-size); |
| 38 | + --spacing-xs: calc(var(--spacing-unit) * 0.25); |
| 39 | + --spacing-sm: calc(var(--spacing-unit) * 0.5); |
| 40 | + --spacing-md: var(--spacing-unit); |
| 41 | + --spacing-lg: calc(var(--spacing-unit) * 1.5); |
| 42 | + |
| 43 | + /* App accent color (customize for your brand) */ |
| 44 | + --color-accent: #2563eb; |
| 45 | + --color-text-on-accent: #ffffff; |
| 46 | +} |
| 47 | + |
| 48 | +* { |
| 49 | + box-sizing: border-box; |
| 50 | +} |
| 51 | + |
| 52 | +html, body { |
| 53 | + font-family: var(--font-sans); |
| 54 | + font-size: var(--font-text-md-size); |
| 55 | + font-weight: var(--font-weight-normal); |
| 56 | + line-height: var(--font-text-md-line-height); |
| 57 | + color: var(--color-text-primary); |
| 58 | +} |
| 59 | + |
| 60 | +h1 { |
| 61 | + font-size: var(--font-heading-3xl-size); |
| 62 | + line-height: var(--font-heading-3xl-line-height); |
| 63 | +} |
| 64 | +h2 { |
| 65 | + font-size: var(--font-heading-2xl-size); |
| 66 | + line-height: var(--font-heading-2xl-line-height); |
| 67 | +} |
| 68 | +h3 { |
| 69 | + font-size: var(--font-heading-xl-size); |
| 70 | + line-height: var(--font-heading-xl-line-height); |
| 71 | +} |
| 72 | +h4 { |
| 73 | + font-size: var(--font-heading-lg-size); |
| 74 | + line-height: var(--font-heading-lg-line-height); |
| 75 | +} |
| 76 | +h5 { |
| 77 | + font-size: var(--font-heading-md-size); |
| 78 | + line-height: var(--font-heading-md-line-height); |
| 79 | +} |
| 80 | +h6 { |
| 81 | + font-size: var(--font-heading-sm-size); |
| 82 | + line-height: var(--font-heading-sm-line-height); |
| 83 | +} |
| 84 | + |
| 85 | +code, pre, kbd { |
| 86 | + font-family: var(--font-mono); |
| 87 | + font-size: 1em; |
| 88 | +} |
| 89 | + |
| 90 | +b, strong { |
| 91 | + font-weight: var(--font-weight-bold); |
| 92 | +} |
0 commit comments