Hi. This is a newbie post. I follow the instructions to create a subtheme. I have luck and already I have sass and compass installed then I follow instruction and I have a theme folder with three files: config.rb, Gemfile, Gemfile.lock but I dont have any drupal folder or file. What I need to do to begin to use my subtheme? I need to copy all the content of Aurora theme to my subtheme? or only some of it?

Comments

iamcarrico’s picture

Status: Active » Postponed (maintainer needs more info)

This seems to be an issue with what compass created. Can you please give us the output from compass when you created your own subtheme, as well as the commands you used? Also, please give us the output to "gem query --local", so we know what gems you have installed. Thank you

The compass-aurora gem should give you all files you need, the template.php, .info file and css/scss files.

koffer’s picture

I believe I do something wrong the first time. I create a new subtheme with

compass create -r aurora --using aurora

and get this files:

directory laaurora/sass/partials/
directory laaurora/sass/partials/design/
directory laaurora/sass/partials/global/
directory laaurora/sass/partials/layout/
directory laaurora/sass/partials/styleguide/
directory laaurora/stylesheets/
directory laaurora/templates/
create laaurora/config.rb
create laaurora/sass/README.md
create laaurora/sass/partials/README.md
create laaurora/templates/README.md
create laaurora/laaurora.info
create laaurora/template.php
create laaurora/sass/partials/design/_design.scss
create laaurora/sass/partials/global/_base.scss
create laaurora/sass/partials/layout/_layout.scss
create laaurora/sass/partials/styleguide/_style-guide.scss
create laaurora/sass/print.scss
create laaurora/sass/style.scss
create laaurora/sass/partials/global/_variables.scss
create laaurora/sass/partials/global/_functions.scss
create laaurora/sass/partials/global/_mixins.scss
create laaurora/sass/partials/global/_extendables.scss
create laaurora/Gemfile
create laaurora/.editorconfig
create laaurora/.gitignore
create laaurora/stylesheets/print.css
create laaurora/stylesheets/style.css

laaurora is the name of the subtheme.

I will try to do some basic design with aurora subtheme and explore it.

thanks for the answer!

iamcarrico’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Perfect, it seems to work as planned!

sdmaxey’s picture

I have a similar issue--or perhaps the same issue. Either there's an error in your documentation or something doesn't function as described.

I followed the directions in the documentation PDF, first changing directory cd to the relevant sites/all/themes directory.

I entered the command-line argument as described from the documentation:

compass create sitetheme -r aurora --using aurora/singularity

(where sitetheme was the name of the theme I wanted to create)

What I got was a sitetheme directory containing just a config.rb file and the following error messages in Terminal:
/Users/smaxey/.compass/extensions/breakpoint/lib/breakpoint.rb:6: warning: already initialized constant VERSION
/Users/smaxey/.compass/extensions/breakpoint/lib/breakpoint.rb:7: warning: already initialized constant DATE
/Users/smaxey/.compass/extensions/singularitygs/lib/singularitygs.rb:7: warning: already initialized constant VERSION
/Users/smaxey/.compass/extensions/singularitygs/lib/singularitygs.rb:8: warning: already initialized constant DATE
directory sitetheme/
create sitehteme/config.rb
Nothing to compile. If you're trying to start a new project, you have left off the directory argument.
Run "compass -h" to get help.

I tried this a couple of times, concerned I might have mistyped something, with the same result.

After reading the discussion above, I then did a cd into the sitetheme directory and ran compass create -r aurora --using aurora

A more complete directory was generated, along with the following messages:

/Users/smaxey/.compass/extensions/breakpoint/lib/breakpoint.rb:6: warning: already initialized constant VERSION
/Users/smaxey/.compass/extensions/breakpoint/lib/breakpoint.rb:7: warning: already initialized constant DATE
/Users/smaxey/.compass/extensions/singularitygs/lib/singularitygs.rb:7: warning: already initialized constant VERSION
/Users/smaxey/.compass/extensions/singularitygs/lib/singularitygs.rb:8: warning: already initialized constant DATE
directory sass/
directory sass/partials/
directory sass/partials/design/
directory sass/partials/global/
directory sass/partials/layout/
directory sass/partials/styleguide/
directory stylesheets/
directory templates/
File config.rb already exists. Run with --force to force overwrite.

Running the command again with force completed the process.

So apparently simply putting the name of the theme is not a sufficient directory argument when run from within the drupal project's sites/all/themes directory. How would I need to modify the command to make it work for future subthemes?

Snugug’s picture

Please refer to the main project page where it says all of the documentation has been moved online. The PDF documentation is no longer valid. It will be removed in future updates

Taiger’s picture

Until the online documentation is expanded here are the most accurate installation instructions I could find:
http://www.phase2technology.com/blog/drupal-meets-sass-getting-started-w...
http://www.phase2technology.com/blog/drupal-meets-sass-getting-started-w...

The command to subtheme:
Right way:

compass create <your_subtheme_name> -r aurora --using aurora/polaris

Wrong way:

compass create <your_subtheme_name> -r aurora --using aurora/singularity