@nswds/tokens 3.0.0 → 3.1.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.
Files changed (68) hide show
  1. package/dist/css/breakpoints/global.css +7 -0
  2. package/dist/css/colors/semantic/hex.css +76 -76
  3. package/dist/css/colors/semantic/hsl.css +76 -76
  4. package/dist/css/colors/semantic/oklch.css +76 -76
  5. package/dist/css/colors/semantic/rgb.css +76 -76
  6. package/dist/css/colors/themes/masterbrand/hex.css +57 -57
  7. package/dist/css/colors/themes/masterbrand/hsl.css +57 -57
  8. package/dist/css/colors/themes/masterbrand/oklch.css +57 -57
  9. package/dist/css/colors/themes/masterbrand/rgb.css +57 -57
  10. package/dist/css/radius/global.css +7 -0
  11. package/dist/css/space/global.css +14 -0
  12. package/dist/index.cjs +815 -31
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +263 -0
  15. package/dist/index.d.ts +263 -0
  16. package/dist/index.js +815 -31
  17. package/dist/index.js.map +1 -1
  18. package/dist/js/breakpoints/global.js +7 -0
  19. package/dist/js/radius/global.js +7 -0
  20. package/dist/js/space/global.js +14 -0
  21. package/dist/json/breakpoints/global.json +9 -0
  22. package/dist/json/radius/global.json +9 -0
  23. package/dist/json/space/global.json +16 -0
  24. package/dist/less/breakpoints/global.less +5 -0
  25. package/dist/less/colors/semantic/hex.less +76 -76
  26. package/dist/less/colors/semantic/hsl.less +76 -76
  27. package/dist/less/colors/semantic/oklch.less +76 -76
  28. package/dist/less/colors/semantic/rgb.less +76 -76
  29. package/dist/less/colors/themes/masterbrand/hex.less +57 -57
  30. package/dist/less/colors/themes/masterbrand/hsl.less +57 -57
  31. package/dist/less/colors/themes/masterbrand/oklch.less +57 -57
  32. package/dist/less/colors/themes/masterbrand/rgb.less +57 -57
  33. package/dist/less/radius/global.less +5 -0
  34. package/dist/less/space/global.less +12 -0
  35. package/dist/scss/breakpoints/global.scss +5 -0
  36. package/dist/scss/colors/semantic/hex.scss +76 -76
  37. package/dist/scss/colors/semantic/hsl.scss +76 -76
  38. package/dist/scss/colors/semantic/oklch.scss +76 -76
  39. package/dist/scss/colors/semantic/rgb.scss +76 -76
  40. package/dist/scss/colors/themes/masterbrand/hex.scss +57 -57
  41. package/dist/scss/colors/themes/masterbrand/hsl.scss +57 -57
  42. package/dist/scss/colors/themes/masterbrand/oklch.scss +57 -57
  43. package/dist/scss/colors/themes/masterbrand/rgb.scss +57 -57
  44. package/dist/scss/radius/global.scss +5 -0
  45. package/dist/scss/space/global.scss +12 -0
  46. package/dist/tailwind/breakpoints/global.css +7 -0
  47. package/dist/tailwind/radius/global.css +7 -0
  48. package/dist/tailwind/space/global.css +14 -0
  49. package/dist/tokens/breakpoints.base.json +44 -0
  50. package/dist/tokens/global/breakpoints/canonical.json +44 -0
  51. package/dist/tokens/global/radius/canonical.json +44 -0
  52. package/dist/tokens/global/space/canonical.json +100 -0
  53. package/dist/tokens/radius.base.json +44 -0
  54. package/dist/tokens/semantic/color/canonical.json +76 -0
  55. package/dist/tokens/semantic/color/hex.json +76 -0
  56. package/dist/tokens/semantic/color/hsl.json +76 -0
  57. package/dist/tokens/semantic/color/oklch.json +76 -0
  58. package/dist/tokens/semantic/color/rgb.json +76 -0
  59. package/dist/tokens/space.base.json +100 -0
  60. package/dist/tokens/themes/color/masterbrand/canonical.json +57 -0
  61. package/dist/tokens/themes/color/masterbrand/hex.json +57 -0
  62. package/dist/tokens/themes/color/masterbrand/hsl.json +57 -0
  63. package/dist/tokens/themes/color/masterbrand/oklch.json +57 -0
  64. package/dist/tokens/themes/color/masterbrand/rgb.json +57 -0
  65. package/dist/ts/breakpoints/global.ts +7 -0
  66. package/dist/ts/radius/global.ts +7 -0
  67. package/dist/ts/space/global.ts +14 -0
  68. package/package.json +20 -1
@@ -1,59 +1,59 @@
1
1
  :root {
2
- --primary-50: rgb(240, 251, 255);
3
- --primary-100: rgb(228, 246, 255);
4
- --primary-150: rgb(215, 242, 254);
5
- --primary-200: rgb(203, 237, 253);
6
- --primary-250: rgb(188, 234, 254);
7
- --primary-300: rgb(173, 231, 255);
8
- --primary-350: rgb(157, 227, 255);
9
- --primary-400: rgb(140, 224, 255);
10
- --primary-450: rgb(90, 201, 255);
11
- --primary-500: rgb(38, 174, 255);
12
- --primary-550: rgb(0, 143, 255);
13
- --primary-600: rgb(20, 108, 253);
14
- --primary-650: rgb(12, 90, 212);
15
- --primary-700: rgb(5, 72, 173);
16
- --primary-750: rgb(2, 54, 136);
17
- --primary-800: rgb(0, 38, 100);
18
- --primary-850: rgb(0, 26, 77);
19
- --primary-900: rgb(0, 16, 55);
20
- --primary-950: rgb(0, 6, 34);
21
- --accent-50: rgb(255, 248, 249);
22
- --accent-100: rgb(255, 242, 244);
23
- --accent-150: rgb(255, 236, 239);
24
- --accent-200: rgb(255, 230, 234);
25
- --accent-250: rgb(255, 219, 224);
26
- --accent-300: rgb(255, 207, 214);
27
- --accent-350: rgb(255, 196, 204);
28
- --accent-400: rgb(255, 184, 193);
29
- --accent-450: rgb(248, 151, 162);
30
- --accent-500: rgb(239, 117, 129);
31
- --accent-550: rgb(228, 79, 95);
32
- --accent-600: rgb(215, 21, 58);
33
- --accent-650: rgb(185, 14, 50);
34
- --accent-700: rgb(155, 7, 42);
35
- --accent-750: rgb(126, 3, 34);
36
- --accent-800: rgb(99, 0, 25);
37
- --accent-850: rgb(76, 0, 16);
38
- --accent-900: rgb(54, 0, 8);
39
- --accent-950: rgb(33, 0, 3);
40
- --grey-50: rgb(250, 250, 250);
41
- --grey-100: rgb(245, 245, 245);
42
- --grey-150: rgb(240, 240, 240);
43
- --grey-200: rgb(235, 235, 235);
44
- --grey-250: rgb(227, 229, 230);
45
- --grey-300: rgb(220, 223, 224);
46
- --grey-350: rgb(212, 217, 219);
47
- --grey-400: rgb(205, 211, 214);
48
- --grey-450: rgb(170, 176, 180);
49
- --grey-500: rgb(136, 143, 146);
50
- --grey-550: rgb(104, 111, 114);
51
- --grey-600: rgb(73, 80, 84);
52
- --grey-650: rgb(63, 69, 73);
53
- --grey-700: rgb(53, 59, 63);
54
- --grey-750: rgb(43, 49, 53);
55
- --grey-800: rgb(34, 39, 43);
56
- --grey-850: rgb(24, 28, 31);
57
- --grey-900: rgb(14, 17, 19);
58
- --grey-950: rgb(5, 7, 9);
2
+ --primary-50: rgb(240, 251, 255); /** Primary brand colour — primary actions, links, and key accents. Step 50: lightest tints for subtle backgrounds and surfaces. */
3
+ --primary-100: rgb(228, 246, 255); /** Primary brand colour — primary actions, links, and key accents. Step 100: lightest tints for subtle backgrounds and surfaces. */
4
+ --primary-150: rgb(215, 242, 254); /** Primary brand colour — primary actions, links, and key accents. Step 150: lightest tints for subtle backgrounds and surfaces. */
5
+ --primary-200: rgb(203, 237, 253); /** Primary brand colour — primary actions, links, and key accents. Step 200: lightest tints for subtle backgrounds and surfaces. */
6
+ --primary-250: rgb(188, 234, 254); /** Primary brand colour — primary actions, links, and key accents. Step 250: lightest tints for subtle backgrounds and surfaces. */
7
+ --primary-300: rgb(173, 231, 255); /** Primary brand colour — primary actions, links, and key accents. Step 300: light tints. */
8
+ --primary-350: rgb(157, 227, 255); /** Primary brand colour — primary actions, links, and key accents. Step 350: light tints. */
9
+ --primary-400: rgb(140, 224, 255); /** Primary brand colour — primary actions, links, and key accents. Step 400: light tints. */
10
+ --primary-450: rgb(90, 201, 255); /** Primary brand colour — primary actions, links, and key accents. Step 450: light tints. */
11
+ --primary-500: rgb(38, 174, 255); /** Primary brand colour — primary actions, links, and key accents. Step 500: base colour. */
12
+ --primary-550: rgb(0, 143, 255); /** Primary brand colour — primary actions, links, and key accents. Step 550: shades for borders and icons. */
13
+ --primary-600: rgb(20, 108, 253); /** Primary brand colour — primary actions, links, and key accents. Step 600: shades for borders and icons. */
14
+ --primary-650: rgb(12, 90, 212); /** Primary brand colour — primary actions, links, and key accents. Step 650: shades for borders and icons. */
15
+ --primary-700: rgb(5, 72, 173); /** Primary brand colour — primary actions, links, and key accents. Step 700: shades for borders and icons. */
16
+ --primary-750: rgb(2, 54, 136); /** Primary brand colour — primary actions, links, and key accents. Step 750: darkest shades for text and high emphasis. */
17
+ --primary-800: rgb(0, 38, 100); /** Primary brand colour — primary actions, links, and key accents. Step 800: darkest shades for text and high emphasis. */
18
+ --primary-850: rgb(0, 26, 77); /** Primary brand colour — primary actions, links, and key accents. Step 850: darkest shades for text and high emphasis. */
19
+ --primary-900: rgb(0, 16, 55); /** Primary brand colour — primary actions, links, and key accents. Step 900: darkest shades for text and high emphasis. */
20
+ --primary-950: rgb(0, 6, 34); /** Primary brand colour — primary actions, links, and key accents. Step 950: darkest shades for text and high emphasis. */
21
+ --accent-50: rgb(255, 248, 249); /** Accent colour — secondary emphasis and supporting highlights. Step 50: lightest tints for subtle backgrounds and surfaces. */
22
+ --accent-100: rgb(255, 242, 244); /** Accent colour — secondary emphasis and supporting highlights. Step 100: lightest tints for subtle backgrounds and surfaces. */
23
+ --accent-150: rgb(255, 236, 239); /** Accent colour — secondary emphasis and supporting highlights. Step 150: lightest tints for subtle backgrounds and surfaces. */
24
+ --accent-200: rgb(255, 230, 234); /** Accent colour — secondary emphasis and supporting highlights. Step 200: lightest tints for subtle backgrounds and surfaces. */
25
+ --accent-250: rgb(255, 219, 224); /** Accent colour — secondary emphasis and supporting highlights. Step 250: lightest tints for subtle backgrounds and surfaces. */
26
+ --accent-300: rgb(255, 207, 214); /** Accent colour — secondary emphasis and supporting highlights. Step 300: light tints. */
27
+ --accent-350: rgb(255, 196, 204); /** Accent colour — secondary emphasis and supporting highlights. Step 350: light tints. */
28
+ --accent-400: rgb(255, 184, 193); /** Accent colour — secondary emphasis and supporting highlights. Step 400: light tints. */
29
+ --accent-450: rgb(248, 151, 162); /** Accent colour — secondary emphasis and supporting highlights. Step 450: light tints. */
30
+ --accent-500: rgb(239, 117, 129); /** Accent colour — secondary emphasis and supporting highlights. Step 500: base colour. */
31
+ --accent-550: rgb(228, 79, 95); /** Accent colour — secondary emphasis and supporting highlights. Step 550: shades for borders and icons. */
32
+ --accent-600: rgb(215, 21, 58); /** Accent colour — secondary emphasis and supporting highlights. Step 600: shades for borders and icons. */
33
+ --accent-650: rgb(185, 14, 50); /** Accent colour — secondary emphasis and supporting highlights. Step 650: shades for borders and icons. */
34
+ --accent-700: rgb(155, 7, 42); /** Accent colour — secondary emphasis and supporting highlights. Step 700: shades for borders and icons. */
35
+ --accent-750: rgb(126, 3, 34); /** Accent colour — secondary emphasis and supporting highlights. Step 750: darkest shades for text and high emphasis. */
36
+ --accent-800: rgb(99, 0, 25); /** Accent colour — secondary emphasis and supporting highlights. Step 800: darkest shades for text and high emphasis. */
37
+ --accent-850: rgb(76, 0, 16); /** Accent colour — secondary emphasis and supporting highlights. Step 850: darkest shades for text and high emphasis. */
38
+ --accent-900: rgb(54, 0, 8); /** Accent colour — secondary emphasis and supporting highlights. Step 900: darkest shades for text and high emphasis. */
39
+ --accent-950: rgb(33, 0, 3); /** Accent colour — secondary emphasis and supporting highlights. Step 950: darkest shades for text and high emphasis. */
40
+ --grey-50: rgb(250, 250, 250); /** Neutral grey — text, borders, surfaces, and dividers. Step 50: lightest tints for subtle backgrounds and surfaces. */
41
+ --grey-100: rgb(245, 245, 245); /** Neutral grey — text, borders, surfaces, and dividers. Step 100: lightest tints for subtle backgrounds and surfaces. */
42
+ --grey-150: rgb(240, 240, 240); /** Neutral grey — text, borders, surfaces, and dividers. Step 150: lightest tints for subtle backgrounds and surfaces. */
43
+ --grey-200: rgb(235, 235, 235); /** Neutral grey — text, borders, surfaces, and dividers. Step 200: lightest tints for subtle backgrounds and surfaces. */
44
+ --grey-250: rgb(227, 229, 230); /** Neutral grey — text, borders, surfaces, and dividers. Step 250: lightest tints for subtle backgrounds and surfaces. */
45
+ --grey-300: rgb(220, 223, 224); /** Neutral grey — text, borders, surfaces, and dividers. Step 300: light tints. */
46
+ --grey-350: rgb(212, 217, 219); /** Neutral grey — text, borders, surfaces, and dividers. Step 350: light tints. */
47
+ --grey-400: rgb(205, 211, 214); /** Neutral grey — text, borders, surfaces, and dividers. Step 400: light tints. */
48
+ --grey-450: rgb(170, 176, 180); /** Neutral grey — text, borders, surfaces, and dividers. Step 450: light tints. */
49
+ --grey-500: rgb(136, 143, 146); /** Neutral grey — text, borders, surfaces, and dividers. Step 500: base colour. */
50
+ --grey-550: rgb(104, 111, 114); /** Neutral grey — text, borders, surfaces, and dividers. Step 550: shades for borders and icons. */
51
+ --grey-600: rgb(73, 80, 84); /** Neutral grey — text, borders, surfaces, and dividers. Step 600: shades for borders and icons. */
52
+ --grey-650: rgb(63, 69, 73); /** Neutral grey — text, borders, surfaces, and dividers. Step 650: shades for borders and icons. */
53
+ --grey-700: rgb(53, 59, 63); /** Neutral grey — text, borders, surfaces, and dividers. Step 700: shades for borders and icons. */
54
+ --grey-750: rgb(43, 49, 53); /** Neutral grey — text, borders, surfaces, and dividers. Step 750: darkest shades for text and high emphasis. */
55
+ --grey-800: rgb(34, 39, 43); /** Neutral grey — text, borders, surfaces, and dividers. Step 800: darkest shades for text and high emphasis. */
56
+ --grey-850: rgb(24, 28, 31); /** Neutral grey — text, borders, surfaces, and dividers. Step 850: darkest shades for text and high emphasis. */
57
+ --grey-900: rgb(14, 17, 19); /** Neutral grey — text, borders, surfaces, and dividers. Step 900: darkest shades for text and high emphasis. */
58
+ --grey-950: rgb(5, 7, 9); /** Neutral grey — text, borders, surfaces, and dividers. Step 950: darkest shades for text and high emphasis. */
59
59
  }
@@ -0,0 +1,7 @@
1
+ :root {
2
+ --radius-none: 0px; /** Square corners — tables, full-bleed surfaces, and elements flush to container edges. */
3
+ --radius-sm: 4px; /** Small rounding — inputs, buttons, tags, and compact controls. */
4
+ --radius-md: 8px; /** Medium rounding — cards, panels, and modals. */
5
+ --radius-lg: 16px; /** Large rounding — hero surfaces and prominent containers. */
6
+ --radius-pill: 9999px; /** Fully rounded ends — pills, badges, and circular icon buttons. */
7
+ }
@@ -0,0 +1,14 @@
1
+ :root {
2
+ --space-0: 0rem; /** Spacing step 0 on the 4px grid (0px at the default root font size). Use for padding, margins, and gaps. */
3
+ --space-1: 0.25rem; /** Spacing step 1 on the 4px grid (4px at the default root font size). Use for padding, margins, and gaps. */
4
+ --space-2: 0.5rem; /** Spacing step 2 on the 4px grid (8px at the default root font size). Use for padding, margins, and gaps. */
5
+ --space-3: 0.75rem; /** Spacing step 3 on the 4px grid (12px at the default root font size). Use for padding, margins, and gaps. */
6
+ --space-4: 1rem; /** Spacing step 4 on the 4px grid (16px at the default root font size). Use for padding, margins, and gaps. */
7
+ --space-5: 1.25rem; /** Spacing step 5 on the 4px grid (20px at the default root font size). Use for padding, margins, and gaps. */
8
+ --space-6: 1.5rem; /** Spacing step 6 on the 4px grid (24px at the default root font size). Use for padding, margins, and gaps. */
9
+ --space-8: 2rem; /** Spacing step 8 on the 4px grid (32px at the default root font size). Use for padding, margins, and gaps. */
10
+ --space-10: 2.5rem; /** Spacing step 10 on the 4px grid (40px at the default root font size). Use for padding, margins, and gaps. */
11
+ --space-12: 3rem; /** Spacing step 12 on the 4px grid (48px at the default root font size). Use for padding, margins, and gaps. */
12
+ --space-14: 3.5rem; /** Spacing step 14 on the 4px grid (56px at the default root font size). Use for padding, margins, and gaps. */
13
+ --space-16: 4rem; /** Spacing step 16 on the 4px grid (64px at the default root font size). Use for padding, margins, and gaps. */
14
+ }