Files
medusa-store/www/packages/tailwind/modified.tailwind.config.js
Shahed Nasser 3a7a2571a6 docs: add cloud plans & pricing page (#13420)
* docs: add cloud plans & pricing page

* fix buttons

* simplify condition

* remove test frontmatter

* design fixes and changes

* styling fixes

* change node version for tests

* fix build error

* fix tests

* fix github pipeline
2025-09-11 18:18:12 +03:00

34 lines
901 B
JavaScript

// This config file includes the base configurations with the modified configs for UI docs
const coreConfig = require("./base.tailwind.config")
// modify core spacing to have "docs" prefix
const modifiedSpacing = {}
Object.entries(coreConfig.theme.spacing).forEach(([key, value]) => {
modifiedSpacing[`docs_${key}`] = value
})
// modify core border radius to have "docs" prefix
const modifiedRadius = {}
Object.entries(coreConfig.theme.extend.borderRadius).forEach(([key, value]) => {
modifiedRadius[`docs_${key}`] = value
})
/** @type {import('tailwindcss').Config} */
module.exports = {
...coreConfig,
theme: {
...coreConfig.theme,
extend: {
...coreConfig.theme.extend,
borderRadius: {
...coreConfig.theme.extend.borderRadius,
...modifiedRadius,
},
},
spacing: {
...coreConfig.theme.spacing,
...modifiedSpacing,
},
},
}