aliascss 1.3.6 → 1.3.8

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.
@@ -4,10 +4,24 @@ export default function extractClassNamesFromFile(file, config) {
4
4
  const classList = [];
5
5
  const groups = {};
6
6
  const keyframes = {};
7
+ let rawCSSStatement = '';
7
8
  const matchExtractorFunction = config.useExtractorFunction ? config.matchExtractorFunction : null;
8
9
  const matchCSSModuleFunction = config.useCSSModule ? config.matchCSSModuleFunction : null;
9
10
  const matchRegExp = config.useColon ? config.matchRegExpWithColon : config.matchRegExp;
10
11
  const matchRegExpKeyFrame = config.useColon ? config.matchRegExpWithColonKeyFrame : config.matchRegExpKeyFrame;
12
+ const matchRegExpRawCSSStatement = /data-raw-css=(["'])(.*?)\1/;
13
+ // 0. data-raw-css=
14
+ if (data.match(matchRegExpRawCSSStatement)) {
15
+ const matchesRawCSS = data.match(new RegExp(matchRegExpRawCSSStatement, "g"));
16
+ if (matchesRawCSS) {
17
+ matchesRawCSS.forEach((each) => {
18
+ const extraction = each.match(matchRegExpRawCSSStatement);
19
+ if (extraction && extraction[2]) {
20
+ rawCSSStatement += extraction[2] + '\n';
21
+ }
22
+ });
23
+ }
24
+ }
11
25
  // 1 - i. Extract from Extractor function
12
26
  if (config.useExtractorFunction && matchExtractorFunction) {
13
27
  const matchesEF = data.match(new RegExp(matchExtractorFunction, "g"));
@@ -102,5 +116,5 @@ export default function extractClassNamesFromFile(file, config) {
102
116
  // .replace(/["']/g,'')
103
117
  // .split(/\s+/)
104
118
  // extract from keyframes
105
- return [classList, groups, keyframes];
119
+ return [classList, groups, keyframes, rawCSSStatement];
106
120
  }
package/lib/prebuild.d.ts CHANGED
@@ -35,14 +35,6 @@ declare const _default: {
35
35
  type: string;
36
36
  statement: string;
37
37
  };
38
- 'x-screen-root': {
39
- type: string;
40
- statement: string;
41
- };
42
- 'x-screen': {
43
- type: string;
44
- statement: string;
45
- };
46
38
  'x-divider-text': {
47
39
  type: string;
48
40
  statement: string;
@@ -135,11 +127,11 @@ declare const _default: {
135
127
  type: string;
136
128
  statement: string;
137
129
  };
138
- 'x-acss-utils': {
130
+ 'x-import-utils-1': {
139
131
  type: string;
140
132
  statement: string;
141
133
  };
142
- 'x-acss-vars-dark': {
134
+ 'x-import-vars-dark': {
143
135
  type: string;
144
136
  statement: string;
145
137
  };
package/lib/prebuild.js CHANGED
@@ -1,47 +1,4 @@
1
1
  export default {
2
- // ...animation,
3
- // :Base component styles
4
- // '@comp':{
5
- // type:'statement',
6
- // statement:`` ,
7
- // },
8
- // 'x-bg-1':{
9
- // 'type':'statement',
10
- // statement:`bg-lg-135deg-1e1b4b-0f172a
11
- // --bf[cont,pa,flex-center,w-130px,h-130px,bgc-rgba-99-102-241-0.25,br-50p,t--30px,l--30px,backdrop-filter-blur-12px,bxs-0px-0px-40px-rgba-99-102-241-0.3]
12
- // --af[cont,pa,w-100px,h-100px,br-50px,bgc-rgba-244-114-182-0.2,btm--20px,r--20px,b-1px-s-rgba-255-255-255-0.1,bxs-0px-0px-30px-rgba-244-114-183-0.3]`
13
- // },
14
- // 'x-bg-cyberpunk-grid':{
15
- // 'type':'raw',
16
- // statement:`
17
- // .x-bg-cyberpunk-grid {
18
- // --x-bg-cyberpunk-grid-color:#00001a;
19
- // --x-bg-cyberpunk-grid-line-color:0 255 200;
20
- // background: var(--x-bg-cyberpunk-grid-color);
21
- // perspective: 400px;
22
- // }
23
- // .x-bg-cyberpunk-grid::before {
24
- // content: '';
25
- // position: absolute;
26
- // width: 200%;
27
- // height: 200%;
28
- // top: 0;
29
- // left: -50%;
30
- // background-image:
31
- // linear-gradient(rgba(var(--x-bg-cyberpunk-grid-line-color) / 0.3) 1px, transparent 1px),
32
- // linear-gradient(90deg, rgba(var(--x-bg-cyberpunk-grid-line-color) / 0.3) 1px, transparent 1px);
33
- // background-size: 30px 30px;
34
- // transform: rotateX(55deg);
35
- // transform-origin: 50% 0%;
36
- // }
37
- // .x-bg-cyberpunk-grid::after {
38
- // content: '';
39
- // position: absolute;
40
- // inset: 0;
41
- // background:
42
- // linear-gradient(180deg, var(--x-bg-cyberpunk-grid-color) 0%, transparent 40%, var(--x-bg-cyberpunk-grid-color) 100%),
43
- // radial-gradient(ellipse at 50% 0%, rgba(var(--x-bg-cyberpunk-grid-line-color) / 0.25) 0%, transparent 60%);
44
- // }`},
45
2
  'x-btn': {
46
3
  type: 'statement',
47
4
  statement: `@base-all-unset
@@ -82,154 +39,66 @@ export default {
82
39
  statement: `@layer reset, base;
83
40
  @layer reset{*,::after,::before,::backdrop,::file-selector-button{box-sizing:border-box;margin:0;padding:0;border:0 solid}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;tab-size:4;font-family:--theme(--default-font-family,ui-sans-serif,system-ui,sans-serif,'Apple Color Emoji','Segoe UI Emoji','Segoe UI Symbol','Noto Color Emoji');font-feature-settings:--theme(--default-font-feature-settings,normal);font-variation-settings:--theme(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:--theme(--default-mono-font-family, ui-monospace,SFMono-Regular,Menlo, Monaco,Consolas,'Liberation Mono','Courier New',monospace);font-feature-settings:--theme(--default-mono-font-feature-settings,normal);font-variation-settings:--theme(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea,::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;border-radius:0;background-color:transparent;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type='button'],[type='reset'],[type='submit']),::file-selector-button{appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden='until-found'])){display:none!important}}`
84
41
  },
85
- // 'x-css-vars-color':{
86
- // type:'raw',
87
- // statement:`:root{--gray-25:#FCFCFD;--gray-50:#F9FAFB;--gray-100:#F2F4F7;--gray-200:#EAECF0;--gray-300:#D0D5DD;--gray-400:#98A2B3;--gray-500:#667085;--gray-600:#475467;--gray-700:#344054;--gray-800:#1D2939;--gray-900:#101828;--gray-950:#0C111D;
88
- // --grayDark-25:#FAFAFA;--grayDark-50:#F5F5F5;--grayDark-100:#F0F1F1;--grayDark-200:#ECECED;--grayDark-300:#CECFD2;--grayDark-400:#94969C;--grayDark-500:#85888E;--grayDark-600:#61646C;--grayDark-700:#333741;--grayDark-800:#1F242F;--grayDark-900:#161B26;--grayDark-950:#0C111D;
89
- // --primary-25:#FCFAFF;--primary-50:#F9F5FF;--primary-100:#F4EBFF;--primary-200:#E9D7FE;--primary-300:#D6BBFB;--primary-400:#B692F6;--primary-500:#9E77ED;--primary-600:#7F56D9;--primary-700:#6941C6;--primary-800:#53389E;--primary-900:#42307D;--primary-950:#2C1C5F;
90
- // --brand-25:#FCFAFF;--brand-50:#F9F5FF;--brand-100:#F4EBFF;--brand-200:#E9D7FE;--brand-300:#D6BBFB;--brand-400:#B692F6;--brand-500:#9E77ED;--brand-600:#7F56D9;--brand-700:#6941C6;--brand-800:#53389E;--brand-900:#42307D;--brand-950:#2C1C5F;
91
- // --error-25:#FFFBFA;--error-50:#FEF3F2;--error-100:#FEE4E2;--error-200:#FECDCA;--error-300:#FDA29B;--error-400:#F97066;--error-500:#F04438;--error-600:#D92D20;--error-700:#B42318;--error-800:#912018;--error-900:#7A271A;--error-950:#55160C;
92
- // --warning-25:#FFFCF5;--warning-50:#FFFAEB;--warning-100:#FEF0C7;--warning-200:#FEDF89;--warning-300:#FEC48B;--warning-400:#FDB022;--warning-500:#F79009;--warning-600:#DC6803;--warning-700:#B54708;--warning-800:#93370D;--warning-900:#7A2E0E;--warning-950:#4E1D09;
93
- // --success-25:#F6FEF9;--success-50:#ECFDF3;--success-100:#DCFAE6;--success-200:#ABEFC6;--success-300:#75E0A7;--success-400:#47CD89;--success-500:#17B26A;--success-600:#079455;--success-700:#067647;--success-800:#085D3A;--success-900:#074D31;--success-950:#053321;
94
- // --grayBlue-25:#FCFCFD;--grayBlue-50:#F8F9FC;--grayBlue-100:#EAECF5;--grayBlue-200:#D5D9EB;--grayBlue-300:#B3B8DB;--grayBlue-400:#717BBC;--grayBlue-500:#4E5BA6;--grayBlue-600:#3E4784;--grayBlue-700:#363F72;--grayBlue-800:#293056;--grayBlue-900:#101323;--grayBlue-950:#0D0F1C;
95
- // --grayCool-25:#FCFCFD;--grayCool-50:#F9F9FB;--grayCool-100:#EFF1F5;--grayCool-200:#DCDFEA;--grayCool-300:#B9C0D4;--grayCool-400:#7D89B0;--grayCool-500:#5D6B98;--grayCool-600:#4A5578;--grayCool-700:#404968;--grayCool-800:#30374F;--grayCool-900:#111322;--grayCool-950:#0E101B;
96
- // --grayModern-25:#FCFCFD;--grayModern-50:#F8FAFC;--grayModern-100:#EEF2F6;--grayModern-200:#E3E8EF;--grayModern-300:#CDD5DF;--grayModern-400:#9AA4B2;--grayModern-500:#697586;--grayModern-600:#4B5565;--grayModern-700:#364152;--grayModern-800:#202939;--grayModern-900:#121926;--grayModern-950:#0D121C;
97
- // --grayNeutral-25:#FCFCFD;--grayNeutral-50:#F9FAFB;--grayNeutral-100:#F3F4F6;--grayNeutral-200:#E5E7EB;--grayNeutral-300:#D2D6DB;--grayNeutral-400:#9DA4AE;--grayNeutral-500:#6C737F;--grayNeutral-600:#4D5761;--grayNeutral-700:#384250;--grayNeutral-800:#1F2A37;--grayNeutral-900:#111927;--grayNeutral-950:#0D121C;
98
- // --grayIron-25:#FCFCFC;--grayIron-50:#FAFAFA;--grayIron-100:#F4F4F5;--grayIron-200:#E4E4E7;--grayIron-300:#D1D1D6;--grayIron-400:#A0A0AB;--grayIron-500:#70707B;--grayIron-600:#51525C;--grayIron-700:#3F3F46;--grayIron-800:#26272B;--grayIron-900:#1A1A1E;--grayIron-950:#131316;
99
- // --grayTrue-25:#FCFCFC;--grayTrue-50:#FAFAFA;--grayTrue-100:#F5F5F5;--grayTrue-200:#E5E5E5;--grayTrue-300:#D6D6D6;--grayTrue-400:#A3A3A3;--grayTrue-500:#737373;--grayTrue-600:#525252;--grayTrue-700:#424242;--grayTrue-800:#292929;--grayTrue-900:#141414;--grayTrue-950:#0F0F0F;
100
- // --grayWarm-25:#FDFDFC;--grayWarm-50:#FAFAF9;--grayWarm-100:#F5F5F4;--grayWarm-200:#E7E5E4;--grayWarm-300:#D7D3D0;--grayWarm-400:#A9A29D;--grayWarm-500:#79716B;--grayWarm-600:#57534E;--grayWarm-700:#44403C;--grayWarm-800:#292524;--grayWarm-900:#1C1917;--grayWarm-950:#171412;
101
- // --moss-25:#FAFDF7;--moss-50:#F5FBEE;--moss-100:#E6F4D7;--moss-200:#CEEAB0;--moss-300:#ACDC79;--moss-400:#86CB3C;--moss-500:#669F2A;--moss-600:#4F7A21;--moss-700:#3F621A;--moss-800:#335015;--moss-900:#2B4212;--moss-950:#1A280B;
102
- // --greenLight-25:#FAFEF5;--greenLight-50:#F3FEE7;--greenLight-100:#E4FBCC;--greenLight-200:#D0F8AB;--greenLight-300:#A6EF67;--greenLight-400:#85E13A;--greenLight-500:#66C61C;--greenLight-600:#4CA30D;--greenLight-700:#3B7C0F;--greenLight-800:#326212;--greenLight-900:#2B5314;--greenLight-950:#15290A;
103
- // --green-25:#F6FEF9;--green-50:#EDFCF2;--green-100:#D3F8DF;--green-200:#AAF0C4;--green-300:#73E2A3;--green-400:#73E2A3;--green-500:#16B364;--green-600:#099250;--green-700:#087443;--green-800:#095C37;--green-900:#084C2E;--green-950:#052E1C;
104
- // --teal-25:#F6FEFC;--teal-50:#F0FDF9;--teal-100:#CCFBEF;--teal-200:#99F6E0;--teal-300:#5FE9D0;--teal-400:#2ED3B7;--teal-500:#15B79E;--teal-600:#0E9384;--teal-700:#107569;--teal-800:#125D56;--teal-900:#134E48;--teal-950:#0A2926;
105
- // --cyan-25:#F5FEFF;--cyan-50:#ECFDFF;--cyan-100:#CFF9FE;--cyan-200:#A5F0FC;--cyan-300:#67E3F9;--cyan-400:#22CCEE;--cyan-500:#06AED4;--cyan-600:#088AB2;--cyan-700:#0E7090;--cyan-800:#155B75;--cyan-900:#164C63;--cyan-950:#0D2D3A;
106
- // --blueLight-25:#F5FBFF;--blueLight-50:#F0F9FF;--blueLight-100:#E0F2FE;--blueLight-200:#B9E6FE;--blueLight-300:#7CD4FD;--blueLight-400:#36BFFA;--blueLight-500:#0BA5EC;--blueLight-600:#0086C9;--blueLight-700:#026AA2;--blueLight-800:#065986;--blueLight-900:#0B4A6F;--blueLight-950:#062C41;
107
- // --blue-25:#F5FAFF;--blue-50:#EFF8FF;--blue-100:#D1E9FF;--blue-200:#B2DDFF;--blue-300:#84CAFF;--blue-400:#53B1FD;--blue-500:#2E90FA;--blue-600:#1570EF;--blue-700:#175CD3;--blue-800:#1849A9;--blue-900:#194185;--blue-950:#102A56;
108
- // --blueDark-25:#F5F8FF;--blueDark-50:#EFF4FF;--blueDark-100:#D1E0FF;--blueDark-200:#B2CCFF;--blueDark-300:#84ADFF;--blueDark-400:#528BFF;--blueDark-500:#2970FF;--blueDark-600:#155EEF;--blueDark-700:#004EEB;--blueDark-800:#0040C1;--blueDark-900:#00359E;--blueDark-950:#002266;
109
- // --indigo-25:#F5F8FF;--indigo-50:#EEF4FF;--indigo-100:#E0EAFF;--indigo-200:#C7D7FE;--indigo-300:#A4BCFD;--indigo-400:#8098F9;--indigo-500:#6172F3;--indigo-600:#444CE7;--indigo-700:#3538CD;--indigo-800:#2D31A6;--indigo-900:#2D3282;--indigo-950:#1F235B;
110
- // --violet-25:#FBFAFF;--violet-50:#F5F3FF;--violet-100:#ECE9FE;--violet-200:#DDD6FE;--violet-300:#C3B5FD;--violet-400:#A48AFB;--violet-500:#875BF7;--violet-600:#7839EE;--violet-700:#6927DA;--violet-800:#5720B7;--violet-900:#491C96;--violet-950:#2E125E;
111
- // --purple-25:#FAFAFF;--purple-50:#F4F3FF;--purple-100:#EBE9FE;--purple-200:#D9D6FE;--purple-300:#BDB4FE;--purple-400:#9B8AFB;--purple-500:#7A5AF8;--purple-600:#6938EF;--purple-700:#5925DC;--purple-800:#4A1FB8;--purple-900:#3E1C96;--purple-950:#21115F;
112
- // --fuchsia-25:#FEFAFF;--fuchsia-50:#FDF4FF;--fuchsia-100:#FBE8FF;--fuchsia-200:#F6D0FE;--fuchsia-300:#EEAAFD;--fuchsia-400:#E478FA;--fuchsia-500:#D444F1;--fuchsia-600:#BA24D5;--fuchsia-700:#9F1AB1;--fuchsia-800:#821890;--fuchsia-900:#6F1877;--fuchsia-950:#47104C;
113
- // --pink-25:#FEF6FB;--pink-50:#FDF2FA;--pink-100:#FCE7F6;--pink-200:#FCCEEE;--pink-300:#FAA7E0;--pink-400:#F670C7;--pink-500:#EE46BC;--pink-600:#DD2590;--pink-700:#C11574;--pink-800:#9E165F;--pink-900:#851651;--pink-950:#4E0D30;
114
- // --rose-25:#FFF5F6;--rose-50:#FFF1F3;--rose-100:#FFE4E8;--rose-200:#FECDD6;--rose-300:#FEA3B4;--rose-400:#FD6F8E;--rose-500:#F63D68;--rose-600:#E31B54;--rose-700:#C01048;--rose-800:#A11043;--rose-900:#89123E;--rose-950:#510B24;
115
- // --orangeDark-25:#FFF9F5;--orangeDark-50:#FFF4ED;--orangeDark-100:#FFE6D5;--orangeDark-200:#FFD6AE;--orangeDark-300:#FF9C66;--orangeDark-400:#FF692E;--orangeDark-500:#FF4405;--orangeDark-600:#E62E05;--orangeDark-700:#BC1B06;--orangeDark-800:#97180C;--orangeDark-900:#771A0D;--orangeDark-950:#57130A;
116
- // --orange-25:#FEFAF5;--orange-50:#FEF6EE;--orange-100:#FDEAD7;--orange-200:#F9DBAF;--orange-300:#F7B27A;--orange-400:#F38744;--orange-500:#EF6820;--orange-600:#E04F16;--orange-700:#B93815;--orange-800:#932F19;--orange-900:#772917;--orange-950:#511C10;
117
- // --yellow-25:#FEFDF0;--yellow-50:#FEFBE8;--yellow-100:#FEF7C3;--yellow-200:#FEEE95;--yellow-300:#FDE272;--yellow-400:#FAC515;--yellow-500:#EAAA08;--yellow-600:#CA8504;--yellow-700:#A15C07;--yellow-800:#854A0E;--yellow-900:#713B12;--yellow-950:#542C0D;
118
- // }`,
119
- // },
120
- // 'x-css-vars-color-gray':{
121
- // type:'raw',
122
- // statement:`:root{--gray-25:#FCFCFD;--gray-50:#F9FAFB;--gray-100:#F2F4F7;--gray-200:#EAECF0;--gray-300:#D0D5DD;--gray-400:#98A2B3;--gray-500:#667085;--gray-600:#475467;--gray-700:#344054;--gray-800:#1D2939;--gray-900:#101828;--gray-950:#0C111D;}`
123
- // },
124
- // 'x-css-vars-color-grayDark':{
125
- // type:'raw',
126
- // statement:`:root{--grayDark-25:#FAFAFA;--grayDark-50:#F5F5F5;--grayDark-100:#F0F1F1;--grayDark-200:#ECECED;--grayDark-300:#CECFD2;--grayDark-400:#94969C;--grayDark-500:#85888E;--grayDark-600:#61646C;--grayDark-700:#333741;--grayDark-800:#1F242F;--grayDark-900:#161B26;--grayDark-950:#0C111D;}`
127
- // },
128
- // 'x-css-vars-color-primary':{
129
- // type:'raw',
130
- // statement:`:root{--primary-25:#FCFAFF;--primary-50:#F9F5FF;--primary-100:#F4EBFF;--primary-200:#E9D7FE;--primary-300:#D6BBFB;--primary-400:#B692F6;--primary-500:#9E77ED;--primary-600:#7F56D9;--primary-700:#6941C6;--primary-800:#53389E;--primary-900:#42307D;--primary-950:#2C1C5F;}`
131
- // },
132
- // 'x-css-vars-color-brand':{
133
- // type:'raw',
134
- // statement:`:root{--brand-25:#FCFAFF;--brand-50:#F9F5FF;--brand-100:#F4EBFF;--brand-200:#E9D7FE;--brand-300:#D6BBFB;--brand-400:#B692F6;--brand-500:#9E77ED;--brand-600:#7F56D9;--brand-700:#6941C6;--brand-800:#53389E;--brand-900:#42307D;--brand-950:#2C1C5F;}`
135
- // },
136
- // 'x-css-vars-color-error':{
137
- // type:'raw',
138
- // statement:`:root{--error-25:#FFFBFA;--error-50:#FEF3F2;--error-100:#FEE4E2;--error-200:#FECDCA;--error-300:#FDA29B;--error-400:#F97066;--error-500:#F04438;--error-600:#D92D20;--error-700:#B42318;--error-800:#912018;--error-900:#7A271A;--error-950:#55160C;}`
139
- // },
140
- // 'x-css-vars-color-success':{
141
- // type:'raw',
142
- // statement:`:root{--warning-25:#FFFCF5;--warning-50:#FFFAEB;--warning-100:#FEF0C7;--warning-200:#FEDF89;--warning-300:#FEC48B;--warning-400:#FDB022;--warning-500:#F79009;--warning-600:#DC6803;--warning-700:#B54708;--warning-800:#93370D;--warning-900:#7A2E0E;--warning-950:#4E1D09;
143
- // --success-25:#F6FEF9;--success-50:#ECFDF3;--success-100:#DCFAE6;--success-200:#ABEFC6;--success-300:#75E0A7;--success-400:#47CD89;--success-500:#17B26A;--success-600:#079455;--success-700:#067647;--success-800:#085D3A;--success-900:#074D31;--success-950:#053321;}`
144
- // },
145
- // 'x-css-vars-color-grayBlue':{
146
- // type:'raw',
147
- // statement:`:root{--grayBlue-25:#FCFCFD;--grayBlue-50:#F8F9FC;--grayBlue-100:#EAECF5;--grayBlue-200:#D5D9EB;--grayBlue-300:#B3B8DB;--grayBlue-400:#717BBC;--grayBlue-500:#4E5BA6;--grayBlue-600:#3E4784;--grayBlue-700:#363F72;--grayBlue-800:#293056;--grayBlue-900:#101323;--grayBlue-950:#0D0F1C;
148
- // --grayCool-25:#FCFCFD;--grayCool-50:#F9F9FB;--grayCool-100:#EFF1F5;--grayCool-200:#DCDFEA;--grayCool-300:#B9C0D4;--grayCool-400:#7D89B0;--grayCool-500:#5D6B98;--grayCool-600:#4A5578;--grayCool-700:#404968;--grayCool-800:#30374F;--grayCool-900:#111322;--grayCool-950:#0E101B;}`
149
- // },
150
- // 'x-css-vars-color-grayNeural':{
151
- // type:'raw',
152
- // statement:`:root{--grayModern-25:#FCFCFD;--grayModern-50:#F8FAFC;--grayModern-100:#EEF2F6;--grayModern-200:#E3E8EF;--grayModern-300:#CDD5DF;--grayModern-400:#9AA4B2;--grayModern-500:#697586;--grayModern-600:#4B5565;--grayModern-700:#364152;--grayModern-800:#202939;--grayModern-900:#121926;--grayModern-950:#0D121C;
153
- // --grayNeutral-25:#FCFCFD;--grayNeutral-50:#F9FAFB;--grayNeutral-100:#F3F4F6;--grayNeutral-200:#E5E7EB;--grayNeutral-300:#D2D6DB;--grayNeutral-400:#9DA4AE;--grayNeutral-500:#6C737F;--grayNeutral-600:#4D5761;--grayNeutral-700:#384250;--grayNeutral-800:#1F2A37;--grayNeutral-900:#111927;--grayNeutral-950:#0D121C;}`
154
- // },
155
- // 'x-css-vars-color-grayIron':{
156
- // type:'raw',
157
- // statement:`:root{--grayIron-25:#FCFCFC;--grayIron-50:#FAFAFA;--grayIron-100:#F4F4F5;--grayIron-200:#E4E4E7;--grayIron-300:#D1D1D6;--grayIron-400:#A0A0AB;--grayIron-500:#70707B;--grayIron-600:#51525C;--grayIron-700:#3F3F46;--grayIron-800:#26272B;--grayIron-900:#1A1A1E;--grayIron-950:#131316;}`
158
- // },
159
- // 'x-css-vars-color-grayWarm':{
160
- // type:'raw',
161
- // statement:`:root{--grayTrue-25:#FCFCFC;--grayTrue-50:#FAFAFA;--grayTrue-100:#F5F5F5;--grayTrue-200:#E5E5E5;--grayTrue-300:#D6D6D6;--grayTrue-400:#A3A3A3;--grayTrue-500:#737373;--grayTrue-600:#525252;--grayTrue-700:#424242;--grayTrue-800:#292929;--grayTrue-900:#141414;--grayTrue-950:#0F0F0F;
162
- // --grayWarm-25:#FDFDFC;--grayWarm-50:#FAFAF9;--grayWarm-100:#F5F5F4;--grayWarm-200:#E7E5E4;--grayWarm-300:#D7D3D0;--grayWarm-400:#A9A29D;--grayWarm-500:#79716B;--grayWarm-600:#57534E;--grayWarm-700:#44403C;--grayWarm-800:#292524;--grayWarm-900:#1C1917;--grayWarm-950:#171412;}`
163
- // },
164
- // 'x-css-vars-color-greenLight':{
165
- // type:'raw',
166
- // statement:`:root{--moss-25:#FAFDF7;--moss-50:#F5FBEE;--moss-100:#E6F4D7;--moss-200:#CEEAB0;--moss-300:#ACDC79;--moss-400:#86CB3C;--moss-500:#669F2A;--moss-600:#4F7A21;--moss-700:#3F621A;--moss-800:#335015;--moss-900:#2B4212;--moss-950:#1A280B;
167
- // --greenLight-25:#FAFEF5;--greenLight-50:#F3FEE7;--greenLight-100:#E4FBCC;--greenLight-200:#D0F8AB;--greenLight-300:#A6EF67;--greenLight-400:#85E13A;--greenLight-500:#66C61C;--greenLight-600:#4CA30D;--greenLight-700:#3B7C0F;--greenLight-800:#326212;--greenLight-900:#2B5314;--greenLight-950:#15290A;}`
168
- // },
169
- // 'x-css-vars-color-green':{
170
- // type:'raw',
171
- // statement:`:root{--green-25:#F6FEF9;--green-50:#EDFCF2;--green-100:#D3F8DF;--green-200:#AAF0C4;--green-300:#73E2A3;--green-400:#73E2A3;--green-500:#16B364;--green-600:#099250;--green-700:#087443;--green-800:#095C37;--green-900:#084C2E;--green-950:#052E1C;}`
172
- // },
173
- // 'x-css-vars-color-teal':{
174
- // type:'raw',
175
- // statement:`:root{--teal-25:#F6FEFC;--teal-50:#F0FDF9;--teal-100:#CCFBEF;--teal-200:#99F6E0;--teal-300:#5FE9D0;--teal-400:#2ED3B7;--teal-500:#15B79E;--teal-600:#0E9384;--teal-700:#107569;--teal-800:#125D56;--teal-900:#134E48;--teal-950:#0A2926;}`
176
- // },
177
- // 'x-css-vars-color-cyan':{
178
- // type:'raw',
179
- // statement:`:root{--cyan-25:#F5FEFF;--cyan-50:#ECFDFF;--cyan-100:#CFF9FE;--cyan-200:#A5F0FC;--cyan-300:#67E3F9;--cyan-400:#22CCEE;--cyan-500:#06AED4;--cyan-600:#088AB2;--cyan-700:#0E7090;--cyan-800:#155B75;--cyan-900:#164C63;--cyan-950:#0D2D3A;}`
180
- // },
181
- // 'x-css-vars-color-blueLight':{
182
- // type:'raw',
183
- // statement:`:root{--blueLight-25:#F5FBFF;--blueLight-50:#F0F9FF;--blueLight-100:#E0F2FE;--blueLight-200:#B9E6FE;--blueLight-300:#7CD4FD;--blueLight-400:#36BFFA;--blueLight-500:#0BA5EC;--blueLight-600:#0086C9;--blueLight-700:#026AA2;--blueLight-800:#065986;--blueLight-900:#0B4A6F;--blueLight-950:#062C41;}`
184
- // },
185
- // 'x-css-vars-color-blue':{
186
- // type:'raw',
187
- // statement:`:root{--blue-25:#F5FAFF;--blue-50:#EFF8FF;--blue-100:#D1E9FF;--blue-200:#B2DDFF;--blue-300:#84CAFF;--blue-400:#53B1FD;--blue-500:#2E90FA;--blue-600:#1570EF;--blue-700:#175CD3;--blue-800:#1849A9;--blue-900:#194185;--blue-950:#102A56;}`
188
- // },
189
- // 'x-css-vars-color-blueDark':{
190
- // type:'raw',
191
- // statement:`:root{--blueDark-25:#F5F8FF;--blueDark-50:#EFF4FF;--blueDark-100:#D1E0FF;--blueDark-200:#B2CCFF;--blueDark-300:#84ADFF;--blueDark-400:#528BFF;--blueDark-500:#2970FF;--blueDark-600:#155EEF;--blueDark-700:#004EEB;--blueDark-800:#0040C1;--blueDark-900:#00359E;--blueDark-950:#002266;}`
192
- // },
193
- // 'x-css-vars-color-indigo':{
194
- // type:'raw',
195
- // statement:`:root{--indigo-25:#F5F8FF;--indigo-50:#EEF4FF;--indigo-100:#E0EAFF;--indigo-200:#C7D7FE;--indigo-300:#A4BCFD;--indigo-400:#8098F9;--indigo-500:#6172F3;--indigo-600:#444CE7;--indigo-700:#3538CD;--indigo-800:#2D31A6;--indigo-900:#2D3282;--indigo-950:#1F235B;}`
196
- // },
197
- // 'x-css-vars-color-violet':{
198
- // type:'raw',
199
- // statement:`:root{--violet-25:#FBFAFF;--violet-50:#F5F3FF;--violet-100:#ECE9FE;--violet-200:#DDD6FE;--violet-300:#C3B5FD;--violet-400:#A48AFB;--violet-500:#875BF7;--violet-600:#7839EE;--violet-700:#6927DA;--violet-800:#5720B7;--violet-900:#491C96;--violet-950:#2E125E;}`
200
- // },
201
- // 'x-css-vars-color-purple':{
202
- // type:'raw',
203
- // statement:`:root{--purple-25:#FAFAFF;--purple-50:#F4F3FF;--purple-100:#EBE9FE;--purple-200:#D9D6FE;--purple-300:#BDB4FE;--purple-400:#9B8AFB;--purple-500:#7A5AF8;--purple-600:#6938EF;--purple-700:#5925DC;--purple-800:#4A1FB8;--purple-900:#3E1C96;--purple-950:#21115F;}`
204
- // },
205
- // 'x-css-vars-color-fuchsia':{
206
- // type:'raw',
207
- // statement:`:root{--fuchsia-25:#FEFAFF;--fuchsia-50:#FDF4FF;--fuchsia-100:#FBE8FF;--fuchsia-200:#F6D0FE;--fuchsia-300:#EEAAFD;--fuchsia-400:#E478FA;--fuchsia-500:#D444F1;--fuchsia-600:#BA24D5;--fuchsia-700:#9F1AB1;--fuchsia-800:#821890;--fuchsia-900:#6F1877;--fuchsia-950:#47104C;}`
208
- // },
209
- // 'x-css-vars-color-pink':{
210
- // type:'raw',
211
- // statement:`:root{--pink-25:#FEF6FB;--pink-50:#FDF2FA;--pink-100:#FCE7F6;--pink-200:#FCCEEE;--pink-300:#FAA7E0;--pink-400:#F670C7;--pink-500:#EE46BC;--pink-600:#DD2590;--pink-700:#C11574;--pink-800:#9E165F;--pink-900:#851651;--pink-950:#4E0D30;}`
212
- // },
213
- // 'x-css-vars-color-rose':{
214
- // type:'raw',
215
- // statement:`:root{--rose-25:#FFF5F6;--rose-50:#FFF1F3;--rose-100:#FFE4E8;--rose-200:#FECDD6;--rose-300:#FEA3B4;--rose-400:#FD6F8E;--rose-500:#F63D68;--rose-600:#E31B54;--rose-700:#C01048;--rose-800:#A11043;--rose-900:#89123E;--rose-950:#510B24;}`
216
- // },
217
- // 'x-css-vars-color-orangeDark':{
218
- // type:'raw',
219
- // statement:`:root{--orangeDark-25:#FFF9F5;--orangeDark-50:#FFF4ED;--orangeDark-100:#FFE6D5;--orangeDark-200:#FFD6AE;--orangeDark-300:#FF9C66;--orangeDark-400:#FF692E;--orangeDark-500:#FF4405;--orangeDark-600:#E62E05;--orangeDark-700:#BC1B06;--orangeDark-800:#97180C;--orangeDark-900:#771A0D;--orangeDark-950:#57130A;}`
220
- // },
221
- // 'x-css-vars-color-orange':{
222
- // type:'raw',
223
- // statement:`:root{--orange-25:#FEFAF5;--orange-50:#FEF6EE;--orange-100:#FDEAD7;--orange-200:#F9DBAF;--orange-300:#F7B27A;--orange-400:#F38744;--orange-500:#EF6820;--orange-600:#E04F16;--orange-700:#B93815;--orange-800:#932F19;--orange-900:#772917;--orange-950:#511C10;}`
224
- // },
225
- // 'x-css-vars-color-yellow':{
226
- // type:'raw',
227
- // statement:`:root{--yellow-25:#FEFDF0;--yellow-50:#FEFBE8;--yellow-100:#FEF7C3;--yellow-200:#FEEE95;--yellow-300:#FDE272;--yellow-400:#FAC515;--yellow-500:#EAAA08;--yellow-600:#CA8504;--yellow-700:#A15C07;--yellow-800:#854A0E;--yellow-900:#713B12;--yellow-950:#542C0D;}`
228
- // },
42
+ //
229
43
  'x-import-tokens': {
230
44
  type: 'raw',
231
45
  statement: `
232
46
  :root {
47
+ --text-white:#ffffffff;
48
+ --text-black:#00000000;
49
+ --text-color:initial;
50
+ --text-hover-color:initial;
51
+ --text-pressed-color:initial;
52
+ --text-disabled-color:initial;
53
+ --text-active-color:initial;
54
+ --text-link-color:initial;
55
+ --text-visited-color:initial;
56
+ --bg-color:initial;
57
+ --bg-hover-color:initial;
58
+ --bg-disabled-color:initial;
59
+ --bg-pressed-color:initial;
60
+ --bg--active-color:initial;
61
+
62
+ --border-color:initial;
63
+ --border-hover-color:initial;
64
+ --border-disabled-color:initial;
65
+ --border-pressed-color:initial;
66
+ --border--active-color:initial;
67
+ }
68
+
69
+ @media (prefers-color-scheme: dark) {
70
+ :root{
71
+ --text-white:#00000000;
72
+ --text-black:#fffffff;
73
+ --text-color:initial;
74
+ --text-hover-color:initial;
75
+ --text-pressed-color:initial;
76
+ --text-disabled-color:initial;
77
+ --text-active-color:initial;
78
+ --text-link-color:initial;
79
+ --text-visited-color:initial;
80
+ --text-color:initial;
81
+
82
+ --bg-color:initial;
83
+ --bg-hover-color:initial;
84
+ --bg-disabled-color:initial;
85
+ --bg-pressed-color:initial;
86
+ --bg--active-color:initial;
87
+
88
+ --border-color:initial;
89
+ --border-hover-color:initial;
90
+ --border-disabled-color:initial;
91
+ --border-pressed-color:initial;
92
+ --border--active-color:initial;
93
+ }
94
+ }
95
+
96
+ .x-import-semantics-vars{
97
+ color:var(--text-color)
98
+ }
99
+
100
+ :root{
101
+
233
102
 
234
103
  /* Fluid Display Scale */
235
104
  --display-xs: clamp(1.125rem, calc(1rem + 0.625vw), 1.5rem); /* Scales from 18px to 24px */
@@ -361,31 +230,6 @@ export default {
361
230
  }
362
231
  `
363
232
  },
364
- 'x-screen-root': {
365
- type: 'statement',
366
- statement: `pr oh
367
- w--x-screen-root-width:100dvw h--x-screen-root-height:100dvh
368
- --has(__[data-state=open][class~=x-screen-push][class~=x-screen-up])__[class~=x-screen-main]-mt--push-down:100dvh
369
- --has(__[data-state=open][class~=x-screen-push][class~=x-screen-down])__[class~=x-screen-main]-mt--push-up:--100dvh
370
- --has(__[data-state=open][class~=x-screen-push][class~=x-screen-right])__[class~=x-screen-main]-ml--push-left:--100p
371
- --has(__[data-state=open][class~=x-screen-push][class~=x-screen-left])__[class~=x-screen-main]-ml--push-right:100p
372
- --has(__[class~=is-active][class~=x-screen-push][class~=x-screen-up])__[class~=x-screen-main]-mt--push-down:100dvh
373
- --has(__[class~=is-active][class~=x-screen-push][class~=x-screen-down])__[class~=x-screen-main]-mt--push-up:--100dvh
374
- --has(__[class~=is-active][class~=x-screen-push][class~=x-screen-right])__[class~=x-screen-main]-ml--push-left:--100p
375
- --has(__[class~=is-active][class~=x-screen-push][class~=x-screen-left])__[class~=x-screen-main]-ml--push-right:100p
376
- `,
377
- },
378
- 'x-screen': {
379
- type: 'statement',
380
- statement: `w--x-screen-width:100p h--x-screen-height:100p pa transition-property-margin_transform
381
- transition-duration--x-screen-transition-duration:0d35s
382
- [data-state=open]-transform-translate-0
383
- [class~=is-active]-transform-translate-0
384
- [transform-ty--100p,t0,l0,zi-1]--as-x-screen-up
385
- [transform-ty-100p,btm0,l0,zi-1]--as-x-screen-down
386
- [transform-tx--100p,l0,t0,zi-1]--as-x-screen-left
387
- [transform-tx-100p,r0,t0,zi-1]--as-x-screen-right `
388
- },
389
233
  'x-divider-text': {
390
234
  type: 'statement',
391
235
  statement: `[df,aic,g12px]
@@ -445,7 +289,7 @@ export default {
445
289
  [class~=x-menu-open][--af-tf-r-45deg,--af-t-50p,--bf-tf-r--45deg,--bf-t50p,--af-tn-all-0d5s,--bf-tn-all-0d5s]
446
290
  [x-menu-open][--af-tf-r-45deg,--af-t-50p,--bf-tf-r--45deg,--bf-t50p,--af-tn-all-0d5s,--bf-tn-all-0d5s]`
447
291
  },
448
- 'x-acss-utils': {
292
+ 'x-import-utils-1': {
449
293
  type: 'statement',
450
294
  statement: `
451
295
  [c-gray-900,dark-c-grayDark-50]--as-text-primary
@@ -520,7 +364,7 @@ export default {
520
364
  [background-color-success-600,dark-background-color-success-600]--as-bg-success-solid
521
365
  `,
522
366
  },
523
- 'x-acss-vars-dark': {
367
+ 'x-import-vars-dark': {
524
368
  type: 'statement',
525
369
  statement: `
526
370
  --text-primary:--gray-50
@@ -123,6 +123,10 @@ const prefix = {
123
123
  '--rt': ':root', // -rt
124
124
  '--selection': '::selection', // -sl
125
125
  '--s': '::selection', // -sl
126
+ '--search-cancel-button': '::-webkit-search-cancel-button',
127
+ '--webkit-search-cancel-button': '::-webkit-search-cancel-button',
128
+ '--search-decoration': '::-webkit-search-decoration',
129
+ '--webkit-search-decoration': '::-webkit-search-decoration',
126
130
  '--spelling-error': '::spelling-error',
127
131
  '--se': '::spelling-error',
128
132
  '--scrollbar': '::-webkit-scrollbar',
@@ -2,7 +2,9 @@ import getPropertyAndValue from "./returnPropertyAndValue.js";
2
2
  import { customStaticClassNames } from "./static/customStaticClassNames.js";
3
3
  import media, { createRegexForMedia } from "./prefix/responsive.js";
4
4
  import { customColors } from './static/customColors.js';
5
- import { customColorsRadix } from './static/customColorsRadix.js';
5
+ import { customColorsRa } from './static/customColorsRA.js';
6
+ // import {customColors as customColors2} from './static/customColors2.js'
7
+ import { customColorsRadixUi } from './static/customColorsRadix.js';
6
8
  import extractPrefix from './prefix/extractPrefix.js';
7
9
  import extractMediaPrefix from './prefix/extractMediaPrefix.js';
8
10
  import { createCompilerObj, extractProperty } from "./utils/createCompilerObj.js";
@@ -18,7 +20,7 @@ export const compiler = {
18
20
  // cache will cache propertyAndValue
19
21
  cache: { propertyAndValue: Object.assign({}, customStaticClassNames) },
20
22
  // custom:{...{colors:{...customColors,...customColors2,...customColorsRadix}}},
21
- custom: Object.assign({ colors: Object.assign(Object.assign({}, customColors), customColorsRadix) }),
23
+ custom: Object.assign({ colors: Object.assign(Object.assign(Object.assign({}, customColors), customColorsRadixUi), customColorsRa) }),
22
24
  mediaSelector: Object.assign({}, media.target),
23
25
  mediaTest: null,
24
26
  staticClassNames: Object.assign(Object.assign({}, staticClassNamesAlias), staticClassNamesWithAlias),
@@ -0,0 +1,3 @@
1
+ export declare const customColorsRa: {
2
+ [key: string]: string;
3
+ };
@@ -0,0 +1,84 @@
1
+ const colorBase = {
2
+ 'brandRA': 'var(--brandColor,oklch(1 .25049 284.23))',
3
+ 'accentRA': 'var(--accentColor,oklch(1 .25049 284.23))',
4
+ 'tintRA': 'var(--tintColor,oklch(1 .25049 284.23))',
5
+ 'grayRA': 'var(--grayColor,oklch(0.5 0 0))',
6
+ 'redRA': 'var(--redColor,oklch(0.6 .181447 27.0726))',
7
+ 'orangeRA': 'var(--orangeColor,oklch(0.7 .150492 54))',
8
+ 'yellowRA': 'var(--yellowColor,oklch(0.8 .128516 73.8032))',
9
+ 'turquoiseRA': 'var(--turquoiseColor,oklch(0.5 .081146 205.114))',
10
+ 'cyanRA': 'var(--cyanColor,oklch(0.4 .142107 243.926))',
11
+ 'greenRA': 'var(--greenColor,oklch(0.5 .121276 155.372))',
12
+ 'blueRA': 'var(--blueColor,oklch(0.5 .22049 266.315))',
13
+ 'indigoRA': 'var(--indigoColor,oklch(1 .25049 284.23))',
14
+ 'purpleRA': 'var(--purpleColor,oklch(0.7 .223324 302))',
15
+ 'pinkRA': 'var(--pinkColor,oklch(0.6 .177717 347.813))'
16
+ };
17
+ const chroma = {
18
+ /* lower chroma at low lightness levels */
19
+ '100': 'calc(l * c * 0.5)',
20
+ '200': 'calc(l * c * 0.6)',
21
+ '300': 'calc(l * c * 0.7)',
22
+ '400': 'calc(l * c * 0.8)',
23
+ '500': 'calc(l * c * 0.9)',
24
+ '600': 'c',
25
+ '700': 'c',
26
+ '800': 'c',
27
+ '900': 'c',
28
+ '1000': 'c',
29
+ '1100': 'c',
30
+ '1200': 'c',
31
+ '1300': 'c',
32
+ '1400': 'c',
33
+ '1500': 'c',
34
+ '1600': 'c',
35
+ };
36
+ const lightness = {
37
+ '100': '98.1187%',
38
+ '200': '95.2045%',
39
+ '300': '91.1434%',
40
+ '400': '85.1751%',
41
+ '500': '79.1773%',
42
+ '600': '72.3297%',
43
+ '700': '67.0121%',
44
+ '800': '62.3039%',
45
+ '900': '57.9699%',
46
+ '1000': '51.9076%',
47
+ '1100': '46.9058%',
48
+ '1200': '41.0821%',
49
+ '1300': '35.3616%',
50
+ '1400': '29.6725%',
51
+ '1500': '24.5366%',
52
+ '1600': '16.6959%',
53
+ };
54
+ const lightnessDark = {
55
+ '100': '29.6725%',
56
+ '200': '35.3616%',
57
+ '300': '41.0821%',
58
+ '400': '46.9058%',
59
+ '500': '51.9076%',
60
+ '600': '57.9699%',
61
+ '700': '56.1347%',
62
+ '800': '59.2866%',
63
+ '900': '62.3039%',
64
+ '1000': '67.0121%',
65
+ '1100': '72.3297%',
66
+ '1200': '79.1773%',
67
+ '1300': '85.1751%',
68
+ '1400': '91.1434%',
69
+ '1500': '95.2045%',
70
+ '1600': '100%',
71
+ };
72
+ const colors = () => {
73
+ const collection = {};
74
+ const scales = ['100', '200', '300', '400', '500', '600', '700', '800', '900', '1000', '1100', '1200', '1300', '1400', '1500', '1600'];
75
+ for (const [color, value] of Object.entries(colorBase)) {
76
+ for (const scale of scales) {
77
+ collection[`${color}${scale}`] = `oklch(from ${value} ${lightness[scale]} ${chroma[scale]} h)`;
78
+ collection[`${color}Dark${scale}`] = `oklch(from ${value} ${lightnessDark[scale]} ${chroma[scale]} h)`;
79
+ collection[`${color}Theme${scale}`] = `light-dark(oklch(from ${value} ${lightness[scale]} ${chroma[scale]} h),oklch(from ${value} ${lightnessDark[scale]} ${chroma[scale]} h))`;
80
+ }
81
+ }
82
+ return collection;
83
+ };
84
+ export const customColorsRa = Object.assign(Object.assign({}, colors()), colorBase);