--- 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