@acorex/styles 19.10.1 → 19.10.3

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) |
@@ -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>)`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "19.10.1",
3
+ "version": "19.10.3",
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'),
@@ -5,13 +5,20 @@ Color themes that have multiple fixed primary colors, etc. that can range from 5
5
5
  */
6
6
  $theme-colors: (
7
7
  'primary': oklch(0.623 0.214 259.815),
8
- 'secondary': oklch(0.554 0.046 257.417),
9
- 'success': oklch(0.696 0.17 162.48),
10
- 'warning': oklch(0.769 0.188 70.08),
8
+ 'secondary': (
9
+ oklch(24.65% 0.0531 250.05),
10
+ oklch(47.03% 0.0531 250.05),
11
+ ),
12
+ 'success': (
13
+ oklch(62.71% 0.1699 149.21),
14
+ oklch(80.03% 0.1821 151.71),
15
+ ),
16
+ 'warning': (
17
+ oklch(81.17% 0.188 70.08),
18
+ oklch(86.5% 0.188 70.08),
19
+ ),
11
20
  'danger': (
12
- // Danger color for light mode
13
21
  oklch(0.645 0.246 16.439),
14
- // Danger color for dark mode
15
22
  oklch(0.712 0.194 13.428),
16
23
  ),
17
24
  );