aliascss 1.5.3 → 1.5.4
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/dashed-ident.patch +216 -0
- package/dist/aliascss.js +1 -1
- package/lib/classPrinter.d.ts +1 -1
- package/lib/classPrinter.js +22 -13
- package/lib/compilers/dashedIdent.d.ts +49 -0
- package/lib/compilers/dashedIdent.js +115 -0
- package/lib/compilers/length.js +4 -2
- package/lib/css-properties-all-old-full-alias-support.d.ts +19 -0
- package/lib/css-properties-all-old-full-alias-support.js +3122 -0
- package/lib/css-properties-all.js +93 -92
- package/lib/node/compileFile.js +30 -15
- package/lib/prefix/responsive.js +7 -7
- package/lib/returnPropertyAndValue.js +7 -0
- package/lib/returnStatement.js +2 -2
- package/lib/static/staticClassNamesAlias.js +5 -5
- package/lib/utils/helper.d.ts +4 -0
- package/lib/utils/helper.js +23 -0
- package/lib/x-imports.js +135 -68
- package/package.json +1 -1
package/lib/node/compileFile.js
CHANGED
|
@@ -18,7 +18,7 @@ import postcssDiscardDuplicates from "postcss-discard-duplicates";
|
|
|
18
18
|
import cssnano from "cssnano";
|
|
19
19
|
import chokidar from "chokidar";
|
|
20
20
|
import sortMediaQueries from "postcss-sort-media-queries";
|
|
21
|
-
import {
|
|
21
|
+
import { parseKeyframeStep } from "../utils/helper.js";
|
|
22
22
|
const init = {
|
|
23
23
|
classList: [],
|
|
24
24
|
groups: [],
|
|
@@ -161,24 +161,39 @@ export function groupStatement(name, classNames, statementMaker) {
|
|
|
161
161
|
// return kfStatement + "\n}\n";
|
|
162
162
|
// }
|
|
163
163
|
export function keyframesStatement(name, timeLine, statementMaker) {
|
|
164
|
-
let kfStatement = "@keyframes " + name + "{\n";
|
|
165
164
|
const returnPnV = (e) => e.map((i) => statementMaker.make(i, null, true)).join(";");
|
|
166
|
-
|
|
167
|
-
split.forEach((each) => {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
const at = m[1].replace(/[\[\]\s%]/g, ""); // "0,25,50"
|
|
174
|
-
kfStatement += ` ${at.split(",").map((s) => s + "%").join(",")} {${returnPnV(splitByCommaOutsideParens(m[2].replace(/^\[|\]$/g, "")))}}`;
|
|
175
|
-
}
|
|
176
|
-
catch (error) {
|
|
177
|
-
console.error("Not a valid entry for AliasCSS keyframes processor : " + each, error);
|
|
165
|
+
let steps = "";
|
|
166
|
+
timeLine.trim().split(/\s+/).forEach((each) => {
|
|
167
|
+
// @50[…] @50-[…] @50%[…] @[0,25,50][…] @50-o-0 @[0,25]-o-0
|
|
168
|
+
const step = parseKeyframeStep(each);
|
|
169
|
+
if (!step) {
|
|
170
|
+
console.error("Not a valid entry for AliasCSS keyframes processor : " + each + " (expected @50-[…], @50-class or @[0,50]-class)");
|
|
171
|
+
return;
|
|
178
172
|
}
|
|
173
|
+
steps += ` ${step.at} {${returnPnV(step.classes)}}`;
|
|
179
174
|
});
|
|
180
|
-
|
|
175
|
+
// no valid step: write nothing rather than an empty @keyframes
|
|
176
|
+
return steps ? "@keyframes " + name + "{\n" + steps + "\n}\n" : "";
|
|
181
177
|
}
|
|
178
|
+
// export function keyframesStatement(name: string, timeLine: string, statementMaker: { make: (a: string, b?: string | null, c?: boolean) => string }) {
|
|
179
|
+
// let kfStatement = "@keyframes " + name + "{\n";
|
|
180
|
+
// const returnPnV = (e: string[]) => e.map((i) => statementMaker.make(i, null, true)).join(";");
|
|
181
|
+
// const split = timeLine.trim().split(/\s+/);
|
|
182
|
+
// split.forEach((each: string) => {
|
|
183
|
+
// try {
|
|
184
|
+
// // @0[…] @0-[…] @[0,25,50][…] @[0,25,50]-[…]
|
|
185
|
+
// const m = each.match(/^@(\[[\d,\s%]+\]|[\d.]+)-?(\[.*\])$/);
|
|
186
|
+
// if (!m) throw new Error("expected @50[...] or @[0,50][...]");
|
|
187
|
+
// const at = m[1].replace(/[\[\]\s%]/g, ""); // "0,25,50"
|
|
188
|
+
// kfStatement += ` ${at.split(",").map((s) => s + "%").join(",")} {${returnPnV(
|
|
189
|
+
// splitByCommaOutsideParens(m[2].replace(/^\[|\]$/g, ""))
|
|
190
|
+
// )}}`;
|
|
191
|
+
// } catch (error) {
|
|
192
|
+
// console.error("Not a valid entry for AliasCSS keyframes processor : " + each, error);
|
|
193
|
+
// }
|
|
194
|
+
// });
|
|
195
|
+
// return kfStatement + "\n}\n";
|
|
196
|
+
// }
|
|
182
197
|
export function createCSSFileByFile(file_1) {
|
|
183
198
|
return __awaiter(this, arguments, void 0, function* (file, bool = false) {
|
|
184
199
|
const [gbContent, content, module] = compileFile(file, config, statementMaker, init.classList);
|
package/lib/prefix/responsive.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const target = {
|
|
2
|
-
print: '@media print',
|
|
2
|
+
// print: '@media print',
|
|
3
3
|
'@print': '@media print',
|
|
4
4
|
'@hover-capable': '@media screen and (hover: hover)',
|
|
5
5
|
'@landscape': '@media (orientation: landscape)',
|
|
@@ -25,19 +25,19 @@ const target = {
|
|
|
25
25
|
'@resolution-xl': '@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 288dpi)',
|
|
26
26
|
'@contrast-more': '@media (prefers-contrast: more)',
|
|
27
27
|
'@data-reduce': '@media (prefers-reduced-data: reduce)',
|
|
28
|
-
xs: '@media (max-width: 575.99px)',
|
|
28
|
+
// xs: '@media (max-width: 575.99px)',
|
|
29
29
|
'@xs': '@media (max-width: 575.99px)',
|
|
30
30
|
// NOTE: bare `sm` collides with the `sm` (scroll-margin) property alias:
|
|
31
31
|
// `sm-10px` is read as a media scope. Prefer `@sm` in authored classes.
|
|
32
|
-
sm: '@media (min-width: 576px)',
|
|
32
|
+
// sm: '@media (min-width: 576px)',
|
|
33
33
|
'@sm': '@media (min-width: 576px)',
|
|
34
|
-
md: '@media (min-width: 768px)',
|
|
34
|
+
// md: '@media (min-width: 768px)',
|
|
35
35
|
'@md': '@media (min-width: 768px)',
|
|
36
|
-
lg: '@media (min-width: 992px)',
|
|
36
|
+
// lg: '@media (min-width: 992px)',
|
|
37
37
|
'@lg': '@media (min-width: 992px)',
|
|
38
|
-
xl: '@media (min-width: 1200px)',
|
|
38
|
+
// xl: '@media (min-width: 1200px)',
|
|
39
39
|
'@xl': '@media (min-width: 1200px)',
|
|
40
|
-
xxl: '@media (min-width: 1408px)',
|
|
40
|
+
// xxl: '@media (min-width: 1408px)',
|
|
41
41
|
'@xxl': '@media (min-width: 1408px)',
|
|
42
42
|
dark: '@media (prefers-color-scheme: dark)',
|
|
43
43
|
'@dark': '@media (prefers-color-scheme: dark)',
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import compileDashedIdent, { isDashedIdentProperty } from './compilers/dashedIdent.js';
|
|
1
2
|
/**
|
|
2
3
|
* A value written after ":" has no separator dash, but property compilers expect the value
|
|
3
4
|
* exactly as it follows the property in a normal class: "-8px" in m-8px (dash = separator),
|
|
@@ -117,6 +118,12 @@ bool = false) {
|
|
|
117
118
|
}
|
|
118
119
|
// --End of Group type
|
|
119
120
|
const prop = property.property ? property.property : propertyKey;
|
|
121
|
+
// Properties whose values are --names, not CSS variables (anchor-name, timelines, …)
|
|
122
|
+
if (isDashedIdentProperty(prop)) {
|
|
123
|
+
const value = compileDashedIdent(prop, className.replace(propertyKey, ''));
|
|
124
|
+
if (value)
|
|
125
|
+
return bool ? [prop, value] : prop + ":" + value;
|
|
126
|
+
}
|
|
120
127
|
// Case 2: CSS Variables
|
|
121
128
|
if (/--var--/.test(className)) {
|
|
122
129
|
const splits = className.split(/--var--/);
|
package/lib/returnStatement.js
CHANGED
|
@@ -188,9 +188,9 @@ export const compiler = {
|
|
|
188
188
|
let [elementAndPseudo, important] = ['', ''];
|
|
189
189
|
// workingClassName=workingClassName.replace(/[_][\.]([a-zA-Z])/g,(s,e)=>"_"+'ACSS').replace(/[.]/g,"d").replace(/[%]/g,'p')
|
|
190
190
|
// 3. Process --important flag
|
|
191
|
-
if (/(
|
|
191
|
+
if (/(--imp|--important)$/.test(className)) {
|
|
192
192
|
important = ' !important';
|
|
193
|
-
workingClassName = workingClassName.replace(/(
|
|
193
|
+
workingClassName = workingClassName.replace(/(--imp|--important)$/, '');
|
|
194
194
|
}
|
|
195
195
|
// 4. process Pseudo State
|
|
196
196
|
const prefixPseudoElementAttribute = extractPrefix(workingClassName);
|
|
@@ -576,11 +576,11 @@ export const staticClassNamesAlias = {
|
|
|
576
576
|
'czo': 'cursor: zoom-out',
|
|
577
577
|
'db': 'display: block',
|
|
578
578
|
'dc2': 'display: compact',
|
|
579
|
-
'dc': 'display: container',
|
|
579
|
+
// 'dc': 'display: container',
|
|
580
580
|
'd/contents': 'display: contents',
|
|
581
581
|
// 'dconts': 'display: container',
|
|
582
582
|
'dc/compact': 'display: compact',
|
|
583
|
-
'dc/container': 'display: container',
|
|
583
|
+
// 'dc/container': 'display: container',
|
|
584
584
|
'dcp': 'display: compact',
|
|
585
585
|
'df': 'display: flex',
|
|
586
586
|
'dg': 'display: grid',
|
|
@@ -1138,7 +1138,7 @@ export const staticClassNamesAlias = {
|
|
|
1138
1138
|
'pbia2': 'page-break-inside: avoid',
|
|
1139
1139
|
'pbia': 'page-break-inside: auto',
|
|
1140
1140
|
'pbiav': 'page-break-inside: avoid',
|
|
1141
|
-
'pc': 'position: center',
|
|
1141
|
+
// 'pc': 'position: center',
|
|
1142
1142
|
'pcbc': 'place-content: baseline center',
|
|
1143
1143
|
'pccs': 'place-content: center start',
|
|
1144
1144
|
'pcel': 'place-content: end left',
|
|
@@ -1312,9 +1312,9 @@ export const staticClassNamesAlias = {
|
|
|
1312
1312
|
'tdsd2': 'text-decoration-style:doubled ',
|
|
1313
1313
|
'tdsd3': 'text-decoration-style: dotted',
|
|
1314
1314
|
'tdsd': 'text-decoration-style: dashed',
|
|
1315
|
-
'tdsd/double': 'text-decoration-style:
|
|
1315
|
+
'tdsd/double': 'text-decoration-style: double',
|
|
1316
1316
|
'tdsd/dotted': 'text-decoration-style: dotted',
|
|
1317
|
-
'tdsd/dashed': 'text-decoration-style:
|
|
1317
|
+
'tdsd/dashed': 'text-decoration-style: dashed',
|
|
1318
1318
|
'tdsdb': 'text-decoration-style: double',
|
|
1319
1319
|
'tdsds': 'text-decoration-style: dashed',
|
|
1320
1320
|
'tdsdt': 'text-decoration-style: dotted',
|
package/lib/utils/helper.d.ts
CHANGED
|
@@ -17,3 +17,7 @@ export declare function matchTrailingGroup(s: string): {
|
|
|
17
17
|
} | null;
|
|
18
18
|
export declare function splitTopLevel(str: string): string[];
|
|
19
19
|
export declare const joinGroupItem: (prefix: string, item: string) => string;
|
|
20
|
+
export declare function parseKeyframeStep(step: string): {
|
|
21
|
+
at: string;
|
|
22
|
+
classes: string[];
|
|
23
|
+
} | null;
|
package/lib/utils/helper.js
CHANGED
|
@@ -145,3 +145,26 @@ export function splitTopLevel(str) {
|
|
|
145
145
|
export const joinGroupItem = (prefix, item) => prefix && item.startsWith('_')
|
|
146
146
|
? prefix + item
|
|
147
147
|
: (prefix + '-').replace(/--$/, '-') + item.replace(/^--/, '-');
|
|
148
|
+
// Parse one keyframes step written as @<stops><styles>:
|
|
149
|
+
// stops: 25 | 25% | 12.5 | [0,25,50] | [0,50%]
|
|
150
|
+
// styles: [class,class] a group (commas inside ( ) are kept)
|
|
151
|
+
// class a single class, taken as written
|
|
152
|
+
// An optional "-" separates the stops from the styles: @25dn = @25-dn, @25[o-0] = @25-[o-0].
|
|
153
|
+
// "--" right after the stops starts a CSS variable: @25--x-angle:90deg.
|
|
154
|
+
export function parseKeyframeStep(step) {
|
|
155
|
+
const m = step.match(/^@(\[[\d.,%]+\]|[\d.]+%?)(.+)$/);
|
|
156
|
+
if (!m)
|
|
157
|
+
return null;
|
|
158
|
+
const stops = m[1].replace(/[\[\]%]/g, '').split(',');
|
|
159
|
+
if (!stops.every((s) => /^\d+(\.\d+)?$/.test(s)))
|
|
160
|
+
return null;
|
|
161
|
+
let body = m[2];
|
|
162
|
+
if (body.startsWith('-') && !body.startsWith('--'))
|
|
163
|
+
body = body.slice(1); // optional separator
|
|
164
|
+
if (!body || (/^[\d.%-]/.test(body) && !body.startsWith('--')))
|
|
165
|
+
return null;
|
|
166
|
+
const classes = body.startsWith('[') && body.endsWith(']')
|
|
167
|
+
? splitByCommaOutsideParens(body.slice(1, -1))
|
|
168
|
+
: [body];
|
|
169
|
+
return classes.length ? { at: stops.map((s) => s + '%').join(','), classes } : null;
|
|
170
|
+
}
|
package/lib/x-imports.js
CHANGED
|
@@ -156,76 +156,143 @@ export default {
|
|
|
156
156
|
'x-import-utils-classes': {
|
|
157
157
|
type: 'statement',
|
|
158
158
|
statement: `
|
|
159
|
-
[c-gray-900
|
|
160
|
-
[c-
|
|
161
|
-
[c-
|
|
162
|
-
[c-
|
|
163
|
-
[c-gray-
|
|
164
|
-
[c-
|
|
165
|
-
[c-
|
|
166
|
-
[c-
|
|
159
|
+
[c-gray-900]--as-text-primary
|
|
160
|
+
@dark[c-grayDark-50]--as-text-primary
|
|
161
|
+
[c-white]--as-text-primary-on-brand
|
|
162
|
+
@dark[c-grayDark-50]--as-text-primary-on-brand
|
|
163
|
+
[c-gray-700,--hover-c-gray-800]--as-text-secondary
|
|
164
|
+
@dark[c-grayDark-300,--hover-c-grayDark-200]--as-text-secondary
|
|
165
|
+
[c-brand-200]--as-text-secondary-on-brand
|
|
166
|
+
@dark[c-grayDark-300]--as-text-secondary-on-brand
|
|
167
|
+
[c-gray-600,--h-c-gray-700]--as-text-tertiary
|
|
168
|
+
@dark[c-grayDark-400,--h-c-grayDark-300]--as-text-tertiary
|
|
169
|
+
[c-brand-200]--as-text-tertiary-on-brand
|
|
170
|
+
@dark[c-grayDark-300]--as-text-tertiary-on-brand
|
|
171
|
+
[c-gray-500]--as-text-quaternary
|
|
172
|
+
@dark[c-grayDark-400]--as-text-quaternary
|
|
173
|
+
[c-brand-300]--as-text-quaternary-on-brand
|
|
174
|
+
@dark[c-grayDark-400]--as-text-quaternary-on-brand
|
|
167
175
|
[c-white]--as-text-white
|
|
168
176
|
c-gray-500--as-text-disabled
|
|
169
|
-
[c-gray-500
|
|
170
|
-
[c-
|
|
171
|
-
[c-
|
|
172
|
-
[c-
|
|
173
|
-
[c-brand-
|
|
174
|
-
[c-
|
|
175
|
-
[c-
|
|
176
|
-
[c-
|
|
177
|
-
[c-
|
|
178
|
-
[
|
|
179
|
-
[
|
|
180
|
-
[
|
|
181
|
-
[
|
|
182
|
-
[
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
[
|
|
186
|
-
[
|
|
187
|
-
[
|
|
188
|
-
[
|
|
189
|
-
[
|
|
190
|
-
[
|
|
191
|
-
[
|
|
192
|
-
[
|
|
193
|
-
[
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[
|
|
198
|
-
[
|
|
199
|
-
[
|
|
200
|
-
[
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
|
|
205
|
-
[background-color-
|
|
206
|
-
[background-color-white
|
|
207
|
-
[background-color-gray-
|
|
208
|
-
[background-color-
|
|
209
|
-
[background-color-gray-
|
|
210
|
-
[background-color-
|
|
211
|
-
[background-color-gray-
|
|
212
|
-
[background-color-
|
|
213
|
-
[background-color-gray-
|
|
214
|
-
[background-color-
|
|
215
|
-
[background-color-gray-
|
|
216
|
-
[background-color-
|
|
217
|
-
[background-color-
|
|
218
|
-
[background-color-
|
|
219
|
-
[background-color-
|
|
220
|
-
[background-color-
|
|
221
|
-
[background-color-brand-
|
|
222
|
-
[background-color-brand-
|
|
223
|
-
[background-color-
|
|
224
|
-
[background-color-
|
|
225
|
-
[background-color-
|
|
226
|
-
[background-color-
|
|
227
|
-
[background-color-
|
|
228
|
-
[background-color-
|
|
177
|
+
[c-gray-500]--as-text-placeholder
|
|
178
|
+
@dark[c-grayDark-400]--as-text-placeholder
|
|
179
|
+
[c-gray-300]--as-text-placeholder-subtle
|
|
180
|
+
@dark[c-grayDark-700]--as-text-placeholder-subtle
|
|
181
|
+
[c-brand-900]--as-text-brand-primary
|
|
182
|
+
@dark[c-grayDark-50]--as-text-brand-primary
|
|
183
|
+
[c-brand-700]--as-text-brand-secondary
|
|
184
|
+
@dark[c-grayDark-300]--as-text-brand-secondary
|
|
185
|
+
[c-brand-600]--as-text-brand-tertiary
|
|
186
|
+
@dark[c-grayDark-400]--as-text-brand-tertiary
|
|
187
|
+
[c-brand-600]--as-text-brand-tertiary-alt
|
|
188
|
+
@dark[c-grayDark-50]--as-text-brand-tertiary-alt
|
|
189
|
+
[c-error-600]--as-text-error-primary
|
|
190
|
+
@dark[c-error-400]--as-text-error-primary
|
|
191
|
+
[c-warning-600]--as-text-warning-primary
|
|
192
|
+
@dark[c-warning-400]--as-text-warning-primary
|
|
193
|
+
[c-success-600]--as-text-success-primary
|
|
194
|
+
@dark[c-success-400]--as-text-success-primary
|
|
195
|
+
[border-color-gray-300]--as-border-primary
|
|
196
|
+
@dark[border-color-grayDark-700]--as-border-primary
|
|
197
|
+
[border-color-gray-200]--as-border-secondary
|
|
198
|
+
@dark[border-color-grayDark-800]--as-border-secondary
|
|
199
|
+
[border-color-gray-100]--as-border-tertiary
|
|
200
|
+
@dark[border-color-grayDark-800]--as-border-tertiary
|
|
201
|
+
[border-color-gray-300]--as-border-disabled
|
|
202
|
+
@dark[border-color-grayDark-700]--as-border-disabled
|
|
203
|
+
[border-color-gray-200]--as-border-disabled-subtle
|
|
204
|
+
@dark[border-color-grayDark-800]--as-border-disabled-subtle
|
|
205
|
+
[border-color-brand-500]--as-border-brand
|
|
206
|
+
@dark[border-color-brand-400]--as-border-brand
|
|
207
|
+
[border-color-brand-600]--as-border-brand-alt
|
|
208
|
+
@dark[border-color-grayDark-700]--as-border-brand-alt
|
|
209
|
+
[border-color-error-500]--as-border-error
|
|
210
|
+
@dark[border-color-error-400]--as-border-error
|
|
211
|
+
[border-color-error-300]--as-border-error-subtle
|
|
212
|
+
@dark[border-color-error-400]--as-border-error-subtle
|
|
213
|
+
[background-color-gray-900]--as-fg-primary
|
|
214
|
+
@dark[background-color-white]--as-fg-primary
|
|
215
|
+
[background-color-gray-700,--h-bgc-gray-800]--as-fg-secondary
|
|
216
|
+
@dark[background-color-grayDark-300,--h-bgc-grayDark-200]--as-fg-secondary
|
|
217
|
+
[background-color-gray-600,--h-bgc-gray-700]--as-fg-tertiary
|
|
218
|
+
@dark[background-color-grayDark-400,--h-bgc-grayDark-300]--as-fg-tertiary
|
|
219
|
+
[background-color-gray-500,--h-bgc-gray-400]--as-fg-quaternary
|
|
220
|
+
@dark[background-color-grayDark-600,--h-bgc-grayDark-300]--as-fg-quaternary
|
|
221
|
+
[background-color-gray-400,--h-bgc-gray-500]--as-fg-quinary
|
|
222
|
+
@dark[background-color-grayDark-500,--h-bgc-grayDark-400]--as-fg-quinary
|
|
223
|
+
[background-color-gray-300]--as-fg-senary
|
|
224
|
+
@dark[background-color-grayDark-600]--as-fg-senary
|
|
225
|
+
[background-color-gray-400]--as-fg-disabled
|
|
226
|
+
@dark[background-color-grayDark-500]--as-fg-disabled
|
|
227
|
+
[background-color-gray-300]--as-fg-disabled-subtle
|
|
228
|
+
@dark[background-color-grayDark-600]--as-fg-disabled-subtle
|
|
229
|
+
[background-color-brand-600]--as-fg-brand-primary
|
|
230
|
+
@dark[background-color-brand-500]--as-fg-brand-primary
|
|
231
|
+
[background-color-brand-600]--as-fg-brand-primary-alt
|
|
232
|
+
@dark[background-color-grayDark-300]--as-fg-brand-primary-alt
|
|
233
|
+
[background-color-brand-500]--as-fg-brand-secondary
|
|
234
|
+
@dark[background-color-brand-500]--as-fg-brand-secondary
|
|
235
|
+
[background-color-error-600]--as-fg-error-primary
|
|
236
|
+
@dark[background-color-error-500]--as-fg-error-primary
|
|
237
|
+
[background-color-error-500]--as-fg-error-secondary
|
|
238
|
+
@dark[background-color-error-400]--as-fg-error-secondary
|
|
239
|
+
[background-color-warning-600]--as-fg-warning-primary
|
|
240
|
+
@dark[background-color-warning-500]--as-fg-warning-primary
|
|
241
|
+
[background-color-warning-500]--as-fg-warning-secondary
|
|
242
|
+
@dark[background-color-warning-400]--as-fg-warning-secondary
|
|
243
|
+
[background-color-success-600]--as-fg-success-primary
|
|
244
|
+
@dark[background-color-success-500]--as-fg-success-primary
|
|
245
|
+
[background-color-success-500]--as-fg-success-secondary
|
|
246
|
+
@dark[background-color-success-400]--as-fg-success-secondary
|
|
247
|
+
|
|
248
|
+
[background-color-white,--h-bgc-gray-50]--as-bg-primary
|
|
249
|
+
@dark[background-color-grayDark-950,--h-bgc-grayDark-800]--as-bg-primary
|
|
250
|
+
[background-color-white]--as-bg-primary-alt
|
|
251
|
+
@dark[background-color-grayDark-900]--as-bg-primary-alt
|
|
252
|
+
[background-color-gray-950]--as-bg-primary-solid
|
|
253
|
+
@dark[background-color-grayDark-900]--as-bg-primary-solid
|
|
254
|
+
[background-color-gray-50,--h-bgc-gray-100]--as-bg-secondary
|
|
255
|
+
@dark[background-color-grayDark-900,--h-bgc-grayDark-800]--as-bg-secondary
|
|
256
|
+
[background-color-gray-50]--as-bg-secondary-alt
|
|
257
|
+
@dark[background-color-grayDark-950]--as-bg-secondary-alt
|
|
258
|
+
[background-color-gray-25]--as-bg-secondary-subtle
|
|
259
|
+
@dark[background-color-grayDark-900]--as-bg-secondary-subtle
|
|
260
|
+
[background-color-gray-600]--as-bg-secondary-solid
|
|
261
|
+
@dark[background-color-grayDark-600]--as-bg-secondary-solid
|
|
262
|
+
[background-color-gray-100]--as-bg-tertiary
|
|
263
|
+
@dark[background-color-grayDark-800]--as-bg-tertiary
|
|
264
|
+
[background-color-gray-200]--as-bg-quaternary
|
|
265
|
+
@dark[background-color-grayDark-700]--as-bg-quaternary
|
|
266
|
+
[background-color-gray-50]--as-bg-active
|
|
267
|
+
@dark[background-color-grayDark-800]--as-bg-active
|
|
268
|
+
[background-color-gray-100]--as-bg-disabled
|
|
269
|
+
@dark[background-color-grayDark-800]--as-bg-disabled
|
|
270
|
+
[background-color-gray-950]--as-bg-overlay
|
|
271
|
+
@dark[background-color-grayDark-800]--as-bg-overlay
|
|
272
|
+
[background-color-brand-50]--as-bg-brand-primary
|
|
273
|
+
@dark[background-color-brand-500]--as-bg-brand-primary
|
|
274
|
+
[background-color-brand-50]--as-bg-brand-primary-alt
|
|
275
|
+
@dark[background-color-grayDark-800]--as-bg-brand-primary-alt
|
|
276
|
+
[background-color-brand-100]--as-bg-brand-secondary
|
|
277
|
+
@dark[background-color-brand-600]--as-bg-brand-secondary
|
|
278
|
+
[background-color-brand-600,--h-bgc-brand-700]--as-bg-brand-solid
|
|
279
|
+
@dark[background-color-brand-600,--h-bgc-brand-500]--as-bg-brand-solid
|
|
280
|
+
[background-color-brand-800]--as-bg-section
|
|
281
|
+
@dark[background-color-grayDark-800]--as-bg-section
|
|
282
|
+
[background-color-brand-700]--as-bg-section-subtle
|
|
283
|
+
@dark[background-color-grayDark-950]--as-bg-section-subtle
|
|
284
|
+
[background-color-error-50]--as-bg-error-primary
|
|
285
|
+
@dark[background-color-error-500]--as-bg-error-primary
|
|
286
|
+
[background-color-warning-50]--as-bg-warning-primary
|
|
287
|
+
@dark[background-color-warning-500]--as-bg-warning-primary
|
|
288
|
+
[background-color-warning-100]--as-bg-warning-secondary
|
|
289
|
+
@dark[background-color-warning-600]--as-bg-warning-secondary
|
|
290
|
+
[background-color-warning-600]--as-bg-warning-solid
|
|
291
|
+
@dark[background-color-warning-600]--as-bg-warning-solid
|
|
292
|
+
[background-color-success-100]--as-bg-success-primary
|
|
293
|
+
@dark[background-color-success-600]--as-bg-success-primary
|
|
294
|
+
[background-color-success-600]--as-bg-success-solid
|
|
295
|
+
@dark[background-color-success-600]--as-bg-success-solid
|
|
229
296
|
`,
|
|
230
297
|
},
|
|
231
298
|
// React Aria utililies , color and Theme
|