aliascss 1.5.2 → 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/CHANGELOG.md +9 -0
- package/README.md +408 -553
- package/dashed-ident.patch +216 -0
- package/dist/aliascss.js +1 -1
- package/lib/classPrinter.d.ts +1 -1
- package/lib/classPrinter.js +23 -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 +119 -93
- package/lib/node/compileFile.js +30 -15
- package/lib/prefix/responsive.js +7 -7
- package/lib/returnPropertyAndValue.js +24 -6
- 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),
|
|
@@ -5,6 +6,7 @@
|
|
|
5
6
|
* ":--8px" is accepted as negative too.
|
|
6
7
|
*/
|
|
7
8
|
const asClassValue = (value) => '-' + value.replace(/^--(?=[\d.])/, '-');
|
|
9
|
+
const calcValue = (value) => value.replace(/([-+/*])([\d]|var\(|calc\()/g, ' $1 $2').replace(/_/g, ' ');
|
|
8
10
|
/** Value clean-up used when no compiler handles the value (same rules as before, sign-safe). */
|
|
9
11
|
const fallbackValue = (value) => asClassValue(value)
|
|
10
12
|
.replace(/[-]([-]?[\w])/g, ' $1')
|
|
@@ -29,6 +31,9 @@ bool = false) {
|
|
|
29
31
|
if (staticClassNames.hasOwnProperty(className)) {
|
|
30
32
|
return staticClassNames[className];
|
|
31
33
|
}
|
|
34
|
+
// Leading-dot decimals: ".5" → "0.5" (o-.5, m-.5rem, --x-o:.5, scale(.5)). 0.5 is the documented form.
|
|
35
|
+
// Only a dot after a non-word character changes, so "1.5", "0d5", "x.5" and "_.5" stay as written.
|
|
36
|
+
className = className.replace(/(^|[^\w.])\.(\d)/g, '$10.$2');
|
|
32
37
|
// case 2 defining css-variable as className
|
|
33
38
|
if (className.startsWith('--') && className.includes(':')) {
|
|
34
39
|
let value = className.slice(className.indexOf(':')).replace(':', '');
|
|
@@ -68,7 +73,8 @@ bool = false) {
|
|
|
68
73
|
//
|
|
69
74
|
// case 1: CSS Variable inside css variable
|
|
70
75
|
if (/^calc/.test(value)) {
|
|
71
|
-
|
|
76
|
+
const v = calcValue(value);
|
|
77
|
+
return bool ? [property, v] : property + ":" + v;
|
|
72
78
|
}
|
|
73
79
|
// case 2: CSS variable in side css variable
|
|
74
80
|
if (/^--[a-zA-Z]/.test(value)) {
|
|
@@ -112,6 +118,12 @@ bool = false) {
|
|
|
112
118
|
}
|
|
113
119
|
// --End of Group type
|
|
114
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
|
+
}
|
|
115
127
|
// Case 2: CSS Variables
|
|
116
128
|
if (/--var--/.test(className)) {
|
|
117
129
|
const splits = className.split(/--var--/);
|
|
@@ -120,7 +132,7 @@ bool = false) {
|
|
|
120
132
|
let value = splits[1].slice(splits[1].indexOf(':')).replace(':', '');
|
|
121
133
|
const cssVar = splits[1].replace(value, '').replace(':', '');
|
|
122
134
|
if (/^calc\(/.test(value)) {
|
|
123
|
-
return bool ? [prop, "var(--" + cssVar + ',' + value
|
|
135
|
+
return bool ? [prop, "var(--" + cssVar + ',' + calcValue(value) + ')'] : prop + ": var(--" + cssVar + ',' + calcValue(value) + ')';
|
|
124
136
|
}
|
|
125
137
|
if (property.hasOwnProperty('compiler') && typeof property.compiler === 'function') {
|
|
126
138
|
const val = property.compiler(asClassValue(value), custom);
|
|
@@ -151,11 +163,17 @@ bool = false) {
|
|
|
151
163
|
return bool ? [prop, val] : prop + ":" + val;
|
|
152
164
|
}
|
|
153
165
|
}
|
|
154
|
-
// case 3:
|
|
166
|
+
// case 3: rew var function
|
|
167
|
+
if (/^-var\(/.test(valuePortion)) {
|
|
168
|
+
return bool ? [prop, valuePortion.replace(/^-/, '')] : prop + ":" + valuePortion.replace(/^-/, '');
|
|
169
|
+
}
|
|
170
|
+
// case 4: calc function
|
|
155
171
|
if (/^-calc\(/.test(valuePortion)) {
|
|
156
|
-
|
|
172
|
+
const v = calcValue(valuePortion.replace(/^-/, ''));
|
|
173
|
+
return bool ? [prop, v] : prop + ":" + v;
|
|
174
|
+
// return bool?[prop,valuePortion.replace(/^-/,'').replace(/([-+/*])([\d]|var\(|calc\()/g,' $1 $2')]:prop+":"+valuePortion.replace(/^-/,'').replace(/([-+/*])([\d]|var\(|calc\()/g,' $1 $2');
|
|
157
175
|
}
|
|
158
|
-
// case
|
|
176
|
+
// case 5: CSS variable without --var keyword
|
|
159
177
|
if (/^--[a-zA-Z]/.test(valuePortion)) {
|
|
160
178
|
if (valuePortion.includes(':')) {
|
|
161
179
|
let value = valuePortion.slice(valuePortion.indexOf(':')).replace(':', '');
|
|
@@ -178,7 +196,7 @@ bool = false) {
|
|
|
178
196
|
}
|
|
179
197
|
//
|
|
180
198
|
if (/^calc\(/.test(value)) {
|
|
181
|
-
return bool ? [prop, "var(" + cssVar + ',' + value
|
|
199
|
+
return bool ? [prop, "var(" + cssVar + ',' + calcValue(value) + ')'] : prop + ": var(" + cssVar + ',' + calcValue(value) + ')';
|
|
182
200
|
}
|
|
183
201
|
if (property.hasOwnProperty('compiler') && typeof property.compiler === 'function') {
|
|
184
202
|
const val = property.compiler(asClassValue(value), custom);
|
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
|