@unocss/preset-uno 0.11.6 → 0.12.4

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.
@@ -209,43 +209,7 @@ var colors = {
209
209
  800: "#991b1b",
210
210
  900: "#7f1d1d"
211
211
  },
212
- warmgray: {
213
- 50: "#fafaf9",
214
- 100: "#f5f5f4",
215
- 200: "#e7e5e4",
216
- 300: "#d6d3d1",
217
- 400: "#a8a29e",
218
- 500: "#78716c",
219
- 600: "#57534e",
220
- 700: "#44403c",
221
- 800: "#292524",
222
- 900: "#1c1917"
223
- },
224
- truegray: {
225
- 50: "#fafafa",
226
- 100: "#f5f5f5",
227
- 200: "#e5e5e5",
228
- 300: "#d4d4d4",
229
- 400: "#a3a3a3",
230
- 500: "#737373",
231
- 600: "#525252",
232
- 700: "#404040",
233
- 800: "#262626",
234
- 900: "#171717"
235
- },
236
212
  gray: {
237
- 50: "#fafafa",
238
- 100: "#f4f4f5",
239
- 200: "#e4e4e7",
240
- 300: "#d4d4d8",
241
- 400: "#a1a1aa",
242
- 500: "#71717a",
243
- 600: "#52525b",
244
- 700: "#3f3f46",
245
- 800: "#27272a",
246
- 900: "#18181b"
247
- },
248
- coolgray: {
249
213
  50: "#f9fafb",
250
214
  100: "#f3f4f6",
251
215
  200: "#e5e7eb",
@@ -257,7 +221,7 @@ var colors = {
257
221
  800: "#1f2937",
258
222
  900: "#111827"
259
223
  },
260
- bluegray: {
224
+ slate: {
261
225
  50: "#f8fafc",
262
226
  100: "#f1f5f9",
263
227
  200: "#e2e8f0",
@@ -269,6 +233,42 @@ var colors = {
269
233
  800: "#1e293b",
270
234
  900: "#0f172a"
271
235
  },
236
+ zinc: {
237
+ 50: "#fafafa",
238
+ 100: "#f4f4f5",
239
+ 200: "#e4e4e7",
240
+ 300: "#d4d4d8",
241
+ 400: "#a1a1aa",
242
+ 500: "#71717a",
243
+ 600: "#52525b",
244
+ 700: "#3f3f46",
245
+ 800: "#27272a",
246
+ 900: "#18181b"
247
+ },
248
+ neutral: {
249
+ 50: "#fafafa",
250
+ 100: "#f5f5f5",
251
+ 200: "#e5e5e5",
252
+ 300: "#d4d4d4",
253
+ 400: "#a3a3a3",
254
+ 500: "#737373",
255
+ 600: "#525252",
256
+ 700: "#404040",
257
+ 800: "#262626",
258
+ 900: "#171717"
259
+ },
260
+ stone: {
261
+ 50: "#fafaf9",
262
+ 100: "#f5f5f4",
263
+ 200: "#e7e5e4",
264
+ 300: "#d6d3d1",
265
+ 400: "#a8a29e",
266
+ 500: "#78716c",
267
+ 600: "#57534e",
268
+ 700: "#44403c",
269
+ 800: "#292524",
270
+ 900: "#1c1917"
271
+ },
272
272
  light: {
273
273
  50: "#fdfdfd",
274
274
  100: "#fcfcfc",
@@ -292,6 +292,36 @@ var colors = {
292
292
  700: "#1b1b1b",
293
293
  800: "#181818",
294
294
  900: "#0f0f0f"
295
+ },
296
+ get lightblue() {
297
+ return this.sky;
298
+ },
299
+ get lightBlue() {
300
+ return this.sky;
301
+ },
302
+ get warmgray() {
303
+ return this.stone;
304
+ },
305
+ get warmGray() {
306
+ return this.stone;
307
+ },
308
+ get truegray() {
309
+ return this.neutral;
310
+ },
311
+ get trueGray() {
312
+ return this.neutral;
313
+ },
314
+ get coolgray() {
315
+ return this.gray;
316
+ },
317
+ get coolGray() {
318
+ return this.gray;
319
+ },
320
+ get bluegray() {
321
+ return this.slate;
322
+ },
323
+ get blueGray() {
324
+ return this.slate;
295
325
  }
296
326
  };
297
327
  Object.values(colors).forEach((color) => {
@@ -398,6 +428,7 @@ var letterSpacing = {
398
428
  wider: "0.05em",
399
429
  widest: "0.1em"
400
430
  };
431
+ var wordSpacing = letterSpacing;
401
432
 
402
433
  // src/theme/misc.ts
403
434
  var breakpoints = {
@@ -504,6 +535,7 @@ var theme = {
504
535
  borderRadius,
505
536
  lineHeight,
506
537
  letterSpacing,
538
+ wordSpacing,
507
539
  boxShadow,
508
540
  textIndent,
509
541
  textShadow,
@@ -556,6 +556,14 @@ var trackings = [
556
556
  return { "letter-spacing": v };
557
557
  }]
558
558
  ];
559
+ var wordSpacings = [
560
+ [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
561
+ var _a;
562
+ const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || handler.bracket.rem(s);
563
+ if (v !== null)
564
+ return { "word-spacing": v };
565
+ }]
566
+ ];
559
567
  var tabSizes = [
560
568
  [/^tab-?([^-]*)$/, ([, s]) => {
561
569
  s = s || "4";
@@ -1607,6 +1615,7 @@ var rules = [
1607
1615
  overscrolls,
1608
1616
  breaks,
1609
1617
  trackings,
1618
+ wordSpacings,
1610
1619
  leadings,
1611
1620
  overflows,
1612
1621
  positions,
@@ -556,6 +556,14 @@ var trackings = [
556
556
  return { "letter-spacing": v };
557
557
  }]
558
558
  ];
559
+ var wordSpacings = [
560
+ [/^word-spacing-([^-]+)$/, ([, s], { theme }) => {
561
+ var _a;
562
+ const v = ((_a = theme.wordSpacing) == null ? void 0 : _a[s]) || _chunkSCNDCSE5js.handler.bracket.rem(s);
563
+ if (v !== null)
564
+ return { "word-spacing": v };
565
+ }]
566
+ ];
559
567
  var tabSizes = [
560
568
  [/^tab-?([^-]*)$/, ([, s]) => {
561
569
  s = s || "4";
@@ -1607,6 +1615,7 @@ var rules = [
1607
1615
  overscrolls,
1608
1616
  breaks,
1609
1617
  trackings,
1618
+ wordSpacings,
1610
1619
  leadings,
1611
1620
  overflows,
1612
1621
  positions,
@@ -209,43 +209,7 @@ var colors = {
209
209
  800: "#991b1b",
210
210
  900: "#7f1d1d"
211
211
  },
212
- warmgray: {
213
- 50: "#fafaf9",
214
- 100: "#f5f5f4",
215
- 200: "#e7e5e4",
216
- 300: "#d6d3d1",
217
- 400: "#a8a29e",
218
- 500: "#78716c",
219
- 600: "#57534e",
220
- 700: "#44403c",
221
- 800: "#292524",
222
- 900: "#1c1917"
223
- },
224
- truegray: {
225
- 50: "#fafafa",
226
- 100: "#f5f5f5",
227
- 200: "#e5e5e5",
228
- 300: "#d4d4d4",
229
- 400: "#a3a3a3",
230
- 500: "#737373",
231
- 600: "#525252",
232
- 700: "#404040",
233
- 800: "#262626",
234
- 900: "#171717"
235
- },
236
212
  gray: {
237
- 50: "#fafafa",
238
- 100: "#f4f4f5",
239
- 200: "#e4e4e7",
240
- 300: "#d4d4d8",
241
- 400: "#a1a1aa",
242
- 500: "#71717a",
243
- 600: "#52525b",
244
- 700: "#3f3f46",
245
- 800: "#27272a",
246
- 900: "#18181b"
247
- },
248
- coolgray: {
249
213
  50: "#f9fafb",
250
214
  100: "#f3f4f6",
251
215
  200: "#e5e7eb",
@@ -257,7 +221,7 @@ var colors = {
257
221
  800: "#1f2937",
258
222
  900: "#111827"
259
223
  },
260
- bluegray: {
224
+ slate: {
261
225
  50: "#f8fafc",
262
226
  100: "#f1f5f9",
263
227
  200: "#e2e8f0",
@@ -269,6 +233,42 @@ var colors = {
269
233
  800: "#1e293b",
270
234
  900: "#0f172a"
271
235
  },
236
+ zinc: {
237
+ 50: "#fafafa",
238
+ 100: "#f4f4f5",
239
+ 200: "#e4e4e7",
240
+ 300: "#d4d4d8",
241
+ 400: "#a1a1aa",
242
+ 500: "#71717a",
243
+ 600: "#52525b",
244
+ 700: "#3f3f46",
245
+ 800: "#27272a",
246
+ 900: "#18181b"
247
+ },
248
+ neutral: {
249
+ 50: "#fafafa",
250
+ 100: "#f5f5f5",
251
+ 200: "#e5e5e5",
252
+ 300: "#d4d4d4",
253
+ 400: "#a3a3a3",
254
+ 500: "#737373",
255
+ 600: "#525252",
256
+ 700: "#404040",
257
+ 800: "#262626",
258
+ 900: "#171717"
259
+ },
260
+ stone: {
261
+ 50: "#fafaf9",
262
+ 100: "#f5f5f4",
263
+ 200: "#e7e5e4",
264
+ 300: "#d6d3d1",
265
+ 400: "#a8a29e",
266
+ 500: "#78716c",
267
+ 600: "#57534e",
268
+ 700: "#44403c",
269
+ 800: "#292524",
270
+ 900: "#1c1917"
271
+ },
272
272
  light: {
273
273
  50: "#fdfdfd",
274
274
  100: "#fcfcfc",
@@ -292,6 +292,36 @@ var colors = {
292
292
  700: "#1b1b1b",
293
293
  800: "#181818",
294
294
  900: "#0f0f0f"
295
+ },
296
+ get lightblue() {
297
+ return this.sky;
298
+ },
299
+ get lightBlue() {
300
+ return this.sky;
301
+ },
302
+ get warmgray() {
303
+ return this.stone;
304
+ },
305
+ get warmGray() {
306
+ return this.stone;
307
+ },
308
+ get truegray() {
309
+ return this.neutral;
310
+ },
311
+ get trueGray() {
312
+ return this.neutral;
313
+ },
314
+ get coolgray() {
315
+ return this.gray;
316
+ },
317
+ get coolGray() {
318
+ return this.gray;
319
+ },
320
+ get bluegray() {
321
+ return this.slate;
322
+ },
323
+ get blueGray() {
324
+ return this.slate;
295
325
  }
296
326
  };
297
327
  Object.values(colors).forEach((color) => {
@@ -398,6 +428,7 @@ var letterSpacing = {
398
428
  wider: "0.05em",
399
429
  widest: "0.1em"
400
430
  };
431
+ var wordSpacing = letterSpacing;
401
432
 
402
433
  // src/theme/misc.ts
403
434
  var breakpoints = {
@@ -504,6 +535,7 @@ var theme = {
504
535
  borderRadius,
505
536
  lineHeight,
506
537
  letterSpacing,
538
+ wordSpacing,
507
539
  boxShadow,
508
540
  textIndent,
509
541
  textShadow,
@@ -1,4 +1,4 @@
1
- import { T as Theme } from './index-ff2f576a';
1
+ import { T as Theme } from './index-9dcba0ca';
2
2
 
3
3
  declare const colors: Theme['colors'];
4
4
 
@@ -12,6 +12,7 @@ interface Theme {
12
12
  fontSize?: Record<string, [string, string]>;
13
13
  lineHeight?: Record<string, string>;
14
14
  letterSpacing?: Record<string, string>;
15
+ wordSpacing?: Record<string, string>;
15
16
  boxShadow?: Record<string, string>;
16
17
  textIndent?: Record<string, string>;
17
18
  textShadow?: Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Preset } from '@unocss/core';
2
- import { T as Theme } from './index-ff2f576a';
3
- export { t as theme } from './index-ff2f576a';
4
- export { c as colors } from './colors-5eb4823c';
2
+ import { T as Theme } from './index-9dcba0ca';
3
+ export { t as theme } from './index-9dcba0ca';
4
+ export { c as colors } from './colors-5537fdf0';
5
5
 
6
6
  interface UnoOptions {
7
7
  /**
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk2KYLIEWUjs = require('./chunk-2KYLIEWU.js');
4
+ var _chunkPIBKKHAPjs = require('./chunk-PIBKKHAP.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkR5JSOZOBjs = require('./chunk-R5JSOZOB.js');
8
+ var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
9
9
 
10
10
 
11
11
 
@@ -17,14 +17,14 @@ require('./chunk-Y6EUTGDC.js');
17
17
  // src/index.ts
18
18
  var preset = (options = {}) => ({
19
19
  name: "@unocss/preset-uno",
20
- theme: _chunkR5JSOZOBjs.theme,
21
- rules: _chunk2KYLIEWUjs.rules,
20
+ theme: _chunkD3O3OLB6js.theme,
21
+ rules: _chunkPIBKKHAPjs.rules,
22
22
  variants: [
23
23
  ..._chunk5WWOD4UIjs.variants,
24
24
  ...options.dark === "media" ? _chunk5WWOD4UIjs.variantColorsMedia : _chunk5WWOD4UIjs.variantColorsClass
25
25
  ],
26
26
  shortcuts: [
27
- ..._chunk2KYLIEWUjs.containerShortcuts
27
+ ..._chunkPIBKKHAPjs.containerShortcuts
28
28
  ]
29
29
  });
30
30
  var src_default = preset;
@@ -33,4 +33,4 @@ var src_default = preset;
33
33
 
34
34
 
35
35
 
36
- exports.colors = _chunkR5JSOZOBjs.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkR5JSOZOBjs.theme;
36
+ exports.colors = _chunkD3O3OLB6js.colors; exports.default = src_default; exports.preset = preset; exports.theme = _chunkD3O3OLB6js.theme;
package/dist/index.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  containerShortcuts,
3
3
  rules
4
- } from "./chunk-6XFI3IKX.mjs";
4
+ } from "./chunk-F5VW77AU.mjs";
5
5
  import {
6
6
  colors,
7
7
  theme
8
- } from "./chunk-RHH7JH7F.mjs";
8
+ } from "./chunk-ZUP75OYP.mjs";
9
9
  import {
10
10
  variantColorsClass,
11
11
  variantColorsMedia,
package/dist/rules.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2KYLIEWUjs = require('./chunk-2KYLIEWU.js');
3
+ var _chunkPIBKKHAPjs = require('./chunk-PIBKKHAP.js');
4
4
  require('./chunk-SCNDCSE5.js');
5
5
  require('./chunk-Y6EUTGDC.js');
6
6
 
7
7
 
8
- exports.rules = _chunk2KYLIEWUjs.rules;
8
+ exports.rules = _chunkPIBKKHAPjs.rules;
package/dist/rules.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rules
3
- } from "./chunk-6XFI3IKX.mjs";
3
+ } from "./chunk-F5VW77AU.mjs";
4
4
  import "./chunk-URBMB274.mjs";
5
5
  import "./chunk-5SH5BFJ4.mjs";
6
6
  export {
package/dist/theme.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { T as Theme, t as theme } from './index-ff2f576a';
2
- export { c as colors } from './colors-5eb4823c';
1
+ export { T as Theme, t as theme } from './index-9dcba0ca';
2
+ export { c as colors } from './colors-5537fdf0';
package/dist/theme.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkR5JSOZOBjs = require('./chunk-R5JSOZOB.js');
4
+ var _chunkD3O3OLB6js = require('./chunk-D3O3OLB6.js');
5
5
  require('./chunk-Y6EUTGDC.js');
6
6
 
7
7
 
8
8
 
9
- exports.colors = _chunkR5JSOZOBjs.colors; exports.theme = _chunkR5JSOZOBjs.theme;
9
+ exports.colors = _chunkD3O3OLB6js.colors; exports.theme = _chunkD3O3OLB6js.theme;
package/dist/theme.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  colors,
3
3
  theme
4
- } from "./chunk-RHH7JH7F.mjs";
4
+ } from "./chunk-ZUP75OYP.mjs";
5
5
  import "./chunk-5SH5BFJ4.mjs";
6
6
  export {
7
7
  colors,
@@ -1,5 +1,5 @@
1
1
  import { Variant, VariantFunction, VariantObject } from '@unocss/core';
2
- import { T as Theme } from './index-ff2f576a';
2
+ import { T as Theme } from './index-9dcba0ca';
3
3
 
4
4
  declare const variantBreakpoints: Variant<Theme>;
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/preset-uno",
3
- "version": "0.11.6",
3
+ "version": "0.12.4",
4
4
  "description": "The default preset for UnoCSS",
5
5
  "keywords": [
6
6
  "unocss",
@@ -45,7 +45,7 @@
45
45
  "*.css"
46
46
  ],
47
47
  "dependencies": {
48
- "@unocss/core": "0.11.6"
48
+ "@unocss/core": "0.12.4"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "tsup",