« Tailwind CSS » : différence entre les versions
De Banane Atomic
Aller à la navigationAller à la recherche
(Page créée avec « Category:Web = Integration with Blazor = ») |
|||
Ligne 1 : | Ligne 1 : | ||
[[Category:Web]] | [[Category:Web]] | ||
= Integration with Blazor = | = Integration with Blazor = | ||
== Installation == | |||
<kode lang='ps'> | |||
# from the root of your blazor project | |||
npx tailwindcss init -p | |||
</kode> | |||
<filebox fn='tailwind.config.js' collapsed> | |||
/** @type {import('tailwindcss').Config} */ | |||
module.exports = { | |||
content: [], | |||
theme: { | |||
extend: {}, | |||
}, | |||
plugins: [], | |||
} | |||
</filebox> | |||
<filebox fn='postcss.config.js' collapsed> | |||
module.exports = { | |||
plugins: { | |||
tailwindcss: {}, | |||
autoprefixer: {}, | |||
}, | |||
} | |||
</filebox> |
Version du 9 janvier 2025 à 18:44
Integration with Blazor
Installation
# from the root of your blazor project npx tailwindcss init -p |
tailwind.config.js |
/** @type {import('tailwindcss').Config} */ module.exports = { content: [], theme: { extend: {}, }, plugins: [], } |
postcss.config.js |
module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, }, } |