* 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
34 lines
901 B
JavaScript
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,
|
|
},
|
|
},
|
|
}
|