@acorex/styles 19.11.0-next.0 → 19.11.0-next.1

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/README.md CHANGED
@@ -1,32 +1,34 @@
1
- # ACoreX Styles
2
1
 
3
- ACoreX is an UI framework based on angular. With over 50+ beautiful fully responsive and accessible components for everyone.
4
-
5
- <p style="text-align: center;">
6
- <picture>
7
- <source media="(prefers-color-scheme: dark)" srcset="https://acorexui.com/acorex-slang-dark.svg">
8
- <img alt="Acorex - Design System, UI Framework, App Builder" src="https://acorexui.com/acorex-slang.svg" width="100%">
9
- </picture>
10
- </p>
11
-
12
- <div style="text-align: center;">
2
+ <picture>
3
+ <source media="(prefers-color-scheme: dark)" srcset="https://acorexui.com/public/acorex-slang-dark.svg">
4
+ <img alt="Acorex - Design System, UI Framework, App Builder" src="https://acorexui.com/public/acorex-slang-dark.svg" width="100%">
5
+ </picture>
13
6
 
14
7
  [![License](https://img.shields.io/npm/l/nx.svg?style=flat-square)]()
15
8
 
16
- </div>
9
+ # ACoreX
10
+
11
+ ACoreX is an UI framework based on angular. With over 50+ beautiful fully responsive and accessible components for everyone.
17
12
 
18
13
  A few links to help you get started:
19
14
 
20
15
  - [ACoreX: Documentation, Guides](https://acorexui.com)
21
16
 
22
- ## Core Team
17
+ ## Team Leads
18
+
19
+ | Arash Oshnoudi | Ali Safari |
20
+ |--------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|
21
+ | ![Arash Oshnoudi](https://gravatar.com/avatar/df151090660e3842ec1ff788bb5a650e939e45784f01513a9b9f8107311e4e78?size=180) | ![Ali Safari](https://gravatar.com/avatar/555280ee36f23bedcfcfec6e068d1a85d7e1fd14676ca07e05958fc762199def?size=180) |
22
+
23
+ ## Develop Team
24
+
25
+ | Reza Safari | Matin Givi | Shahin Kahrizi | Mohammad Parsaeifard | Mojtaba Erfan Rad |
26
+ |-----------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|
27
+ | ![Reza Safari](https://gravatar.com/avatar/0d419926e9e86bbb4b47ca6ae3ca6a2cde30fb01a6ddedefb97d043a350d11f0?size=180) | ![Matin Givi](https://gravatar.com/avatar/9a477829fc2ecdbce20a26af33d24baf63d24f042a551af8147eef1c99d2315a?size=180) | ![Shahin Kahrizi](https://gravatar.com/avatar/e699eeae86920ea44f9dd18f8bb01b5f0d28cdbd816032c4387f1f036c5977c0?size=180) | ![Mohammad Parsaeifard](https://gravatar.com/avatar/c0d9a0143f2dbbcea46e037d12ccad8f0fdaaeeaeb5089c1ae4a0c4ad131df88?size=180) | ![Mojtaba Erfan Rad](https://2.gravatar.com/avatar/791cb5077cf66aaf4f89098f9eb459a0c49198cc81d55a9b344d2620a72295bc?size=180) |
23
28
 
24
- | Arash Oshnoudi | Ali Safari | Matin Givi | Reza Safari |
25
- | ------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
26
- | ![Arash Oshnoudi](https://gravatar.com/avatar/df151090660e3842ec1ff788bb5a650e939e45784f01513a9b9f8107311e4e78?size=180) | ![Ali Safari](https://gravatar.com/avatar/555280ee36f23bedcfcfec6e068d1a85d7e1fd14676ca07e05958fc762199def?size=180) | ![Matin Givi](https://gravatar.com/avatar/9a477829fc2ecdbce20a26af33d24baf63d24f042a551af8147eef1c99d2315a?size=180) | ![Reza Safari](https://gravatar.com/avatar/0d419926e9e86bbb4b47ca6ae3ca6a2cde30fb01a6ddedefb97d043a350d11f0?size=180) |
27
29
 
28
- <br/>
30
+ ## Design Team
29
31
 
30
- | Shahin Kahrizi | Mohamad Parsaeifard | Mohamad Hasanzade | Meysa Aghili |
31
- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
32
- | ![Shahin Kahrizi](https://gravatar.com/avatar/e699eeae86920ea44f9dd18f8bb01b5f0d28cdbd816032c4387f1f036c5977c0?size=180) | ![Mohammad Parsaeifard](https://gravatar.com/avatar/c0d9a0143f2dbbcea46e037d12ccad8f0fdaaeeaeb5089c1ae4a0c4ad131df88?size=180) | ![Mohammad Hasanzade](https://gravatar.com/avatar/ca346e55701bbf079140cb04edea9e3c?size=180) | ![Meysa Aghili](https://0.gravatar.com/avatar/bf607792c9fac9e5f4e53d141d331abd11fa56e56f42da8b69cf9ede2ffff289?size=180) |
32
+ | Mohammad Hasanzade | Meysa Aghili |
33
+ |--------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|
34
+ | ![Mohammad Hasanzade](https://gravatar.com/avatar/ca346e55701bbf079140cb04edea9e3c?size=180) | ![Meysa Aghili](https://0.gravatar.com/avatar/bf607792c9fac9e5f4e53d141d331abd11fa56e56f42da8b69cf9ede2ffff289?size=180) |
@@ -4,8 +4,9 @@
4
4
  .ax-editor-container {
5
5
  --ax-comp-editor-font-size: 0.875rem;
6
6
  --ax-comp-editor-gap: 0.5rem;
7
- --ax-comp-editor-space-start-size: 1rem;
8
- --ax-comp-editor-space-end-size: 1rem;
7
+ --ax-comp-editor-space-start-size: 0.5rem;
8
+ --ax-comp-editor-space-end-size: 0.5rem;
9
+ --ax-comp-editor-space-block-size: 0.5rem;
9
10
  --ax-comp-editor-height: var(--ax-sys-size-base);
10
11
  --ax-comp-editor-placeholder-space-x: 0.75rem;
11
12
 
@@ -169,11 +170,29 @@
169
170
  max-width: fit-content;
170
171
  }
171
172
 
173
+ &:has(ax-suffix) {
174
+ &:not(&:empty) {
175
+ &:has(ax-button, .ax-editor-container) {
176
+ --ax-comp-editor-space-end-size: 0px;
177
+ }
178
+ }
179
+ }
180
+ &:has(ax-prefix) {
181
+ &:not(&:empty) {
182
+ &:has(ax-button, .ax-editor-container) {
183
+ --ax-comp-editor-space-start-size: 0px;
184
+ }
185
+ }
186
+ }
187
+
172
188
  & > ax-prefix,
173
189
  & > ax-suffix {
174
190
  height: 100%;
175
191
 
176
- *:not(ax-kbd, ax-kbd-item, kbd) {
192
+ ax-button,
193
+ ax-text,
194
+ ax-icon,
195
+ .ax-editor-container {
177
196
  display: flex;
178
197
  height: 100%;
179
198
  align-items: center;
@@ -228,8 +247,8 @@
228
247
  .ax-md .ax-editor-container,
229
248
  .ax-editor-container,
230
249
  .ax-editor-container.ax-md {
231
- --ax-comp-editor-space-start-size: 1rem;
232
- --ax-comp-editor-space-end-size: 1rem;
250
+ --ax-comp-editor-space-start-size: 0.5rem;
251
+ --ax-comp-editor-space-end-size: 0.5rem;
233
252
  --ax-comp-editor-button-font-size: 0.875rem;
234
253
  --ax-comp-editor-gap: 0.5rem;
235
254
  }
@@ -43,7 +43,7 @@
43
43
  tbody {
44
44
  tr {
45
45
  &:nth-child(even) {
46
- background-color: rgba(var(--ax-sys-color-surface));
46
+ background-color: rgba(var(--ax-sys-color-lighter-surface));
47
47
  }
48
48
  }
49
49
  }
@@ -1,3 +1,7 @@
1
+ /**
2
+ * You can give it the variable name you added in the theme file as input and generate color range classes from 50 to 950.
3
+ */
4
+
1
5
  export const createPalette = function (colorName) {
2
6
  return {
3
7
  DEFAULT: `rgba(var(--ax-sys-color-${colorName}-500), <alpha-value>)`,
@@ -15,6 +19,11 @@ export const createPalette = function (colorName) {
15
19
  950: `rgba(var(--ax-sys-color-${colorName}-950), <alpha-value>)`,
16
20
  };
17
21
  };
22
+
23
+ /**
24
+ * To be able to create additional color classes you need to use the createSurface.
25
+ * This function generates seven surface colors. Also, if you want to have surfaces in all Tailwind properties, you can put them in colors.
26
+ */
18
27
  export const createSurfaces = function (colorName) {
19
28
  return {
20
29
  lightest: `rgba(var(--ax-sys-color-${colorName}-lightest-surface), <alpha-value>)`,
@@ -27,6 +36,11 @@ export const createSurfaces = function (colorName) {
27
36
  on: `rgba(var(--ax-sys-color-on-${colorName}), <alpha-value>)`,
28
37
  };
29
38
  };
39
+
40
+ /**
41
+ * The on surface color is based on the surface color of the same name,
42
+ * so you can generate it with createOnSurface for both text and other colors.
43
+ */
30
44
  export const createOnSurfaces = function (colorName) {
31
45
  return {
32
46
  'on-lightest': `rgba(var(--ax-sys-color-on-${colorName}-lightest-surface), <alpha-value>)`,
@@ -39,6 +53,10 @@ export const createOnSurfaces = function (colorName) {
39
53
  'on-contrast': `rgba(var(--ax-sys-color-on-contrast-${colorName}), <alpha-value>)`,
40
54
  };
41
55
  };
56
+
57
+ /**
58
+ * The board color is only used for border colors, which you can generate with the createBorderSurfaces function.
59
+ */
42
60
  export const createBorderSurfaces = function (colorName) {
43
61
  return {
44
62
  lightest: `rgba(var(--ax-sys-color-border-${colorName}-lightest-surface), <alpha-value>)`,
@@ -198,3 +198,9 @@ $ax-icon-sort-after: '';
198
198
 
199
199
  $ax-icon-menu: '\f0c9';
200
200
  $ax-icon-menu-after: '';
201
+
202
+ $ax-icon-plus: '\2b';
203
+ $ax-icon-plus-after: '';
204
+
205
+ $ax-icon-trash: '\f1f8';
206
+ $ax-icon-trash-after: '';
@@ -631,3 +631,21 @@
631
631
  content: variables.$ax-icon-menu-after;
632
632
  }
633
633
  }
634
+
635
+ .ax-icon-plus {
636
+ &:before {
637
+ content: variables.$ax-icon-plus;
638
+ }
639
+ &:after {
640
+ content: variables.$ax-icon-plus-after;
641
+ }
642
+ }
643
+
644
+ .ax-icon-trash {
645
+ &:before {
646
+ content: variables.$ax-icon-trash;
647
+ }
648
+ &:after {
649
+ content: variables.$ax-icon-trash-after;
650
+ }
651
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: 'ν'; //sorting-01
198
198
 
199
199
  $ax-icon-menu: 'ﭾ'; //menu-01
200
200
  $ax-icon-menu-after: 'ﭽ'; //menu-01
201
+
202
+ $ax-icon-plus: ''; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: ''; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: 'Ꮪ'; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '஝'; //menu-01
200
200
  $ax-icon-menu-after: 'ஜ'; //menu-01
201
+
202
+ $ax-icon-plus: '層'; //add-01
203
+ $ax-icon-plus-after: '墨'; //add-01
204
+
205
+ $ax-icon-trash: '˝'; //delete-02
206
+ $ax-icon-trash-after: '˜'; //delete-02
@@ -628,3 +628,21 @@
628
628
  content: variables.$ax-icon-menu-after;
629
629
  }
630
630
  }
631
+
632
+ .ax-icon-plus {
633
+ &:before {
634
+ content: variables.$ax-icon-plus;
635
+ }
636
+ &:after {
637
+ content: variables.$ax-icon-plus-after;
638
+ }
639
+ }
640
+
641
+ .ax-icon-trash {
642
+ &:before {
643
+ content: variables.$ax-icon-trash;
644
+ }
645
+ &:after {
646
+ content: variables.$ax-icon-trash-after;
647
+ }
648
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: 'ዽ'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: 'ੌ'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: 'ຝ'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -614,3 +614,21 @@
614
614
  content: variables.$ax-icon-menu-after;
615
615
  }
616
616
  }
617
+
618
+ .ax-icon-plus {
619
+ &:before {
620
+ content: variables.$ax-icon-plus;
621
+ }
622
+ &:after {
623
+ content: variables.$ax-icon-plus-after;
624
+ }
625
+ }
626
+
627
+ .ax-icon-trash {
628
+ &:before {
629
+ content: variables.$ax-icon-trash;
630
+ }
631
+ &:after {
632
+ content: variables.$ax-icon-trash-after;
633
+ }
634
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '⌜'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: 'ᩫ'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: 'Ẽ'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '㌻'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: '⪊'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: '⻛'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '䍚'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: '㪩'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: '㻺'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '卹'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: '䫈'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: '伙'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: ''; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '掘'; //menu-01
200
200
  $ax-icon-menu-after: ''; //menu-01
201
+
202
+ $ax-icon-plus: '嫧'; //add-01
203
+ $ax-icon-plus-after: ''; //add-01
204
+
205
+ $ax-icon-trash: '弸'; //delete-02
206
+ $ax-icon-trash-after: ''; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: '蒵'; //sorting-01
198
198
 
199
199
  $ax-icon-menu: '籶'; //menu-01
200
200
  $ax-icon-menu-after: '籵'; //menu-01
201
+
202
+ $ax-icon-plus: '欔'; //add-01
203
+ $ax-icon-plus-after: '欓'; //add-01
204
+
205
+ $ax-icon-trash: '玶'; //delete-02
206
+ $ax-icon-trash-after: '玵'; //delete-02
@@ -627,3 +627,21 @@
627
627
  content: variables.$ax-icon-menu-after;
628
628
  }
629
629
  }
630
+
631
+ .ax-icon-plus {
632
+ &:before {
633
+ content: variables.$ax-icon-plus;
634
+ }
635
+ &:after {
636
+ content: variables.$ax-icon-plus-after;
637
+ }
638
+ }
639
+
640
+ .ax-icon-trash {
641
+ &:before {
642
+ content: variables.$ax-icon-trash;
643
+ }
644
+ &:after {
645
+ content: variables.$ax-icon-trash-after;
646
+ }
647
+ }
@@ -198,3 +198,9 @@ $ax-icon-sort-after: '';
198
198
 
199
199
  $ax-icon-menu: '\e5d2';
200
200
  $ax-icon-menu-after: '';
201
+
202
+ $ax-icon-plus: '\e145';
203
+ $ax-icon-plus-after: '';
204
+
205
+ $ax-icon-trash: '\e872';
206
+ $ax-icon-trash-after: '';
@@ -635,3 +635,21 @@
635
635
  content: variables.$ax-icon-menu-after;
636
636
  }
637
637
  }
638
+
639
+ .ax-icon-plus {
640
+ &:before {
641
+ content: variables.$ax-icon-plus;
642
+ }
643
+ &:after {
644
+ content: variables.$ax-icon-plus-after;
645
+ }
646
+ }
647
+
648
+ .ax-icon-trash {
649
+ &:before {
650
+ content: variables.$ax-icon-trash;
651
+ }
652
+ &:after {
653
+ content: variables.$ax-icon-trash-after;
654
+ }
655
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "19.11.0-next.0",
3
+ "version": "19.11.0-next.1",
4
4
  "main": "index.js",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
package/tailwind-base.js CHANGED
@@ -10,11 +10,15 @@ const childSelector = plugin(function ({ addVariant }) {
10
10
  });
11
11
 
12
12
  const SURFACE_BG = {
13
+ DEFAULT: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
13
14
  default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
15
+
14
16
  lightest: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
15
17
  lighter: 'rgba(var(--ax-sys-color-lighter-surface), <alpha-value>)',
16
18
  light: 'rgba(var(--ax-sys-color-light-surface), <alpha-value>)',
19
+
17
20
  surface: 'rgba(var(--ax-sys-color-surface), <alpha-value>)',
21
+
18
22
  dark: 'rgba(var(--ax-sys-color-dark-surface), <alpha-value>)',
19
23
  darker: 'rgba(var(--ax-sys-color-darker-surface), <alpha-value>)',
20
24
  darkest: 'rgba(var(--ax-sys-color-darkest-surface), <alpha-value>)',
@@ -22,11 +26,15 @@ const SURFACE_BG = {
22
26
 
23
27
  const SURFACES_ON = {
24
28
  on: {
29
+ DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
30
+ default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
31
+
25
32
  lightest: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
26
33
  lighter: 'rgba(var(--ax-sys-color-on-lighter-surface), <alpha-value>)',
27
34
  light: 'rgba(var(--ax-sys-color-on-light-surface), <alpha-value>)',
28
- DEFAULT: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
35
+
29
36
  surface: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
37
+
30
38
  dark: 'rgba(var(--ax-sys-color-on-dark-surface), <alpha-value>)',
31
39
  darker: 'rgba(var(--ax-sys-color-on-darker-surface), <alpha-value>)',
32
40
  darkest: 'rgba(var(--ax-sys-color-on-darkest-surface), <alpha-value>)',
@@ -34,11 +42,15 @@ const SURFACES_ON = {
34
42
  };
35
43
 
36
44
  const SURFACE_BORDER = {
45
+ DEFAULT: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
46
+ default: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
47
+
37
48
  lightest: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
38
49
  lighter: 'rgba(var(--ax-sys-color-border-lighter-surface), <alpha-value>)',
39
50
  light: 'rgba(var(--ax-sys-color-border-light-surface), <alpha-value>)',
40
- DEFAULT: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
51
+
41
52
  surface: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
53
+
42
54
  dark: 'rgba(var(--ax-sys-color-border-dark-surface), <alpha-value>)',
43
55
  darker: 'rgba(var(--ax-sys-color-border-darker-surface), <alpha-value>)',
44
56
  darkest: 'rgba(var(--ax-sys-color-border-darkest-surface), <alpha-value>)',
@@ -218,8 +230,6 @@ module.exports = withAnimations({
218
230
  ...SURFACES_ON,
219
231
  },
220
232
  backgroundColor: {
221
- DEFAULT: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
222
- default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
223
233
  primary: createSurfaces('primary'),
224
234
  secondary: createSurfaces('secondary'),
225
235
  success: createSurfaces('success'),
@@ -229,8 +239,6 @@ module.exports = withAnimations({
229
239
  ...SURFACES_ON,
230
240
  },
231
241
  borderColor: {
232
- DEFAULT: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
233
- default: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
234
242
  primary: createBorderSurfaces('primary'),
235
243
  secondary: createBorderSurfaces('secondary'),
236
244
  success: createBorderSurfaces('success'),
@@ -1,38 +1,58 @@
1
- @use '../utils/index.scss' as *;
1
+ @use '../utils/index.scss' as utils; // import ACoreX utilities for using generate-pallete-variables function
2
2
 
3
+ /*
4
+ Color themes that have multiple fixed primary colors, etc. that can range from 50 to 950, also generate 7 surfaces of these colors by default that are used to color components. If these colors have the same value, they are used for light mode and dark mode, but if you give the color key two colors, it uses the first color for light mode and the second color for dark mode. For example, you can see the color Danger
5
+ */
3
6
  $theme-colors: (
4
7
  'primary': oklch(0.623 0.214 259.815),
5
- 'secondary': oklch(0.554 0.046 257.417),
8
+ 'secondary': (
9
+ oklch(24.65% 0.0531 250.05),
10
+ oklch(47.03% 0.0531 250.05),
11
+ ),
6
12
  'success': oklch(0.696 0.17 162.48),
7
- 'warning': oklch(0.769 0.188 70.08),
13
+ 'warning': (
14
+ oklch(81.17% 0.188 70.08),
15
+ oklch(86.5% 0.188 70.08),
16
+ ),
8
17
  'danger': (
9
18
  oklch(0.645 0.246 16.439),
10
19
  oklch(0.712 0.194 13.428),
11
20
  ),
12
21
  );
13
22
 
23
+ /*
24
+ Surface colors for creating layouts, each color has a start and an end,
25
+ which we use to create the color spectrum of surfaces.
26
+ The colors are different for dark and light mode.
27
+ */
14
28
  $theme-surfaces: (
29
+ // Surfaces for light mode
15
30
  'light-start': #ffffff,
16
31
  'light-end': #d4d4d4,
32
+
33
+ // Surfaces for dark mode
17
34
  'dark-start': #27272a,
18
- 'dark-end': #09090b,
35
+ 'dark-end': #09090b
19
36
  );
20
37
 
21
38
  $options: (
22
39
  'color-range': true,
40
+ // Color range production 50 to 950, if you don't need them you can put false
23
41
  'light': #ffffff,
24
- 'dark': #09090b,
42
+ // White is always a fixed color in the project, used in some special cases and does not change in light mode and dark mode.
43
+ 'dark': #09090b, // // dark is always a fixed color in the project, used in some special cases and does not change in light mode and dark mode.
25
44
  );
26
45
 
46
+ /*
47
+ Importing default variables and overriding them with higher values
48
+ */
27
49
  @forward '../variables/index.scss';
28
50
 
29
51
  :root,
30
52
  .ax-light {
31
- --ax-sys-body-font-size: 1rem;
32
- --ax-sys-size-base: 2.5rem;
33
- --ax-sys-border-radius: 0.5rem;
34
- --ax-sys-color-body-text: 0, 0, 0;
35
- --ax-sys-color-input-text: 0, 0, 0;
53
+ --ax-sys-body-font-size: 1rem; // Body font size
54
+ --ax-sys-size-base: 2.5rem; // Variable height of elements, such as inputs and buttons
55
+ --ax-sys-border-radius: 0.5rem; // Default roundness value for corners
36
56
  }
37
57
 
38
- @include generate-pallete-variables($theme-colors, $theme-surfaces, $options);
58
+ @include utils.generate-pallete-variables($theme-colors, $theme-surfaces, $options);