This is a theme for WordPress based on FoundationPress. Nausicaa (na.uɕika) is a fictional character from Hayao Miyazaki's science fiction manga series Nausicaä of the Valley of the Wind and his anime film of the same name.
Please fork, copy, modify, delete, share or do whatever you like with this.
All contributions are welcome!
##Demo
This project requires Node.js v4.x.x to be installed on your machine. Please be aware that you may encounter problems with the installation if you are using v5.1.0 with all the latest features.
FoundationPress uses Sass (CSS with superpowers). In short, Sass is a CSS pre-processor that allows you to write styles more effectively and tidy.
The Sass is compiled using libsass, which requires the GCC to be installed on your machine. Windows users can install it through MinGW, and Mac users can install it through the Xcode Command-line Tools.
If you have not worked with a Sass-based workflow before, I would recommend reading FoundationPress for beginners, a short blog post that explains what you need to know.
$ cd my-wordpress-folder/wp-content/themes/
$ git clone https://github.com/ghassemiN/Nausicaa.git
$ cd Nausicaa
$ npm install
$ npm run watch
If you want to take advantage of browser-sync (automatic browser refresh when a file is saved), simply open your Gulpfile.js and put your local dev-server address (e.g localhost) in this field var URL = '';
, save the Gulpfile and run
$ npm run watch
$ npm run build
Build all assets minified and without sourcemaps:
$ npm run production
-
style.css
: Do not worry about this file. (For some reason) it's required by WordPress. All styling are handled in the Sass files described below -
assets/scss/foundation.scss
: Make imports for all your styles here -
assets/scss/global/*.scss
: Global settings -
assets/scss/components/*.scss
: Buttons etc. -
assets/scss/modules/*.scss
: Topbar, footer etc. -
assets/scss/templates/*.scss
: Page template spesific styling -
assets/scss/templates/mystyle.scss
: My custom style for the theme
Please note that you must run npm run build
or npm run watch
in your terminal for the styles to be copied and concatenated. See the Gulpfile.js for details
assets/javascript/custom
: This is the folder where you put all your custom scripts. Every .js file you put in this directory will be minified and concatenated one single .js file. (This is good for site speed and performance)
Please note that you must run npm run build
or npm run watch
in your terminal for the scripts to be copied and concatenated. See Gulpfile.js for details
Version control on these files are turned off because they are automatically generated as part of the build process.
-
assets/stylesheets/foundation.css
: All Sass files are minified and compiled to this file -
assets/stylesheets/foundation.css.map
: CSS source maps -
assets/javascript/vendor
: Vendor scripts are copied fromassets/components/
to this directory. We use this path for enqueing the vendor scripts in WordPress.
Foundation comes with everything you need to run tests that will check your theme for WordPress Coding Standards. To enable this feature you'll need to install PHP Codesniffer, along with the WordPress Coding Standards set of "Sniffs". You'll need to have Composer To install both run the following:
$ composer create-project wp-coding-standards/wpcs:dev-master --no-dev
When prompted to remove existing VCS, answer Yes by typing Y
.
Once you have installed the packages, you can check your entire theme by running:
$ npm run phpcs
If there are errors that Code Sniffer can fix automatically, run the following command to fix them:
$ npm run phpcbf
- FoundationPress for beginners
- Responsive images in WordPress with Interchange
- Build a Responsive WordPress theme
- Learn to use the _settings file to change almost every aspect of a Foundation site
- Other lessons from Zurb University
- Star the project!
- Answer questions that come through GitHub issues
- Report a bug that you find
- Share a theme you've built on top of FoundationPress
Pull requests are highly appreciated. Please follow these guidelines:
- Solve a problem. Features are great, but even better is cleaning-up and fixing issues in the code that you discover
- Make sure that your code is bug-free and does not introduce new bugs
- Create a pull request
- Verify that all the Travis-CI build checks have passed