Skip to main content

Getting Started Guide

Looking to create a CleanSlate theme? The "Getting Started Guide" is a great way to learn the process of creating a theme. Follow the steps below to get up and running quickly. It is required that all newly developed themes follow the web standards and guidelines for creating your site.


Make a Request

Step 1: Fill out the " Theme Developer - CleanSlate Request Form"to request a:

  • new user account for CleanSlate and Bitbucket
  • new site in CleanSlate
  • new theme repository in Bitbucket

CleanSlate Request Form 

Step 2: Wait for a response from University Relations - Web. Generally we will respond to your request within 1-2 days with a notification that your request has been completed.

Step 3: Log in with your WVU Login credentials to check your request. Once you receive your notification from University Relations - Web, you need to double check CleanSlate and Bitbucket to make sure it has been properly setup.

Please notify University Relations - Web if you are having problems with your accounts.

Requirements

To work with a CleanSlate theme, you must be familiar with the following technologies:

  • HTML
  • CSS
  • Javascript
  • Command Line basics
  • Git

Step 1: At its core, CleanSlate uses HTML, CSS and Javascript to create themes. If you need to brush up on any of these technologies, check out the Introduction to HTML and the Learn CSS courses on Codecademy.

NOTE: While technically not required, most CleanSlate themes use Sass ("CSS with superpowers") as a language that compiles to CSS. To brush up on how to use Sass, check out the Learn Sass course on Codecademy.

Step 2: Knowing some command line basics will help you navigate your file system and interact with a CleanSlate theme via Git. To learn the basics of traversing the command line, visit Codecademy's Learn the Command Line. Lesson 1 deals with file system navigation.

Step 3: CleanSlate uses Git to version control our themes and keep everything and everyone up-to-date. If you're not familiar with Git, visit:  

Knowing the following git commands are essential to working with CleanSlate themes: git status, add, commit, push, pull and clone.


Local Setup

Once you're ready to make changes to a theme, you have to get the theme on your local computer to make your changes.

Step 1: Clone the theme repository from Bitbucket in the ~/Sites/cleanslate_themes directory on your local computer. You may need to make a Sites folder and a cleanslate_themes folder if you have not done so already. If you need a refresher on how to use Git, refer to the Requirements section above.

Step 2: If you are using a Mac you will need to adjust your computer settings to  view hidden files in your theme.


    Create Your Theme

    Step 1: Use the WVU Design System, Supertheme or Brand Patterns as your theme. Before you start writing code, we strongly recommend you download and use the Design System, Supertheme or Brand Patterns as a starting point for your CleanSlate theme. These templates are approved, accessible, and branded. It's likely that the repository you requested from the "Make a Request" section above will already have one of these boilerplates added to the theme.

    Step 2: Structure your theme the right way. Every theme in CleanSlate needs to have the correct theme structure. Without the correct structure, your theme will not work in CleanSlate. Visit  Theme Creation Rules to learn more about setting up a new CleanSlate theme. You should also check out the CleanSlate Toolkit boilerplate for a working, barebones example of a theme's structure.

    Theme Creation Rules

    Step 3: Make your template D.R.Y. Learn how to use  layouts and the r:yield tag to make your template more flexible.

    Layouts and r:yield

    Step 4: Make use of Radius tags specific to CleanSlate. These could include Partials, Editable Regions and Radius tags to create navigation. See Convert a Theme to CleanSlate or use the Tag Index to reference all of the available radius tags for CleanSlate theme development.

    Convert a Theme to CleanSlate

    Tag Index


    Add Your Theme to CleanSlate

    Step 1: Git add, commit, push and then sync. To make your changes live you will need to push your local theme changes using Git and then sync your theme in CleanSlate. 

    Make Your Changes Live

    Step 2: Start adding content to your site. Visit the  content publishing section of this site to learn more about managing your content.  

    Content Publishing

    Step 3: CleanSlate employs a 10 minute cache for themes and content changes. If you make a change and don't see it reflected in production, it's likely due to the cache. To learn how to bypass the cache and see your changes immediately, see our documentation on Caching in CleanSlate.


    Working Locally

    You may tire of having to make a change to HTML, CSS or Javascript, then commit the change, push, and Sync Theme in CleanSlate. Luckily, you can develop your CleanSlate theme locally.  Hammer Virtual Machine is a virtualized theme development tool for the CleanSlate CMS template rendering engine. Hammer was created to help you iterate quickly on themes and template markup on your local computer.

    Launching the Site

    Step 1: You must submit your designs via ConceptBoard.

    Give us at least 5 business days to review your design upon submitting your original concept. You can submit images or a link to a *.sandbox site. We will provide feedback in the board comments and give you the go-ahead to build the site (if you haven't already done so). Once you think you are ready to go live, submit the website for formal approval. You must submit your final *.sandbox.wvu.edu URL at least one week prior to your intended launch date. Please include Adam Glenn, Adam Johnson, and Mike Esposito on the approval request, and ONLY these approvers. Mike and Adam G. will sign off on your design and AJ will sign off on accessibility.

    Step 2: Submit the Website Launch and URL Request Form.

    This is the final step to launch your website in production. When submitting the request, please allow ample time for confirmation of approval, DNS registration, service assignment, and remaining system configuration tasks.



    Where to go next:

    Continue reading the pages nested under this Getting Started Guide:

    Last updated on August 20, 2019.

    We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

    • A brief description of the issue
    • A link to the page where you saw the issue
    • Screenshots that illustrate the problem - How do I take a screenshot?

    Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.