@nswds/tokens 2.2.1 → 2.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.
Files changed (163) hide show
  1. package/dist/index.d.mts +3009 -0
  2. package/dist/index.d.ts +3009 -0
  3. package/dist/index.js +10718 -0
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +10706 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/dist/json/colors/global/hex.json +1 -0
  8. package/dist/json/colors/global/hsl.json +1 -0
  9. package/dist/json/colors/global/oklch.json +1 -0
  10. package/dist/json/colors/global/rgb.json +1 -0
  11. package/dist/json/colors/themes/masterbrand/hex.json +1 -0
  12. package/dist/json/colors/themes/masterbrand/hsl.json +1 -0
  13. package/dist/json/colors/themes/masterbrand/oklch.json +1 -0
  14. package/dist/json/colors/themes/masterbrand/rgb.json +1 -0
  15. package/package.json +55 -6
  16. package/src/css/colors/global/hex.css +192 -0
  17. package/src/css/colors/global/hsl.css +192 -0
  18. package/src/css/colors/global/oklch.css +192 -0
  19. package/src/css/colors/global/rgb.css +192 -0
  20. package/src/css/colors/themes/masterbrand/hex.css +2 -0
  21. package/src/css/colors/themes/masterbrand/hsl.css +2 -0
  22. package/src/css/colors/themes/masterbrand/oklch.css +2 -0
  23. package/src/css/colors/themes/masterbrand/rgb.css +2 -0
  24. package/src/index.ts +295 -0
  25. package/src/js/colors/global/hex.js +210 -0
  26. package/src/js/colors/global/hsl.js +210 -0
  27. package/src/js/colors/global/oklch.js +210 -0
  28. package/src/js/colors/global/rgb.js +210 -0
  29. package/src/js/colors/themes/masterbrand/hex.js +72 -0
  30. package/src/js/colors/themes/masterbrand/hsl.js +72 -0
  31. package/src/js/colors/themes/masterbrand/oklch.js +72 -0
  32. package/src/js/colors/themes/masterbrand/rgb.js +72 -0
  33. package/src/json/colors/global/hex.json +1 -0
  34. package/src/json/colors/global/hsl.json +1 -0
  35. package/src/json/colors/global/oklch.json +1 -0
  36. package/src/json/colors/global/rgb.json +1 -0
  37. package/src/json/colors/themes/masterbrand/hex.json +1 -0
  38. package/src/json/colors/themes/masterbrand/hsl.json +1 -0
  39. package/src/json/colors/themes/masterbrand/oklch.json +1 -0
  40. package/src/json/colors/themes/masterbrand/rgb.json +1 -0
  41. package/src/less/colors/global/hsl.less +0 -0
  42. package/src/less/colors/global/oklch.less +0 -0
  43. package/src/less/colors/global/rgb.less +0 -0
  44. package/src/less/colors/themes/masterbrand/hex.less +0 -0
  45. package/src/less/colors/themes/masterbrand/hsl.less +0 -0
  46. package/src/less/colors/themes/masterbrand/oklch.less +0 -0
  47. package/src/less/colors/themes/masterbrand/rgb.less +0 -0
  48. package/src/scss/colors/global/hex.scss +190 -0
  49. package/src/scss/colors/global/hsl.scss +190 -0
  50. package/src/scss/colors/global/oklch.scss +190 -0
  51. package/src/scss/colors/global/rgb.scss +190 -0
  52. package/src/scss/colors/themes/masterbrand/hex.scss +56 -0
  53. package/src/scss/colors/themes/masterbrand/hsl.scss +56 -0
  54. package/src/scss/colors/themes/masterbrand/oklch.scss +56 -0
  55. package/src/scss/colors/themes/masterbrand/rgb.scss +56 -0
  56. package/src/tailwind/colors/global/hex.css +192 -0
  57. package/src/tailwind/colors/global/hsl.css +192 -0
  58. package/src/tailwind/colors/global/oklch.css +192 -0
  59. package/src/tailwind/colors/global/rgb.css +192 -0
  60. package/src/tailwind/colors/themes/masterbrand/hex.css +58 -0
  61. package/src/tailwind/colors/themes/masterbrand/hsl.css +58 -0
  62. package/src/tailwind/colors/themes/masterbrand/oklch.css +58 -0
  63. package/src/tailwind/colors/themes/masterbrand/rgb.css +58 -0
  64. package/src/ts/colors/global/hex.ts +210 -0
  65. package/src/ts/colors/global/hsl.ts +210 -0
  66. package/src/ts/colors/global/oklch.ts +210 -0
  67. package/src/ts/colors/global/rgb.ts +210 -0
  68. package/src/ts/colors/themes/masterbrand/hex.ts +72 -0
  69. package/src/ts/colors/themes/masterbrand/hsl.ts +72 -0
  70. package/src/ts/colors/themes/masterbrand/oklch.ts +72 -0
  71. package/src/ts/colors/themes/masterbrand/rgb.ts +72 -0
  72. package/src/types.d.ts +25 -0
  73. package/.gitattributes +0 -2
  74. package/.github/workflows/ai-pr-title.yml +0 -115
  75. package/.github/workflows/openai-pr-description.yml +0 -13
  76. package/.github/workflows/opencommit.yml +0 -36
  77. package/.github/workflows/release.yml +0 -30
  78. package/.github/workflows/validate-branch-name.yml +0 -21
  79. package/.prettierignore +0 -18
  80. package/.prettierrc +0 -8
  81. package/CHANGELOG.md +0 -38
  82. package/assets/placeholder.svg +0 -1
  83. package/brand/black/logo.png +0 -0
  84. package/brand/black/logo.svg +0 -30
  85. package/brand/icon-dark.ico +0 -0
  86. package/brand/icon-dark.png +0 -0
  87. package/brand/icon-dark.svg +0 -17
  88. package/brand/icon-light.ico +0 -0
  89. package/brand/icon-light.png +0 -0
  90. package/brand/icon-light.svg +0 -30
  91. package/brand/icon.svg +0 -30
  92. package/brand/logo.png +0 -0
  93. package/brand/logo.svg +0 -34
  94. package/brand/placeholder.svg +0 -1
  95. package/brand/reversed/logo.png +0 -0
  96. package/brand/reversed/logo.svg +0 -34
  97. package/brand/white/logo.png +0 -0
  98. package/brand/white/logo.svg +0 -21
  99. package/create-branch.sh +0 -29
  100. package/eslint.config.js +0 -20
  101. package/git-conventional-commits.yaml +0 -43
  102. package/icons/account_circle.svg +0 -1
  103. package/icons/attach_file.svg +0 -1
  104. package/icons/cancel.svg +0 -1
  105. package/icons/check.svg +0 -1
  106. package/icons/check_circle.svg +0 -1
  107. package/icons/chevron_down.svg +0 -1
  108. package/icons/chevron_left.svg +0 -1
  109. package/icons/chevron_right.svg +0 -1
  110. package/icons/chevron_up.svg +0 -1
  111. package/icons/close.svg +0 -1
  112. package/icons/collapse_all.svg +0 -1
  113. package/icons/computer.svg +0 -1
  114. package/icons/copy.svg +0 -1
  115. package/icons/dark_mode.svg +0 -1
  116. package/icons/delete.svg +0 -1
  117. package/icons/desktop.svg +0 -1
  118. package/icons/display_settings.svg +0 -1
  119. package/icons/dock_to_left.svg +0 -1
  120. package/icons/dock_to_right.svg +0 -1
  121. package/icons/double_arrow_left.svg +0 -1
  122. package/icons/double_arrow_right.svg +0 -1
  123. package/icons/download.svg +0 -1
  124. package/icons/east.svg +0 -1
  125. package/icons/error.svg +0 -1
  126. package/icons/exclamation.svg +0 -1
  127. package/icons/eye.svg +0 -1
  128. package/icons/favorite.svg +0 -1
  129. package/icons/help.svg +0 -1
  130. package/icons/info.svg +0 -1
  131. package/icons/language.svg +0 -1
  132. package/icons/light_mode.svg +0 -1
  133. package/icons/link.svg +0 -1
  134. package/icons/login.svg +0 -1
  135. package/icons/logout.svg +0 -1
  136. package/icons/menu.svg +0 -1
  137. package/icons/more_horiz.svg +0 -1
  138. package/icons/more_vert.svg +0 -1
  139. package/icons/north.svg +0 -1
  140. package/icons/open_in_new.svg +0 -1
  141. package/icons/print.svg +0 -1
  142. package/icons/progress_activity.svg +0 -1
  143. package/icons/remove.svg +0 -1
  144. package/icons/search.svg +0 -1
  145. package/icons/settings_brightness.svg +0 -1
  146. package/icons/share.svg +0 -1
  147. package/icons/side_navigation.svg +0 -1
  148. package/icons/south.svg +0 -1
  149. package/icons/unfold_less.svg +0 -1
  150. package/icons/unfold_more.svg +0 -1
  151. package/icons/upload.svg +0 -1
  152. package/icons/west.svg +0 -1
  153. package/pull-request.sh +0 -61
  154. package/release.config.mjs +0 -24
  155. package/tokens/global/color/hex.json +0 -782
  156. package/tokens/global/color/hsl.json +0 -1542
  157. package/tokens/global/color/oklch.json +0 -1542
  158. package/tokens/global/color/rgb.json +0 -1542
  159. package/tokens/themes/masterbrand/color/hex.json +0 -242
  160. package/tokens/themes/masterbrand/color/hsl.json +0 -466
  161. package/tokens/themes/masterbrand/color/oklch.json +0 -466
  162. package/tokens/themes/masterbrand/color/rgb.json +0 -466
  163. /package/{index.ts → src/less/colors/global/hex.less} +0 -0
@@ -0,0 +1,210 @@
1
+ export const nswGrey = {
2
+ '50': 'rgb(250, 250, 250)',
3
+ '100': 'rgb(245, 245, 245)',
4
+ '150': 'rgb(240, 240, 240)',
5
+ '200': 'rgb(235, 235, 235)',
6
+ '250': 'rgb(229, 228, 229)',
7
+ '300': 'rgb(222, 222, 225)',
8
+ '350': 'rgb(214, 216, 220)',
9
+ '400': 'rgb(205, 211, 214)',
10
+ '450': 'rgb(170, 176, 180)',
11
+ '500': 'rgb(136, 143, 146)',
12
+ '550': 'rgb(104, 111, 114)',
13
+ '600': 'rgb(73, 80, 84)',
14
+ '650': 'rgb(63, 69, 73)',
15
+ '700': 'rgb(53, 59, 63)',
16
+ '750': 'rgb(43, 49, 53)',
17
+ '800': 'rgb(34, 39, 43)',
18
+ '850': 'rgb(24, 28, 31)',
19
+ '900': 'rgb(14, 17, 19)',
20
+ '950': 'rgb(5, 7, 9)',
21
+ }
22
+ export const nswGreen = {
23
+ '50': 'rgb(245, 255, 246)',
24
+ '100': 'rgb(236, 253, 238)',
25
+ '150': 'rgb(228, 252, 231)',
26
+ '200': 'rgb(219, 250, 223)',
27
+ '250': 'rgb(207, 247, 212)',
28
+ '300': 'rgb(194, 244, 201)',
29
+ '350': 'rgb(181, 240, 190)',
30
+ '400': 'rgb(168, 237, 179)',
31
+ '450': 'rgb(138, 220, 152)',
32
+ '500': 'rgb(106, 204, 125)',
33
+ '550': 'rgb(69, 187, 98)',
34
+ '600': 'rgb(0, 170, 69)',
35
+ '650': 'rgb(7, 142, 50)',
36
+ '700': 'rgb(7, 115, 32)',
37
+ '750': 'rgb(3, 89, 15)',
38
+ '800': 'rgb(0, 64, 0)',
39
+ '850': 'rgb(0, 48, 0)',
40
+ '900': 'rgb(0, 32, 0)',
41
+ '950': 'rgb(0, 17, 0)',
42
+ }
43
+ export const nswTeal = {
44
+ '50': 'rgb(242, 251, 250)',
45
+ '100': 'rgb(231, 247, 245)',
46
+ '150': 'rgb(220, 242, 239)',
47
+ '200': 'rgb(209, 238, 234)',
48
+ '250': 'rgb(193, 234, 231)',
49
+ '300': 'rgb(176, 229, 229)',
50
+ '350': 'rgb(158, 224, 229)',
51
+ '400': 'rgb(140, 219, 229)',
52
+ '450': 'rgb(117, 196, 207)',
53
+ '500': 'rgb(94, 172, 185)',
54
+ '550': 'rgb(70, 150, 163)',
55
+ '600': 'rgb(46, 128, 142)',
56
+ '650': 'rgb(37, 111, 123)',
57
+ '700': 'rgb(28, 95, 105)',
58
+ '750': 'rgb(20, 78, 88)',
59
+ '800': 'rgb(11, 63, 71)',
60
+ '850': 'rgb(4, 47, 53)',
61
+ '900': 'rgb(1, 31, 36)',
62
+ '950': 'rgb(0, 17, 20)',
63
+ }
64
+ export const nswBlue = {
65
+ '50': 'rgb(240, 251, 255)',
66
+ '100': 'rgb(228, 246, 255)',
67
+ '150': 'rgb(215, 242, 254)',
68
+ '200': 'rgb(203, 237, 253)',
69
+ '250': 'rgb(188, 234, 254)',
70
+ '300': 'rgb(173, 231, 255)',
71
+ '350': 'rgb(157, 227, 255)',
72
+ '400': 'rgb(140, 224, 255)',
73
+ '450': 'rgb(90, 201, 255)',
74
+ '500': 'rgb(38, 174, 255)',
75
+ '550': 'rgb(0, 143, 255)',
76
+ '600': 'rgb(20, 108, 253)',
77
+ '650': 'rgb(12, 90, 212)',
78
+ '700': 'rgb(5, 72, 173)',
79
+ '750': 'rgb(2, 54, 136)',
80
+ '800': 'rgb(0, 38, 100)',
81
+ '850': 'rgb(0, 26, 77)',
82
+ '900': 'rgb(0, 16, 55)',
83
+ '950': 'rgb(0, 6, 34)',
84
+ }
85
+ export const nswPurple = {
86
+ '50': 'rgb(249, 247, 255)',
87
+ '100': 'rgb(242, 240, 255)',
88
+ '150': 'rgb(236, 232, 254)',
89
+ '200': 'rgb(230, 225, 253)',
90
+ '250': 'rgb(224, 217, 254)',
91
+ '300': 'rgb(218, 208, 254)',
92
+ '350': 'rgb(212, 200, 255)',
93
+ '400': 'rgb(206, 191, 255)',
94
+ '450': 'rgb(186, 166, 252)',
95
+ '500': 'rgb(166, 141, 249)',
96
+ '550': 'rgb(147, 114, 245)',
97
+ '600': 'rgb(128, 85, 241)',
98
+ '650': 'rgb(114, 67, 207)',
99
+ '700': 'rgb(100, 50, 174)',
100
+ '750': 'rgb(84, 33, 142)',
101
+ '800': 'rgb(68, 17, 112)',
102
+ '850': 'rgb(51, 8, 86)',
103
+ '900': 'rgb(35, 2, 62)',
104
+ '950': 'rgb(19, 0, 39)',
105
+ }
106
+ export const nswFuchsia = {
107
+ '50': 'rgb(255, 246, 253)',
108
+ '100': 'rgb(255, 238, 249)',
109
+ '150': 'rgb(254, 230, 245)',
110
+ '200': 'rgb(253, 222, 242)',
111
+ '250': 'rgb(251, 212, 239)',
112
+ '300': 'rgb(249, 201, 235)',
113
+ '350': 'rgb(247, 191, 233)',
114
+ '400': 'rgb(244, 181, 230)',
115
+ '450': 'rgb(239, 150, 218)',
116
+ '500': 'rgb(233, 117, 204)',
117
+ '550': 'rgb(225, 80, 190)',
118
+ '600': 'rgb(217, 18, 174)',
119
+ '650': 'rgb(187, 12, 148)',
120
+ '700': 'rgb(157, 6, 123)',
121
+ '750': 'rgb(129, 2, 100)',
122
+ '800': 'rgb(101, 0, 77)',
123
+ '850': 'rgb(77, 0, 58)',
124
+ '900': 'rgb(55, 0, 40)',
125
+ '950': 'rgb(34, 0, 23)',
126
+ }
127
+ export const nswRed = {
128
+ '50': 'rgb(255, 248, 249)',
129
+ '100': 'rgb(255, 242, 244)',
130
+ '150': 'rgb(255, 236, 239)',
131
+ '200': 'rgb(255, 230, 234)',
132
+ '250': 'rgb(255, 219, 224)',
133
+ '300': 'rgb(255, 207, 214)',
134
+ '350': 'rgb(255, 196, 204)',
135
+ '400': 'rgb(255, 184, 193)',
136
+ '450': 'rgb(248, 151, 162)',
137
+ '500': 'rgb(239, 117, 129)',
138
+ '550': 'rgb(228, 79, 95)',
139
+ '600': 'rgb(215, 21, 58)',
140
+ '650': 'rgb(185, 14, 50)',
141
+ '700': 'rgb(155, 7, 42)',
142
+ '750': 'rgb(126, 3, 34)',
143
+ '800': 'rgb(99, 0, 25)',
144
+ '850': 'rgb(76, 0, 16)',
145
+ '900': 'rgb(54, 0, 8)',
146
+ '950': 'rgb(33, 0, 3)',
147
+ }
148
+ export const nswOrange = {
149
+ '50': 'rgb(255, 250, 246)',
150
+ '100': 'rgb(255, 246, 238)',
151
+ '150': 'rgb(254, 241, 231)',
152
+ '200': 'rgb(253, 237, 223)',
153
+ '250': 'rgb(254, 229, 206)',
154
+ '300': 'rgb(255, 221, 189)',
155
+ '350': 'rgb(255, 214, 171)',
156
+ '400': 'rgb(255, 206, 153)',
157
+ '450': 'rgb(253, 182, 120)',
158
+ '500': 'rgb(251, 157, 88)',
159
+ '550': 'rgb(247, 129, 57)',
160
+ '600': 'rgb(243, 99, 27)',
161
+ '650': 'rgb(219, 81, 21)',
162
+ '700': 'rgb(195, 63, 14)',
163
+ '750': 'rgb(171, 46, 6)',
164
+ '800': 'rgb(148, 27, 0)',
165
+ '850': 'rgb(115, 15, 0)',
166
+ '900': 'rgb(83, 4, 0)',
167
+ '950': 'rgb(53, 0, 0)',
168
+ }
169
+ export const nswYellow = {
170
+ '50': 'rgb(255, 252, 240)',
171
+ '100': 'rgb(255, 250, 229)',
172
+ '150': 'rgb(255, 247, 218)',
173
+ '200': 'rgb(255, 244, 207)',
174
+ '250': 'rgb(255, 241, 194)',
175
+ '300': 'rgb(254, 238, 181)',
176
+ '350': 'rgb(254, 234, 168)',
177
+ '400': 'rgb(253, 231, 154)',
178
+ '450': 'rgb(251, 218, 128)',
179
+ '500': 'rgb(250, 205, 99)',
180
+ '550': 'rgb(250, 190, 66)',
181
+ '600': 'rgb(250, 175, 5)',
182
+ '650': 'rgb(212, 148, 2)',
183
+ '700': 'rgb(175, 122, 1)',
184
+ '750': 'rgb(139, 96, 0)',
185
+ '800': 'rgb(105, 72, 0)',
186
+ '850': 'rgb(80, 53, 0)',
187
+ '900': 'rgb(57, 36, 0)',
188
+ '950': 'rgb(34, 19, 0)',
189
+ }
190
+ export const nswBrown = {
191
+ '50': 'rgb(251, 248, 244)',
192
+ '100': 'rgb(246, 241, 234)',
193
+ '150': 'rgb(242, 234, 225)',
194
+ '200': 'rgb(237, 227, 215)',
195
+ '250': 'rgb(236, 222, 206)',
196
+ '300': 'rgb(234, 218, 198)',
197
+ '350': 'rgb(233, 213, 189)',
198
+ '400': 'rgb(232, 208, 181)',
199
+ '450': 'rgb(219, 191, 159)',
200
+ '500': 'rgb(207, 174, 137)',
201
+ '550': 'rgb(194, 157, 115)',
202
+ '600': 'rgb(182, 141, 93)',
203
+ '650': 'rgb(156, 118, 75)',
204
+ '700': 'rgb(130, 96, 58)',
205
+ '750': 'rgb(106, 75, 41)',
206
+ '800': 'rgb(82, 55, 25)',
207
+ '850': 'rgb(62, 40, 15)',
208
+ '900': 'rgb(43, 26, 7)',
209
+ '950': 'rgb(25, 13, 2)',
210
+ }
@@ -0,0 +1,72 @@
1
+ export const primary = {
2
+ lightest: '#0c5ad4',
3
+ lighter: '#0548ad',
4
+ light: '#023688',
5
+ DEFAULT: '#002664',
6
+ dark: '#001a4d',
7
+ darker: '#001037',
8
+ darkest: '#000622',
9
+ }
10
+ export const secondary = {
11
+ lightest: '#f0fbff',
12
+ lighter: '#e4f6ff',
13
+ light: '#d7f2fe',
14
+ DEFAULT: '#cbedfd',
15
+ dark: '#bceafe',
16
+ darker: '#ade7ff',
17
+ darkest: '#9de3ff',
18
+ }
19
+ export const tertiary = {
20
+ lightest: '#5ac9ff',
21
+ lighter: '#26aeff',
22
+ light: '#008fff',
23
+ DEFAULT: '#146cfd',
24
+ dark: '#0c5ad4',
25
+ darker: '#0548ad',
26
+ darkest: '#023688',
27
+ }
28
+ export const accent = {
29
+ lightest: '#f897a2',
30
+ lighter: '#ef7581',
31
+ light: '#e44f5f',
32
+ DEFAULT: '#d7153a',
33
+ dark: '#b90e32',
34
+ darker: '#9b072a',
35
+ darkest: '#7e0322',
36
+ }
37
+ export const success = {
38
+ lightest: '#c4e5c0',
39
+ lighter: '#8fc78b',
40
+ light: '#58a854',
41
+ DEFAULT: '#008a07',
42
+ dark: '#006a00',
43
+ darker: '#004c00',
44
+ darkest: '#002f00',
45
+ }
46
+ export const warning = {
47
+ lightest: '#fdd2c0',
48
+ lighter: '#eea88a',
49
+ light: '#dd7d53',
50
+ DEFAULT: '#c95000',
51
+ dark: '#9d3a00',
52
+ darker: '#722600',
53
+ darkest: '#4b1200',
54
+ }
55
+ export const error = {
56
+ lightest: '#fdc6c6',
57
+ lighter: '#ea9295',
58
+ light: '#d35d65',
59
+ DEFAULT: '#b81237',
60
+ dark: '#8f0327',
61
+ darker: '#690018',
62
+ darkest: '#44000a',
63
+ }
64
+ export const info = {
65
+ lightest: '#acbbd5',
66
+ lighter: '#8198c2',
67
+ light: '#5775ae',
68
+ DEFAULT: '#2e5299',
69
+ dark: '#203d77',
70
+ darker: '#132956',
71
+ darkest: '#071738',
72
+ }
@@ -0,0 +1,72 @@
1
+ export const primary = {
2
+ lightest: 'hsl(216.77, 89.39%, 43.99%)',
3
+ lighter: 'hsl(216.29, 94.12%, 35.01%)',
4
+ light: 'hsl(216.37, 97.67%, 26.93%)',
5
+ DEFAULT: 'hsl(217.2, 100%, 19.61%)',
6
+ dark: 'hsl(218.95, 100%, 14.93%)',
7
+ darker: 'hsl(222.31, 100%, 10.59%)',
8
+ darkest: 'hsl(228.65, 100%, 6.6%)',
9
+ }
10
+ export const secondary = {
11
+ lightest: 'hsl(199.45, 100%, 97.34%)',
12
+ lighter: 'hsl(199.38, 100%, 94.73%)',
13
+ light: 'hsl(199.29, 95.95%, 92.09%)',
14
+ DEFAULT: 'hsl(199.2, 92.7%, 89.41%)',
15
+ dark: 'hsl(198.5, 96.92%, 86.75%)',
16
+ darker: 'hsl(197.77, 99.01%, 83.9%)',
17
+ darkest: 'hsl(197, 99.86%, 80.82%)',
18
+ }
19
+ export const tertiary = {
20
+ lightest: 'hsl(199.75, 99.81%, 67.58%)',
21
+ lighter: 'hsl(202.53, 100%, 57.56%)',
22
+ light: 'hsl(204.78, 100%, 47%)',
23
+ DEFAULT: 'hsl(217.35, 98.29%, 53.54%)',
24
+ dark: 'hsl(216.77, 89.39%, 43.99%)',
25
+ darker: 'hsl(216.29, 94.12%, 35.01%)',
26
+ darkest: 'hsl(216.37, 97.67%, 26.93%)',
27
+ }
28
+ export const accent = {
29
+ lightest: 'hsl(353.39, 86.95%, 78.18%)',
30
+ lighter: 'hsl(353.95, 78.84%, 69.69%)',
31
+ light: 'hsl(353.52, 73.18%, 60.13%)',
32
+ DEFAULT: 'hsl(348.56, 82.17%, 46.29%)',
33
+ dark: 'hsl(347.26, 85.88%, 38.93%)',
34
+ darker: 'hsl(345.89, 90.98%, 31.82%)',
35
+ darkest: 'hsl(345, 95.86%, 25.31%)',
36
+ }
37
+ export const success = {
38
+ lightest: 'hsl(114.97, 40.73%, 82.58%)',
39
+ lighter: 'hsl(115.71, 34.69%, 66.15%)',
40
+ light: 'hsl(117.04, 33.36%, 49.53%)',
41
+ DEFAULT: 'hsl(123.03, 99.86%, 27.07%)',
42
+ dark: 'hsl(122.95, 100%, 19.11%)',
43
+ darker: 'hsl(122.88, 100%, 12.75%)',
44
+ darkest: 'hsl(122.85, 100%, 7.59%)',
45
+ }
46
+ export const warning = {
47
+ lightest: 'hsl(17.74, 94.96%, 87.24%)',
48
+ lighter: 'hsl(17.94, 75.08%, 73.77%)',
49
+ light: 'hsl(18.45, 66.88%, 59.6%)',
50
+ DEFAULT: 'hsl(23.88, 100%, 39.41%)',
51
+ dark: 'hsl(24.01, 100%, 29.25%)',
52
+ darker: 'hsl(22.64, 100%, 20.66%)',
53
+ darkest: 'hsl(18.45, 100%, 13.3%)',
54
+ }
55
+ export const error = {
56
+ lightest: 'hsl(359.69, 92.77%, 88.44%)',
57
+ lighter: 'hsl(358.32, 67.17%, 74.5%)',
58
+ light: 'hsl(355.68, 57.13%, 59.46%)',
59
+ DEFAULT: 'hsl(346.64, 82.14%, 39.61%)',
60
+ dark: 'hsl(344.75, 95.28%, 28.78%)',
61
+ darker: 'hsl(344.52, 100%, 19.69%)',
62
+ darkest: 'hsl(347.44, 100%, 12.27%)',
63
+ }
64
+ export const info = {
65
+ lightest: 'hsl(218.63, 32.11%, 75.49%)',
66
+ lighter: 'hsl(218.81, 34.57%, 63.16%)',
67
+ light: 'hsl(219.17, 34.9%, 51.02%)',
68
+ DEFAULT: 'hsl(219.81, 53.78%, 39.02%)',
69
+ dark: 'hsl(219.86, 57.49%, 29.6%)',
70
+ darker: 'hsl(219.94, 64.03%, 20.65%)',
71
+ darkest: 'hsl(220.32, 77.63%, 12.34%)',
72
+ }
@@ -0,0 +1,72 @@
1
+ export const primary = {
2
+ lightest: 'oklch(0.503825 0.201675 260.53)',
3
+ lighter: 'oklch(0.43255 0.17355 260.29999999999995)',
4
+ light: 'oklch(0.36127499999999996 0.145425 260.07)',
5
+ DEFAULT: 'oklch(0.29 0.1173 259.84)',
6
+ dark: 'oklch(0.23925 0.099705 259.84)',
7
+ darker: 'oklch(0.1885 0.08211 259.84)',
8
+ darkest: 'oklch(0.13774999999999998 0.064515 259.84)',
9
+ }
10
+ export const secondary = {
11
+ lightest: 'oklch(0.981675 0.013552500000000002 227.89)',
12
+ lighter: 'oklch(0.9633499999999999 0.022935 227.89)',
13
+ light: 'oklch(0.945025 0.0323175 227.89)',
14
+ DEFAULT: 'oklch(0.9267 0.0417 227.89)',
15
+ dark: 'oklch(0.9110499999999999 0.0543 226.8175)',
16
+ darker: 'oklch(0.8954 0.0669 225.745)',
17
+ darkest: 'oklch(0.87975 0.0795 224.67249999999999)',
18
+ }
19
+ export const tertiary = {
20
+ lightest: 'oklch(0.7918499999999999 0.126525 232.89)',
21
+ lighter: 'oklch(0.7196 0.16095 242.18)',
22
+ light: 'oklch(0.64735 0.19537500000000002 251.47)',
23
+ DEFAULT: 'oklch(0.5751 0.2298 260.76)',
24
+ dark: 'oklch(0.503825 0.201675 260.53)',
25
+ darker: 'oklch(0.43255 0.17355 260.29999999999995)',
26
+ darkest: 'oklch(0.36127499999999996 0.145425 260.07)',
27
+ }
28
+ export const accent = {
29
+ lightest: 'oklch(0.778675 0.11662499999999999 13.01)',
30
+ lighter: 'oklch(0.70645 0.15025 15.45)',
31
+ light: 'oklch(0.634225 0.183875 17.89)',
32
+ DEFAULT: 'oklch(0.562 0.2175 20.33)',
33
+ dark: 'oklch(0.50075 0.19485 19.529999999999998)',
34
+ darker: 'oklch(0.4395 0.17220000000000002 18.729999999999997)',
35
+ darkest: 'oklch(0.37825000000000003 0.14955000000000002 17.93)',
36
+ }
37
+ export const success = {
38
+ lightest: 'oklch(0.88725 0.06009250000000001 142.8)',
39
+ lighter: 'oklch(0.7745 0.10169500000000001 142.8)',
40
+ light: 'oklch(0.6617500000000001 0.14329750000000002 142.8)',
41
+ DEFAULT: 'oklch(0.549 0.1849 142.8)',
42
+ dark: 'oklch(0.452925 0.157165 142.8)',
43
+ darker: 'oklch(0.35685 0.12943000000000002 142.8)',
44
+ darkest: 'oklch(0.26077500000000003 0.10169500000000001 142.8)',
45
+ }
46
+ export const warning = {
47
+ lightest: 'oklch(0.895825 0.055154125 43.9973)',
48
+ lighter: 'oklch(0.79165 0.09333775 43.9973)',
49
+ light: 'oklch(0.6874750000000001 0.131521375 43.9973)',
50
+ DEFAULT: 'oklch(0.5833 0.169705 43.9973)',
51
+ dark: 'oklch(0.4812225 0.14424925 43.9973)',
52
+ darker: 'oklch(0.37914500000000007 0.1187935 43.9973)',
53
+ darkest: 'oklch(0.2770675 0.09333775 43.9973)',
54
+ }
55
+ export const error = {
56
+ lightest: 'oklch(0.8755 0.0626275 18.08)',
57
+ lighter: 'oklch(0.751 0.10598500000000001 18.08)',
58
+ light: 'oklch(0.6265000000000001 0.14934250000000002 18.08)',
59
+ DEFAULT: 'oklch(0.502 0.1927 18.08)',
60
+ dark: 'oklch(0.41415 0.16379500000000002 18.08)',
61
+ darker: 'oklch(0.32630000000000003 0.13489 18.08)',
62
+ darkest: 'oklch(0.23845 0.10598500000000001 18.08)',
63
+ }
64
+ export const info = {
65
+ lightest: 'oklch(0.78855 0.0400725 262.35)',
66
+ lighter: 'oklch(0.6759 0.067815 262.35)',
67
+ light: 'oklch(0.56325 0.0955575 262.35)',
68
+ DEFAULT: 'oklch(0.4506 0.1233 262.35)',
69
+ dark: 'oklch(0.371745 0.10480500000000001 262.35)',
70
+ darker: 'oklch(0.29289 0.08631 262.35)',
71
+ darkest: 'oklch(0.214035 0.067815 262.35)',
72
+ }
@@ -0,0 +1,72 @@
1
+ export const primary = {
2
+ lightest: 'rgb(12, 90, 212)',
3
+ lighter: 'rgb(5, 72, 173)',
4
+ light: 'rgb(2, 54, 136)',
5
+ DEFAULT: 'rgb(0, 38, 100)',
6
+ dark: 'rgb(0, 26, 77)',
7
+ darker: 'rgb(0, 16, 55)',
8
+ darkest: 'rgb(0, 6, 34)',
9
+ }
10
+ export const secondary = {
11
+ lightest: 'rgb(240, 251, 255)',
12
+ lighter: 'rgb(228, 246, 255)',
13
+ light: 'rgb(215, 242, 254)',
14
+ DEFAULT: 'rgb(203, 237, 253)',
15
+ dark: 'rgb(188, 234, 254)',
16
+ darker: 'rgb(173, 231, 255)',
17
+ darkest: 'rgb(157, 227, 255)',
18
+ }
19
+ export const tertiary = {
20
+ lightest: 'rgb(90, 201, 255)',
21
+ lighter: 'rgb(38, 174, 255)',
22
+ light: 'rgb(0, 143, 255)',
23
+ DEFAULT: 'rgb(20, 108, 253)',
24
+ dark: 'rgb(12, 90, 212)',
25
+ darker: 'rgb(5, 72, 173)',
26
+ darkest: 'rgb(2, 54, 136)',
27
+ }
28
+ export const accent = {
29
+ lightest: 'rgb(248, 151, 162)',
30
+ lighter: 'rgb(239, 117, 129)',
31
+ light: 'rgb(228, 79, 95)',
32
+ DEFAULT: 'rgb(215, 21, 58)',
33
+ dark: 'rgb(185, 14, 50)',
34
+ darker: 'rgb(155, 7, 42)',
35
+ darkest: 'rgb(126, 3, 34)',
36
+ }
37
+ export const success = {
38
+ lightest: 'rgb(196, 229, 192)',
39
+ lighter: 'rgb(143, 199, 139)',
40
+ light: 'rgb(88, 168, 84)',
41
+ DEFAULT: 'rgb(0, 138, 7)',
42
+ dark: 'rgb(0, 106, 0)',
43
+ darker: 'rgb(0, 76, 0)',
44
+ darkest: 'rgb(0, 47, 0)',
45
+ }
46
+ export const warning = {
47
+ lightest: 'rgb(253, 210, 192)',
48
+ lighter: 'rgb(238, 168, 138)',
49
+ light: 'rgb(221, 125, 83)',
50
+ DEFAULT: 'rgb(201, 80, 0)',
51
+ dark: 'rgb(157, 58, 0)',
52
+ darker: 'rgb(114, 38, 0)',
53
+ darkest: 'rgb(75, 18, 0)',
54
+ }
55
+ export const error = {
56
+ lightest: 'rgb(253, 198, 198)',
57
+ lighter: 'rgb(234, 146, 149)',
58
+ light: 'rgb(211, 93, 101)',
59
+ DEFAULT: 'rgb(184, 18, 55)',
60
+ dark: 'rgb(143, 3, 39)',
61
+ darker: 'rgb(105, 0, 24)',
62
+ darkest: 'rgb(68, 0, 10)',
63
+ }
64
+ export const info = {
65
+ lightest: 'rgb(172, 187, 213)',
66
+ lighter: 'rgb(129, 152, 194)',
67
+ light: 'rgb(87, 117, 174)',
68
+ DEFAULT: 'rgb(46, 82, 153)',
69
+ dark: 'rgb(32, 61, 119)',
70
+ darker: 'rgb(19, 41, 86)',
71
+ darkest: 'rgb(7, 23, 56)',
72
+ }
package/src/types.d.ts ADDED
@@ -0,0 +1,25 @@
1
+ declare module '*.css' {
2
+ const content: string;
3
+ export default content;
4
+ }
5
+
6
+ declare module '*.scss' {
7
+ const content: string;
8
+ export default content;
9
+ }
10
+
11
+ declare module '*.less' {
12
+ const content: string;
13
+ export default content;
14
+ }
15
+
16
+ declare module '*.js' {
17
+ const content: { [key: string]: any };
18
+ export default content;
19
+ }
20
+
21
+ declare module '*.ts' {
22
+ const content: { [key: string]: any };
23
+ export default content;
24
+ }
25
+
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
@@ -1,115 +0,0 @@
1
- name: AI PR Title Generator
2
-
3
- on:
4
- pull_request:
5
- types: [opened, reopened, synchronize, edited]
6
-
7
- jobs:
8
- generate-title:
9
- runs-on: ubuntu-latest
10
-
11
- permissions:
12
- contents: read # Required to fetch commits
13
- pull-requests: write # Required to update PR title
14
-
15
- steps:
16
- - name: Checkout code
17
- uses: actions/checkout@v4
18
- with:
19
- fetch-depth: 0 # Fetch full history for commit diffing
20
-
21
- - name: Debug Git Remote
22
- run: |
23
- echo "🔍 Verifying Git Remote"
24
- git remote -v
25
- echo "🔍 Listing refs from origin"
26
- git ls-remote origin
27
-
28
- - name: Get commit messages
29
- id: commits
30
- run: |
31
- COMMITS=$(git log origin/${{ github.base_ref }}..HEAD --pretty=format:"%s" | grep -E "^(feat|fix|docs|style|refactor|test|chore|build|ci|perf)(\(.*\))?: " || echo "")
32
- echo "commits<<EOF" >> $GITHUB_OUTPUT
33
- echo "$COMMITS" >> $GITHUB_OUTPUT
34
- echo "EOF" >> $GITHUB_OUTPUT
35
-
36
- - name: Get Current PR Title
37
- id: get-pr-title
38
- uses: actions/github-script@v7
39
- with:
40
- script: |
41
- const { data: pr } = await github.rest.pulls.get({
42
- owner: context.repo.owner,
43
- repo: context.repo.repo,
44
- pull_number: context.issue.number
45
- });
46
- console.log(`Current PR title: "${pr.title}"`);
47
- core.setOutput("pr_title", pr.title);
48
-
49
- - name: Generate PR title with OpenAI
50
- id: ai
51
- if: ${{ steps.commits.outputs.commits != '' }}
52
- run: |
53
- COMMIT_LIST="${{ steps.commits.outputs.commits }}"
54
- echo "📝 Commit messages detected:"
55
- echo "$COMMIT_LIST"
56
-
57
- JSON_PAYLOAD=$(jq -n \
58
- --arg commits "$COMMIT_LIST" \
59
- '{
60
- model: "gpt-4",
61
- messages: [
62
- {
63
- role: "system",
64
- content: "You are an AI assistant that generates PR titles following the Conventional Commits specification (https://www.conventionalcommits.org/en/v1.0.0/)."
65
- },
66
- {
67
- role: "user",
68
- content: "Here are the commit messages:\n\n\($commits)\n\nGenerate a clear, informative PR title following the Conventional Commits format. Pick the most appropriate type (feat, fix, chore, etc.), include a scope if relevant, and summarize concisely. Return only the title, nothing else."
69
- }
70
- ],
71
- temperature: 0.4
72
- }')
73
-
74
- RESPONSE=$(curl -s https://api.openai.com/v1/chat/completions \
75
- -H "Authorization: Bearer ${{ secrets.OPENAI_API_KEY }}" \
76
- -H "Content-Type: application/json" \
77
- -d "$JSON_PAYLOAD")
78
-
79
- TITLE=$(echo "$RESPONSE" | jq -r '.choices[0].message.content' | head -n 1)
80
- echo "title=$TITLE" >> $GITHUB_OUTPUT
81
-
82
- - name: Validate PR Title
83
- id: validate-title
84
- run: |
85
- PR_TITLE="${{ steps.get-pr-title.outputs.pr_title }}"
86
- AI_TITLE="${{ steps.ai.outputs.title }}"
87
-
88
- # Regex for Conventional Commits format
89
- CONVENTIONAL_COMMIT_REGEX="^(feat|fix|docs|style|refactor|test|chore|build|ci|perf)(\(.*\))?: .+"
90
-
91
- echo "🔍 Current PR Title: $PR_TITLE"
92
- echo "🧠 Suggested AI PR Title: $AI_TITLE"
93
-
94
- if [[ -z "$PR_TITLE" || ! "$PR_TITLE" =~ $CONVENTIONAL_COMMIT_REGEX ]]; then
95
- echo "❌ PR Title is missing or not in Conventional Commits format."
96
- echo "✅ Using AI-generated title: $AI_TITLE"
97
- echo "update_needed=true" >> $GITHUB_ENV
98
- else
99
- echo "✅ PR Title is already valid."
100
- echo "update_needed=false" >> $GITHUB_ENV
101
- fi
102
-
103
- - name: Update PR Title if Invalid or Empty
104
- if: env.update_needed == 'true'
105
- uses: actions/github-script@v7
106
- with:
107
- script: |
108
- const title = `${{ steps.ai.outputs.title }}`;
109
- await github.rest.pulls.update({
110
- owner: context.repo.owner,
111
- repo: context.repo.repo,
112
- pull_number: context.issue.number,
113
- title: title
114
- });
115
- console.log(`✅ PR title updated to: "${title}"`);
@@ -1,13 +0,0 @@
1
- name: Autofill PR description
2
-
3
- on: pull_request
4
-
5
- jobs:
6
- openai-pr-description:
7
- runs-on: ubuntu-22.04
8
-
9
- steps:
10
- - uses: platisd/openai-pr-description@v1.3.1
11
- with:
12
- github_token: ${{ secrets.GITHUB_TOKEN }}
13
- openai_api_key: ${{ secrets.OPENAI_API_KEY }}