58 lines
139 KiB
CSS
58 lines
139 KiB
CSS
|
|
/*! @settings
|
||
|
|
name: Scriptorium
|
||
|
|
id: scriptorium-theme
|
||
|
|
settings:
|
||
|
|
- id: scrip-reading
|
||
|
|
title: Reading
|
||
|
|
type: heading
|
||
|
|
level: 2
|
||
|
|
- id: file-line-width
|
||
|
|
title: Reading line width
|
||
|
|
description: Applies when "Readable line length" is on (Settings → Editor). Theme default 40em.
|
||
|
|
type: variable-number-slider
|
||
|
|
default: 40
|
||
|
|
min: 30
|
||
|
|
max: 60
|
||
|
|
step: 1
|
||
|
|
format: em
|
||
|
|
- id: scrip-line-height-prose
|
||
|
|
title: Prose line height
|
||
|
|
description: Line height of body text. Theme default 1.72.
|
||
|
|
type: variable-number-slider
|
||
|
|
default: 1.72
|
||
|
|
min: 1.5
|
||
|
|
max: 2
|
||
|
|
step: 0.02
|
||
|
|
- id: density-modifier
|
||
|
|
title: Paragraph spacing
|
||
|
|
description: Multiplier on the theme's paragraph rhythm. 1 = theme default.
|
||
|
|
type: variable-number-slider
|
||
|
|
default: 1
|
||
|
|
min: 0.85
|
||
|
|
max: 1.15
|
||
|
|
step: 0.05
|
||
|
|
- id: scrip-typefaces
|
||
|
|
title: Typefaces
|
||
|
|
type: heading
|
||
|
|
level: 2
|
||
|
|
- id: scrip-font-heading-stack
|
||
|
|
title: Heading typeface
|
||
|
|
description: Headings only; body text keeps the theme's sans pairing.
|
||
|
|
type: variable-select
|
||
|
|
default: '"IBM Plex Serif", "Noto Serif SC", "Source Han Serif SC", "Georgia", "Times New Roman", serif'
|
||
|
|
options:
|
||
|
|
- label: IBM Plex Serif (theme default)
|
||
|
|
value: '"IBM Plex Serif", "Noto Serif SC", "Source Han Serif SC", "Georgia", "Times New Roman", serif'
|
||
|
|
- label: Noto Serif SC first
|
||
|
|
value: '"Noto Serif SC", "Source Han Serif SC", "Georgia", "Times New Roman", serif'
|
||
|
|
- label: System serif
|
||
|
|
value: 'Georgia, "Times New Roman", "Songti SC", "SimSun", serif'
|
||
|
|
- label: Sans, matching the body
|
||
|
|
value: '"IBM Plex Sans", "IBM Plex Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif'
|
||
|
|
- id: scrip-info
|
||
|
|
title: Token contract
|
||
|
|
description: Everything else stays adjustable through the token contract — see `snippet-example.css` in the theme repository for the annotated token tour.
|
||
|
|
type: info-text
|
||
|
|
markdown: true
|
||
|
|
*/:root{--scrip-font-mono-stack: "IBM Plex Mono", "SF Mono", "Consolas", "Monaco", "Menlo", "Roboto Mono", "Courier New", monospace;--scrip-font-cjk-stack: "IBM Plex Sans", "IBM Plex Sans SC", "IBM Plex Sans JP", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;--scrip-type-inline-title-size: calc(var(--font-text-size, 16px) * 2.08);--scrip-type-inline-title-leading: 1.18;--scrip-type-inline-title-tracking: 0;--scrip-type-h1-size: calc(var(--font-text-size, 16px) * 2.16);--scrip-type-h1-leading: 1.16;--scrip-type-h1-tracking: 0;--scrip-type-h2-size: calc(var(--font-text-size, 16px) * 1.62);--scrip-type-h2-leading: 1.22;--scrip-type-h2-tracking: 0;--scrip-type-h3-size: calc(var(--font-text-size, 16px) * 1.24);--scrip-type-h3-leading: 1.34;--scrip-type-h3-tracking: 0;--font-size-h1: var(--scrip-type-h1-size);--font-size-h2: var(--scrip-type-h2-size);--font-size-h3: var(--scrip-type-h3-size);--font-size-h4: calc(var(--font-text-size, 16px) * 1.08);--font-size-h5: calc(var(--font-text-size, 16px) * .98);--font-size-h6: calc(var(--font-text-size, 16px) * .9);--font-weight-regular: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--font-normal: var(--font-weight-regular);--font-medium: var(--font-weight-medium);--font-semibold: var(--font-weight-semibold);--font-bold: var(--font-weight-bold);-webkit-text-size-adjust:100%;text-size-adjust:100%;--outline-width: 2px;--outline-offset: 2px;--focus-ring-width: 2px;--focus-ring-width-large: 4px;--size-1: 4px;--size-2: 8px;--size-3: 12px;--size-4: 16px;--size-5: 20px;--size-6: 24px;--size-7: 32px;--size-8: 40px;--motion-apple: cubic-bezier(.16, 1, .3, 1);--motion-spring: cubic-bezier(.1, 0, .1, 1.25);--duration-fast: .16s;--duration-moderate: .32s;--ease-fast-smooth: var(--duration-fast) var(--motion-apple);--ease-moderate-smooth: var(--duration-moderate) var(--motion-apple);--transition-fast-ease: transform var(--ease-fast-smooth), opacity var(--ease-fast-smooth);--transition-state: background-color var(--ease-fast-smooth), color var(--ease-fast-smooth), box-shadow var(--ease-fast-smooth);--transition-interactive: var(--transition-state), border-color var(--ease-fast-smooth), var(--transition-fast-ease);--radius-s: 4px;--radius-m: 8px;--radius-l: 12px;--radius-xl: 20px;--transform-scale-pressed: .97;--transform-translate-hover: 0;--multiplier-tight: .8;--multiplier-relaxed: 1.2;--opacity-minimal: .04;--opacity-subtle: .08;--opacity-moderate: .15;--opacity-medium: .25;--opacity-half: .45;--opacity-strong: .65;--opacity-glass: .82;--scrip-texture-noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.032'/%3E%3C/svg%3E");--scrip-texture-noise-dark: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.024'/%3E%3C/svg%3E");--size-max-width-reading: 65ch;--size-max-width-reading-paper: min(75ch, calc(100vw - 4rem) );--size-max-width-mobile: 90vw;--white: 254, 252, 246;--gray-10: 252, 248, 239;--gray-20: 238, 228, 214;--gray-30: 214, 205, 193;--gray-40: 184, 176, 164;--gray-50: 157, 149, 137;--gray-60: 127, 119, 107;--gray-65: 109, 102, 93;--gray-70: 97, 89, 79;--gray-80: 70, 63, 53;--gray-90: 50, 45, 35;--gray-100: 32, 28, 19;--scrip-syntax-keyword: #9c4512;--scrip-syntax-string: #56653a;--scrip-syntax-number: #8a6a1e;--scrip-syntax-function: #3d5a80;--scrip-syntax-comment: #61594f;--color-accent-rgb-light: 194, 78, 24;--color-accent-rgb-dark: 218, 114, 56;--color-accent-fill-rgb-light: 194, 78, 24;--color-accent-fill-rgb-dark: 188, 76, 16;--color-secondary-rgb-light: 64,
|