Claro is a Drupal admin theme
Switch branches/tags
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Rename theme to Claro (#69) Nov 30, 2018
config/schema Rename theme to Claro (#69) Nov 30, 2018
css Rename theme to Claro (#69) Nov 30, 2018
images Copy of Seven theme from Drupal Core commit f290f49f6d Jun 1, 2018
js Update Seven theme to 8.7.x (#35) Oct 3, 2018
scripts/js Add core js build scripts and packages (#6) Jun 1, 2018
templates Rename theme to Claro (#69) Nov 30, 2018
.eslintignore Add core js build scripts and packages (#6) Jun 1, 2018
.eslintrc.json Add core js build scripts and packages (#6) Jun 1, 2018
.eslintrc.passing.json Add core js build scripts and packages (#6) Jun 1, 2018
.gitignore Add CSS postprocessor to support variables (#53) Oct 26, 2018
.stylelintrc.json Travis buildsteps for running stylelint 🕵️‍♂️ (#1) Jun 1, 2018
.travis.yml Add core js build scripts and packages (#6) Jun 1, 2018
CODE_OF_CONDUCT.md Add code of conduct 📝 (#5) Jun 15, 2018
LICENSE Initial commit Jun 1, 2018
README.md Rename theme to Claro (#69) Nov 30, 2018
claro.breakpoints.yml Rename theme to Claro (#69) Nov 30, 2018
claro.info.yml Rename theme to Claro (#69) Nov 30, 2018
claro.libraries.yml Rename theme to Claro (#69) Nov 30, 2018
claro.theme Rename theme to Claro (#69) Nov 30, 2018
logo.svg Copy of Seven theme from Drupal Core commit f290f49f6d Jun 1, 2018
package.json Add CSS postprocessor to support variables (#53) Oct 26, 2018
postcss.config.js Add CSS postprocessor to support variables (#53) Oct 26, 2018
screenshot.png Copy of Seven theme from Drupal Core commit f290f49f6d Jun 1, 2018
variables.js Replace Lucida Grande to system font(s) (#61) Nov 11, 2018
yarn.lock Add CSS postprocessor to support variables (#53) Oct 26, 2018

README.md

Claro Drupal admin theme

Pre-requisites

Before starting, ensure that you are using at least the latest LTS release of Node.js, once Node.js has been installed, we recommend to install yarn

npm i -g yarn

To install the required packages use

yarn install

Working on Javascript

When developing JavaScript locally you can use the watcher to make changes and have them compiled as you save as well as generate source maps.

yarn run watch:js

To build source maps you need to use

yarn run watch:js-dev

For building a single file use

yarn run build:js -- --file misc/drupal.es6.js

Working on CSS

The project uses PostCSS for managing variables and provide the needed browser support. CSS scaffolding tasks are following the logic of the js tasks:

  • yarn build:css Process sources without writing source maps.
  • yarn build:css-dev Process sources with (external) source maps.
  • yarn watch:css Watches source assets and applies distributive task if any of them changes.
  • yarn watch:css-dev Watches source assets and applies development task if any of them changes.

Linting js and css

For linting compiled CSS use

yarn run lint:css

For js there are two separate configs you can use

yarn run lint:js

yarn run lint:js-passing