@acorex/styles 21.0.3-next.36 → 21.0.3-next.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/styles",
3
- "version": "21.0.3-next.36",
3
+ "version": "21.0.3-next.38",
4
4
  "main": "index.css",
5
5
  "author": "Ali Safari",
6
6
  "license": "ISC",
@@ -52,19 +52,23 @@ html.ax-dark {
52
52
  --ax-sys-theme-isDark: 0;
53
53
  --ax-sys-icon-size: 100%;
54
54
  --ax-sys-icon-weight: 400;
55
- /* Immutable md control height — size utilities derive --ax-sys-size-base from this */
56
- --ax-sys-size-md: 2.5rem;
55
+ /* Immutable md control height (40px) — size utilities step ±8px from this */
56
+ --ax-sys-size-md: 2.5rem; /* 40px */
57
+ --ax-sys-size-step: 0.5rem; /* 8px */
58
+ /* Padding / spacing scale steps ±4px from md */
59
+ --ax-sys-padding-step: 0.25rem; /* 4px */
60
+ /* Default matches ax-md */
57
61
  --ax-sys-size-base: var(--ax-sys-size-md);
58
62
  --ax-overlay-full-width: 93;
59
63
  --ax-sys-icon-width: inherit;
60
64
  --ax-sys-icon-height: inherit;
61
- --ax-sys-body-font-size: 1rem;
65
+ --ax-sys-body-font-size: 0.875rem; /* 14px — matches ax-md */
62
66
  --ax-sys-border-radius-base: 0.5rem;
63
67
  --ax-sys-spacing-base: 0.25rem;
64
- --ax-sys-text-xs-base: 0.75rem;
65
- --ax-sys-text-sm-base: 0.875rem;
66
- --ax-sys-text-lg-base: 1.125rem;
67
- --ax-sys-text-xl-base: 1.25rem;
68
+ --ax-sys-text-xs-base: 0.75rem; /* 12px */
69
+ --ax-sys-text-sm-base: 0.875rem; /* 14px */
70
+ --ax-sys-text-lg-base: 0.875rem; /* 14px */
71
+ --ax-sys-text-xl-base: 1rem; /* 16px */
68
72
  --ax-sys-leading-3-base: 0.75rem;
69
73
  --ax-sys-leading-4-base: 1rem;
70
74
  --ax-sys-leading-5-base: 1.25rem;
@@ -3209,7 +3213,7 @@ html.ax-dark {
3209
3213
  }
3210
3214
 
3211
3215
  @utility ax-focus-ring {
3212
- @apply outline-none shadow-[0_0_0_1px_var(--ax-comp-text,var(--color-on-primary)),0_0_0_3px_var(--ax-comp-bg-light,var(--color-primary-light))];
3216
+ @apply shadow-[0_0_0_1px_var(--ax-comp-text,var(--color-on-primary)),0_0_0_3px_var(--ax-comp-bg-light,var(--color-primary-light))] outline-none;
3213
3217
  }
3214
3218
 
3215
3219
  @utility ax-focus-ring-editor {
@@ -3562,64 +3566,68 @@ html.ax-dark {
3562
3566
 
3563
3567
  @utility ax-xs {
3564
3568
  --ax-sys-size: ax-xs;
3565
- /* Control height — 1.5rem at default md of 2.5rem */
3566
- --ax-sys-size-base: calc(var(--ax-sys-size-md) * 0.6);
3569
+ /* Control height — 24px (md 16px) */
3570
+ --ax-sys-size-base: calc(var(--ax-sys-size-md) - 2 * var(--ax-sys-size-step));
3567
3571
 
3568
- /* Spacing */
3569
- --spacing: calc(var(--ax-sys-spacing-base) * 0.5);
3570
- --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) * 0.5);
3572
+ /* Spacing — unit 2px (md − 2×4px on the 4px base unit scale via half step) */
3573
+ --spacing: calc(var(--ax-sys-spacing-base) - 0.5 * var(--ax-sys-padding-step));
3574
+ /* Border radius 4px */
3575
+ --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) - var(--ax-sys-padding-step));
3571
3576
 
3572
- /* Typography */
3573
- --text-xs: calc(var(--ax-sys-text-xs-base) * 5 / 6);
3574
- --text-sm: calc(var(--ax-sys-text-sm-base) * 11 / 14);
3575
- --text-base: calc(var(--ax-sys-body-font-size) * 0.75);
3576
- --text-lg: calc(var(--ax-sys-text-lg-base) * 7 / 9);
3577
- --text-xl: calc(var(--ax-sys-text-xl-base) * 0.8);
3577
+ /* Typography — 12px */
3578
+ --text-xs: 0.75rem;
3579
+ --text-sm: 0.75rem;
3580
+ --text-base: 0.75rem;
3581
+ --text-lg: 0.75rem;
3582
+ --text-xl: 0.75rem;
3578
3583
 
3579
3584
  /* Line Heights */
3580
3585
  --leading-3: var(--ax-sys-leading-3-base);
3581
- --leading-4: calc(var(--ax-sys-leading-4-base) * 0.875);
3582
- --leading-5: calc(var(--ax-sys-leading-5-base) * 0.8);
3583
- --leading-6: calc(var(--ax-sys-leading-6-base) * 5 / 6);
3586
+ --leading-4: var(--ax-sys-leading-4-base);
3587
+ --leading-5: var(--ax-sys-leading-5-base);
3588
+ --leading-6: var(--ax-sys-leading-6-base);
3584
3589
  }
3585
3590
 
3586
3591
  @utility ax-sm {
3587
3592
  --ax-sys-size: ax-sm;
3588
- /* Control height — 2rem at default md of 2.5rem */
3589
- --ax-sys-size-base: calc(var(--ax-sys-size-md) * 0.8);
3593
+ /* Control height — 32px (md 8px) */
3594
+ --ax-sys-size-base: calc(var(--ax-sys-size-md) - var(--ax-sys-size-step));
3590
3595
 
3591
- /* Spacing */
3592
- --spacing: calc(var(--ax-sys-spacing-base) * 0.75);
3593
- --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) * 0.75);
3596
+ /* Spacing — unit 3px */
3597
+ --spacing: calc(var(--ax-sys-spacing-base) - 0.25 * var(--ax-sys-padding-step));
3598
+ /* Border radius 4px */
3599
+ --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) - var(--ax-sys-padding-step));
3594
3600
 
3595
- /* Typography */
3596
- --text-xs: calc(var(--ax-sys-text-xs-base) * 11 / 12);
3597
- --text-sm: calc(var(--ax-sys-text-sm-base) * 6 / 7);
3598
- --text-base: calc(var(--ax-sys-body-font-size) * 0.875);
3599
- --text-lg: calc(var(--ax-sys-text-lg-base) * 8 / 9);
3600
- --text-xl: calc(var(--ax-sys-text-xl-base) * 0.9);
3601
+ /* Typography — 14px */
3602
+ --text-xs: 0.875rem;
3603
+ --text-sm: 0.875rem;
3604
+ --text-base: 0.875rem;
3605
+ --text-lg: 0.875rem;
3606
+ --text-xl: 0.875rem;
3601
3607
 
3602
3608
  /* Line Heights */
3603
- --leading-3: calc(var(--ax-sys-leading-3-base) * 7 / 6);
3609
+ --leading-3: var(--ax-sys-leading-3-base);
3604
3610
  --leading-4: var(--ax-sys-leading-4-base);
3605
- --leading-5: calc(var(--ax-sys-leading-5-base) * 0.9);
3606
- --leading-6: calc(var(--ax-sys-leading-6-base) * 11 / 12);
3611
+ --leading-5: var(--ax-sys-leading-5-base);
3612
+ --leading-6: var(--ax-sys-leading-6-base);
3607
3613
  }
3608
3614
 
3609
3615
  @utility ax-md {
3610
3616
  --ax-sys-size: ax-md;
3617
+ /* Control height — 40px */
3611
3618
  --ax-sys-size-base: var(--ax-sys-size-md);
3612
3619
 
3613
- /* Tailwind Default Scale */
3620
+ /* Tailwind Default Scale — spacing unit 4px */
3614
3621
  --spacing: var(--ax-sys-spacing-base);
3622
+ /* Border radius — 8px */
3615
3623
  --ax-sys-border-radius: var(--ax-sys-border-radius-base);
3616
3624
 
3617
- /* Typography */
3618
- --text-xs: var(--ax-sys-text-xs-base);
3619
- --text-sm: var(--ax-sys-text-sm-base);
3620
- --text-base: var(--ax-sys-body-font-size);
3621
- --text-lg: var(--ax-sys-text-lg-base);
3622
- --text-xl: var(--ax-sys-text-xl-base);
3625
+ /* Typography — 14px */
3626
+ --text-xs: 0.875rem;
3627
+ --text-sm: 0.875rem;
3628
+ --text-base: 0.875rem;
3629
+ --text-lg: 0.875rem;
3630
+ --text-xl: 0.875rem;
3623
3631
 
3624
3632
  /* Line Heights */
3625
3633
  --leading-3: var(--ax-sys-leading-3-base);
@@ -3630,46 +3638,48 @@ html.ax-dark {
3630
3638
 
3631
3639
  @utility ax-lg {
3632
3640
  --ax-sys-size: ax-lg;
3633
- /* Control height — 3.375rem at default md of 2.5rem */
3634
- --ax-sys-size-base: calc(var(--ax-sys-size-md) * 1.35);
3641
+ /* Control height — 48px (md + 8px) */
3642
+ --ax-sys-size-base: calc(var(--ax-sys-size-md) + var(--ax-sys-size-step));
3635
3643
 
3636
- /* Spacing */
3637
- --spacing: calc(var(--ax-sys-spacing-base) * 1.25);
3638
- --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) * 1.25);
3644
+ /* Spacing — unit 5px */
3645
+ --spacing: calc(var(--ax-sys-spacing-base) + 0.25 * var(--ax-sys-padding-step));
3646
+ /* Border radius — 8px (same as md) */
3647
+ --ax-sys-border-radius: var(--ax-sys-border-radius-base);
3639
3648
 
3640
- /* Typography */
3641
- --text-xs: calc(var(--ax-sys-text-xs-base) * 13 / 12);
3642
- --text-sm: calc(var(--ax-sys-text-sm-base) * 15 / 14);
3643
- --text-base: calc(var(--ax-sys-body-font-size) * 17 / 16);
3644
- --text-lg: calc(var(--ax-sys-text-lg-base) * 10 / 9);
3645
- --text-xl: calc(var(--ax-sys-text-xl-base) * 1.1);
3649
+ /* Typography — 14px */
3650
+ --text-xs: 0.875rem;
3651
+ --text-sm: 0.875rem;
3652
+ --text-base: 0.875rem;
3653
+ --text-lg: 0.875rem;
3654
+ --text-xl: 0.875rem;
3646
3655
 
3647
3656
  /* Line Heights */
3648
- --leading-3: calc(var(--ax-sys-leading-3-base) * 4 / 3);
3649
- --leading-4: calc(var(--ax-sys-leading-4-base) * 1.125);
3650
- --leading-5: calc(var(--ax-sys-leading-5-base) * 1.1);
3651
- --leading-6: calc(var(--ax-sys-leading-6-base) * 13 / 12);
3657
+ --leading-3: var(--ax-sys-leading-3-base);
3658
+ --leading-4: var(--ax-sys-leading-4-base);
3659
+ --leading-5: var(--ax-sys-leading-5-base);
3660
+ --leading-6: var(--ax-sys-leading-6-base);
3652
3661
  }
3653
3662
 
3654
3663
  @utility ax-xl {
3655
3664
  --ax-sys-size: ax-xl;
3656
- /* Control height — 4rem at default md of 2.5rem */
3657
- --ax-sys-size-base: calc(var(--ax-sys-size-md) * 1.6);
3665
+ /* Control height — 56px (md + 16px) */
3666
+ --ax-sys-size-base: calc(var(--ax-sys-size-md) + 2 * var(--ax-sys-size-step));
3658
3667
 
3659
- /* Spacing */
3660
- --spacing: calc(var(--ax-sys-spacing-base) * 1.5);
3661
- --ax-sys-border-radius: calc(var(--ax-sys-border-radius-base) * 1.5);
3668
+ /* Spacing — unit 6px */
3669
+ --spacing: calc(var(--ax-sys-spacing-base) + 0.5 * var(--ax-sys-padding-step));
3670
+ /* Border radius — 8px (same as md) */
3671
+ --ax-sys-border-radius: var(--ax-sys-border-radius-base);
3662
3672
 
3663
- /* Typography */
3664
- --text-xs: calc(var(--ax-sys-text-xs-base) * 7 / 6);
3665
- --text-sm: calc(var(--ax-sys-text-sm-base) * 8 / 7);
3666
- --text-base: calc(var(--ax-sys-body-font-size) * 1.125);
3667
- --text-lg: calc(var(--ax-sys-text-lg-base) * 11 / 9);
3668
- --text-xl: calc(var(--ax-sys-text-xl-base) * 1.2);
3673
+ /* Typography — 16px */
3674
+ --text-xs: 1rem;
3675
+ --text-sm: 1rem;
3676
+ --text-base: 1rem;
3677
+ --text-lg: 1rem;
3678
+ --text-xl: 1rem;
3669
3679
 
3670
3680
  /* Line Heights */
3671
- --leading-3: calc(var(--ax-sys-leading-3-base) * 1.5);
3672
- --leading-4: calc(var(--ax-sys-leading-4-base) * 1.25);
3673
- --leading-5: calc(var(--ax-sys-leading-5-base) * 1.2);
3674
- --leading-6: calc(var(--ax-sys-leading-6-base) * 7 / 6);
3681
+ --leading-3: var(--ax-sys-leading-3-base);
3682
+ --leading-4: var(--ax-sys-leading-4-base);
3683
+ --leading-5: var(--ax-sys-leading-5-base);
3684
+ --leading-6: var(--ax-sys-leading-6-base);
3675
3685
  }
package/tailwind-base.js DELETED
@@ -1,324 +0,0 @@
1
- const plugin = require('tailwindcss/plugin');
2
- const { withAnimations } = require('animated-tailwindcss');
3
- const {
4
- createBorderSurfaces,
5
- createOnSurfaces,
6
- createPalette,
7
- createSurfaces,
8
- createColorSurfaces,
9
- createColoredSurfaces,
10
- } = require('./generators/index');
11
-
12
- const childSelector = plugin(function ({ addVariant }) {
13
- addVariant('child', '& > *');
14
- addVariant('child-hover', '& > *:hover');
15
- addVariant('child-focus', '& > *:focus');
16
- addVariant('child-focus-within', '& > *:focus-within');
17
- });
18
-
19
- const SURFACE_BG = {
20
- DEFAULT: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
21
- default: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
22
-
23
- lightest: 'rgba(var(--ax-sys-color-lightest-surface), <alpha-value>)',
24
- lighter: 'rgba(var(--ax-sys-color-lighter-surface), <alpha-value>)',
25
- light: 'rgba(var(--ax-sys-color-light-surface), <alpha-value>)',
26
-
27
- surface: 'rgba(var(--ax-sys-color-surface), <alpha-value>)',
28
-
29
- dark: 'rgba(var(--ax-sys-color-dark-surface), <alpha-value>)',
30
- darker: 'rgba(var(--ax-sys-color-darker-surface), <alpha-value>)',
31
- darkest: 'rgba(var(--ax-sys-color-darkest-surface), <alpha-value>)',
32
- };
33
-
34
- const SURFACES_ON = {
35
- on: {
36
- DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
37
- default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
38
-
39
- lightest: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
40
- lighter: 'rgba(var(--ax-sys-color-on-lighter-surface), <alpha-value>)',
41
- light: 'rgba(var(--ax-sys-color-on-light-surface), <alpha-value>)',
42
-
43
- surface: 'rgba(var(--ax-sys-color-on-surface), <alpha-value>)',
44
-
45
- dark: 'rgba(var(--ax-sys-color-on-dark-surface), <alpha-value>)',
46
- darker: 'rgba(var(--ax-sys-color-on-darker-surface), <alpha-value>)',
47
- darkest: 'rgba(var(--ax-sys-color-on-darkest-surface), <alpha-value>)',
48
- },
49
- };
50
-
51
- const SURFACE_BORDER = {
52
- DEFAULT: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
53
- default: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
54
-
55
- lightest: 'rgba(var(--ax-sys-color-border-lightest-surface), <alpha-value>)',
56
- lighter: 'rgba(var(--ax-sys-color-border-lighter-surface), <alpha-value>)',
57
- light: 'rgba(var(--ax-sys-color-border-light-surface), <alpha-value>)',
58
-
59
- surface: 'rgba(var(--ax-sys-color-border-surface), <alpha-value>)',
60
-
61
- dark: 'rgba(var(--ax-sys-color-border-dark-surface), <alpha-value>)',
62
- darker: 'rgba(var(--ax-sys-color-border-darker-surface), <alpha-value>)',
63
- darkest: 'rgba(var(--ax-sys-color-border-darkest-surface), <alpha-value>)',
64
- };
65
-
66
- const dynamicSurfaceClasses = {
67
- ...createColoredSurfaces('primary'),
68
- ...createColoredSurfaces('secondary'),
69
- ...createColoredSurfaces('success'),
70
- ...createColoredSurfaces('warning'),
71
- ...createColoredSurfaces('danger'),
72
- };
73
-
74
- const UTILITY_CLASSES = {
75
- ...dynamicSurfaceClasses,
76
- '.h1': {
77
- 'font-size': '2.5rem',
78
- 'font-weight': '500',
79
- 'line-height': '2.5rem',
80
- },
81
- '.h2': {
82
- 'font-size': '2rem',
83
- 'font-weight': '500',
84
- 'line-height': '2rem',
85
- },
86
- '.h3': {
87
- 'font-size': '1.75rem',
88
- 'font-weight': '500',
89
- 'line-height': '1.75rem',
90
- },
91
- '.h4': {
92
- 'font-size': '1.5rem',
93
- 'font-weight': '500',
94
- 'line-height': '1.5rem',
95
- },
96
- '.h5': {
97
- 'font-size': '1.125rem',
98
- 'font-weight': '500',
99
- 'line-height': '1.125rem',
100
- },
101
- '.h6': {
102
- 'font-size': '1rem',
103
- 'font-weight': '500',
104
- 'line-height': '1rem',
105
- },
106
- '.heading': {
107
- width: '100%',
108
- 'border-bottom': '1px solid',
109
- 'border-color': 'rgba(var(--ax-sys-color-border-lightest-surface))',
110
- 'line-height': '0.1em',
111
- margin: '1rem auto',
112
- },
113
- '.heading > span': {
114
- background: 'rgba(var(--ax-sys-color-surface))',
115
- padding: '0 0.75rem',
116
- },
117
- '.heading-start': {
118
- 'text-align': 'start',
119
- },
120
- '.heading-center': {
121
- 'text-align': 'center',
122
- },
123
- '.heading-end': {
124
- 'text-align': 'end',
125
- },
126
- '.subtitle': {
127
- opacity: '74%',
128
- display: 'block',
129
- 'font-size': '1rem',
130
- 'font-weight': '400',
131
- 'line-height': '1.625rem',
132
- },
133
- '.links': {
134
- color: 'rgba(var(--ax-sys-color-primary-surface))',
135
- cursor: 'pointer',
136
- },
137
- '.links:hover': {
138
- 'text-decoration': 'underline',
139
- },
140
- '.links:visited': {
141
- color: 'rgba(var(--ax-sys-color-primary-darker))',
142
- },
143
- '.animate-slow': {
144
- animationDuration: '2s',
145
- },
146
- '.animate-slower': {
147
- animationDuration: '3s',
148
- },
149
- '.animate-2xslower': {
150
- animationDuration: '5s',
151
- },
152
- '.animate-fast': {
153
- animationDuration: '800ms',
154
- },
155
- '.animate-faster': {
156
- animationDuration: '500ms',
157
- },
158
- '.animate-2xfaster': {
159
- animationDuration: '250ms',
160
- },
161
- '.card': {
162
- backgroundColor: 'rgb(var(--ax-sys-color-surface))',
163
- border: '1px solid',
164
- borderColor: 'rgb(var(--ax-sys-color-border-lightest-surface))',
165
- borderRadius: 'var(--ax-sys-border-radius)',
166
- },
167
- '.tabs-fit': {
168
- width: '100%',
169
- },
170
- '.xs': {
171
- '--ax-sys-size-base': '1.5rem',
172
- },
173
- '.sm': {
174
- '--ax-sys-size-base': '2rem',
175
- },
176
- '.md': {
177
- '--ax-sys-size-base': '2.5rem',
178
- },
179
- '.lg': {
180
- '--ax-sys-size-base': '3.375rem',
181
- },
182
- '.xl': {
183
- '--ax-sys-size-base': '4rem',
184
- },
185
- '.surface': {
186
- backgroundColor: 'rgb(var(--ax-sys-color-surface))',
187
- color: 'rgb(var(--ax-sys-color-on-surface))',
188
- borderColor: 'rgb(var(--ax-sys-color-border-surface))',
189
- },
190
- '.lightest-surface': {
191
- backgroundColor: 'rgb(var(--ax-sys-color-lightest-surface))',
192
- color: 'rgb(var(--ax-sys-color-on-lightest-surface))',
193
- borderColor: 'rgb(var(--ax-sys-color-border-lightest-surface))',
194
- },
195
- '.lighter-surface': {
196
- backgroundColor: 'rgb(var(--ax-sys-color-lighter-surface))',
197
- color: 'rgb(var(--ax-sys-color-on-lighter-surface))',
198
- borderColor: 'rgb(var(--ax-sys-color-border-lighter-surface))',
199
- },
200
- '.light-surface': {
201
- backgroundColor: 'rgb(var(--ax-sys-color-light-surface))',
202
- color: 'rgb(var(--ax-sys-color-on-light-surface))',
203
- borderColor: 'rgb(var(--ax-sys-color-border-light-surface))',
204
- },
205
- '.dark-surface': {
206
- backgroundColor: 'rgb(var(--ax-sys-color-dark-surface))',
207
- color: 'rgb(var(--ax-sys-color-on-dark-surface))',
208
- borderColor: 'rgb(var(--ax-sys-color-border-dark-surface))',
209
- },
210
- '.darker-surface': {
211
- backgroundColor: 'rgb(var(--ax-sys-color-darker-surface))',
212
- color: 'rgb(var(--ax-sys-color-on-darker-surface))',
213
- borderColor: 'rgb(var(--ax-sys-color-border-darker-surface))',
214
- },
215
- '.darkest-surface': {
216
- backgroundColor: 'rgb(var(--ax-sys-color-darkest-surface))',
217
- color: 'rgb(var(--ax-sys-color-on-darkest-surface))',
218
- borderColor: 'rgb(var(--ax-sys-color-border-darkest-surface))',
219
- },
220
- };
221
-
222
- module.exports = withAnimations({
223
- content: ['./src/**/*.{html,ts,scss}', './projects/**/*.{html,ts,scss}'],
224
- darkMode: 'class',
225
- safelist: [
226
- {
227
- pattern: /(?:(?:on|border)-)?(?:lightest|lighter|light|surface|dark|darker|darkest)/,
228
- },
229
- {
230
- pattern:
231
- /(?:bg|text)(?:-(?:primary|secondary|danger|success|warning))?-(?:50|100|200|300|400|500|600|700|800|900|950)/,
232
- },
233
- ],
234
- theme: {
235
- extend: {
236
- colors: {
237
- ...SURFACE_BG,
238
- ...SURFACES_ON,
239
- primary: createPalette('primary'),
240
- secondary: createPalette('secondary'),
241
- success: createPalette('success'),
242
- danger: createPalette('danger'),
243
- warning: createPalette('warning'),
244
- },
245
- textColor: {
246
- DEFAULT: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
247
- default: 'rgba(var(--ax-sys-color-on-lightest-surface), <alpha-value>)',
248
- primary: createOnSurfaces('primary'),
249
- secondary: createOnSurfaces('secondary'),
250
- success: createOnSurfaces('success'),
251
- danger: createOnSurfaces('danger'),
252
- warning: createOnSurfaces('warning'),
253
- ...SURFACES_ON,
254
- },
255
- backgroundColor: {
256
- primary: createSurfaces('primary'),
257
- secondary: createSurfaces('secondary'),
258
- success: createSurfaces('success'),
259
- danger: createSurfaces('danger'),
260
- warning: createSurfaces('warning'),
261
- ...SURFACE_BG,
262
- ...SURFACES_ON,
263
- },
264
- borderColor: {
265
- primary: createBorderSurfaces('primary'),
266
- secondary: createBorderSurfaces('secondary'),
267
- success: createBorderSurfaces('success'),
268
- danger: createBorderSurfaces('danger'),
269
- warning: createBorderSurfaces('warning'),
270
- ...SURFACE_BORDER,
271
- },
272
- maxWidth: {
273
- '8xl': '90rem',
274
- '9xl': '100rem',
275
- },
276
- borderRadius: {
277
- default: 'var(--ax-sys-border-radius)',
278
- },
279
- lineHeight: {
280
- 11: '2.5rem',
281
- 12: '3rem',
282
- 12: '3rem',
283
- 14: '3.5rem',
284
- 16: '4rem',
285
- 20: '5rem',
286
- },
287
- spacing: {
288
- default: 'var(--ax-sys-size-base)',
289
- },
290
- minWidth: {
291
- default: 'var(--ax-sys-size-base)',
292
- },
293
- width: {
294
- default: 'var(--ax-sys-size-base)',
295
- },
296
- minHeight: {
297
- default: 'var(--ax-sys-size-base)',
298
- },
299
- height: {
300
- default: 'var(--ax-sys-size-base)',
301
- },
302
- maxHeight: {
303
- default: 'var(--ax-sys-size-base)',
304
- },
305
- keyframes: {
306
- floating: {
307
- '0%': { transform: 'translatey(0px)' },
308
- '50%': { transform: 'translatey(-20px)' },
309
- '100%': { transform: 'translatey(0px)' },
310
- },
311
- },
312
- animation: {
313
- floating: 'floating 6s ease-in-out infinite',
314
- },
315
- },
316
- },
317
-
318
- plugins: [
319
- plugin(function ({ addUtilities }) {
320
- addUtilities(UTILITY_CLASSES, ['responsive', 'hover', 'focus']);
321
- }),
322
- childSelector,
323
- ],
324
- });