An experimental design system and Drupal theme built with Storybook, postCSS, CSS variables, and Single Directory Components.
Academica follows atomic design practices with Drupal Single Directory Components. Integrates PostCSS, which is compiled per component using vite. Uses CSS variables, including primitive and semantic layers for the color palette.
Storybook University uses Storybook with Vite and type of HTML. It uses the storybook sdc addon provided by iberdinsky: https://github.com/iberdinsky-skilld/sdc-addon
Clone this repo and do:
npm run storybook
To run postCSS compiling without launching Storybook:
npm run dev
npm install autoprefixer
npm i postcss-nested
npm i postcss-import
npm i -D postcss-load-config
Create a file named postcss.config.js in the root of your project, and add this content:
module.exports = {
// Add your installed PostCSS plugins here:
plugins: [
require('postcss-import'), // postcss-import must be first
require('autoprefixer'),
require('postcss-nested')
// don't put devDependencies here, only dependencies
],
};