.app { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; } .swatches { display: flex; gap: 0.375rem; margin: 0; padding: 0; border: 0; } .swatches button { width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; cursor: pointer; } .swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px Canvas, 0 0 0 4px currentColor; } /* The bracket's own page, so light and dark can be tried whatever the surroundings. */ .canvas { padding: 1.5rem; border-radius: 16px; } .canvas[data-scheme="light"] { color-scheme: light; background: #fafaf9; color: #1c1917; } .canvas[data-scheme="dark"] { color-scheme: dark; background: #0c0a09; color: #f5f5f4; } /* Every token of the default theme can be overridden per bracket. */ .brand { --rb-accent-soft: color-mix(in oklab, var(--rb-accent) 16%, transparent); --rb-match-width: 12rem; --rb-column-gap: 3.5rem; } [data-scheme="light"] .brand { --rb-text: #1c1917; --rb-text-muted: #78716c; --rb-surface: #ffffff; --rb-surface-hover: #f5f5f4; --rb-border: #e7e5e4; --rb-line: #d6d3d1; } [data-scheme="dark"] .brand { --rb-text: #f5f5f4; --rb-text-muted: #a8a29e; --rb-surface: #1c1917; --rb-surface-hover: #292524; --rb-border: #44403c; --rb-line: #57534e; } .header { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; } .title { margin: 0; font-size: 1.375rem; font-weight: 700; line-height: 1.2; } .meta { margin: 0.25rem 0 0; font-size: 0.875rem; color: color-mix(in oklab, currentColor 60%, transparent); } /* A segmented control: the view on show sits raised on the track. */ .switch { display: inline-flex; flex-wrap: wrap; min-width: 0; margin: 0; padding: 3px; border: 0; border-radius: 999px; background: color-mix(in oklab, currentColor 7%, transparent); } .switch button { height: 2rem; padding: 0 0.875rem; border: 0; border-radius: 999px; background: none; color: color-mix(in oklab, currentColor 65%, transparent); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer; } .switch button[aria-pressed="true"] { background: Canvas; color: inherit; box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }