|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 1 | import defaultFullConfig from '../../stubs/config.full.js'
|
|---|
| 2 | import { flagEnabled } from '../featureFlags'
|
|---|
| 3 |
|
|---|
| 4 | export default function getAllConfigs(config) {
|
|---|
| 5 | const configs = (config?.presets ?? [defaultFullConfig])
|
|---|
| 6 | .slice()
|
|---|
| 7 | .reverse()
|
|---|
| 8 | .flatMap((preset) => getAllConfigs(preset instanceof Function ? preset() : preset))
|
|---|
| 9 |
|
|---|
| 10 | const features = {
|
|---|
| 11 | // Add experimental configs here...
|
|---|
| 12 | respectDefaultRingColorOpacity: {
|
|---|
| 13 | theme: {
|
|---|
| 14 | ringColor: ({ theme }) => ({
|
|---|
| 15 | DEFAULT: '#3b82f67f',
|
|---|
| 16 | ...theme('colors'),
|
|---|
| 17 | }),
|
|---|
| 18 | },
|
|---|
| 19 | },
|
|---|
| 20 |
|
|---|
| 21 | disableColorOpacityUtilitiesByDefault: {
|
|---|
| 22 | corePlugins: {
|
|---|
| 23 | backgroundOpacity: false,
|
|---|
| 24 | borderOpacity: false,
|
|---|
| 25 | divideOpacity: false,
|
|---|
| 26 | placeholderOpacity: false,
|
|---|
| 27 | ringOpacity: false,
|
|---|
| 28 | textOpacity: false,
|
|---|
| 29 | },
|
|---|
| 30 | },
|
|---|
| 31 | }
|
|---|
| 32 |
|
|---|
| 33 | const experimentals = Object.keys(features)
|
|---|
| 34 | .filter((feature) => flagEnabled(config, feature))
|
|---|
| 35 | .map((feature) => features[feature])
|
|---|
| 36 |
|
|---|
| 37 | return [config, ...experimentals, ...configs]
|
|---|
| 38 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.