@novi-ui/raster 0.2.0 → 0.4.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.
@@ -8,12 +8,12 @@
8
8
  declare const menuStyles: import("tailwind-variants").TVReturnType<{
9
9
  [key: string]: {
10
10
  [key: string]: import("tailwind-variants").ClassValue | {
11
- list?: import("tailwind-variants").ClassValue;
12
11
  item?: import("tailwind-variants").ClassValue;
13
- separator?: import("tailwind-variants").ClassValue;
14
12
  trigger?: import("tailwind-variants").ClassValue;
15
- popover?: import("tailwind-variants").ClassValue;
13
+ list?: import("tailwind-variants").ClassValue;
16
14
  itemLabel?: import("tailwind-variants").ClassValue;
15
+ separator?: import("tailwind-variants").ClassValue;
16
+ popover?: import("tailwind-variants").ClassValue;
17
17
  itemDescription?: import("tailwind-variants").ClassValue;
18
18
  itemShortcut?: import("tailwind-variants").ClassValue;
19
19
  section?: import("tailwind-variants").ClassValue;
@@ -23,12 +23,12 @@ declare const menuStyles: import("tailwind-variants").TVReturnType<{
23
23
  } | {
24
24
  [x: string]: {
25
25
  [x: string]: import("tailwind-variants").ClassValue | {
26
- list?: import("tailwind-variants").ClassValue;
27
26
  item?: import("tailwind-variants").ClassValue;
28
- separator?: import("tailwind-variants").ClassValue;
29
27
  trigger?: import("tailwind-variants").ClassValue;
30
- popover?: import("tailwind-variants").ClassValue;
28
+ list?: import("tailwind-variants").ClassValue;
31
29
  itemLabel?: import("tailwind-variants").ClassValue;
30
+ separator?: import("tailwind-variants").ClassValue;
31
+ popover?: import("tailwind-variants").ClassValue;
32
32
  itemDescription?: import("tailwind-variants").ClassValue;
33
33
  itemShortcut?: import("tailwind-variants").ClassValue;
34
34
  section?: import("tailwind-variants").ClassValue;
@@ -49,12 +49,12 @@ declare const menuStyles: import("tailwind-variants").TVReturnType<{
49
49
  }, undefined, {
50
50
  [key: string]: {
51
51
  [key: string]: import("tailwind-variants").ClassValue | {
52
- list?: import("tailwind-variants").ClassValue;
53
52
  item?: import("tailwind-variants").ClassValue;
54
- separator?: import("tailwind-variants").ClassValue;
55
53
  trigger?: import("tailwind-variants").ClassValue;
56
- popover?: import("tailwind-variants").ClassValue;
54
+ list?: import("tailwind-variants").ClassValue;
57
55
  itemLabel?: import("tailwind-variants").ClassValue;
56
+ separator?: import("tailwind-variants").ClassValue;
57
+ popover?: import("tailwind-variants").ClassValue;
58
58
  itemDescription?: import("tailwind-variants").ClassValue;
59
59
  itemShortcut?: import("tailwind-variants").ClassValue;
60
60
  section?: import("tailwind-variants").ClassValue;
@@ -10,7 +10,7 @@ declare const modalStyles: import("tailwind-variants").TVReturnType<{
10
10
  size: VariantMap<"sm" | "md" | "lg" | "full", {
11
11
  panel: string;
12
12
  }>;
13
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
13
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
14
14
  panel: string;
15
15
  }>;
16
16
  }, {
@@ -25,7 +25,7 @@ declare const modalStyles: import("tailwind-variants").TVReturnType<{
25
25
  size: VariantMap<"sm" | "md" | "lg" | "full", {
26
26
  panel: string;
27
27
  }>;
28
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
28
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
29
29
  panel: string;
30
30
  }>;
31
31
  }, {
@@ -40,7 +40,7 @@ declare const modalStyles: import("tailwind-variants").TVReturnType<{
40
40
  size: VariantMap<"sm" | "md" | "lg" | "full", {
41
41
  panel: string;
42
42
  }>;
43
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
43
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
44
44
  panel: string;
45
45
  }>;
46
46
  }, {
@@ -7,7 +7,7 @@ import { VariantMap } from "@novi-ui/core";
7
7
  * const myPopover = tv({ extend: popoverStyles, slots: { content: 'p-6' } })
8
8
  */
9
9
  declare const popoverStyles: import("tailwind-variants").TVReturnType<{
10
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
10
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
11
11
  root: string;
12
12
  }>;
13
13
  }, {
@@ -15,7 +15,7 @@ declare const popoverStyles: import("tailwind-variants").TVReturnType<{
15
15
  arrow: string;
16
16
  content: string;
17
17
  }, undefined, {
18
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
18
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
19
19
  root: string;
20
20
  }>;
21
21
  }, {
@@ -23,7 +23,7 @@ declare const popoverStyles: import("tailwind-variants").TVReturnType<{
23
23
  arrow: string;
24
24
  content: string;
25
25
  }, import("tailwind-variants").TVReturnTypeLike<{
26
- radius: VariantMap<"sm" | "md" | "lg" | "none" | "full", {
26
+ radius: VariantMap<"none" | "sm" | "md" | "lg" | "full", {
27
27
  root: string;
28
28
  }>;
29
29
  }, {
package/dist/raster.css CHANGED
@@ -1,4 +1,4 @@
1
- /* 自動生成。編集しないこと。src/tokens/raster-tokens.ts を変更して再生成する。 */
1
+ /* 自動生成。編集しないこと。src/tokens/raster-tokens.ts と color-set.ts を変更して再生成する。 */
2
2
 
3
3
  @layer novi.base {
4
4
  :root {
@@ -23,6 +23,7 @@
23
23
  --novi-duration-slow: 120ms;
24
24
  --novi-ease-standard: cubic-bezier(0.2, 0, 0, 1);
25
25
  --novi-ease-emphasized: cubic-bezier(0.2, 0, 0, 1);
26
+ --novi-hue: 268;
26
27
  --novi-color-bg: oklch(99% 0 0);
27
28
  --novi-color-subtle: oklch(96% 0 0);
28
29
  --novi-color-fg: oklch(20% 0 0);
@@ -32,9 +33,9 @@
32
33
  --novi-color-overlay: oklch(20% 0 0 / 0.45);
33
34
  --novi-color-default: oklch(96% 0 0);
34
35
  --novi-color-default-fg: oklch(20% 0 0);
35
- --novi-color-primary: oklch(50% 0.19 265);
36
+ --novi-color-primary: oklch(44% 0.09 268);
36
37
  --novi-color-primary-fg: oklch(99% 0 0);
37
- --novi-color-secondary: oklch(48% 0.15 300);
38
+ --novi-color-secondary: oklch(44% 0.09 35);
38
39
  --novi-color-secondary-fg: oklch(99% 0 0);
39
40
  --novi-color-success: oklch(47% 0.13 155);
40
41
  --novi-color-success-fg: oklch(99% 0 0);
@@ -42,6 +43,22 @@
42
43
  --novi-color-warning-fg: oklch(99% 0 0);
43
44
  --novi-color-danger: oklch(50% 0.19 27);
44
45
  --novi-color-danger-fg: oklch(99% 0 0);
46
+ --novi-swatch-ink: oklch(44% 0.09 268);
47
+ --novi-swatch-ink-fg: oklch(99% 0 0);
48
+ --novi-swatch-prussian: oklch(44% 0.09 235);
49
+ --novi-swatch-prussian-fg: oklch(99% 0 0);
50
+ --novi-swatch-forest: oklch(44% 0.09 160);
51
+ --novi-swatch-forest-fg: oklch(99% 0 0);
52
+ --novi-swatch-olive: oklch(44% 0.09 125);
53
+ --novi-swatch-olive-fg: oklch(99% 0 0);
54
+ --novi-swatch-ochre: oklch(44% 0.09 70);
55
+ --novi-swatch-ochre-fg: oklch(99% 0 0);
56
+ --novi-swatch-brick: oklch(44% 0.09 35);
57
+ --novi-swatch-brick-fg: oklch(99% 0 0);
58
+ --novi-swatch-bordeaux: oklch(44% 0.09 12);
59
+ --novi-swatch-bordeaux-fg: oklch(99% 0 0);
60
+ --novi-swatch-graphite: oklch(44% 0.02 270);
61
+ --novi-swatch-graphite-fg: oklch(99% 0 0);
45
62
  }
46
63
 
47
64
  [data-novi-scheme='dark'] {
@@ -54,9 +71,9 @@
54
71
  --novi-color-overlay: oklch(10% 0 0 / 0.6);
55
72
  --novi-color-default: oklch(25% 0 0);
56
73
  --novi-color-default-fg: oklch(95% 0 0);
57
- --novi-color-primary: oklch(76% 0.13 265);
74
+ --novi-color-primary: oklch(74% 0.09 268);
58
75
  --novi-color-primary-fg: oklch(16% 0 0);
59
- --novi-color-secondary: oklch(76% 0.12 300);
76
+ --novi-color-secondary: oklch(74% 0.09 35);
60
77
  --novi-color-secondary-fg: oklch(16% 0 0);
61
78
  --novi-color-success: oklch(77% 0.13 155);
62
79
  --novi-color-success-fg: oklch(16% 0 0);
@@ -64,6 +81,22 @@
64
81
  --novi-color-warning-fg: oklch(16% 0 0);
65
82
  --novi-color-danger: oklch(73% 0.16 27);
66
83
  --novi-color-danger-fg: oklch(16% 0 0);
84
+ --novi-swatch-ink: oklch(74% 0.09 268);
85
+ --novi-swatch-ink-fg: oklch(16% 0 0);
86
+ --novi-swatch-prussian: oklch(74% 0.09 235);
87
+ --novi-swatch-prussian-fg: oklch(16% 0 0);
88
+ --novi-swatch-forest: oklch(74% 0.09 160);
89
+ --novi-swatch-forest-fg: oklch(16% 0 0);
90
+ --novi-swatch-olive: oklch(74% 0.09 125);
91
+ --novi-swatch-olive-fg: oklch(16% 0 0);
92
+ --novi-swatch-ochre: oklch(74% 0.09 70);
93
+ --novi-swatch-ochre-fg: oklch(16% 0 0);
94
+ --novi-swatch-brick: oklch(74% 0.09 35);
95
+ --novi-swatch-brick-fg: oklch(16% 0 0);
96
+ --novi-swatch-bordeaux: oklch(74% 0.09 12);
97
+ --novi-swatch-bordeaux-fg: oklch(16% 0 0);
98
+ --novi-swatch-graphite: oklch(74% 0.017 270);
99
+ --novi-swatch-graphite-fg: oklch(16% 0 0);
67
100
  }
68
101
 
69
102
  @media (prefers-color-scheme: dark) {
@@ -77,9 +110,9 @@
77
110
  --novi-color-overlay: oklch(10% 0 0 / 0.6);
78
111
  --novi-color-default: oklch(25% 0 0);
79
112
  --novi-color-default-fg: oklch(95% 0 0);
80
- --novi-color-primary: oklch(76% 0.13 265);
113
+ --novi-color-primary: oklch(74% 0.09 268);
81
114
  --novi-color-primary-fg: oklch(16% 0 0);
82
- --novi-color-secondary: oklch(76% 0.12 300);
115
+ --novi-color-secondary: oklch(74% 0.09 35);
83
116
  --novi-color-secondary-fg: oklch(16% 0 0);
84
117
  --novi-color-success: oklch(77% 0.13 155);
85
118
  --novi-color-success-fg: oklch(16% 0 0);
@@ -87,6 +120,203 @@
87
120
  --novi-color-warning-fg: oklch(16% 0 0);
88
121
  --novi-color-danger: oklch(73% 0.16 27);
89
122
  --novi-color-danger-fg: oklch(16% 0 0);
123
+ --novi-swatch-ink: oklch(74% 0.09 268);
124
+ --novi-swatch-ink-fg: oklch(16% 0 0);
125
+ --novi-swatch-prussian: oklch(74% 0.09 235);
126
+ --novi-swatch-prussian-fg: oklch(16% 0 0);
127
+ --novi-swatch-forest: oklch(74% 0.09 160);
128
+ --novi-swatch-forest-fg: oklch(16% 0 0);
129
+ --novi-swatch-olive: oklch(74% 0.09 125);
130
+ --novi-swatch-olive-fg: oklch(16% 0 0);
131
+ --novi-swatch-ochre: oklch(74% 0.09 70);
132
+ --novi-swatch-ochre-fg: oklch(16% 0 0);
133
+ --novi-swatch-brick: oklch(74% 0.09 35);
134
+ --novi-swatch-brick-fg: oklch(16% 0 0);
135
+ --novi-swatch-bordeaux: oklch(74% 0.09 12);
136
+ --novi-swatch-bordeaux-fg: oklch(16% 0 0);
137
+ --novi-swatch-graphite: oklch(74% 0.017 270);
138
+ --novi-swatch-graphite-fg: oklch(16% 0 0);
139
+ }
140
+ }
141
+
142
+ /* ── カラーセット Print Inks(specs/06-tones-and-colors) ──
143
+ data-novi-color は data-novi-theme と同じ要素(テーマルート)に置く。
144
+ 未知の色名はどれにも一致せず、既定色 Ink のまま描画される。 */
145
+ [data-novi-color='ink'] {
146
+ --novi-hue: 268;
147
+ --novi-color-primary: oklch(44% 0.09 268);
148
+ --novi-color-primary-fg: oklch(99% 0 0);
149
+ --novi-color-secondary: oklch(44% 0.09 35);
150
+ --novi-color-secondary-fg: oklch(99% 0 0);
151
+ }
152
+
153
+ [data-novi-color='prussian'] {
154
+ --novi-hue: 235;
155
+ --novi-color-primary: oklch(44% 0.09 235);
156
+ --novi-color-primary-fg: oklch(99% 0 0);
157
+ --novi-color-secondary: oklch(44% 0.09 70);
158
+ --novi-color-secondary-fg: oklch(99% 0 0);
159
+ }
160
+
161
+ [data-novi-color='forest'] {
162
+ --novi-hue: 160;
163
+ --novi-color-primary: oklch(44% 0.09 160);
164
+ --novi-color-primary-fg: oklch(99% 0 0);
165
+ --novi-color-secondary: oklch(44% 0.09 70);
166
+ --novi-color-secondary-fg: oklch(99% 0 0);
167
+ }
168
+
169
+ [data-novi-color='olive'] {
170
+ --novi-hue: 125;
171
+ --novi-color-primary: oklch(44% 0.09 125);
172
+ --novi-color-primary-fg: oklch(99% 0 0);
173
+ --novi-color-secondary: oklch(44% 0.09 268);
174
+ --novi-color-secondary-fg: oklch(99% 0 0);
175
+ }
176
+
177
+ [data-novi-color='ochre'] {
178
+ --novi-hue: 70;
179
+ --novi-color-primary: oklch(44% 0.09 70);
180
+ --novi-color-primary-fg: oklch(99% 0 0);
181
+ --novi-color-secondary: oklch(44% 0.09 235);
182
+ --novi-color-secondary-fg: oklch(99% 0 0);
183
+ }
184
+
185
+ [data-novi-color='brick'] {
186
+ --novi-hue: 35;
187
+ --novi-color-primary: oklch(44% 0.09 35);
188
+ --novi-color-primary-fg: oklch(99% 0 0);
189
+ --novi-color-secondary: oklch(44% 0.09 268);
190
+ --novi-color-secondary-fg: oklch(99% 0 0);
191
+ }
192
+
193
+ [data-novi-color='bordeaux'] {
194
+ --novi-hue: 12;
195
+ --novi-color-primary: oklch(44% 0.09 12);
196
+ --novi-color-primary-fg: oklch(99% 0 0);
197
+ --novi-color-secondary: oklch(44% 0.09 70);
198
+ --novi-color-secondary-fg: oklch(99% 0 0);
199
+ }
200
+
201
+ [data-novi-color='graphite'] {
202
+ --novi-hue: 270;
203
+ --novi-color-primary: oklch(44% 0.02 270);
204
+ --novi-color-primary-fg: oklch(99% 0 0);
205
+ --novi-color-secondary: oklch(44% 0.09 35);
206
+ --novi-color-secondary-fg: oklch(99% 0 0);
207
+ }
208
+
209
+ [data-novi-scheme='dark'][data-novi-color='ink'] {
210
+ --novi-color-primary: oklch(74% 0.09 268);
211
+ --novi-color-primary-fg: oklch(16% 0 0);
212
+ --novi-color-secondary: oklch(74% 0.09 35);
213
+ --novi-color-secondary-fg: oklch(16% 0 0);
214
+ }
215
+
216
+ [data-novi-scheme='dark'][data-novi-color='prussian'] {
217
+ --novi-color-primary: oklch(74% 0.09 235);
218
+ --novi-color-primary-fg: oklch(16% 0 0);
219
+ --novi-color-secondary: oklch(74% 0.09 70);
220
+ --novi-color-secondary-fg: oklch(16% 0 0);
221
+ }
222
+
223
+ [data-novi-scheme='dark'][data-novi-color='forest'] {
224
+ --novi-color-primary: oklch(74% 0.09 160);
225
+ --novi-color-primary-fg: oklch(16% 0 0);
226
+ --novi-color-secondary: oklch(74% 0.09 70);
227
+ --novi-color-secondary-fg: oklch(16% 0 0);
228
+ }
229
+
230
+ [data-novi-scheme='dark'][data-novi-color='olive'] {
231
+ --novi-color-primary: oklch(74% 0.09 125);
232
+ --novi-color-primary-fg: oklch(16% 0 0);
233
+ --novi-color-secondary: oklch(74% 0.09 268);
234
+ --novi-color-secondary-fg: oklch(16% 0 0);
235
+ }
236
+
237
+ [data-novi-scheme='dark'][data-novi-color='ochre'] {
238
+ --novi-color-primary: oklch(74% 0.09 70);
239
+ --novi-color-primary-fg: oklch(16% 0 0);
240
+ --novi-color-secondary: oklch(74% 0.09 235);
241
+ --novi-color-secondary-fg: oklch(16% 0 0);
242
+ }
243
+
244
+ [data-novi-scheme='dark'][data-novi-color='brick'] {
245
+ --novi-color-primary: oklch(74% 0.09 35);
246
+ --novi-color-primary-fg: oklch(16% 0 0);
247
+ --novi-color-secondary: oklch(74% 0.09 268);
248
+ --novi-color-secondary-fg: oklch(16% 0 0);
249
+ }
250
+
251
+ [data-novi-scheme='dark'][data-novi-color='bordeaux'] {
252
+ --novi-color-primary: oklch(74% 0.09 12);
253
+ --novi-color-primary-fg: oklch(16% 0 0);
254
+ --novi-color-secondary: oklch(74% 0.09 70);
255
+ --novi-color-secondary-fg: oklch(16% 0 0);
256
+ }
257
+
258
+ [data-novi-scheme='dark'][data-novi-color='graphite'] {
259
+ --novi-color-primary: oklch(74% 0.017 270);
260
+ --novi-color-primary-fg: oklch(16% 0 0);
261
+ --novi-color-secondary: oklch(74% 0.09 35);
262
+ --novi-color-secondary-fg: oklch(16% 0 0);
263
+ }
264
+
265
+ @media (prefers-color-scheme: dark) {
266
+ :root:not([data-novi-scheme='light'])[data-novi-color='ink'] {
267
+ --novi-color-primary: oklch(74% 0.09 268);
268
+ --novi-color-primary-fg: oklch(16% 0 0);
269
+ --novi-color-secondary: oklch(74% 0.09 35);
270
+ --novi-color-secondary-fg: oklch(16% 0 0);
271
+ }
272
+
273
+ :root:not([data-novi-scheme='light'])[data-novi-color='prussian'] {
274
+ --novi-color-primary: oklch(74% 0.09 235);
275
+ --novi-color-primary-fg: oklch(16% 0 0);
276
+ --novi-color-secondary: oklch(74% 0.09 70);
277
+ --novi-color-secondary-fg: oklch(16% 0 0);
278
+ }
279
+
280
+ :root:not([data-novi-scheme='light'])[data-novi-color='forest'] {
281
+ --novi-color-primary: oklch(74% 0.09 160);
282
+ --novi-color-primary-fg: oklch(16% 0 0);
283
+ --novi-color-secondary: oklch(74% 0.09 70);
284
+ --novi-color-secondary-fg: oklch(16% 0 0);
285
+ }
286
+
287
+ :root:not([data-novi-scheme='light'])[data-novi-color='olive'] {
288
+ --novi-color-primary: oklch(74% 0.09 125);
289
+ --novi-color-primary-fg: oklch(16% 0 0);
290
+ --novi-color-secondary: oklch(74% 0.09 268);
291
+ --novi-color-secondary-fg: oklch(16% 0 0);
292
+ }
293
+
294
+ :root:not([data-novi-scheme='light'])[data-novi-color='ochre'] {
295
+ --novi-color-primary: oklch(74% 0.09 70);
296
+ --novi-color-primary-fg: oklch(16% 0 0);
297
+ --novi-color-secondary: oklch(74% 0.09 235);
298
+ --novi-color-secondary-fg: oklch(16% 0 0);
299
+ }
300
+
301
+ :root:not([data-novi-scheme='light'])[data-novi-color='brick'] {
302
+ --novi-color-primary: oklch(74% 0.09 35);
303
+ --novi-color-primary-fg: oklch(16% 0 0);
304
+ --novi-color-secondary: oklch(74% 0.09 268);
305
+ --novi-color-secondary-fg: oklch(16% 0 0);
306
+ }
307
+
308
+ :root:not([data-novi-scheme='light'])[data-novi-color='bordeaux'] {
309
+ --novi-color-primary: oklch(74% 0.09 12);
310
+ --novi-color-primary-fg: oklch(16% 0 0);
311
+ --novi-color-secondary: oklch(74% 0.09 70);
312
+ --novi-color-secondary-fg: oklch(16% 0 0);
313
+ }
314
+
315
+ :root:not([data-novi-scheme='light'])[data-novi-color='graphite'] {
316
+ --novi-color-primary: oklch(74% 0.017 270);
317
+ --novi-color-primary-fg: oklch(16% 0 0);
318
+ --novi-color-secondary: oklch(74% 0.09 35);
319
+ --novi-color-secondary-fg: oklch(16% 0 0);
90
320
  }
91
321
  }
92
322
  }