diff --git a/source/_posts/2018-11-20-rebuilding-bartik-with-vuejs-tailwind-css.md b/source/_posts/2018-11-20-rebuilding-bartik-with-vuejs-tailwind-css.md index 5f427be6..e4002772 100644 --- a/source/_posts/2018-11-20-rebuilding-bartik-with-vuejs-tailwind-css.md +++ b/source/_posts/2018-11-20-rebuilding-bartik-with-vuejs-tailwind-css.md @@ -62,7 +62,8 @@ export default { `src/components/Welcome.vue`: -``` +
{% raw %} +```vuejs - - -``` - -`src/components/DrupalBlock.vue`: - -``` - - - ``` +{% endraw %}
## Making it responsive diff --git a/source/_posts/2018-12-06-rebuilding-bartik-with-vuejs-tailwind-css-part-2.md b/source/_posts/2018-12-06-rebuilding-bartik-with-vuejs-tailwind-css-part-2.md new file mode 100644 index 00000000..8e82de1b --- /dev/null +++ b/source/_posts/2018-12-06-rebuilding-bartik-with-vuejs-tailwind-css-part-2.md @@ -0,0 +1,137 @@ +--- +title: Rebuilding Bartik (Drupal’s Default Theme) with Vue.js and Tailwind CSS - part 2 +tags: + - drupal + - tailwind-css + - tweet + - vuejs +has_tweets: true +draft: true +--- +{% block excerpt %} +In the [original post](/blog/rebuilding-bartik-with-vuejs-tailwind-css) I detailed how I built a clone of Drupal’s Bartik theme with [Vue.js][1] and [Tailwind CSS][2]. This post details some updates that I’ve made to it since then. +{% endblock %} + +{% block content %} +## Customising Tailwind + +```js +let colors = { + 'transparent': 'transparent', + + 'black': '#22292f', + 'grey-darkest': '#3d4852', + 'grey-dark': '#8795a1', + 'grey': '#b8c2cc', + 'grey-light': '#dae1e7', + 'grey-lighter': '#f0f0f0', + 'grey-lightest': '#F6F6F2', + 'white': '#ffffff', + + 'blue-dark': '#2779bd', + 'blue': '#3490dc', + 'blue-light': '#bcdefa', +} +``` + +## Extracting Tailwind components for link styling + +`src/components/Welcome.vue`: + +
{% raw %} +```vuejs + +``` + +```vuejs + +``` +{% endraw %}
+ +## Extracting a Vue component for Drupal blocks + +`src/components/DrupalBlock.vue`: + +```vuejs + + + +``` + +`src/components/Welcome.vue`: + +```vuejs + +

Search

+ +
+
+ + + +
+
+
+``` +{% endblock %} + +[0]: https://www.drupal.org +[1]: https://vuejs.org +[2]: https://tailwindcss.com +[3]: https://github.com/opdavies/rebuilding-bartik +[4]: https://rebuilding-bartik.netlify.com +[5]: https://www.drupal.org/project/tailwindcss