@monster-orange/den-ui 0.6.6 → 0.7.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/src/tokens.css CHANGED
@@ -1,5 +1,7 @@
1
1
  /*
2
- * den-ui tokens (UK-1). The kit's defaults: a theme laid on top overrides
2
+ * den-ui tokens (UK-1). The kit's defaults are Den's theme (themes/den,
3
+ * since 0.7.0: its type, shape and both modes), so a host on the kit's
4
+ * defaults looks like Den. A theme laid on top overrides
3
5
  * colours (both modes), shadow, bar, type, radius, radius-button, density
4
6
  * and fonts; never spacing, motion or layers. Every rule here has zero
5
7
  * specificity (:where), so any theme rule wins.
@@ -10,13 +12,13 @@
10
12
 
11
13
  /* Type, shape, space, depth, motion, layers, targets: one set, both modes. */
12
14
  :where(:root) {
13
- --sans:
14
- "Rubik", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
15
- "Noto Sans JP", sans-serif;
16
- --mono: "Space Mono", ui-monospace, Menlo, Consolas, monospace;
17
- --display: var(--sans);
18
- --ja:
19
- "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
15
+ /* prettier-ignore */
16
+ --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
17
+ --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
18
+ /* prettier-ignore */
19
+ --display: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
20
+ /* prettier-ignore */
21
+ --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
20
22
  --fs-xs: 12px;
21
23
  --fs-s: 13px;
22
24
  --fs-m: 14px;
@@ -25,8 +27,8 @@
25
27
  --fs-2xl: 22px;
26
28
  --lh: 1.45;
27
29
 
28
- --radius: 6px;
29
- --radius-button: 0.2rem;
30
+ --radius: 8px;
31
+ --radius-button: 6px;
30
32
  --r: var(--radius);
31
33
  --r-btn: var(--radius-button);
32
34
 
@@ -68,91 +70,95 @@
68
70
  :where(:root),
69
71
  :where(:root[data-mode="light"]) {
70
72
  color-scheme: light;
71
- --bg: #fffcfc;
72
- --surface: #ffffff;
73
+ --bg: #f2eee8;
74
+ --surface: #fbf9f6;
73
75
  --raised: #ffffff;
74
- --sunken: #f4efee;
75
- --text: hsl(220 6% 10%);
76
- --muted: hsl(220 5% 34%);
77
- --faint: #62656a;
78
- --border: hsl(20 12% 86%);
79
- --border-strong: #97867f;
80
- --accent: #e16500;
81
- --accent-text: #a34a00;
82
- --accent-fill: #c23f00;
76
+ --sunken: #e8e2d9;
77
+ --text: #241e18;
78
+ --muted: #5c5247;
79
+ --faint: #6d6358;
80
+ --border: #dcd3c7;
81
+ --border-strong: #8d7f6d;
82
+ --accent: #557a2a;
83
+ --accent-text: #415e1f;
84
+ --accent-fill: #4a6b23;
83
85
  --on-accent: #ffffff;
84
- --ok: #11692f;
85
- --warn: #865700;
86
- --bad: #af0900;
86
+ --ok: #27613b;
87
+ --warn: #774c0e;
88
+ --bad: #983124;
87
89
  --info: hsl(213 22% 36%);
88
90
  /* #0e7280 failed the pill rule over --sunken (4.20:1). #0d6b79 failed
89
91
  the disc rule (an agent's initial on its 16% tint) over --sunken
90
92
  (4.33:1); 4.56:1 now, the pill 4.84:1. */
91
- --remote: #0c6774;
93
+ --remote: #205d6e;
92
94
  --violet: #6a4bc4;
93
- --shadow: 0 8px 28px rgb(0 0 0 / 0.14);
95
+ --shadow: 0 8px 24px rgb(48 36 24 / 0.14);
96
+ /* A pop-up's or picker dialog's shadow (0.7.0). */
97
+ --den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.25);
94
98
  /* The shared update pill's shadow (update-pill.css). */
95
99
  --upd-shadow:
96
100
  0 2px 4px rgba(32, 38, 29, 0.07), 0 10px 28px rgba(32, 38, 29, 0.1),
97
101
  inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
98
- --bar: linear-gradient(90deg, #ff7300, #af0900);
102
+ --bar: linear-gradient(90deg, #557a2a 0%, #8a6a48 100%);
99
103
  }
100
104
 
101
105
  /* Dark: asked for, or the system's choice when no mode is set. */
102
106
  :where(:root[data-mode="dark"]) {
103
107
  color-scheme: dark;
104
- --bg: hsl(220 6% 10%);
105
- --surface: hsl(220 6% 8.5%);
106
- --raised: #1f2023;
107
- --sunken: hsl(220 6% 7%);
108
- --text: #fffcfc;
109
- --muted: #c4c4c4;
110
- --faint: #a3a3a3;
111
- --border: hsl(220 5% 20%);
112
- --border-strong: #676a71;
113
- --accent: #ff7300;
114
- --accent-text: #ff8f33;
115
- --accent-fill: #ff7300;
116
- --on-accent: hsl(220 6% 10%);
117
- --ok: #4cc777;
118
- --warn: #e3a72f;
119
- --bad: #ff5a4f;
108
+ --bg: #1a1612;
109
+ --surface: #221d18;
110
+ --raised: #2b251f;
111
+ --sunken: #14110e;
112
+ --text: #ede6dc;
113
+ --muted: #b5aa9b;
114
+ --faint: #978b7e;
115
+ --border: #3a322a;
116
+ --border-strong: #7a6d5d;
117
+ --accent: #9bbb63;
118
+ --accent-text: #a8c672;
119
+ --accent-fill: #9bbb63;
120
+ --on-accent: #1a1612;
121
+ --ok: #6fc28f;
122
+ --warn: #e0a84e;
123
+ --bad: #ef7f6a;
120
124
  --info: hsl(213 30% 74%);
121
- --remote: #4fd1db;
125
+ --remote: #74b8c8;
122
126
  --violet: #a993ff;
123
127
  --shadow: 0 12px 30px rgb(0 0 0 / 0.5);
128
+ --den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
124
129
  --upd-shadow:
125
130
  0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4),
126
131
  inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
127
- --bar: linear-gradient(90deg, #ff7300, #af0900);
132
+ --bar: linear-gradient(90deg, #9bbb63 0%, #a07c55 100%);
128
133
  }
129
134
 
130
135
  @media (prefers-color-scheme: dark) {
131
136
  :where(:root:not([data-mode])) {
132
137
  color-scheme: dark;
133
- --bg: hsl(220 6% 10%);
134
- --surface: hsl(220 6% 8.5%);
135
- --raised: #1f2023;
136
- --sunken: hsl(220 6% 7%);
137
- --text: #fffcfc;
138
- --muted: #c4c4c4;
139
- --faint: #a3a3a3;
140
- --border: hsl(220 5% 20%);
141
- --border-strong: #676a71;
142
- --accent: #ff7300;
143
- --accent-text: #ff8f33;
144
- --accent-fill: #ff7300;
145
- --on-accent: hsl(220 6% 10%);
146
- --ok: #4cc777;
147
- --warn: #e3a72f;
148
- --bad: #ff5a4f;
138
+ --bg: #1a1612;
139
+ --surface: #221d18;
140
+ --raised: #2b251f;
141
+ --sunken: #14110e;
142
+ --text: #ede6dc;
143
+ --muted: #b5aa9b;
144
+ --faint: #978b7e;
145
+ --border: #3a322a;
146
+ --border-strong: #7a6d5d;
147
+ --accent: #9bbb63;
148
+ --accent-text: #a8c672;
149
+ --accent-fill: #9bbb63;
150
+ --on-accent: #1a1612;
151
+ --ok: #6fc28f;
152
+ --warn: #e0a84e;
153
+ --bad: #ef7f6a;
149
154
  --info: hsl(213 30% 74%);
150
- --remote: #4fd1db;
155
+ --remote: #74b8c8;
151
156
  --violet: #a993ff;
152
157
  --shadow: 0 12px 30px rgb(0 0 0 / 0.5);
158
+ --den-pop-shadow: 0 16px 40px rgb(0 0 0 / 0.6);
153
159
  --upd-shadow:
154
160
  0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.4),
155
161
  inset 0 1px 0 color-mix(in srgb, var(--text) 14%, transparent);
156
- --bar: linear-gradient(90deg, #ff7300, #af0900);
162
+ --bar: linear-gradient(90deg, #9bbb63 0%, #a07c55 100%);
157
163
  }
158
164
  }