@putdotio/design 0.1.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DESIGN.md +111 -0
- package/LICENSE +21 -0
- package/README.md +57 -0
- package/dist/css/tokens.css +366 -0
- package/dist/figma/putio.tokens.json +591 -0
- package/dist/tokens.d.ts +14 -0
- package/dist/tokens.dtcg.json +2462 -0
- package/dist/tokens.flat.json +1622 -0
- package/dist/tokens.js +1624 -0
- package/dist/tokens.ts +1626 -0
- package/package.json +65 -0
- package/system/README.md +84 -0
- package/tokens/components.tokens.json +229 -0
- package/tokens/context.tokens.json +155 -0
- package/tokens/foundation.css +133 -0
- package/tokens/primitives.tokens.json +628 -0
- package/tokens/semantic.tokens.json +1461 -0
package/DESIGN.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: "0.1.0"
|
|
3
|
+
name: "put.io Design System"
|
|
4
|
+
description: "Public token and guidance contract for put.io product surfaces."
|
|
5
|
+
colors:
|
|
6
|
+
brand: "#FDCE45"
|
|
7
|
+
dark:
|
|
8
|
+
app-bg: "hsl(0, 0%, 8.5%)"
|
|
9
|
+
page-bg: "black"
|
|
10
|
+
text: "hsl(0, 0%, 93.0%)"
|
|
11
|
+
text-muted: "hsl(0, 0%, 62.8%)"
|
|
12
|
+
border: "hsl(0, 0%, 24.3%)"
|
|
13
|
+
success: "hsl(151, 55.0%, 41.5%)"
|
|
14
|
+
danger: "hsl(358, 75.0%, 59.0%)"
|
|
15
|
+
light:
|
|
16
|
+
app-bg: "white"
|
|
17
|
+
page-bg: "hsl(0, 0%, 97.3%)"
|
|
18
|
+
text: "hsl(0, 0%, 9.0%)"
|
|
19
|
+
text-muted: "hsl(0, 0%, 43.5%)"
|
|
20
|
+
border: "hsl(0, 0%, 85.8%)"
|
|
21
|
+
success: "hsl(151, 55.0%, 41.5%)"
|
|
22
|
+
danger: "hsl(358, 75.0%, 59.0%)"
|
|
23
|
+
typography:
|
|
24
|
+
ui:
|
|
25
|
+
family: "\"GT America\", sans-serif"
|
|
26
|
+
weight: 400
|
|
27
|
+
size: "0.875rem"
|
|
28
|
+
lineHeight: 1.45
|
|
29
|
+
display:
|
|
30
|
+
family: "\"GT America\", sans-serif"
|
|
31
|
+
weight: 900
|
|
32
|
+
size: "6rem"
|
|
33
|
+
lineHeight: 1.1
|
|
34
|
+
mono:
|
|
35
|
+
family: "\"Berkeley Mono\", \"GT America Mono\", monospace"
|
|
36
|
+
weight: 400
|
|
37
|
+
size: "0.8125rem"
|
|
38
|
+
lineHeight: 1.45
|
|
39
|
+
rounded:
|
|
40
|
+
sm: "4px"
|
|
41
|
+
default: "6px"
|
|
42
|
+
md: "8px"
|
|
43
|
+
lg: "10px"
|
|
44
|
+
pill: "999px"
|
|
45
|
+
spacing:
|
|
46
|
+
xs: "4px"
|
|
47
|
+
sm: "8px"
|
|
48
|
+
md: "16px"
|
|
49
|
+
lg: "32px"
|
|
50
|
+
xl: "64px"
|
|
51
|
+
components:
|
|
52
|
+
button:
|
|
53
|
+
primary-bg: "{colors.brand}"
|
|
54
|
+
radius: "{rounded.default}"
|
|
55
|
+
input:
|
|
56
|
+
radius: "{rounded.default}"
|
|
57
|
+
file-row:
|
|
58
|
+
icon: "{colors.brand}"
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# put.io Design System
|
|
62
|
+
|
|
63
|
+
## Overview
|
|
64
|
+
|
|
65
|
+
put.io is a content-agnostic cloud file product. The interface should feel premium because the file browser is useful, fast, quiet, and honest about the data it has. Design for raw filenames, folders, transfers, storage, playback controls, and settings without pretending that structured media metadata is always available.
|
|
66
|
+
|
|
67
|
+
The canonical source for tokens is DTCG-compatible JSON in `tokens/`. Generated artifacts in `dist/` and `system/tokens.css` are outputs. This file is the human and agent-readable contract that explains how to use those tokens.
|
|
68
|
+
|
|
69
|
+
## Colors
|
|
70
|
+
|
|
71
|
+
Yellow `#FDCE45` is sacred. Use it for the put.io brand mark, primary action fill, folder/file emphasis, progress, and focus affordances. Do not tint it into a new brand color, gradient it into a different accent, or use it as foreground text on light surfaces.
|
|
72
|
+
|
|
73
|
+
Dark app surfaces are the default product mode, but the token contract includes both dark and light palettes. Light surfaces are allowed for landing, docs, and narrow product states where readability is stronger. Semantic red, green, and neutral scales should come from tokens rather than one-off CSS values.
|
|
74
|
+
|
|
75
|
+
## Typography
|
|
76
|
+
|
|
77
|
+
Use GT America for product UI and display. Use GT America Mono for compact product numerics where it matches the app. Use Berkeley Mono for code, logs, identifiers, hashes, and raw technical strings.
|
|
78
|
+
|
|
79
|
+
Body UI text should stay readable and dense. Use medium weight for labels and controls, bold weight only where the hierarchy earns it, and black weight for deliberate display moments.
|
|
80
|
+
|
|
81
|
+
## Layout & Spacing
|
|
82
|
+
|
|
83
|
+
put.io layouts are file-browser layouts first: lists, rows, columns, sidebars, toolbars, and sheets. Prefer whitespace and subtle dividers before card-heavy composition.
|
|
84
|
+
|
|
85
|
+
The spacing scale is intentionally steep: `4, 8, 16, 32, 64, 128, 256, 512`. Use it consistently rather than tuning one-off gaps.
|
|
86
|
+
|
|
87
|
+
## Elevation & Depth
|
|
88
|
+
|
|
89
|
+
Elevation should clarify interaction, not decorate. Use borders and soft shadows for popovers, modals, menus, TV focus, and draggable/drop targets. Avoid decorative glow except where it is part of a focused TV state.
|
|
90
|
+
|
|
91
|
+
## Shapes
|
|
92
|
+
|
|
93
|
+
The default radius is `6px`. Use `4px` for tight controls, `8px` or `10px` for larger panels, and pill radius for segmented controls, badges, and TV action pills.
|
|
94
|
+
|
|
95
|
+
## Components
|
|
96
|
+
|
|
97
|
+
Buttons use yellow only for primary commands. Secondary buttons should feel quiet and tokenized against the active surface. File rows are the core component: preserve raw names, keep metadata compact, and make hover/focus states obvious without inflating row height.
|
|
98
|
+
|
|
99
|
+
TV components are list-first and focus-first. A TV app is still a file browser, not a poster wall. Roku, native Apple, Android, and web TV repos should consume the generic tokens and generate their own platform bindings.
|
|
100
|
+
|
|
101
|
+
## Do's and Don'ts
|
|
102
|
+
|
|
103
|
+
Do show raw filenames such as `The.Wire.S03E04.Back.Burners.1080p.BluRay.x264-DEMAND.mkv`.
|
|
104
|
+
|
|
105
|
+
Do use Phosphor-style inline SVG for forward-looking icon guidance and no emoji in product UI.
|
|
106
|
+
|
|
107
|
+
Do keep `DESIGN.md`, `tokens/`, `dist/`, and `system/tokens.css` in agreement.
|
|
108
|
+
|
|
109
|
+
Don't publish private research, local file paths, Claude project links, screenshots, team photos, account data, discount strategy, or auth-gated workspace URLs in the public design repo.
|
|
110
|
+
|
|
111
|
+
Don't generate Swift, Kotlin, Android XML, or Roku outputs from this repo until a consuming platform repo asks for an adapter.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) put.io
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<p>
|
|
3
|
+
<img src="https://static.put.io/images/putio-boncuk.png" width="72">
|
|
4
|
+
</p>
|
|
5
|
+
|
|
6
|
+
<h1>put.io design</h1>
|
|
7
|
+
|
|
8
|
+
<p>Public design tokens and design-system guidance for <a href="https://put.io">put.io</a>.</p>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<br />
|
|
12
|
+
|
|
13
|
+
## View
|
|
14
|
+
|
|
15
|
+
Live guide: [design.put.io](https://design.put.io)
|
|
16
|
+
|
|
17
|
+
This repo owns the public contract behind it: DTCG token sources, generated CSS/JSON/TypeScript artifacts, preview cards, and deployable static guidance.
|
|
18
|
+
|
|
19
|
+
## Use
|
|
20
|
+
|
|
21
|
+
Token sources live in [`tokens`](tokens). Generated package artifacts live in [`dist`](dist).
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npm install @putdotio/design
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Common entrypoints:
|
|
28
|
+
|
|
29
|
+
- CSS custom properties: [`dist/css/tokens.css`](dist/css/tokens.css)
|
|
30
|
+
- DTCG token tree: [`dist/tokens.dtcg.json`](dist/tokens.dtcg.json)
|
|
31
|
+
- Flat token metadata: [`dist/tokens.flat.json`](dist/tokens.flat.json)
|
|
32
|
+
- Figma-safe subset: [`dist/figma/putio.tokens.json`](dist/figma/putio.tokens.json)
|
|
33
|
+
- Human and AI design contract: [`DESIGN.md`](DESIGN.md)
|
|
34
|
+
|
|
35
|
+
## Commands
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
pnpm install
|
|
39
|
+
pnpm dev
|
|
40
|
+
pnpm verify
|
|
41
|
+
pnpm verify:full
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Use `pnpm tokens:build` after token edits.
|
|
45
|
+
|
|
46
|
+
## Docs
|
|
47
|
+
|
|
48
|
+
- [Design contract](DESIGN.md)
|
|
49
|
+
- [Design guide structure](system/README.md)
|
|
50
|
+
- [Distribution](docs/DISTRIBUTION.md)
|
|
51
|
+
- [Contributing](CONTRIBUTING.md)
|
|
52
|
+
- [Security](SECURITY.md)
|
|
53
|
+
- [Agent guide](AGENTS.md)
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
[MIT](LICENSE)
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
put.io design tokens
|
|
3
|
+
Do not edit directly. Generated from DTCG token JSON in tokens/.
|
|
4
|
+
|
|
5
|
+
Brand constant: Yellow #FDCE45 (sacred - never changes)
|
|
6
|
+
Canonical source: DTCG-compatible JSON in tokens/
|
|
7
|
+
============================================================ */
|
|
8
|
+
|
|
9
|
+
/* -- Light (default) ------------------------------------------------ */
|
|
10
|
+
:root {
|
|
11
|
+
--button-secondary-bg: hsl(0, 0%, 95.1%);
|
|
12
|
+
--button-secondary-fg: hsl(0, 0%, 9.0%);
|
|
13
|
+
--input-bg: white;
|
|
14
|
+
--input-border: hsl(0, 0%, 85.8%);
|
|
15
|
+
--file-row-bg: transparent;
|
|
16
|
+
--file-row-bg-hover: hsl(0, 0%, 97.3%);
|
|
17
|
+
--notification-info-bg: hsl(0, 0%, 97.3%);
|
|
18
|
+
--notification-danger-bg: hsl(360, 100%, 96.8%);
|
|
19
|
+
--bg: hsl(0, 0%, 99.0%);
|
|
20
|
+
--bg-secondary: hsl(0, 0%, 97.3%);
|
|
21
|
+
--component-bg: hsl(0, 0%, 95.1%);
|
|
22
|
+
--component-bg-hover: hsl(0, 0%, 93.0%);
|
|
23
|
+
--component-bg-active: hsl(0, 0%, 90.9%);
|
|
24
|
+
--line: hsl(0, 0%, 88.7%);
|
|
25
|
+
--border: hsl(0, 0%, 85.8%);
|
|
26
|
+
--border-hover: hsl(0, 0%, 78.0%);
|
|
27
|
+
--solid: hsl(0, 0%, 56.1%);
|
|
28
|
+
--solid-hover: hsl(0, 0%, 52.3%);
|
|
29
|
+
--text-secondary: hsl(0, 0%, 43.5%);
|
|
30
|
+
--text: hsl(0, 0%, 9.0%);
|
|
31
|
+
--green-bg: hsl(136, 50.0%, 98.9%);
|
|
32
|
+
--green-bg-secondary: hsl(138, 62.5%, 96.9%);
|
|
33
|
+
--green-component-bg: hsl(139, 55.2%, 94.5%);
|
|
34
|
+
--green-component-bg-hover: hsl(140, 48.7%, 91.0%);
|
|
35
|
+
--green-component-bg-active: hsl(141, 43.7%, 86.0%);
|
|
36
|
+
--green-line: hsl(143, 40.3%, 79.0%);
|
|
37
|
+
--green-border: hsl(146, 38.5%, 69.0%);
|
|
38
|
+
--green-border-hover: hsl(151, 40.2%, 54.1%);
|
|
39
|
+
--green-solid: hsl(151, 55.0%, 41.5%);
|
|
40
|
+
--green-solid-hover: hsl(152, 57.5%, 37.6%);
|
|
41
|
+
--green-text-secondary: hsl(153, 67.0%, 28.5%);
|
|
42
|
+
--green-text: hsl(155, 40.0%, 14.0%);
|
|
43
|
+
--red-bg: hsl(359, 100%, 99.4%);
|
|
44
|
+
--red-bg-secondary: hsl(359, 100%, 98.6%);
|
|
45
|
+
--red-component-bg: hsl(360, 100%, 96.8%);
|
|
46
|
+
--red-component-bg-hover: hsl(360, 97.9%, 94.8%);
|
|
47
|
+
--red-component-bg-active: hsl(360, 90.2%, 91.9%);
|
|
48
|
+
--red-line: hsl(360, 81.7%, 87.8%);
|
|
49
|
+
--red-border: hsl(359, 74.2%, 81.7%);
|
|
50
|
+
--red-border-hover: hsl(359, 69.5%, 74.3%);
|
|
51
|
+
--red-solid: hsl(358, 75.0%, 59.0%);
|
|
52
|
+
--red-solid-hover: hsl(358, 69.4%, 55.2%);
|
|
53
|
+
--red-text-secondary: hsl(358, 65.0%, 48.7%);
|
|
54
|
+
--red-text: hsl(354, 50.0%, 14.6%);
|
|
55
|
+
--yellow-bg: hsl(60, 54.0%, 98.5%);
|
|
56
|
+
--yellow-bg-secondary: hsl(52, 100%, 95.5%);
|
|
57
|
+
--yellow-component-bg: hsl(55, 100%, 90.9%);
|
|
58
|
+
--yellow-component-bg-hover: hsl(54, 100%, 86.6%);
|
|
59
|
+
--yellow-component-bg-active: hsl(52, 97.9%, 82.0%);
|
|
60
|
+
--yellow-line: hsl(50, 89.4%, 76.1%);
|
|
61
|
+
--yellow-border: hsl(47, 80.4%, 68.0%);
|
|
62
|
+
--yellow-border-hover: hsl(48, 100%, 46.1%);
|
|
63
|
+
--yellow-solid-hover: #FDCE45;
|
|
64
|
+
--yellow-text-secondary: hsl(42, 100%, 29.0%);
|
|
65
|
+
--yellow-text: hsl(40, 55.0%, 13.5%);
|
|
66
|
+
--lime-3: hsl(85, 76.0%, 92.3%);
|
|
67
|
+
--html-bg: hsl(0, 0%, 97.3%);
|
|
68
|
+
--app-bg: white;
|
|
69
|
+
--nav-bg: white;
|
|
70
|
+
--nav-item-bg: transparent;
|
|
71
|
+
--nav-item-bg-hover: hsl(0, 0%, 95.1%);
|
|
72
|
+
--nav-item-bg-active: hsl(0, 0%, 95.1%);
|
|
73
|
+
--list-item-bg: transparent;
|
|
74
|
+
--list-item-bg-hover: hsl(0, 0%, 97.3%);
|
|
75
|
+
--list-item-bg-active: hsl(0, 0%, 97.3%);
|
|
76
|
+
--list-item-border: hsl(0, 0%, 90.9%);
|
|
77
|
+
--segmented-control-bg: hsl(0, 0%, 95.1%);
|
|
78
|
+
--segmented-control-bg-active: white;
|
|
79
|
+
--transfer-list-item-completing-bg: hsl(85, 76.0%, 92.3%);
|
|
80
|
+
--transfer-list-item-downloading-bg: hsl(85, 76.0%, 92.3%);
|
|
81
|
+
--transfer-list-item-finished-bg: hsl(0, 0%, 97.3%);
|
|
82
|
+
--transfer-list-item-passive-bg: hsl(0, 0%, 99.0%);
|
|
83
|
+
--hi-contrast: hsl(0, 0%, 9.0%);
|
|
84
|
+
--lo-contrast: hsl(0, 0%, 99.0%);
|
|
85
|
+
--transparent: transparent;
|
|
86
|
+
--overlay-inline: hsla(0, 0%, 0%, 0.047);
|
|
87
|
+
--overlay-full: hsla(0, 0%, 0%, 0.439);
|
|
88
|
+
--button-primary-bg: #FDCE45;
|
|
89
|
+
--button-primary-fg: #0A0A0A;
|
|
90
|
+
--button-radius: 6px;
|
|
91
|
+
--input-radius: 6px;
|
|
92
|
+
--file-row-icon: #FDCE45;
|
|
93
|
+
--yellow-solid: #FDCE45;
|
|
94
|
+
--shadow-color: hsl(0, 0%, 78.0%);
|
|
95
|
+
--shadow: hsl(0, 0%, 78.0%);
|
|
96
|
+
--shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.05);
|
|
97
|
+
--shadow-md: 0 4px 12px hsla(0, 0%, 0%, 0.08);
|
|
98
|
+
--shadow-lg: 0 16px 40px hsla(0, 0%, 0%, 0.12);
|
|
99
|
+
--shadow-focus-color: hsla(47, 100%, 65%, 0.35);
|
|
100
|
+
--shadow-focus: 0 0 0 3px var(--shadow-focus-color);
|
|
101
|
+
--font-sans: "GT America", sans-serif;
|
|
102
|
+
--font-display: "GT America", sans-serif;
|
|
103
|
+
--font-ui-mono: "GT America Mono", monospace;
|
|
104
|
+
--font-mono: "Berkeley Mono", "GT America Mono", monospace;
|
|
105
|
+
--fs-xs: 0.75rem;
|
|
106
|
+
--fs-sm: 0.8125rem;
|
|
107
|
+
--fs-base: 0.875rem;
|
|
108
|
+
--fs-md: 1rem;
|
|
109
|
+
--fs-lg: 1.125rem;
|
|
110
|
+
--fs-xl: 1.5rem;
|
|
111
|
+
--fs-2xl: 2rem;
|
|
112
|
+
--fs-3xl: 3rem;
|
|
113
|
+
--fs-4xl: 4rem;
|
|
114
|
+
--fs-display: 6rem;
|
|
115
|
+
--lh-tight: 1.1;
|
|
116
|
+
--lh-snug: 1.25;
|
|
117
|
+
--lh-normal: 1.45;
|
|
118
|
+
--lh-loose: 1.6;
|
|
119
|
+
--fw-regular: 400;
|
|
120
|
+
--fw-medium: 500;
|
|
121
|
+
--fw-bold: 700;
|
|
122
|
+
--fw-black: 900;
|
|
123
|
+
--tracking-tight: -0.02em;
|
|
124
|
+
--tracking-normal: 0;
|
|
125
|
+
--tracking-wide: 0.02em;
|
|
126
|
+
--tracking-uppercase: 0.08em;
|
|
127
|
+
--space-0: 0;
|
|
128
|
+
--space-1: 4px;
|
|
129
|
+
--space-2: 8px;
|
|
130
|
+
--space-3: 16px;
|
|
131
|
+
--space-4: 32px;
|
|
132
|
+
--space-5: 64px;
|
|
133
|
+
--space-6: 128px;
|
|
134
|
+
--space-7: 256px;
|
|
135
|
+
--space-8: 512px;
|
|
136
|
+
--radius-sm: 4px;
|
|
137
|
+
--radius: 6px;
|
|
138
|
+
--radius-md: 8px;
|
|
139
|
+
--radius-lg: 10px;
|
|
140
|
+
--radius-pill: 999px;
|
|
141
|
+
--border-width: 1px;
|
|
142
|
+
--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
|
|
143
|
+
--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
|
|
144
|
+
--dur-fast: 120ms;
|
|
145
|
+
--dur-base: 200ms;
|
|
146
|
+
--dur-slow: 320ms;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* -- Dark (.dark) --------------------------------------------------- */
|
|
150
|
+
.dark {
|
|
151
|
+
--button-secondary-bg: hsl(0, 0%, 13.6%);
|
|
152
|
+
--button-secondary-fg: hsl(0, 0%, 93.0%);
|
|
153
|
+
--input-bg: hsl(0, 0%, 13.6%);
|
|
154
|
+
--input-border: hsl(0, 0%, 24.3%);
|
|
155
|
+
--file-row-bg: transparent;
|
|
156
|
+
--file-row-bg-hover: hsl(0, 0%, 11.0%);
|
|
157
|
+
--notification-info-bg: hsl(0, 0%, 13.6%);
|
|
158
|
+
--notification-danger-bg: hsl(356, 43.4%, 16.4%);
|
|
159
|
+
--bg: hsl(0, 0%, 8.5%);
|
|
160
|
+
--bg-secondary: hsl(0, 0%, 11.0%);
|
|
161
|
+
--component-bg: hsl(0, 0%, 13.6%);
|
|
162
|
+
--component-bg-hover: hsl(0, 0%, 15.8%);
|
|
163
|
+
--component-bg-active: hsl(0, 0%, 17.9%);
|
|
164
|
+
--line: hsl(0, 0%, 20.5%);
|
|
165
|
+
--border: hsl(0, 0%, 24.3%);
|
|
166
|
+
--border-hover: hsl(0, 0%, 31.2%);
|
|
167
|
+
--solid: hsl(0, 0%, 43.9%);
|
|
168
|
+
--solid-hover: hsl(0, 0%, 49.4%);
|
|
169
|
+
--text-secondary: hsl(0, 0%, 62.8%);
|
|
170
|
+
--text: hsl(0, 0%, 93.0%);
|
|
171
|
+
--green-bg: hsl(146, 30.0%, 7.4%);
|
|
172
|
+
--green-bg-secondary: hsl(155, 44.2%, 8.4%);
|
|
173
|
+
--green-component-bg: hsl(155, 46.7%, 10.9%);
|
|
174
|
+
--green-component-bg-hover: hsl(154, 48.4%, 12.9%);
|
|
175
|
+
--green-component-bg-active: hsl(154, 49.7%, 14.9%);
|
|
176
|
+
--green-line: hsl(154, 50.9%, 17.6%);
|
|
177
|
+
--green-border: hsl(153, 51.8%, 21.8%);
|
|
178
|
+
--green-border-hover: hsl(151, 51.7%, 28.4%);
|
|
179
|
+
--green-solid: hsl(151, 55.0%, 41.5%);
|
|
180
|
+
--green-solid-hover: hsl(151, 49.3%, 46.5%);
|
|
181
|
+
--green-text-secondary: hsl(151, 50.0%, 53.2%);
|
|
182
|
+
--green-text: hsl(137, 72.0%, 94.0%);
|
|
183
|
+
--red-bg: hsl(353, 23.0%, 9.8%);
|
|
184
|
+
--red-bg-secondary: hsl(357, 34.4%, 12.0%);
|
|
185
|
+
--red-component-bg: hsl(356, 43.4%, 16.4%);
|
|
186
|
+
--red-component-bg-hover: hsl(356, 47.6%, 19.2%);
|
|
187
|
+
--red-component-bg-active: hsl(356, 51.1%, 21.9%);
|
|
188
|
+
--red-line: hsl(356, 55.2%, 25.9%);
|
|
189
|
+
--red-border: hsl(357, 60.2%, 31.8%);
|
|
190
|
+
--red-border-hover: hsl(358, 65.0%, 40.4%);
|
|
191
|
+
--red-solid: hsl(358, 75.0%, 59.0%);
|
|
192
|
+
--red-solid-hover: hsl(358, 85.3%, 64.0%);
|
|
193
|
+
--red-text-secondary: hsl(358, 100%, 69.5%);
|
|
194
|
+
--red-text: hsl(351, 89.0%, 96.0%);
|
|
195
|
+
--yellow-bg: hsl(45, 100%, 5.5%);
|
|
196
|
+
--yellow-bg-secondary: hsl(46, 100%, 6.7%);
|
|
197
|
+
--yellow-component-bg: hsl(45, 100%, 8.7%);
|
|
198
|
+
--yellow-component-bg-hover: hsl(45, 100%, 10.4%);
|
|
199
|
+
--yellow-component-bg-active: hsl(47, 100%, 12.1%);
|
|
200
|
+
--yellow-line: hsl(49, 100%, 14.3%);
|
|
201
|
+
--yellow-border: hsl(49, 90.3%, 18.4%);
|
|
202
|
+
--yellow-border-hover: hsl(50, 100%, 22.0%);
|
|
203
|
+
--yellow-solid-hover: #FDCE45;
|
|
204
|
+
--yellow-text-secondary: hsl(48, 100%, 47.0%);
|
|
205
|
+
--yellow-text: hsl(53, 100%, 91.0%);
|
|
206
|
+
--lime-3: hsl(85, 45%, 12%);
|
|
207
|
+
--html-bg: black;
|
|
208
|
+
--app-bg: hsl(0, 0%, 8.5%);
|
|
209
|
+
--nav-bg: hsl(0, 0%, 8.5%);
|
|
210
|
+
--nav-item-bg: transparent;
|
|
211
|
+
--nav-item-bg-hover: hsl(0, 0%, 13.6%);
|
|
212
|
+
--nav-item-bg-active: hsl(0, 0%, 13.6%);
|
|
213
|
+
--list-item-bg: transparent;
|
|
214
|
+
--list-item-bg-hover: hsl(0, 0%, 11.0%);
|
|
215
|
+
--list-item-bg-active: hsl(0, 0%, 11.0%);
|
|
216
|
+
--list-item-border: hsl(0, 0%, 17.9%);
|
|
217
|
+
--segmented-control-bg: hsl(0, 0%, 8.5%);
|
|
218
|
+
--segmented-control-bg-active: hsl(0, 0%, 13.6%);
|
|
219
|
+
--transfer-list-item-completing-bg: hsl(0, 0%, 13.6%);
|
|
220
|
+
--transfer-list-item-downloading-bg: hsl(0, 0%, 13.6%);
|
|
221
|
+
--transfer-list-item-finished-bg: hsl(0, 0%, 11.0%);
|
|
222
|
+
--transfer-list-item-passive-bg: hsl(0, 0%, 11.0%);
|
|
223
|
+
--hi-contrast: hsl(0, 0%, 93.0%);
|
|
224
|
+
--lo-contrast: hsl(0, 0%, 8.5%);
|
|
225
|
+
--overlay-inline: hsla(0, 0%, 0%, 0.439);
|
|
226
|
+
--overlay-full: hsla(0, 0%, 0%, 0.565);
|
|
227
|
+
--shadow-color: black;
|
|
228
|
+
--shadow: black;
|
|
229
|
+
--shadow-sm: 0 1px 2px hsla(0, 0%, 0%, 0.4);
|
|
230
|
+
--shadow-md: 0 4px 12px hsla(0, 0%, 0%, 0.5);
|
|
231
|
+
--shadow-lg: 0 16px 40px hsla(0, 0%, 0%, 0.6);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* -- Document base ------------------------------------------------- */
|
|
235
|
+
html {
|
|
236
|
+
background: var(--html-bg);
|
|
237
|
+
color: var(--text);
|
|
238
|
+
font-family: var(--font-sans);
|
|
239
|
+
font-size: 15px; /* 14–15 responsive base, per app convention */
|
|
240
|
+
line-height: var(--lh-normal);
|
|
241
|
+
-webkit-font-smoothing: antialiased;
|
|
242
|
+
-moz-osx-font-smoothing: grayscale;
|
|
243
|
+
text-rendering: optimizeLegibility;
|
|
244
|
+
}
|
|
245
|
+
body {
|
|
246
|
+
background: var(--app-bg);
|
|
247
|
+
color: var(--text);
|
|
248
|
+
margin: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/* -- Semantic type ------------------------------------------------- */
|
|
252
|
+
|
|
253
|
+
.h-display, h1.display {
|
|
254
|
+
font-family: var(--font-display);
|
|
255
|
+
font-size: var(--fs-display);
|
|
256
|
+
font-weight: var(--fw-black);
|
|
257
|
+
line-height: 0.95;
|
|
258
|
+
letter-spacing: var(--tracking-tight);
|
|
259
|
+
text-transform: uppercase;
|
|
260
|
+
margin: 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/* Numeric / tabular UI text — transfer speeds, storage sizes, timestamps */
|
|
264
|
+
.num, .tabular {
|
|
265
|
+
font-family: var(--font-ui-mono);
|
|
266
|
+
font-variant-numeric: tabular-nums;
|
|
267
|
+
font-feature-settings: "tnum";
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
h1, .h1 {
|
|
271
|
+
font-family: var(--font-sans);
|
|
272
|
+
font-size: var(--fs-3xl);
|
|
273
|
+
font-weight: var(--fw-bold);
|
|
274
|
+
line-height: var(--lh-tight);
|
|
275
|
+
letter-spacing: var(--tracking-tight);
|
|
276
|
+
margin: 0 0 var(--space-3);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
h2, .h2 {
|
|
280
|
+
font-family: var(--font-sans);
|
|
281
|
+
font-size: var(--fs-2xl);
|
|
282
|
+
font-weight: var(--fw-bold);
|
|
283
|
+
line-height: var(--lh-tight);
|
|
284
|
+
margin: 0 0 var(--space-3);
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
h3, .h3 {
|
|
288
|
+
font-family: var(--font-sans);
|
|
289
|
+
font-size: var(--fs-xl);
|
|
290
|
+
font-weight: var(--fw-medium);
|
|
291
|
+
line-height: var(--lh-snug);
|
|
292
|
+
margin: 0 0 var(--space-2);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
h4, .h4 {
|
|
296
|
+
font-family: var(--font-sans);
|
|
297
|
+
font-size: var(--fs-lg);
|
|
298
|
+
font-weight: var(--fw-medium);
|
|
299
|
+
line-height: var(--lh-snug);
|
|
300
|
+
margin: 0 0 var(--space-2);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.subheading {
|
|
304
|
+
font-size: var(--fs-md);
|
|
305
|
+
font-weight: var(--fw-medium);
|
|
306
|
+
color: var(--text);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
p, .body {
|
|
310
|
+
font-family: var(--font-sans);
|
|
311
|
+
font-size: var(--fs-base);
|
|
312
|
+
font-weight: var(--fw-regular);
|
|
313
|
+
line-height: var(--lh-normal);
|
|
314
|
+
margin: 0 0 var(--space-3);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.lead {
|
|
318
|
+
font-size: var(--fs-lg);
|
|
319
|
+
font-weight: var(--fw-regular);
|
|
320
|
+
line-height: var(--lh-normal);
|
|
321
|
+
color: var(--text-secondary);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
small, .caption {
|
|
325
|
+
font-size: var(--fs-xs);
|
|
326
|
+
color: var(--text-secondary);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.label {
|
|
330
|
+
font-size: var(--fs-sm);
|
|
331
|
+
font-weight: var(--fw-medium);
|
|
332
|
+
color: var(--text);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.button-text {
|
|
336
|
+
font-weight: var(--fw-medium);
|
|
337
|
+
font-size: var(--fs-base);
|
|
338
|
+
letter-spacing: 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
code, kbd, .mono {
|
|
342
|
+
font-family: var(--font-mono);
|
|
343
|
+
font-size: 0.92em;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
a {
|
|
347
|
+
color: inherit;
|
|
348
|
+
text-decoration: underline;
|
|
349
|
+
text-underline-offset: 2px;
|
|
350
|
+
text-decoration-thickness: 1px;
|
|
351
|
+
text-decoration-color: var(--border-hover);
|
|
352
|
+
transition: text-decoration-color var(--dur-fast) var(--ease-out);
|
|
353
|
+
}
|
|
354
|
+
a:hover { text-decoration-color: currentColor; }
|
|
355
|
+
|
|
356
|
+
/* -- Utility classes ---------------------------------------------- */
|
|
357
|
+
.fg-1 { color: var(--text); }
|
|
358
|
+
.fg-2 { color: var(--text-secondary); }
|
|
359
|
+
.fg-yellow { color: var(--yellow-text-secondary); }
|
|
360
|
+
.fg-green { color: var(--green-text-secondary); }
|
|
361
|
+
.fg-red { color: var(--red-text-secondary); }
|
|
362
|
+
|
|
363
|
+
.bg-1 { background: var(--bg); }
|
|
364
|
+
.bg-2 { background: var(--bg-secondary); }
|
|
365
|
+
.bg-component { background: var(--component-bg); }
|
|
366
|
+
.bg-yellow { background: var(--yellow-solid); color: #000; }
|